From e74b29f1f600749106c62c3e69bbbd3f1e0f647b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Sat, 18 Jan 2025 04:41:57 +0100 Subject: [PATCH 01/46] feat: add v1.2 API files --- .gitignore | 11 + .openapi-generator-ignore | 23 + .openapi-generator/FILES | 1042 +++ .openapi-generator/VERSION | 1 + .python-version | 1 + LICENSE | 21 + README.md | 598 +- VERSION | 1 + cloudbeds_pms_v1_2/__init__.py | 376 ++ cloudbeds_pms_v1_2/api/__init__.py | 27 + cloudbeds_pms_v1_2/api/adjustment_api.py | 1252 ++++ .../api/allotment_blocks_api.py | 2362 +++++++ cloudbeds_pms_v1_2/api/app_settings_api.py | 1238 ++++ cloudbeds_pms_v1_2/api/authentication_api.py | 913 +++ cloudbeds_pms_v1_2/api/currency_api.py | 303 + cloudbeds_pms_v1_2/api/custom_fields_api.py | 734 +++ cloudbeds_pms_v1_2/api/dashboard_api.py | 330 + cloudbeds_pms_v1_2/api/emails_api.py | 1333 ++++ cloudbeds_pms_v1_2/api/groups_api.py | 1915 ++++++ cloudbeds_pms_v1_2/api/guest_api.py | 5585 +++++++++++++++++ cloudbeds_pms_v1_2/api/hotel_api.py | 1277 ++++ cloudbeds_pms_v1_2/api/house_account_api.py | 1250 ++++ cloudbeds_pms_v1_2/api/housekeeping_api.py | 1973 ++++++ cloudbeds_pms_v1_2/api/integration_api.py | 2491 ++++++++ cloudbeds_pms_v1_2/api/invoices_api.py | 641 ++ cloudbeds_pms_v1_2/api/item_api.py | 3590 +++++++++++ cloudbeds_pms_v1_2/api/package_api.py | 567 ++ cloudbeds_pms_v1_2/api/payment_api.py | 3466 ++++++++++ cloudbeds_pms_v1_2/api/rate_api.py | 1698 +++++ cloudbeds_pms_v1_2/api/reservation_api.py | 4951 +++++++++++++++ cloudbeds_pms_v1_2/api/room_api.py | 4743 ++++++++++++++ cloudbeds_pms_v1_2/api/taxes_and_fees_api.py | 337 + cloudbeds_pms_v1_2/api/user_api.py | 303 + cloudbeds_pms_v1_2/api_client.py | 797 +++ cloudbeds_pms_v1_2/api_response.py | 21 + cloudbeds_pms_v1_2/configuration.py | 486 ++ cloudbeds_pms_v1_2/docs/AdjustmentApi.md | 358 ++ cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md | 645 ++ cloudbeds_pms_v1_2/docs/AppSettingsApi.md | 354 ++ cloudbeds_pms_v1_2/docs/AuthenticationApi.md | 223 + cloudbeds_pms_v1_2/docs/CurrencyApi.md | 91 + cloudbeds_pms_v1_2/docs/CustomFieldsApi.md | 194 + cloudbeds_pms_v1_2/docs/DashboardApi.md | 93 + .../docs/DeleteAdjustmentResponse.md | 30 + .../docs/DeleteGuestNoteResponse.md | 30 + .../docs/DeleteReservationNoteResponse.md | 30 + .../docs/DeleteRoomBlockResponse.md | 30 + .../docs/DeleteWebhookResponse.md | 29 + cloudbeds_pms_v1_2/docs/EmailsApi.md | 371 ++ .../docs/GetAdjustmentResponse.md | 30 + .../docs/GetAdjustmentResponseData.md | 42 + .../docs/GetAdjustmentsResponse.md | 30 + .../docs/GetAdjustmentsResponseData.md | 37 + .../docs/GetAllotmentBlocksResponse.md | 32 + .../GetAllotmentBlocksResponseDataInner.md | 41 + ...esponseDataInnerAllotmentIntervalsInner.md | 33 + ...llotmentIntervalsInnerAvailabilityInner.md | 34 + ...nnerAllotmentIntervalsInnerRestrictions.md | 35 + ...BlocksResponseDataInnerAutoReleaseInner.md | 31 + .../docs/GetAppPropertySettingsResponse.md | 30 + ...GetAppPropertySettingsResponseDataInner.md | 31 + .../docs/GetAppSettingsResponse.md | 30 + .../docs/GetAppSettingsResponseData.md | 30 + .../docs/GetAppStateResponse.md | 30 + .../docs/GetAppStateResponseData.md | 30 + .../docs/GetAvailableRoomTypesResponse.md | 34 + .../GetAvailableRoomTypesResponseDataInner.md | 31 + ...sResponseDataInnerPropertyCurrencyInner.md | 31 + ...ypesResponseDataInnerPropertyRoomsInner.md | 48 + ...rPropertyRoomsInnerIndividualRoomsInner.md | 31 + ...PropertyRoomsInnerRoomRateDetailedInner.md | 30 + .../docs/GetCurrencySettingsResponse.md | 31 + .../docs/GetCurrencySettingsResponseData.md | 33 + .../GetCurrencySettingsResponseDataFormat.md | 31 + .../GetCurrencySettingsResponseDataRates.md | 30 + ...encySettingsResponseDataRatesFixedInner.md | 30 + .../docs/GetCustomFieldsResponse.md | 31 + .../docs/GetCustomFieldsResponseDataInner.md | 37 + .../docs/GetDashboardResponse.md | 31 + .../docs/GetDashboardResponseData.md | 34 + .../docs/GetEmailScheduleResponse.md | 30 + .../docs/GetEmailScheduleResponseDataInner.md | 33 + .../docs/GetEmailTemplatesResponse.md | 30 + .../GetEmailTemplatesResponseDataInner.md | 32 + cloudbeds_pms_v1_2/docs/GetFilesResponse.md | 33 + .../docs/GetFilesResponseDataInner.md | 34 + .../docs/GetGroupNotesResponse.md | 31 + .../docs/GetGroupNotesResponseData.md | 37 + cloudbeds_pms_v1_2/docs/GetGroupsResponse.md | 30 + .../docs/GetGroupsResponseDataInner.md | 39 + .../docs/GetGuestListResponse.md | 33 + .../docs/GetGuestListResponseDataValue.md | 61 + ...estListResponseDataValueGuestNotesInner.md | 30 + .../docs/GetGuestNotesResponse.md | 31 + .../docs/GetGuestNotesResponseDataInner.md | 33 + cloudbeds_pms_v1_2/docs/GetGuestResponse.md | 30 + .../docs/GetGuestResponseData.md | 56 + .../GetGuestResponseDataCustomFieldsInner.md | 30 + .../docs/GetGuestsByFilterResponse.md | 33 + .../GetGuestsByFilterResponseDataInner.md | 38 + .../docs/GetGuestsByStatusResponse.md | 33 + .../GetGuestsByStatusResponseDataInner.md | 67 + .../docs/GetGuestsModifiedResponse.md | 33 + .../GetGuestsModifiedResponseDataInner.md | 62 + ...ifiedResponseDataInnerCustomFieldsInner.md | 30 + .../docs/GetHotelDetailsResponse.md | 30 + .../docs/GetHotelDetailsResponseData.md | 46 + ...HotelDetailsResponseDataPropertyAddress.md | 37 + ...otelDetailsResponseDataPropertyCurrency.md | 32 + ...elDetailsResponseDataPropertyImageInner.md | 30 + ...tHotelDetailsResponseDataPropertyPolicy.md | 36 + cloudbeds_pms_v1_2/docs/GetHotelsResponse.md | 32 + .../docs/GetHotelsResponseDataInner.md | 35 + ...sResponseDataInnerPropertyCurrencyInner.md | 31 + .../docs/GetHouseAccountDetailsResponse.md | 30 + .../GetHouseAccountDetailsResponseData.md | 31 + ...eAccountDetailsResponseDataRecordsInner.md | 43 + ...useAccountDetailsResponseDataTotalInner.md | 32 + .../docs/GetHouseAccountListResponse.md | 30 + .../GetHouseAccountListResponseDataInner.md | 34 + .../docs/GetHousekeepersResponse.md | 31 + .../docs/GetHousekeepersResponseDataInner.md | 31 + .../docs/GetHousekeepingStatusResponse.md | 33 + .../GetHousekeepingStatusResponseDataInner.md | 43 + cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md | 30 + .../docs/GetInvoiceResponseData.md | 40 + .../docs/GetInvoiceResponseDataBilledTo.md | 31 + .../docs/GetInvoiceResponseDataItemsInner.md | 36 + ...tInvoiceResponseDataItemsInnerFeesInner.md | 32 + ...InvoiceResponseDataItemsInnerTaxesInner.md | 32 + .../docs/GetItemCategoriesResponse.md | 31 + .../GetItemCategoriesResponseDataInner.md | 32 + cloudbeds_pms_v1_2/docs/GetItemResponse.md | 31 + .../docs/GetItemResponseData.md | 50 + .../docs/GetItemResponseDataFeesInner.md | 30 + .../docs/GetItemResponseDataTaxesInner.md | 30 + cloudbeds_pms_v1_2/docs/GetItemsResponse.md | 31 + .../docs/GetItemsResponseDataInner.md | 49 + .../GetListAllotmentBlockNotesResponse.md | 33 + ...istAllotmentBlockNotesResponseDataInner.md | 35 + .../docs/GetMetadataResponse.md | 31 + .../docs/GetMetadataResponseData.md | 30 + .../docs/GetMetadataResponseDataApi.md | 30 + .../docs/GetPackagesResponse.md | 31 + .../docs/GetPackagesResponseData.md | 30 + .../docs/GetPaymentMethodsResponse.md | 30 + .../docs/GetPaymentMethodsResponseData.md | 32 + ...tPaymentMethodsResponseDataGatewayInner.md | 30 + ...tPaymentMethodsResponseDataMethodsInner.md | 31 + ...sResponseDataMethodsInnerCardTypesInner.md | 30 + .../docs/GetPaymentsCapabilitiesResponse.md | 30 + ...etPaymentsCapabilitiesResponseDataInner.md | 33 + .../docs/GetPaymentsResponse.md | 33 + .../docs/GetPaymentsResponseDataInner.md | 59 + ...ResponseDataInnerPaymentAllocationInner.md | 34 + .../docs/GetRateJobsResponse.md | 32 + .../docs/GetRateJobsResponseDataInner.md | 32 + ...etRateJobsResponseDataInnerUpdatesInner.md | 40 + .../docs/GetRatePlansResponse.md | 31 + .../docs/GetRatePlansResponseDataInner.md | 46 + ...etRatePlansResponseDataInnerAddOnsInner.md | 32 + ...sResponseDataInnerRoomRateDetailedInner.md | 38 + cloudbeds_pms_v1_2/docs/GetRateResponse.md | 30 + .../docs/GetRateResponseData.md | 36 + ...etRateResponseDataRoomRateDetailedInner.md | 36 + .../docs/GetReservationAssignmentsResponse.md | 31 + ...ReservationAssignmentsResponseDataInner.md | 32 + ...signmentsResponseDataInnerAssignedInner.md | 35 + ...etReservationInvoiceInformationResponse.md | 31 + ...tionInvoiceInformationResponseDataInner.md | 46 + ...onResponseDataInnerBalanceDetailedInner.md | 36 + ...nResponseDataInnerMainGuestDetailsInner.md | 44 + ...eDataInnerReservationAddOnProductsInner.md | 37 + ...InnerReservationAdditionalProductsInner.md | 40 + ...nseDataInnerReservationAdjustmentsInner.md | 33 + ...sponseDataInnerReservationPaymentsInner.md | 34 + ...nResponseDataInnerReservationRoomsInner.md | 39 + ...nResponseDataInnerReservationTaxesInner.md | 30 + .../docs/GetReservationNotesResponse.md | 31 + .../GetReservationNotesResponseDataInner.md | 33 + .../docs/GetReservationResponse.md | 31 + .../docs/GetReservationResponseData.md | 53 + ...GetReservationResponseDataAssignedInner.md | 42 + ...esponseDataAssignedInnerDailyRatesInner.md | 30 + ...rvationResponseDataBalanceDetailedInner.md | 34 + ...ReservationResponseDataCardsOnFileInner.md | 31 + ...etReservationResponseDataGuestListValue.md | 61 + ...onseDataGuestListValueCustomFieldsInner.md | 30 + ...ionResponseDataGuestListValueRoomsInner.md | 33 + ...eDataGuestListValueUnassignedRoomsInner.md | 32 + ...tReservationResponseDataUnassignedInner.md | 38 + .../docs/GetReservationRoomDetailsResponse.md | 31 + .../GetReservationRoomDetailsResponseData.md | 44 + ...ationRoomDetailsResponseDataGuestsInner.md | 32 + .../docs/GetReservationsResponse.md | 32 + .../docs/GetReservationsResponseDataInner.md | 49 + ...rvationsResponseDataInnerGuestListValue.md | 64 + ...sponseDataInnerGuestListValueRoomsInner.md | 38 + ...InnerGuestListValueUnassignedRoomsInner.md | 35 + ...ReservationsResponseDataInnerRoomsInner.md | 41 + .../GetReservationsWithRateDetailsResponse.md | 32 + ...vationsWithRateDetailsResponseDataInner.md | 50 + ...hRateDetailsResponseDataInnerRoomsInner.md | 44 + ...RateDetailsResponseDataInnerSourceInner.md | 32 + .../docs/GetRoomBlocksResponse.md | 31 + .../docs/GetRoomBlocksResponseDataInner.md | 35 + .../docs/GetRoomTypesResponse.md | 33 + .../docs/GetRoomTypesResponseDataInner.md | 43 + .../docs/GetRoomsFeesAndTaxesResponse.md | 31 + .../docs/GetRoomsFeesAndTaxesResponseData.md | 33 + ...tRoomsFeesAndTaxesResponseDataFeesInner.md | 31 + ...RoomsFeesAndTaxesResponseDataTaxesInner.md | 31 + cloudbeds_pms_v1_2/docs/GetRoomsResponse.md | 33 + .../docs/GetRoomsResponseDataInner.md | 30 + .../GetRoomsResponseDataInnerRoomsInner.md | 42 + ...taInnerRoomsInnerLinkedRoomTypeQtyInner.md | 30 + .../docs/GetRoomsUnassignedResponse.md | 33 + .../GetRoomsUnassignedResponseDataInner.md | 30 + ...msUnassignedResponseDataInnerRoomsInner.md | 39 + cloudbeds_pms_v1_2/docs/GetSourcesResponse.md | 31 + .../docs/GetSourcesResponseDataInner.md | 37 + .../GetSourcesResponseDataInnerFeesInner.md | 33 + .../GetSourcesResponseDataInnerTaxesInner.md | 33 + .../docs/GetTaxesAndFeesResponse.md | 32 + .../docs/GetTaxesAndFeesResponseDataInner.md | 45 + ...esResponseDataInnerAmountRateBasedInner.md | 30 + .../docs/GetTransactionsResponse.md | 33 + .../docs/GetTransactionsResponseDataInner.md | 60 + .../docs/GetUserinfoResponse.md | 34 + .../docs/GetUserinfoResponseRolesInner.md | 31 + cloudbeds_pms_v1_2/docs/GetUsersResponse.md | 30 + .../docs/GetUsersResponseDataInner.md | 38 + .../docs/GetUsersResponseDataInnerUserRole.md | 31 + .../docs/GetWebhooksResponse.md | 30 + .../docs/GetWebhooksResponseDataInner.md | 34 + .../docs/GetWebhooksResponseDataInnerEvent.md | 31 + .../docs/GetWebhooksResponseDataInnerKey.md | 31 + .../docs/GetWebhooksResponseDataInnerOwner.md | 31 + ...bhooksResponseDataInnerSubscriptionData.md | 30 + cloudbeds_pms_v1_2/docs/GroupsApi.md | 487 ++ cloudbeds_pms_v1_2/docs/GuestApi.md | 1374 ++++ cloudbeds_pms_v1_2/docs/HotelApi.md | 360 ++ cloudbeds_pms_v1_2/docs/HouseAccountApi.md | 354 ++ cloudbeds_pms_v1_2/docs/HousekeepingApi.md | 544 ++ cloudbeds_pms_v1_2/docs/IntegrationApi.md | 614 ++ cloudbeds_pms_v1_2/docs/InvoicesApi.md | 182 + cloudbeds_pms_v1_2/docs/ItemApi.md | 952 +++ cloudbeds_pms_v1_2/docs/PackageApi.md | 174 + cloudbeds_pms_v1_2/docs/PaymentApi.md | 869 +++ .../docs/PostAccessTokenResponse.md | 33 + .../PostAccessTokenResponseResourcesInner.md | 30 + .../docs/PostAdjustmentResponse.md | 31 + .../docs/PostAdjustmentResponseData.md | 30 + .../docs/PostAppErrorResponse.md | 30 + .../docs/PostAppErrorResponseData.md | 30 + .../docs/PostAppPropertySettingResponse.md | 30 + .../PostAppPropertySettingResponseData.md | 32 + .../docs/PostAppStateResponse.md | 29 + .../docs/PostAppendCustomItemResponse.md | 30 + .../docs/PostAppendCustomItemResponseData.md | 31 + cloudbeds_pms_v1_2/docs/PostCardResponse.md | 30 + .../docs/PostCardResponseData.md | 33 + cloudbeds_pms_v1_2/docs/PostChargeResponse.md | 30 + .../docs/PostChargeResponseData.md | 34 + .../docs/PostChargeResponseDataNextAction.md | 31 + ...PostChargeResponseDataNextActionDetails.md | 31 + .../PostCreateAllotmentBlockNotesResponse.md | 30 + ...stCreateAllotmentBlockNotesResponseData.md | 36 + ...mentBlockRequestAllotmentIntervalsInner.md | 29 + ...llotmentIntervalsInnerAvailabilityInner.md | 33 + ...rvalsInnerAvailabilityInnerGuestPricing.md | 35 + ...rvalsInnerAvailabilityInnerRestrictions.md | 35 + ...tCreateAllotmentBlockRequestAutoRelease.md | 32 + .../docs/PostCreateAllotmentBlockResponse.md | 32 + ...stCreateAllotmentBlockResponseDataInner.md | 41 + ...esponseDataInnerAllotmentIntervalsInner.md | 33 + ...nnerAllotmentIntervalsInnerAvailability.md | 35 + ...tIntervalsInnerAvailabilityGuestPricing.md | 35 + ...nnerAllotmentIntervalsInnerRestrictions.md | 35 + ...otmentBlockResponseDataInnerAutoRelease.md | 32 + .../docs/PostCustomFieldResponse.md | 31 + .../docs/PostCustomFieldResponseData.md | 32 + .../docs/PostCustomItemRequestItemsInner.md | 37 + ...ustomItemRequestItemsInnerItemFeesInner.md | 30 + ...stomItemRequestItemsInnerItemTaxesInner.md | 30 + .../PostCustomItemRequestPaymentsInner.md | 32 + .../docs/PostCustomItemResponse.md | 30 + .../docs/PostCustomItemResponseData.md | 32 + .../docs/PostCustomPaymentMethodResponse.md | 30 + .../docs/PostDeleteAllotmentBlockResponse.md | 29 + .../PostDeleteAppPropertySettingsResponse.md | 30 + .../docs/PostEmailScheduleRequestSchedule.md | 31 + ...ScheduleRequestScheduleReservationEvent.md | 32 + ...eRequestScheduleReservationStatusChange.md | 30 + .../docs/PostEmailScheduleResponse.md | 31 + .../docs/PostEmailTemplateRequestBody.md | 33 + .../docs/PostEmailTemplateRequestSubject.md | 33 + .../docs/PostEmailTemplateResponse.md | 31 + cloudbeds_pms_v1_2/docs/PostFileResponse.md | 31 + .../docs/PostGovernmentReceiptResponse.md | 30 + .../docs/PostGroupNoteResponse.md | 31 + .../docs/PostGroupNoteResponseDataInner.md | 36 + .../docs/PostGuestDocumentResponse.md | 31 + .../docs/PostGuestDocumentResponseData.md | 30 + .../docs/PostGuestNoteResponse.md | 31 + .../docs/PostGuestPhotoResponse.md | 31 + .../docs/PostGuestRequestCustomFieldsInner.md | 30 + cloudbeds_pms_v1_2/docs/PostGuestResponse.md | 31 + .../docs/PostGuestsToRoomResponse.md | 30 + .../docs/PostHousekeeperResponse.md | 31 + .../PostHousekeepingAssignmentResponse.md | 30 + .../docs/PostHousekeepingStatusResponse.md | 31 + .../PostHousekeepingStatusResponseData.md | 36 + .../docs/PostItemCategoryResponse.md | 31 + .../docs/PostItemRequestPaymentsInner.md | 31 + cloudbeds_pms_v1_2/docs/PostItemResponse.md | 31 + .../docs/PostItemResponseData.md | 35 + .../docs/PostItemsToInventoryRequestItem.md | 42 + .../docs/PostItemsToInventoryResponse.md | 31 + .../PostItemsToInventoryResponseDataInner.md | 31 + .../docs/PostNewHouseAccountResponse.md | 31 + .../docs/PostNewHouseAccountResponseData.md | 30 + .../docs/PostPatchGroupResponse.md | 30 + .../docs/PostPatchGroupResponseDataInner.md | 41 + .../docs/PostPatchInvoiceResponse.md | 30 + .../docs/PostPatchRateRequestRatesInner.md | 30 + .../PostPatchRateRequestRatesInnerInterval.md | 38 + .../docs/PostPatchRateResponse.md | 31 + .../docs/PostPaymentResponse.md | 32 + .../PostPutAppPropertySettingsResponse.md | 30 + .../docs/PostPutGroupResponse.md | 30 + .../docs/PostPutRateRequestRatesInner.md | 30 + ...stPutRateRequestRatesInnerIntervalInner.md | 31 + .../docs/PostPutRateResponse.md | 31 + .../docs/PostReservationDocumentResponse.md | 31 + .../docs/PostReservationNoteResponse.md | 31 + .../docs/PostReservationRequestAdultsInner.md | 31 + .../PostReservationRequestChildrenInner.md | 31 + ...PostReservationRequestCustomFieldsInner.md | 30 + .../docs/PostReservationRequestRoomsInner.md | 32 + .../docs/PostReservationResponse.md | 42 + .../PostReservationResponseUnassignedInner.md | 35 + .../docs/PostRoomAssignResponse.md | 30 + .../docs/PostRoomBlockRequestRoomsInner.md | 30 + .../docs/PostRoomBlockResponse.md | 37 + .../docs/PostRoomBlockResponseRoomsInner.md | 30 + .../docs/PostRoomCheckInResponse.md | 30 + .../docs/PostRoomCheckOutResponse.md | 30 + .../PostUpdateAllotmentBlockNotesResponse.md | 30 + ...stUpdateAllotmentBlockNotesResponseData.md | 36 + ...mentBlockRequestAllotmentIntervalsInner.md | 30 + ...llotmentIntervalsInnerAvailabilityInner.md | 33 + ...rvalsInnerAvailabilityInnerGuestPricing.md | 35 + ...rvalsInnerAvailabilityInnerRestrictions.md | 35 + ...tUpdateAllotmentBlockRequestAutoRelease.md | 32 + .../docs/PostUpdateAllotmentBlockResponse.md | 30 + ...stUpdateAllotmentBlockResponseDataInner.md | 41 + ...esponseDataInnerAllotmentIntervalsInner.md | 31 + ...nnerAllotmentIntervalsInnerRestrictions.md | 35 + .../docs/PostVoidItemResponse.md | 30 + .../docs/PostVoidPaymentResponse.md | 30 + .../docs/PostWebhookResponse.md | 30 + .../docs/PostWebhookResponseData.md | 30 + .../docs/PutGuestNoteResponse.md | 30 + .../PutGuestRequestGuestCustomFieldsInner.md | 30 + cloudbeds_pms_v1_2/docs/PutGuestResponse.md | 30 + .../docs/PutHouseAccountStatusResponse.md | 30 + .../docs/PutHousekeeperResponse.md | 30 + .../docs/PutItemToInventoryResponse.md | 30 + .../docs/PutReservationNoteResponse.md | 30 + .../PutReservationRequestCustomFieldsInner.md | 30 + .../docs/PutReservationRequestRoomsInner.md | 35 + .../docs/PutReservationResponse.md | 31 + .../docs/PutRoomBlockRequestRoomsInner.md | 30 + .../docs/PutRoomBlockResponse.md | 37 + cloudbeds_pms_v1_2/docs/RateApi.md | 457 ++ cloudbeds_pms_v1_2/docs/ReservationApi.md | 1251 ++++ cloudbeds_pms_v1_2/docs/RoomApi.md | 1225 ++++ cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md | 95 + cloudbeds_pms_v1_2/docs/UserApi.md | 91 + cloudbeds_pms_v1_2/exceptions.py | 199 + cloudbeds_pms_v1_2/models/__init__.py | 337 + .../models/delete_adjustment_response.py | 94 + .../models/delete_guest_note_response.py | 94 + .../delete_reservation_note_response.py | 94 + .../models/delete_room_block_response.py | 89 + .../models/delete_webhook_response.py | 87 + .../models/get_adjustment_response.py | 93 + .../models/get_adjustment_response_data.py | 112 + .../models/get_adjustments_response.py | 93 + .../models/get_adjustments_response_data.py | 102 + .../models/get_allotment_blocks_response.py | 101 + ...et_allotment_blocks_response_data_inner.py | 127 + ...se_data_inner_allotment_intervals_inner.py | 108 + ...ment_intervals_inner_availability_inner.py | 102 + ..._allotment_intervals_inner_restrictions.py | 97 + ..._response_data_inner_auto_release_inner.py | 101 + .../get_app_property_settings_response.py | 97 + ...p_property_settings_response_data_inner.py | 91 + .../models/get_app_settings_response.py | 93 + .../models/get_app_settings_response_data.py | 87 + .../models/get_app_state_response.py | 93 + .../models/get_app_state_response_data.py | 97 + .../get_available_room_types_response.py | 110 + ...vailable_room_types_response_data_inner.py | 107 + ...onse_data_inner_property_currency_inner.py | 101 + ...esponse_data_inner_property_rooms_inner.py | 189 + ...erty_rooms_inner_individual_rooms_inner.py | 106 + ...ty_rooms_inner_room_rate_detailed_inner.py | 100 + .../models/get_currency_settings_response.py | 100 + .../get_currency_settings_response_data.py | 101 + ..._currency_settings_response_data_format.py | 89 + ...t_currency_settings_response_data_rates.py | 95 + ...ettings_response_data_rates_fixed_inner.py | 99 + .../models/get_custom_fields_response.py | 104 + .../get_custom_fields_response_data_inner.py | 134 + .../models/get_dashboard_response.py | 100 + .../models/get_dashboard_response_data.py | 95 + .../models/get_email_schedule_response.py | 97 + .../get_email_schedule_response_data_inner.py | 95 + .../models/get_email_templates_response.py | 97 + ...get_email_templates_response_data_inner.py | 93 + .../models/get_files_response.py | 108 + .../models/get_files_response_data_inner.py | 98 + .../models/get_group_notes_response.py | 95 + .../models/get_group_notes_response_data.py | 101 + .../models/get_groups_response.py | 97 + .../models/get_groups_response_data_inner.py | 128 + .../models/get_guest_list_response.py | 113 + .../get_guest_list_response_data_value.py | 295 + ...t_response_data_value_guest_notes_inner.py | 99 + .../models/get_guest_notes_response.py | 104 + .../get_guest_notes_response_data_inner.py | 96 + .../models/get_guest_response.py | 93 + .../models/get_guest_response_data.py | 173 + ...guest_response_data_custom_fields_inner.py | 99 + .../models/get_guests_by_filter_response.py | 108 + ...et_guests_by_filter_response_data_inner.py | 105 + .../models/get_guests_by_status_response.py | 108 + ...et_guests_by_status_response_data_inner.py | 207 + .../models/get_guests_modified_response.py | 108 + ...get_guests_modified_response_data_inner.py | 187 + ...response_data_inner_custom_fields_inner.py | 99 + .../models/get_hotel_details_response.py | 93 + .../models/get_hotel_details_response_data.py | 146 + ..._details_response_data_property_address.py | 101 + ...details_response_data_property_currency.py | 101 + ...ails_response_data_property_image_inner.py | 89 + ...l_details_response_data_property_policy.py | 109 + .../models/get_hotels_response.py | 101 + .../models/get_hotels_response_data_inner.py | 107 + ...onse_data_inner_property_currency_inner.py | 91 + .../get_house_account_details_response.py | 93 + ...get_house_account_details_response_data.py | 105 + ...unt_details_response_data_records_inner.py | 116 + ...count_details_response_data_total_inner.py | 93 + .../models/get_house_account_list_response.py | 97 + ..._house_account_list_response_data_inner.py | 107 + .../models/get_housekeepers_response.py | 104 + .../get_housekeepers_response_data_inner.py | 91 + .../get_housekeeping_status_response.py | 108 + ...housekeeping_status_response_data_inner.py | 136 + .../models/get_invoice_response.py | 93 + .../models/get_invoice_response_data.py | 135 + .../get_invoice_response_data_billed_to.py | 99 + .../get_invoice_response_data_items_inner.py | 117 + ...ce_response_data_items_inner_fees_inner.py | 93 + ...e_response_data_items_inner_taxes_inner.py | 93 + .../models/get_item_categories_response.py | 104 + ...get_item_categories_response_data_inner.py | 93 + .../models/get_item_response.py | 100 + .../models/get_item_response_data.py | 208 + .../get_item_response_data_fees_inner.py | 99 + .../get_item_response_data_taxes_inner.py | 99 + .../models/get_items_response.py | 104 + .../models/get_items_response_data_inner.py | 208 + ...get_list_allotment_block_notes_response.py | 103 + ...lotment_block_notes_response_data_inner.py | 105 + .../models/get_metadata_response.py | 100 + .../models/get_metadata_response_data.py | 91 + .../models/get_metadata_response_data_api.py | 87 + .../models/get_packages_response.py | 100 + .../models/get_packages_response_data.py | 92 + .../models/get_payment_methods_response.py | 93 + .../get_payment_methods_response_data.py | 107 + ...ent_methods_response_data_gateway_inner.py | 89 + ...ent_methods_response_data_methods_inner.py | 104 + ...nse_data_methods_inner_card_types_inner.py | 99 + .../get_payments_capabilities_response.py | 97 + ...yments_capabilities_response_data_inner.py | 95 + .../models/get_payments_response.py | 108 + .../get_payments_response_data_inner.py | 231 + ...nse_data_inner_payment_allocation_inner.py | 127 + .../models/get_rate_jobs_response.py | 106 + .../get_rate_jobs_response_data_inner.py | 102 + ..._jobs_response_data_inner_updates_inner.py | 145 + .../models/get_rate_plans_response.py | 104 + .../get_rate_plans_response_data_inner.py | 218 + ...plans_response_data_inner_add_ons_inner.py | 93 + ...nse_data_inner_room_rate_detailed_inner.py | 111 + .../models/get_rate_response.py | 93 + .../models/get_rate_response_data.py | 117 + ..._response_data_room_rate_detailed_inner.py | 102 + .../get_reservation_assignments_response.py | 104 + ...rvation_assignments_response_data_inner.py | 106 + ...ents_response_data_inner_assigned_inner.py | 134 + ...eservation_invoice_information_response.py | 104 + ...invoice_information_response_data_inner.py | 210 + ...ponse_data_inner_balance_detailed_inner.py | 101 + ...nse_data_inner_main_guest_details_inner.py | 127 + ...inner_reservation_add_on_products_inner.py | 104 + ...r_reservation_additional_products_inner.py | 110 + ...ata_inner_reservation_adjustments_inner.py | 96 + ...e_data_inner_reservation_payments_inner.py | 98 + ...onse_data_inner_reservation_rooms_inner.py | 108 + ...onse_data_inner_reservation_taxes_inner.py | 89 + .../models/get_reservation_notes_response.py | 104 + ...t_reservation_notes_response_data_inner.py | 96 + .../models/get_reservation_response.py | 100 + .../models/get_reservation_response_data.py | 212 + ...eservation_response_data_assigned_inner.py | 127 + ...e_data_assigned_inner_daily_rates_inner.py | 90 + ...on_response_data_balance_detailed_inner.py | 97 + ...ation_response_data_cards_on_file_inner.py | 101 + ...ervation_response_data_guest_list_value.py | 231 + ...ta_guest_list_value_custom_fields_inner.py | 89 + ...ponse_data_guest_list_value_rooms_inner.py | 120 + ...guest_list_value_unassigned_rooms_inner.py | 113 + ...ervation_response_data_unassigned_inner.py | 114 + .../get_reservation_room_details_response.py | 100 + ..._reservation_room_details_response_data.py | 138 + ...room_details_response_data_guests_inner.py | 93 + .../models/get_reservations_response.py | 101 + .../get_reservations_response_data_inner.py | 187 + ...ns_response_data_inner_guest_list_value.py | 372 ++ ...data_inner_guest_list_value_rooms_inner.py | 165 + ...guest_list_value_unassigned_rooms_inner.py | 134 + ...vations_response_data_inner_rooms_inner.py | 126 + ...reservations_with_rate_details_response.py | 101 + ...s_with_rate_details_response_data_inner.py | 189 + ...details_response_data_inner_rooms_inner.py | 132 + ...etails_response_data_inner_source_inner.py | 103 + .../models/get_room_blocks_response.py | 99 + .../get_room_blocks_response_data_inner.py | 118 + .../models/get_room_types_response.py | 108 + .../get_room_types_response_data_inner.py | 125 + .../get_rooms_fees_and_taxes_response.py | 100 + .../get_rooms_fees_and_taxes_response_data.py | 109 + ...fees_and_taxes_response_data_fees_inner.py | 91 + ...ees_and_taxes_response_data_taxes_inner.py | 91 + .../models/get_rooms_response.py | 108 + .../models/get_rooms_response_data_inner.py | 97 + ...t_rooms_response_data_inner_rooms_inner.py | 136 + ..._rooms_inner_linked_room_type_qty_inner.py | 99 + .../models/get_rooms_unassigned_response.py | 108 + ...et_rooms_unassigned_response_data_inner.py | 97 + ...ssigned_response_data_inner_rooms_inner.py | 107 + .../models/get_sources_response.py | 104 + .../models/get_sources_response_data_inner.py | 129 + ..._sources_response_data_inner_fees_inner.py | 115 + ...sources_response_data_inner_taxes_inner.py | 115 + .../models/get_taxes_and_fees_response.py | 116 + .../get_taxes_and_fees_response_data_inner.py | 188 + ...onse_data_inner_amount_rate_based_inner.py | 89 + .../models/get_transactions_response.py | 108 + .../get_transactions_response_data_inner.py | 180 + .../models/get_userinfo_response.py | 115 + .../get_userinfo_response_roles_inner.py | 106 + .../models/get_users_response.py | 97 + .../models/get_users_response_data_inner.py | 125 + ...get_users_response_data_inner_user_role.py | 89 + .../models/get_webhooks_response.py | 97 + .../get_webhooks_response_data_inner.py | 143 + .../get_webhooks_response_data_inner_event.py | 99 + .../get_webhooks_response_data_inner_key.py | 109 + .../get_webhooks_response_data_inner_owner.py | 99 + ...s_response_data_inner_subscription_data.py | 92 + .../models/post_access_token_response.py | 103 + ...t_access_token_response_resources_inner.py | 99 + .../models/post_adjustment_response.py | 100 + .../models/post_adjustment_response_data.py | 87 + .../models/post_app_error_response.py | 93 + .../models/post_app_error_response_data.py | 87 + .../post_app_property_setting_response.py | 93 + ...post_app_property_setting_response_data.py | 91 + .../models/post_app_state_response.py | 87 + .../post_append_custom_item_response.py | 93 + .../post_append_custom_item_response_data.py | 89 + .../models/post_card_response.py | 93 + .../models/post_card_response_data.py | 103 + .../models/post_charge_response.py | 93 + .../models/post_charge_response_data.py | 99 + .../post_charge_response_data_next_action.py | 93 + ...harge_response_data_next_action_details.py | 89 + ...t_create_allotment_block_notes_response.py | 93 + ...ate_allotment_block_notes_response_data.py | 105 + ...block_request_allotment_intervals_inner.py | 95 + ...ment_intervals_inner_availability_inner.py | 119 + ..._inner_availability_inner_guest_pricing.py | 127 + ...s_inner_availability_inner_restrictions.py | 127 + ...te_allotment_block_request_auto_release.py | 116 + .../post_create_allotment_block_response.py | 102 + ...ate_allotment_block_response_data_inner.py | 123 + ...se_data_inner_allotment_intervals_inner.py | 104 + ..._allotment_intervals_inner_availability.py | 102 + ...ervals_inner_availability_guest_pricing.py | 97 + ..._allotment_intervals_inner_restrictions.py | 97 + ..._block_response_data_inner_auto_release.py | 101 + .../models/post_custom_field_response.py | 100 + .../models/post_custom_field_response_data.py | 91 + .../post_custom_item_request_items_inner.py | 144 + ...tem_request_items_inner_item_fees_inner.py | 89 + ...em_request_items_inner_item_taxes_inner.py | 89 + ...post_custom_item_request_payments_inner.py | 103 + .../models/post_custom_item_response.py | 93 + .../models/post_custom_item_response_data.py | 91 + .../post_custom_payment_method_response.py | 94 + .../post_delete_allotment_block_response.py | 87 + ...t_delete_app_property_settings_response.py | 89 + .../post_email_schedule_request_schedule.py | 97 + ...dule_request_schedule_reservation_event.py | 101 + ...uest_schedule_reservation_status_change.py | 97 + .../models/post_email_schedule_response.py | 101 + .../post_email_template_request_body.py | 113 + .../post_email_template_request_subject.py | 113 + .../models/post_email_template_response.py | 101 + .../models/post_file_response.py | 100 + .../post_government_receipt_response.py | 94 + .../models/post_group_note_response.py | 99 + .../post_group_note_response_data_inner.py | 101 + .../models/post_guest_document_response.py | 100 + .../post_guest_document_response_data.py | 87 + .../models/post_guest_note_response.py | 96 + .../models/post_guest_photo_response.py | 100 + .../post_guest_request_custom_fields_inner.py | 99 + .../models/post_guest_response.py | 101 + .../models/post_guests_to_room_response.py | 94 + .../models/post_housekeeper_response.py | 101 + .../post_housekeeping_assignment_response.py | 94 + .../post_housekeeping_status_response.py | 100 + .../post_housekeeping_status_response_data.py | 125 + .../models/post_item_category_response.py | 101 + .../post_item_request_payments_inner.py | 96 + .../models/post_item_response.py | 100 + .../models/post_item_response_data.py | 117 + .../post_items_to_inventory_request_item.py | 186 + .../post_items_to_inventory_response.py | 104 + ..._items_to_inventory_response_data_inner.py | 91 + .../models/post_new_house_account_response.py | 100 + .../post_new_house_account_response_data.py | 87 + .../models/post_patch_group_response.py | 97 + .../post_patch_group_response_data_inner.py | 132 + .../models/post_patch_invoice_response.py | 94 + .../post_patch_rate_request_rates_inner.py | 93 + ...patch_rate_request_rates_inner_interval.py | 134 + .../models/post_patch_rate_response.py | 96 + .../models/post_payment_response.py | 98 + ...post_put_app_property_settings_response.py | 93 + .../models/post_put_group_response.py | 97 + .../post_put_rate_request_rates_inner.py | 97 + ...rate_request_rates_inner_interval_inner.py | 92 + .../models/post_put_rate_response.py | 96 + .../post_reservation_document_response.py | 100 + .../models/post_reservation_note_response.py | 96 + .../post_reservation_request_adults_inner.py | 96 + ...post_reservation_request_children_inner.py | 96 + ...reservation_request_custom_fields_inner.py | 89 + .../post_reservation_request_rooms_inner.py | 103 + .../models/post_reservation_response.py | 152 + ...t_reservation_response_unassigned_inner.py | 107 + .../models/post_room_assign_response.py | 94 + .../post_room_block_request_rooms_inner.py | 89 + .../models/post_room_block_response.py | 122 + .../post_room_block_response_rooms_inner.py | 89 + .../models/post_room_check_in_response.py | 94 + .../models/post_room_check_out_response.py | 94 + ...t_update_allotment_block_notes_response.py | 93 + ...ate_allotment_block_notes_response_data.py | 105 + ...block_request_allotment_intervals_inner.py | 107 + ...ment_intervals_inner_availability_inner.py | 129 + ..._inner_availability_inner_guest_pricing.py | 127 + ...s_inner_availability_inner_restrictions.py | 127 + ...te_allotment_block_request_auto_release.py | 116 + .../post_update_allotment_block_response.py | 97 + ...ate_allotment_block_response_data_inner.py | 123 + ...se_data_inner_allotment_intervals_inner.py | 99 + ..._allotment_intervals_inner_restrictions.py | 97 + .../models/post_void_item_response.py | 94 + .../models/post_void_payment_response.py | 94 + .../models/post_webhook_response.py | 93 + .../models/post_webhook_response_data.py | 87 + .../models/put_guest_note_response.py | 94 + ...guest_request_guest_custom_fields_inner.py | 99 + .../models/put_guest_response.py | 94 + .../put_house_account_status_response.py | 94 + .../models/put_housekeeper_response.py | 94 + .../models/put_item_to_inventory_response.py | 94 + .../models/put_reservation_note_response.py | 94 + ...reservation_request_custom_fields_inner.py | 99 + .../put_reservation_request_rooms_inner.py | 135 + .../models/put_reservation_response.py | 101 + .../put_room_block_request_rooms_inner.py | 99 + .../models/put_room_block_response.py | 122 + cloudbeds_pms_v1_2/rest.py | 257 + cloudbeds_pms_v1_2/test/__init__.py | 0 .../test/test_adjustment_api.py | 59 + .../test/test_allotment_blocks_api.py | 80 + .../test/test_app_settings_api.py | 59 + .../test/test_authentication_api.py | 52 + cloudbeds_pms_v1_2/test/test_currency_api.py | 38 + .../test/test_custom_fields_api.py | 45 + cloudbeds_pms_v1_2/test/test_dashboard_api.py | 38 + .../test/test_delete_adjustment_response.py | 52 + .../test/test_delete_guest_note_response.py | 52 + .../test_delete_reservation_note_response.py | 52 + .../test/test_delete_room_block_response.py | 52 + .../test/test_delete_webhook_response.py | 51 + cloudbeds_pms_v1_2/test/test_emails_api.py | 59 + .../test/test_get_adjustment_response.py | 65 + .../test/test_get_adjustment_response_data.py | 63 + .../test/test_get_adjustments_response.py | 60 + .../test_get_adjustments_response_data.py | 58 + .../test_get_allotment_blocks_response.py | 101 + ...et_allotment_blocks_response_data_inner.py | 95 + ...se_data_inner_allotment_intervals_inner.py | 75 + ...ment_intervals_inner_availability_inner.py | 62 + ..._allotment_intervals_inner_restrictions.py | 56 + ..._response_data_inner_auto_release_inner.py | 53 + ...test_get_app_property_settings_response.py | 57 + ...p_property_settings_response_data_inner.py | 53 + .../test/test_get_app_settings_response.py | 53 + .../test_get_app_settings_response_data.py | 51 + .../test/test_get_app_state_response.py | 53 + .../test/test_get_app_state_response_data.py | 51 + .../test_get_available_room_types_response.py | 107 + ...vailable_room_types_response_data_inner.py | 99 + ...onse_data_inner_property_currency_inner.py | 53 + ...esponse_data_inner_property_rooms_inner.py | 89 + ...erty_rooms_inner_individual_rooms_inner.py | 53 + ...ty_rooms_inner_room_rate_detailed_inner.py | 52 + .../test_get_currency_settings_response.py | 66 + ...est_get_currency_settings_response_data.py | 63 + ..._currency_settings_response_data_format.py | 52 + ...t_currency_settings_response_data_rates.py | 55 + ...ettings_response_data_rates_fixed_inner.py | 52 + .../test/test_get_custom_fields_response.py | 64 + ...t_get_custom_fields_response_data_inner.py | 59 + .../test/test_get_dashboard_response.py | 58 + .../test/test_get_dashboard_response_data.py | 55 + .../test/test_get_email_schedule_response.py | 59 + ..._get_email_schedule_response_data_inner.py | 55 + .../test/test_get_email_templates_response.py | 58 + ...get_email_templates_response_data_inner.py | 54 + .../test/test_get_files_response.py | 63 + .../test_get_files_response_data_inner.py | 56 + .../test/test_get_group_notes_response.py | 61 + .../test_get_group_notes_response_data.py | 58 + .../test/test_get_groups_response.py | 65 + .../test_get_groups_response_data_inner.py | 61 + .../test/test_get_guest_list_response.py | 94 + ...test_get_guest_list_response_data_value.py | 87 + ...t_response_data_value_guest_notes_inner.py | 52 + .../test/test_get_guest_notes_response.py | 60 + ...est_get_guest_notes_response_data_inner.py | 55 + .../test/test_get_guest_response.py | 83 + .../test/test_get_guest_response_data.py | 81 + ...guest_response_data_custom_fields_inner.py | 52 + .../test_get_guests_by_filter_response.py | 67 + ...et_guests_by_filter_response_data_inner.py | 60 + .../test_get_guests_by_status_response.py | 100 + ...et_guests_by_status_response_data_inner.py | 93 + .../test/test_get_guests_modified_response.py | 95 + ...get_guests_modified_response_data_inner.py | 88 + ...response_data_inner_custom_fields_inner.py | 52 + .../test/test_get_hotel_details_response.py | 97 + .../test_get_hotel_details_response_data.py | 95 + ..._details_response_data_property_address.py | 58 + ...details_response_data_property_currency.py | 53 + ...ails_response_data_property_image_inner.py | 52 + ...l_details_response_data_property_policy.py | 57 + .../test/test_get_hotels_response.py | 68 + .../test_get_hotels_response_data_inner.py | 62 + ...onse_data_inner_property_currency_inner.py | 53 + ...test_get_house_account_details_response.py | 77 + ...get_house_account_details_response_data.py | 75 + ...unt_details_response_data_records_inner.py | 65 + ...count_details_response_data_total_inner.py | 54 + .../test_get_house_account_list_response.py | 60 + ..._house_account_list_response_data_inner.py | 56 + .../test/test_get_housekeepers_response.py | 58 + ...st_get_housekeepers_response_data_inner.py | 53 + .../test_get_housekeeping_status_response.py | 72 + ...housekeeping_status_response_data_inner.py | 65 + .../test/test_get_invoice_response.py | 99 + .../test/test_get_invoice_response_data.py | 97 + ...est_get_invoice_response_data_billed_to.py | 52 + ...t_get_invoice_response_data_items_inner.py | 70 + ...ce_response_data_items_inner_fees_inner.py | 54 + ...e_response_data_items_inner_taxes_inner.py | 54 + .../test/test_get_item_categories_response.py | 59 + ...get_item_categories_response_data_inner.py | 54 + .../test/test_get_item_response.py | 82 + .../test/test_get_item_response_data.py | 79 + .../test_get_item_response_data_fees_inner.py | 52 + ...test_get_item_response_data_taxes_inner.py | 52 + .../test/test_get_items_response.py | 84 + .../test_get_items_response_data_inner.py | 79 + ...get_list_allotment_block_notes_response.py | 64 + ...lotment_block_notes_response_data_inner.py | 57 + .../test/test_get_metadata_response.py | 55 + .../test/test_get_metadata_response_data.py | 52 + .../test_get_metadata_response_data_api.py | 51 + .../test/test_get_packages_response.py | 56 + .../test/test_get_packages_response_data.py | 53 + .../test/test_get_payment_methods_response.py | 68 + .../test_get_payment_methods_response_data.py | 66 + ...ent_methods_response_data_gateway_inner.py | 52 + ...ent_methods_response_data_methods_inner.py | 57 + ...nse_data_methods_inner_card_types_inner.py | 52 + ...test_get_payments_capabilities_response.py | 59 + ...yments_capabilities_response_data_inner.py | 55 + .../test/test_get_payments_response.py | 100 + .../test_get_payments_response_data_inner.py | 93 + ...nse_data_inner_payment_allocation_inner.py | 60 + .../test/test_get_rate_jobs_response.py | 74 + .../test_get_rate_jobs_response_data_inner.py | 68 + ..._jobs_response_data_inner_updates_inner.py | 62 + .../test/test_get_rate_plans_response.py | 91 + ...test_get_rate_plans_response_data_inner.py | 86 + ...plans_response_data_inner_add_ons_inner.py | 54 + ...nse_data_inner_room_rate_detailed_inner.py | 60 + .../test/test_get_rate_response.py | 71 + .../test/test_get_rate_response_data.py | 69 + ..._response_data_room_rate_detailed_inner.py | 58 + ...st_get_reservation_assignments_response.py | 68 + ...rvation_assignments_response_data_inner.py | 63 + ...ents_response_data_inner_assigned_inner.py | 57 + ...eservation_invoice_information_response.py | 166 + ...invoice_information_response_data_inner.py | 161 + ...ponse_data_inner_balance_detailed_inner.py | 58 + ...nse_data_inner_main_guest_details_inner.py | 66 + ...inner_reservation_add_on_products_inner.py | 59 + ...r_reservation_additional_products_inner.py | 62 + ...ata_inner_reservation_adjustments_inner.py | 55 + ...e_data_inner_reservation_payments_inner.py | 56 + ...onse_data_inner_reservation_rooms_inner.py | 61 + ...onse_data_inner_reservation_taxes_inner.py | 52 + .../test_get_reservation_notes_response.py | 60 + ...t_reservation_notes_response_data_inner.py | 55 + .../test/test_get_reservation_response.py | 177 + .../test_get_reservation_response_data.py | 179 + ...eservation_response_data_assigned_inner.py | 68 + ...e_data_assigned_inner_daily_rates_inner.py | 52 + ...on_response_data_balance_detailed_inner.py | 56 + ...ation_response_data_cards_on_file_inner.py | 53 + ...ervation_response_data_guest_list_value.py | 100 + ...ta_guest_list_value_custom_fields_inner.py | 52 + ...ponse_data_guest_list_value_rooms_inner.py | 55 + ...guest_list_value_unassigned_rooms_inner.py | 54 + ...ervation_response_data_unassigned_inner.py | 64 + ...t_get_reservation_room_details_response.py | 74 + ..._reservation_room_details_response_data.py | 71 + ...room_details_response_data_guests_inner.py | 54 + .../test/test_get_reservations_response.py | 141 + ...st_get_reservations_response_data_inner.py | 153 + ...ns_response_data_inner_guest_list_value.py | 111 + ...data_inner_guest_list_value_rooms_inner.py | 60 + ...guest_list_value_unassigned_rooms_inner.py | 57 + ...vations_response_data_inner_rooms_inner.py | 63 + ...reservations_with_rate_details_response.py | 114 + ...s_with_rate_details_response_data_inner.py | 108 + ...details_response_data_inner_rooms_inner.py | 68 + ...etails_response_data_inner_source_inner.py | 54 + .../test/test_get_room_blocks_response.py | 66 + ...est_get_room_blocks_response_data_inner.py | 61 + .../test/test_get_room_types_response.py | 76 + ...test_get_room_types_response_data_inner.py | 69 + .../test_get_rooms_fees_and_taxes_response.py | 67 + ..._get_rooms_fees_and_taxes_response_data.py | 64 + ...fees_and_taxes_response_data_fees_inner.py | 53 + ...ees_and_taxes_response_data_taxes_inner.py | 53 + .../test/test_get_rooms_response.py | 83 + .../test_get_rooms_response_data_inner.py | 76 + ...t_rooms_response_data_inner_rooms_inner.py | 72 + ..._rooms_inner_linked_room_type_qty_inner.py | 52 + .../test_get_rooms_unassigned_response.py | 72 + ...et_rooms_unassigned_response_data_inner.py | 65 + ...ssigned_response_data_inner_rooms_inner.py | 61 + .../test/test_get_sources_response.py | 78 + .../test_get_sources_response_data_inner.py | 73 + ..._sources_response_data_inner_fees_inner.py | 55 + ...sources_response_data_inner_taxes_inner.py | 55 + .../test/test_get_taxes_and_fees_response.py | 79 + ..._get_taxes_and_fees_response_data_inner.py | 73 + ...onse_data_inner_amount_rate_based_inner.py | 52 + .../test/test_get_transactions_response.py | 89 + ...st_get_transactions_response_data_inner.py | 82 + .../test/test_get_userinfo_response.py | 63 + .../test_get_userinfo_response_roles_inner.py | 53 + .../test/test_get_users_response.py | 66 + .../test_get_users_response_data_inner.py | 62 + ...get_users_response_data_inner_user_role.py | 52 + .../test/test_get_webhooks_response.py | 67 + .../test_get_webhooks_response_data_inner.py | 63 + ..._get_webhooks_response_data_inner_event.py | 52 + ...st_get_webhooks_response_data_inner_key.py | 52 + ..._get_webhooks_response_data_inner_owner.py | 52 + ...s_response_data_inner_subscription_data.py | 51 + cloudbeds_pms_v1_2/test/test_groups_api.py | 66 + cloudbeds_pms_v1_2/test/test_guest_api.py | 129 + cloudbeds_pms_v1_2/test/test_hotel_api.py | 59 + .../test/test_house_account_api.py | 59 + .../test/test_housekeeping_api.py | 73 + .../test/test_integration_api.py | 87 + cloudbeds_pms_v1_2/test/test_invoices_api.py | 45 + cloudbeds_pms_v1_2/test/test_item_api.py | 101 + cloudbeds_pms_v1_2/test/test_package_api.py | 45 + cloudbeds_pms_v1_2/test/test_payment_api.py | 94 + .../test/test_post_access_token_response.py | 59 + ...t_access_token_response_resources_inner.py | 52 + .../test/test_post_adjustment_response.py | 54 + .../test_post_adjustment_response_data.py | 51 + .../test/test_post_app_error_response.py | 53 + .../test/test_post_app_error_response_data.py | 51 + ...test_post_app_property_setting_response.py | 55 + ...post_app_property_setting_response_data.py | 53 + .../test/test_post_app_state_response.py | 51 + .../test_post_append_custom_item_response.py | 54 + ...t_post_append_custom_item_response_data.py | 52 + .../test/test_post_card_response.py | 56 + .../test/test_post_card_response_data.py | 54 + .../test/test_post_charge_response.py | 61 + .../test/test_post_charge_response_data.py | 59 + ...t_post_charge_response_data_next_action.py | 54 + ...harge_response_data_next_action_details.py | 52 + ...t_create_allotment_block_notes_response.py | 59 + ...ate_allotment_block_notes_response_data.py | 57 + ...block_request_allotment_intervals_inner.py | 70 + ...ment_intervals_inner_availability_inner.py | 67 + ..._inner_availability_inner_guest_pricing.py | 56 + ...s_inner_availability_inner_restrictions.py | 56 + ...te_allotment_block_request_auto_release.py | 53 + ...st_post_create_allotment_block_response.py | 97 + ...ate_allotment_block_response_data_inner.py | 91 + ...se_data_inner_allotment_intervals_inner.py | 73 + ..._allotment_intervals_inner_availability.py | 62 + ...ervals_inner_availability_guest_pricing.py | 56 + ..._allotment_intervals_inner_restrictions.py | 56 + ..._block_response_data_inner_auto_release.py | 53 + .../test/test_post_custom_field_response.py | 56 + .../test_post_custom_field_response_data.py | 53 + ...st_post_custom_item_request_items_inner.py | 67 + ...tem_request_items_inner_item_fees_inner.py | 52 + ...em_request_items_inner_item_taxes_inner.py | 52 + ...post_custom_item_request_payments_inner.py | 54 + .../test/test_post_custom_item_response.py | 55 + .../test_post_custom_item_response_data.py | 53 + ...est_post_custom_payment_method_response.py | 52 + ...st_post_delete_allotment_block_response.py | 51 + ...t_delete_app_property_settings_response.py | 52 + ...st_post_email_schedule_request_schedule.py | 56 + ...dule_request_schedule_reservation_event.py | 53 + ...uest_schedule_reservation_status_change.py | 51 + .../test/test_post_email_schedule_response.py | 53 + .../test_post_email_template_request_body.py | 54 + ...est_post_email_template_request_subject.py | 54 + .../test/test_post_email_template_response.py | 53 + .../test/test_post_file_response.py | 54 + .../test_post_government_receipt_response.py | 52 + .../test/test_post_group_note_response.py | 63 + ...est_post_group_note_response_data_inner.py | 58 + .../test/test_post_guest_document_response.py | 54 + .../test_post_guest_document_response_data.py | 51 + .../test/test_post_guest_note_response.py | 53 + .../test/test_post_guest_photo_response.py | 54 + ..._post_guest_request_custom_fields_inner.py | 52 + .../test/test_post_guest_response.py | 53 + .../test/test_post_guests_to_room_response.py | 52 + .../test/test_post_housekeeper_response.py | 53 + ...t_post_housekeeping_assignment_response.py | 52 + .../test_post_housekeeping_status_response.py | 60 + ..._post_housekeeping_status_response_data.py | 57 + .../test/test_post_item_category_response.py | 53 + .../test_post_item_request_payments_inner.py | 53 + .../test/test_post_item_response.py | 59 + .../test/test_post_item_response_data.py | 56 + ...st_post_items_to_inventory_request_item.py | 63 + .../test_post_items_to_inventory_response.py | 58 + ..._items_to_inventory_response_data_inner.py | 53 + .../test_post_new_house_account_response.py | 54 + ...st_post_new_house_account_response_data.py | 51 + .../test/test_post_patch_group_response.py | 67 + ...st_post_patch_group_response_data_inner.py | 63 + .../test/test_post_patch_invoice_response.py | 52 + ...est_post_patch_rate_request_rates_inner.py | 61 + ...patch_rate_request_rates_inner_interval.py | 59 + .../test/test_post_patch_rate_response.py | 53 + .../test/test_post_payment_response.py | 54 + ...post_put_app_property_settings_response.py | 55 + .../test/test_post_put_group_response.py | 67 + .../test_post_put_rate_request_rates_inner.py | 57 + ...rate_request_rates_inner_interval_inner.py | 53 + .../test/test_post_put_rate_response.py | 53 + ...test_post_reservation_document_response.py | 54 + .../test_post_reservation_note_response.py | 53 + ...t_post_reservation_request_adults_inner.py | 53 + ...post_reservation_request_children_inner.py | 53 + ...reservation_request_custom_fields_inner.py | 52 + ...st_post_reservation_request_rooms_inner.py | 54 + .../test/test_post_reservation_response.py | 77 + ...t_reservation_response_unassigned_inner.py | 61 + .../test/test_post_room_assign_response.py | 52 + ...est_post_room_block_request_rooms_inner.py | 52 + .../test/test_post_room_block_response.py | 63 + ...st_post_room_block_response_rooms_inner.py | 52 + .../test/test_post_room_check_in_response.py | 52 + .../test/test_post_room_check_out_response.py | 52 + ...t_update_allotment_block_notes_response.py | 59 + ...ate_allotment_block_notes_response_data.py | 57 + ...block_request_allotment_intervals_inner.py | 71 + ...ment_intervals_inner_availability_inner.py | 67 + ..._inner_availability_inner_guest_pricing.py | 56 + ...s_inner_availability_inner_restrictions.py | 56 + ...te_allotment_block_request_auto_release.py | 53 + ...st_post_update_allotment_block_response.py | 93 + ...ate_allotment_block_response_data_inner.py | 89 + ...se_data_inner_allotment_intervals_inner.py | 71 + ..._allotment_intervals_inner_restrictions.py | 56 + .../test/test_post_void_item_response.py | 52 + .../test/test_post_void_payment_response.py | 52 + .../test/test_post_webhook_response.py | 53 + .../test/test_post_webhook_response_data.py | 51 + .../test/test_put_guest_note_response.py | 52 + ...guest_request_guest_custom_fields_inner.py | 52 + .../test/test_put_guest_response.py | 52 + .../test_put_house_account_status_response.py | 52 + .../test/test_put_housekeeper_response.py | 52 + .../test_put_item_to_inventory_response.py | 52 + .../test_put_reservation_note_response.py | 52 + ...reservation_request_custom_fields_inner.py | 52 + ...est_put_reservation_request_rooms_inner.py | 57 + .../test/test_put_reservation_response.py | 53 + ...test_put_room_block_request_rooms_inner.py | 52 + .../test/test_put_room_block_response.py | 63 + cloudbeds_pms_v1_2/test/test_rate_api.py | 66 + .../test/test_reservation_api.py | 122 + cloudbeds_pms_v1_2/test/test_room_api.py | 122 + .../test/test_taxes_and_fees_api.py | 38 + cloudbeds_pms_v1_2/test/test_user_api.py | 38 + openapitools.json | 21 + pyproject.toml | 60 + requirements.txt | 29 + uv.lock | 492 ++ 1053 files changed, 127346 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .openapi-generator-ignore create mode 100644 .openapi-generator/FILES create mode 100644 .openapi-generator/VERSION create mode 100644 .python-version create mode 100644 LICENSE create mode 100644 VERSION create mode 100644 cloudbeds_pms_v1_2/__init__.py create mode 100644 cloudbeds_pms_v1_2/api/__init__.py create mode 100644 cloudbeds_pms_v1_2/api/adjustment_api.py create mode 100644 cloudbeds_pms_v1_2/api/allotment_blocks_api.py create mode 100644 cloudbeds_pms_v1_2/api/app_settings_api.py create mode 100644 cloudbeds_pms_v1_2/api/authentication_api.py create mode 100644 cloudbeds_pms_v1_2/api/currency_api.py create mode 100644 cloudbeds_pms_v1_2/api/custom_fields_api.py create mode 100644 cloudbeds_pms_v1_2/api/dashboard_api.py create mode 100644 cloudbeds_pms_v1_2/api/emails_api.py create mode 100644 cloudbeds_pms_v1_2/api/groups_api.py create mode 100644 cloudbeds_pms_v1_2/api/guest_api.py create mode 100644 cloudbeds_pms_v1_2/api/hotel_api.py create mode 100644 cloudbeds_pms_v1_2/api/house_account_api.py create mode 100644 cloudbeds_pms_v1_2/api/housekeeping_api.py create mode 100644 cloudbeds_pms_v1_2/api/integration_api.py create mode 100644 cloudbeds_pms_v1_2/api/invoices_api.py create mode 100644 cloudbeds_pms_v1_2/api/item_api.py create mode 100644 cloudbeds_pms_v1_2/api/package_api.py create mode 100644 cloudbeds_pms_v1_2/api/payment_api.py create mode 100644 cloudbeds_pms_v1_2/api/rate_api.py create mode 100644 cloudbeds_pms_v1_2/api/reservation_api.py create mode 100644 cloudbeds_pms_v1_2/api/room_api.py create mode 100644 cloudbeds_pms_v1_2/api/taxes_and_fees_api.py create mode 100644 cloudbeds_pms_v1_2/api/user_api.py create mode 100644 cloudbeds_pms_v1_2/api_client.py create mode 100644 cloudbeds_pms_v1_2/api_response.py create mode 100644 cloudbeds_pms_v1_2/configuration.py create mode 100644 cloudbeds_pms_v1_2/docs/AdjustmentApi.md create mode 100644 cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md create mode 100644 cloudbeds_pms_v1_2/docs/AppSettingsApi.md create mode 100644 cloudbeds_pms_v1_2/docs/AuthenticationApi.md create mode 100644 cloudbeds_pms_v1_2/docs/CurrencyApi.md create mode 100644 cloudbeds_pms_v1_2/docs/CustomFieldsApi.md create mode 100644 cloudbeds_pms_v1_2/docs/DashboardApi.md create mode 100644 cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/EmailsApi.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAppStateResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md create mode 100644 cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md create mode 100644 cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetDashboardResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetFilesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGroupsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestListResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md create mode 100644 cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetMetadataResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPackagesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRateResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRateResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetSourcesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetUsersResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md create mode 100644 cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md create mode 100644 cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md create mode 100644 cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md create mode 100644 cloudbeds_pms_v1_2/docs/GroupsApi.md create mode 100644 cloudbeds_pms_v1_2/docs/GuestApi.md create mode 100644 cloudbeds_pms_v1_2/docs/HotelApi.md create mode 100644 cloudbeds_pms_v1_2/docs/HouseAccountApi.md create mode 100644 cloudbeds_pms_v1_2/docs/HousekeepingApi.md create mode 100644 cloudbeds_pms_v1_2/docs/IntegrationApi.md create mode 100644 cloudbeds_pms_v1_2/docs/InvoicesApi.md create mode 100644 cloudbeds_pms_v1_2/docs/ItemApi.md create mode 100644 cloudbeds_pms_v1_2/docs/PackageApi.md create mode 100644 cloudbeds_pms_v1_2/docs/PaymentApi.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAppStateResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCardResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCardResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostChargeResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostChargeResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md create mode 100644 cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md create mode 100644 cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md create mode 100644 cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md create mode 100644 cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md create mode 100644 cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md create mode 100644 cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostFileResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGuestResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostItemResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostItemResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md create mode 100644 cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPaymentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostPutRateResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md create mode 100644 cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostWebhookResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PutGuestResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PutReservationResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md create mode 100644 cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md create mode 100644 cloudbeds_pms_v1_2/docs/RateApi.md create mode 100644 cloudbeds_pms_v1_2/docs/ReservationApi.md create mode 100644 cloudbeds_pms_v1_2/docs/RoomApi.md create mode 100644 cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md create mode 100644 cloudbeds_pms_v1_2/docs/UserApi.md create mode 100644 cloudbeds_pms_v1_2/exceptions.py create mode 100644 cloudbeds_pms_v1_2/models/__init__.py create mode 100644 cloudbeds_pms_v1_2/models/delete_adjustment_response.py create mode 100644 cloudbeds_pms_v1_2/models/delete_guest_note_response.py create mode 100644 cloudbeds_pms_v1_2/models/delete_reservation_note_response.py create mode 100644 cloudbeds_pms_v1_2/models/delete_room_block_response.py create mode 100644 cloudbeds_pms_v1_2/models/delete_webhook_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_adjustment_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_adjustment_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_adjustments_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_adjustments_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_app_property_settings_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_app_settings_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_app_settings_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_app_state_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_app_state_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_available_room_types_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_currency_settings_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py create mode 100644 cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py create mode 100644 cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_custom_fields_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_dashboard_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_dashboard_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_email_schedule_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_email_templates_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_files_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_files_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_group_notes_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_group_notes_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_groups_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_list_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_notes_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_guests_by_status_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_guests_modified_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotel_details_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotels_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_house_account_list_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_housekeepers_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_invoice_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_invoice_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py create mode 100644 cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_item_categories_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_item_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_items_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_items_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_metadata_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_metadata_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py create mode 100644 cloudbeds_pms_v1_2/models/get_packages_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_packages_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_payment_methods_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_payments_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_jobs_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_plans_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_notes_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_room_blocks_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_room_types_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_sources_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_transactions_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_userinfo_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_users_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_users_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py create mode 100644 cloudbeds_pms_v1_2/models/get_webhooks_response.py create mode 100644 cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py create mode 100644 cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py create mode 100644 cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py create mode 100644 cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_access_token_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_adjustment_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_adjustment_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_app_error_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_app_error_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_app_property_setting_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_app_state_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_append_custom_item_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_card_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_card_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_charge_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_charge_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py create mode 100644 cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_field_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_field_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_item_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py create mode 100644 cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py create mode 100644 cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py create mode 100644 cloudbeds_pms_v1_2/models/post_email_schedule_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_email_template_request_body.py create mode 100644 cloudbeds_pms_v1_2/models/post_email_template_request_subject.py create mode 100644 cloudbeds_pms_v1_2/models/post_email_template_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_file_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_government_receipt_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_group_note_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_guest_document_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_guest_document_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_guest_note_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_guest_photo_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_guest_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_guests_to_room_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_housekeeper_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_item_category_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_item_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py create mode 100644 cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_new_house_account_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_patch_group_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_patch_invoice_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py create mode 100644 cloudbeds_pms_v1_2/models/post_patch_rate_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_payment_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_put_group_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_put_rate_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_document_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_note_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_room_assign_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_room_block_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_room_check_in_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_room_check_out_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/models/post_void_item_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_void_payment_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_webhook_response.py create mode 100644 cloudbeds_pms_v1_2/models/post_webhook_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/put_guest_note_response.py create mode 100644 cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/models/put_guest_response.py create mode 100644 cloudbeds_pms_v1_2/models/put_house_account_status_response.py create mode 100644 cloudbeds_pms_v1_2/models/put_housekeeper_response.py create mode 100644 cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py create mode 100644 cloudbeds_pms_v1_2/models/put_reservation_note_response.py create mode 100644 cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/put_reservation_response.py create mode 100644 cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/models/put_room_block_response.py create mode 100644 cloudbeds_pms_v1_2/rest.py create mode 100644 cloudbeds_pms_v1_2/test/__init__.py create mode 100644 cloudbeds_pms_v1_2/test/test_adjustment_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_app_settings_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_authentication_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_currency_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_custom_fields_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_dashboard_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_delete_room_block_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_delete_webhook_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_emails_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_adjustment_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_adjustments_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_app_settings_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_app_state_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_dashboard_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_email_templates_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_files_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_group_notes_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_groups_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_list_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotels_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_invoice_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_item_categories_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_item_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_items_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_metadata_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_packages_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_packages_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payments_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_room_types_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_sources_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_transactions_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_userinfo_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_users_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_webhooks_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_groups_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_guest_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_hotel_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_house_account_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_housekeeping_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_integration_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_invoices_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_item_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_package_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_payment_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_access_token_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_adjustment_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_app_error_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_app_state_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_card_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_card_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_charge_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_charge_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_field_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_item_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_email_template_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_file_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_group_note_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_guest_document_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_guest_note_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_guest_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_item_category_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_item_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_item_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_patch_group_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_payment_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_put_group_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_put_rate_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_room_assign_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_room_block_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_void_item_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_void_payment_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_webhook_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_guest_note_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_guest_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_reservation_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_put_room_block_response.py create mode 100644 cloudbeds_pms_v1_2/test/test_rate_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_reservation_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_room_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py create mode 100644 cloudbeds_pms_v1_2/test/test_user_api.py create mode 100644 openapitools.json create mode 100644 pyproject.toml create mode 100644 requirements.txt create mode 100644 uv.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b562ea --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Python-generated files +__pycache__/ +*.py[oc] +build/ +dist/ +wheels/ +*.egg-info + +# Virtual environments +.venv +.idea diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 0000000..343f921 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,1042 @@ +README.md +cloudbeds_pms_v1_2/__init__.py +cloudbeds_pms_v1_2/api/__init__.py +cloudbeds_pms_v1_2/api/adjustment_api.py +cloudbeds_pms_v1_2/api/allotment_blocks_api.py +cloudbeds_pms_v1_2/api/app_settings_api.py +cloudbeds_pms_v1_2/api/authentication_api.py +cloudbeds_pms_v1_2/api/currency_api.py +cloudbeds_pms_v1_2/api/custom_fields_api.py +cloudbeds_pms_v1_2/api/dashboard_api.py +cloudbeds_pms_v1_2/api/emails_api.py +cloudbeds_pms_v1_2/api/groups_api.py +cloudbeds_pms_v1_2/api/guest_api.py +cloudbeds_pms_v1_2/api/hotel_api.py +cloudbeds_pms_v1_2/api/house_account_api.py +cloudbeds_pms_v1_2/api/housekeeping_api.py +cloudbeds_pms_v1_2/api/integration_api.py +cloudbeds_pms_v1_2/api/invoices_api.py +cloudbeds_pms_v1_2/api/item_api.py +cloudbeds_pms_v1_2/api/package_api.py +cloudbeds_pms_v1_2/api/payment_api.py +cloudbeds_pms_v1_2/api/rate_api.py +cloudbeds_pms_v1_2/api/reservation_api.py +cloudbeds_pms_v1_2/api/room_api.py +cloudbeds_pms_v1_2/api/taxes_and_fees_api.py +cloudbeds_pms_v1_2/api/user_api.py +cloudbeds_pms_v1_2/api_client.py +cloudbeds_pms_v1_2/api_response.py +cloudbeds_pms_v1_2/configuration.py +cloudbeds_pms_v1_2/docs/AdjustmentApi.md +cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md +cloudbeds_pms_v1_2/docs/AppSettingsApi.md +cloudbeds_pms_v1_2/docs/AuthenticationApi.md +cloudbeds_pms_v1_2/docs/CurrencyApi.md +cloudbeds_pms_v1_2/docs/CustomFieldsApi.md +cloudbeds_pms_v1_2/docs/DashboardApi.md +cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md +cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md +cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md +cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md +cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md +cloudbeds_pms_v1_2/docs/EmailsApi.md +cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md +cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md +cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md +cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md +cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md +cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md +cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md +cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md +cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md +cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md +cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md +cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md +cloudbeds_pms_v1_2/docs/GetAppStateResponse.md +cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md +cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md +cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md +cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md +cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md +cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md +cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md +cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md +cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md +cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md +cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md +cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md +cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetDashboardResponse.md +cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md +cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md +cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md +cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetFilesResponse.md +cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md +cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md +cloudbeds_pms_v1_2/docs/GetGroupsResponse.md +cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetGuestListResponse.md +cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md +cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md +cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md +cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetGuestResponse.md +cloudbeds_pms_v1_2/docs/GetGuestResponseData.md +cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md +cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md +cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md +cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md +cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md +cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md +cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md +cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md +cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md +cloudbeds_pms_v1_2/docs/GetHotelsResponse.md +cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md +cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md +cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md +cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md +cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md +cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md +cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md +cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md +cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md +cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md +cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md +cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md +cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md +cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md +cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md +cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetItemResponse.md +cloudbeds_pms_v1_2/docs/GetItemResponseData.md +cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md +cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md +cloudbeds_pms_v1_2/docs/GetItemsResponse.md +cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md +cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetMetadataResponse.md +cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md +cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md +cloudbeds_pms_v1_2/docs/GetPackagesResponse.md +cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md +cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md +cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md +cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md +cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md +cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md +cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md +cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md +cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md +cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md +cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md +cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md +cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md +cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md +cloudbeds_pms_v1_2/docs/GetRateResponse.md +cloudbeds_pms_v1_2/docs/GetRateResponseData.md +cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md +cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md +cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md +cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md +cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md +cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponse.md +cloudbeds_pms_v1_2/docs/GetReservationResponseData.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md +cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md +cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md +cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md +cloudbeds_pms_v1_2/docs/GetReservationsResponse.md +cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md +cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md +cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md +cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md +cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md +cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md +cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md +cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md +cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md +cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md +cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md +cloudbeds_pms_v1_2/docs/GetRoomsResponse.md +cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md +cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md +cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_2/docs/GetSourcesResponse.md +cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md +cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md +cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md +cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md +cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md +cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md +cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md +cloudbeds_pms_v1_2/docs/GetUsersResponse.md +cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md +cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md +cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md +cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md +cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md +cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md +cloudbeds_pms_v1_2/docs/GroupsApi.md +cloudbeds_pms_v1_2/docs/GuestApi.md +cloudbeds_pms_v1_2/docs/HotelApi.md +cloudbeds_pms_v1_2/docs/HouseAccountApi.md +cloudbeds_pms_v1_2/docs/HousekeepingApi.md +cloudbeds_pms_v1_2/docs/IntegrationApi.md +cloudbeds_pms_v1_2/docs/InvoicesApi.md +cloudbeds_pms_v1_2/docs/ItemApi.md +cloudbeds_pms_v1_2/docs/PackageApi.md +cloudbeds_pms_v1_2/docs/PaymentApi.md +cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md +cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md +cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md +cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md +cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md +cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md +cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md +cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md +cloudbeds_pms_v1_2/docs/PostAppStateResponse.md +cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md +cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md +cloudbeds_pms_v1_2/docs/PostCardResponse.md +cloudbeds_pms_v1_2/docs/PostCardResponseData.md +cloudbeds_pms_v1_2/docs/PostChargeResponse.md +cloudbeds_pms_v1_2/docs/PostChargeResponseData.md +cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md +cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md +cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md +cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md +cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md +cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md +cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md +cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md +cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md +cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md +cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md +cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md +cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md +cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md +cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md +cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md +cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md +cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md +cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md +cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md +cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md +cloudbeds_pms_v1_2/docs/PostFileResponse.md +cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md +cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md +cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md +cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md +cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md +cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md +cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md +cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/PostGuestResponse.md +cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md +cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md +cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md +cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md +cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md +cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md +cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md +cloudbeds_pms_v1_2/docs/PostItemResponse.md +cloudbeds_pms_v1_2/docs/PostItemResponseData.md +cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md +cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md +cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md +cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md +cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md +cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md +cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md +cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md +cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md +cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md +cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md +cloudbeds_pms_v1_2/docs/PostPaymentResponse.md +cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md +cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md +cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md +cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md +cloudbeds_pms_v1_2/docs/PostPutRateResponse.md +cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md +cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md +cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md +cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md +cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md +cloudbeds_pms_v1_2/docs/PostReservationResponse.md +cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md +cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md +cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md +cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md +cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md +cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md +cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md +cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md +cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md +cloudbeds_pms_v1_2/docs/PostWebhookResponse.md +cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md +cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md +cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/PutGuestResponse.md +cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md +cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md +cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md +cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md +cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md +cloudbeds_pms_v1_2/docs/PutReservationResponse.md +cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md +cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md +cloudbeds_pms_v1_2/docs/RateApi.md +cloudbeds_pms_v1_2/docs/ReservationApi.md +cloudbeds_pms_v1_2/docs/RoomApi.md +cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md +cloudbeds_pms_v1_2/docs/UserApi.md +cloudbeds_pms_v1_2/exceptions.py +cloudbeds_pms_v1_2/models/__init__.py +cloudbeds_pms_v1_2/models/delete_adjustment_response.py +cloudbeds_pms_v1_2/models/delete_guest_note_response.py +cloudbeds_pms_v1_2/models/delete_reservation_note_response.py +cloudbeds_pms_v1_2/models/delete_room_block_response.py +cloudbeds_pms_v1_2/models/delete_webhook_response.py +cloudbeds_pms_v1_2/models/get_adjustment_response.py +cloudbeds_pms_v1_2/models/get_adjustment_response_data.py +cloudbeds_pms_v1_2/models/get_adjustments_response.py +cloudbeds_pms_v1_2/models/get_adjustments_response_data.py +cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py +cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_2/models/get_app_property_settings_response.py +cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py +cloudbeds_pms_v1_2/models/get_app_settings_response.py +cloudbeds_pms_v1_2/models/get_app_settings_response_data.py +cloudbeds_pms_v1_2/models/get_app_state_response.py +cloudbeds_pms_v1_2/models/get_app_state_response_data.py +cloudbeds_pms_v1_2/models/get_available_room_types_response.py +cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_2/models/get_currency_settings_response.py +cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py +cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py +cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_2/models/get_custom_fields_response.py +cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_2/models/get_dashboard_response.py +cloudbeds_pms_v1_2/models/get_dashboard_response_data.py +cloudbeds_pms_v1_2/models/get_email_schedule_response.py +cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_2/models/get_email_templates_response.py +cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py +cloudbeds_pms_v1_2/models/get_files_response.py +cloudbeds_pms_v1_2/models/get_files_response_data_inner.py +cloudbeds_pms_v1_2/models/get_group_notes_response.py +cloudbeds_pms_v1_2/models/get_group_notes_response_data.py +cloudbeds_pms_v1_2/models/get_groups_response.py +cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py +cloudbeds_pms_v1_2/models/get_guest_list_response.py +cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py +cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_2/models/get_guest_notes_response.py +cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_2/models/get_guest_response.py +cloudbeds_pms_v1_2/models/get_guest_response_data.py +cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py +cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_2/models/get_guests_by_status_response.py +cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_2/models/get_guests_modified_response.py +cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_2/models/get_hotel_details_response.py +cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py +cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_2/models/get_hotels_response.py +cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py +cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_2/models/get_house_account_details_response.py +cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py +cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py +cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py +cloudbeds_pms_v1_2/models/get_house_account_list_response.py +cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_2/models/get_housekeepers_response.py +cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py +cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_2/models/get_invoice_response.py +cloudbeds_pms_v1_2/models/get_invoice_response_data.py +cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py +cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py +cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py +cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py +cloudbeds_pms_v1_2/models/get_item_categories_response.py +cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py +cloudbeds_pms_v1_2/models/get_item_response.py +cloudbeds_pms_v1_2/models/get_item_response_data.py +cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py +cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_2/models/get_items_response.py +cloudbeds_pms_v1_2/models/get_items_response_data_inner.py +cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_2/models/get_metadata_response.py +cloudbeds_pms_v1_2/models/get_metadata_response_data.py +cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py +cloudbeds_pms_v1_2/models/get_packages_response.py +cloudbeds_pms_v1_2/models/get_packages_response_data.py +cloudbeds_pms_v1_2/models/get_payment_methods_response.py +cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py +cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py +cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py +cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_2/models/get_payments_response.py +cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py +cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py +cloudbeds_pms_v1_2/models/get_rate_jobs_response.py +cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_2/models/get_rate_plans_response.py +cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_2/models/get_rate_response.py +cloudbeds_pms_v1_2/models/get_rate_response_data.py +cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py +cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +cloudbeds_pms_v1_2/models/get_reservation_notes_response.py +cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response.py +cloudbeds_pms_v1_2/models/get_reservation_response_data.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py +cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py +cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_2/models/get_reservations_response.py +cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py +cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_2/models/get_room_blocks_response.py +cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_2/models/get_room_types_response.py +cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py +cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_2/models/get_rooms_response.py +cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py +cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py +cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/models/get_sources_response.py +cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py +cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py +cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_2/models/get_transactions_response.py +cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py +cloudbeds_pms_v1_2/models/get_userinfo_response.py +cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_2/models/get_users_response.py +cloudbeds_pms_v1_2/models/get_users_response_data_inner.py +cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py +cloudbeds_pms_v1_2/models/get_webhooks_response.py +cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py +cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_2/models/post_access_token_response.py +cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py +cloudbeds_pms_v1_2/models/post_adjustment_response.py +cloudbeds_pms_v1_2/models/post_adjustment_response_data.py +cloudbeds_pms_v1_2/models/post_app_error_response.py +cloudbeds_pms_v1_2/models/post_app_error_response_data.py +cloudbeds_pms_v1_2/models/post_app_property_setting_response.py +cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py +cloudbeds_pms_v1_2/models/post_app_state_response.py +cloudbeds_pms_v1_2/models/post_append_custom_item_response.py +cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py +cloudbeds_pms_v1_2/models/post_card_response.py +cloudbeds_pms_v1_2/models/post_card_response_data.py +cloudbeds_pms_v1_2/models/post_charge_response.py +cloudbeds_pms_v1_2/models/post_charge_response_data.py +cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py +cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_2/models/post_custom_field_response.py +cloudbeds_pms_v1_2/models/post_custom_field_response_data.py +cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py +cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_2/models/post_custom_item_response.py +cloudbeds_pms_v1_2/models/post_custom_item_response_data.py +cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py +cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py +cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py +cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py +cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_2/models/post_email_schedule_response.py +cloudbeds_pms_v1_2/models/post_email_template_request_body.py +cloudbeds_pms_v1_2/models/post_email_template_request_subject.py +cloudbeds_pms_v1_2/models/post_email_template_response.py +cloudbeds_pms_v1_2/models/post_file_response.py +cloudbeds_pms_v1_2/models/post_government_receipt_response.py +cloudbeds_pms_v1_2/models/post_group_note_response.py +cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py +cloudbeds_pms_v1_2/models/post_guest_document_response.py +cloudbeds_pms_v1_2/models/post_guest_document_response_data.py +cloudbeds_pms_v1_2/models/post_guest_note_response.py +cloudbeds_pms_v1_2/models/post_guest_photo_response.py +cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_2/models/post_guest_response.py +cloudbeds_pms_v1_2/models/post_guests_to_room_response.py +cloudbeds_pms_v1_2/models/post_housekeeper_response.py +cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py +cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py +cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py +cloudbeds_pms_v1_2/models/post_item_category_response.py +cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py +cloudbeds_pms_v1_2/models/post_item_response.py +cloudbeds_pms_v1_2/models/post_item_response_data.py +cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py +cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py +cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_2/models/post_new_house_account_response.py +cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py +cloudbeds_pms_v1_2/models/post_patch_group_response.py +cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py +cloudbeds_pms_v1_2/models/post_patch_invoice_response.py +cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_2/models/post_patch_rate_response.py +cloudbeds_pms_v1_2/models/post_payment_response.py +cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py +cloudbeds_pms_v1_2/models/post_put_group_response.py +cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_2/models/post_put_rate_response.py +cloudbeds_pms_v1_2/models/post_reservation_document_response.py +cloudbeds_pms_v1_2/models/post_reservation_note_response.py +cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py +cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py +cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_2/models/post_reservation_response.py +cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_2/models/post_room_assign_response.py +cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_2/models/post_room_block_response.py +cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_2/models/post_room_check_in_response.py +cloudbeds_pms_v1_2/models/post_room_check_out_response.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_2/models/post_void_item_response.py +cloudbeds_pms_v1_2/models/post_void_payment_response.py +cloudbeds_pms_v1_2/models/post_webhook_response.py +cloudbeds_pms_v1_2/models/post_webhook_response_data.py +cloudbeds_pms_v1_2/models/put_guest_note_response.py +cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_2/models/put_guest_response.py +cloudbeds_pms_v1_2/models/put_house_account_status_response.py +cloudbeds_pms_v1_2/models/put_housekeeper_response.py +cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py +cloudbeds_pms_v1_2/models/put_reservation_note_response.py +cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_2/models/put_reservation_response.py +cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_2/models/put_room_block_response.py +cloudbeds_pms_v1_2/rest.py +cloudbeds_pms_v1_2/test/__init__.py +cloudbeds_pms_v1_2/test/test_adjustment_api.py +cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py +cloudbeds_pms_v1_2/test/test_app_settings_api.py +cloudbeds_pms_v1_2/test/test_authentication_api.py +cloudbeds_pms_v1_2/test/test_currency_api.py +cloudbeds_pms_v1_2/test/test_custom_fields_api.py +cloudbeds_pms_v1_2/test/test_dashboard_api.py +cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py +cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py +cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py +cloudbeds_pms_v1_2/test/test_delete_room_block_response.py +cloudbeds_pms_v1_2/test/test_delete_webhook_response.py +cloudbeds_pms_v1_2/test/test_emails_api.py +cloudbeds_pms_v1_2/test/test_get_adjustment_response.py +cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py +cloudbeds_pms_v1_2/test/test_get_adjustments_response.py +cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py +cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py +cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py +cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_app_settings_response.py +cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py +cloudbeds_pms_v1_2/test/test_get_app_state_response.py +cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py +cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py +cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py +cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py +cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py +cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py +cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_dashboard_response.py +cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py +cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py +cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_email_templates_response.py +cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_files_response.py +cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_group_notes_response.py +cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py +cloudbeds_pms_v1_2/test/test_get_groups_response.py +cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_guest_list_response.py +cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py +cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py +cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_guest_response.py +cloudbeds_pms_v1_2/test/test_get_guest_response_data.py +cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py +cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py +cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py +cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py +cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py +cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_2/test/test_get_hotels_response.py +cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py +cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py +cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py +cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py +cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py +cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py +cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py +cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_invoice_response.py +cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py +cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py +cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py +cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py +cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py +cloudbeds_pms_v1_2/test/test_get_item_categories_response.py +cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_item_response.py +cloudbeds_pms_v1_2/test/test_get_item_response_data.py +cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py +cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_2/test/test_get_items_response.py +cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_metadata_response.py +cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py +cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py +cloudbeds_pms_v1_2/test/test_get_packages_response.py +cloudbeds_pms_v1_2/test/test_get_packages_response_data.py +cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py +cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py +cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py +cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py +cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_payments_response.py +cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py +cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py +cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py +cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_2/test/test_get_rate_response.py +cloudbeds_pms_v1_2/test/test_get_rate_response_data.py +cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py +cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py +cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py +cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py +cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_2/test/test_get_reservations_response.py +cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py +cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_room_types_response.py +cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_2/test/test_get_rooms_response.py +cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py +cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_2/test/test_get_sources_response.py +cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py +cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_2/test/test_get_transactions_response.py +cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_userinfo_response.py +cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_2/test/test_get_users_response.py +cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py +cloudbeds_pms_v1_2/test/test_get_webhooks_response.py +cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_2/test/test_groups_api.py +cloudbeds_pms_v1_2/test/test_guest_api.py +cloudbeds_pms_v1_2/test/test_hotel_api.py +cloudbeds_pms_v1_2/test/test_house_account_api.py +cloudbeds_pms_v1_2/test/test_housekeeping_api.py +cloudbeds_pms_v1_2/test/test_integration_api.py +cloudbeds_pms_v1_2/test/test_invoices_api.py +cloudbeds_pms_v1_2/test/test_item_api.py +cloudbeds_pms_v1_2/test/test_package_api.py +cloudbeds_pms_v1_2/test/test_payment_api.py +cloudbeds_pms_v1_2/test/test_post_access_token_response.py +cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py +cloudbeds_pms_v1_2/test/test_post_adjustment_response.py +cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py +cloudbeds_pms_v1_2/test/test_post_app_error_response.py +cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py +cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py +cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py +cloudbeds_pms_v1_2/test/test_post_app_state_response.py +cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py +cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py +cloudbeds_pms_v1_2/test/test_post_card_response.py +cloudbeds_pms_v1_2/test/test_post_card_response_data.py +cloudbeds_pms_v1_2/test/test_post_charge_response.py +cloudbeds_pms_v1_2/test/test_post_charge_response_data.py +cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py +cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_2/test/test_post_custom_field_response.py +cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py +cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py +cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_2/test/test_post_custom_item_response.py +cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py +cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py +cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py +cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py +cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py +cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py +cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py +cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py +cloudbeds_pms_v1_2/test/test_post_email_template_response.py +cloudbeds_pms_v1_2/test/test_post_file_response.py +cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py +cloudbeds_pms_v1_2/test/test_post_group_note_response.py +cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py +cloudbeds_pms_v1_2/test/test_post_guest_document_response.py +cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py +cloudbeds_pms_v1_2/test/test_post_guest_note_response.py +cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py +cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_post_guest_response.py +cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py +cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py +cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py +cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py +cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py +cloudbeds_pms_v1_2/test/test_post_item_category_response.py +cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py +cloudbeds_pms_v1_2/test/test_post_item_response.py +cloudbeds_pms_v1_2/test/test_post_item_response_data.py +cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py +cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py +cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py +cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py +cloudbeds_pms_v1_2/test/test_post_patch_group_response.py +cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py +cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py +cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py +cloudbeds_pms_v1_2/test/test_post_payment_response.py +cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py +cloudbeds_pms_v1_2/test/test_post_put_group_response.py +cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_2/test/test_post_put_rate_response.py +cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py +cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py +cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py +cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py +cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_2/test/test_post_reservation_response.py +cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_2/test/test_post_room_assign_response.py +cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_2/test/test_post_room_block_response.py +cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py +cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_2/test/test_post_void_item_response.py +cloudbeds_pms_v1_2/test/test_post_void_payment_response.py +cloudbeds_pms_v1_2/test/test_post_webhook_response.py +cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py +cloudbeds_pms_v1_2/test/test_put_guest_note_response.py +cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_put_guest_response.py +cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py +cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py +cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py +cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py +cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_2/test/test_put_reservation_response.py +cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_2/test/test_put_room_block_response.py +cloudbeds_pms_v1_2/test/test_rate_api.py +cloudbeds_pms_v1_2/test/test_reservation_api.py +cloudbeds_pms_v1_2/test/test_room_api.py +cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py +cloudbeds_pms_v1_2/test/test_user_api.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..4bc5d61 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.9.0 diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..24ee5b1 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..554a03f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2025 Cloudbeds (http://cloudbeds.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 8063f2c..b2e4749 100644 --- a/README.md +++ b/README.md @@ -1 +1,597 @@ -# cloudbeds-api-python +# Cloudbeds PMS V1.2 +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ +The `cloudbeds_pms_v1_2` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: v1.2 +- Package version: 1.0.0 +- Generator version: 7.9.0 +- Build package: org.openapitools.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 3.7+ + +## Installation & Usage + +This python library package is generated without supporting files like setup.py or requirements files + +To be able to use it, you will need these dependencies in your own package that uses this library: + +* urllib3 >= 1.25.3, < 3.0.0 +* python-dateutil >= 2.8.2 +* pydantic >= 2 +* typing-extensions >= 4.7.1 + +## Getting Started + +In your own code, to use this library to connect and interact with Cloudbeds PMS V1.2, +you can run the following: + +```python + +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier + adjustment_id = 'adjustment_id_example' # str | Adjustment identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # deleteAdjustment + api_response = api_instance.delete_adjustment_delete(reservation_id, adjustment_id, property_id=property_id) + print("The response of AdjustmentApi->delete_adjustment_delete:\n") + pprint(api_response) + except ApiException as e: + print("Exception when calling AdjustmentApi->delete_adjustment_delete: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdjustmentApi* | [**delete_adjustment_delete**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment +*AdjustmentApi* | [**get_adjustment_get**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment +*AdjustmentApi* | [**get_adjustments_get**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments +*AdjustmentApi* | [**post_adjustment_post**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment +*AllotmentBlocksApi* | [**create_allotment_block_notes_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#create_allotment_block_notes_post) | **POST** /createAllotmentBlockNotes | createAllotmentBlockNotes +*AllotmentBlocksApi* | [**create_allotment_block_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#create_allotment_block_post) | **POST** /createAllotmentBlock | createAllotmentBlock +*AllotmentBlocksApi* | [**delete_allotment_block_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#delete_allotment_block_post) | **POST** /deleteAllotmentBlock | deleteAllotmentBlock +*AllotmentBlocksApi* | [**get_allotment_blocks_get**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#get_allotment_blocks_get) | **GET** /getAllotmentBlocks | getAllotmentBlocks +*AllotmentBlocksApi* | [**list_allotment_block_notes_get**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#list_allotment_block_notes_get) | **GET** /listAllotmentBlockNotes | listAllotmentBlockNotes +*AllotmentBlocksApi* | [**update_allotment_block_notes_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#update_allotment_block_notes_post) | **POST** /updateAllotmentBlockNotes | updateAllotmentBlockNotes +*AllotmentBlocksApi* | [**update_allotment_block_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#update_allotment_block_post) | **POST** /updateAllotmentBlock | updateAllotmentBlock +*AppSettingsApi* | [**delete_app_property_settings_post**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#delete_app_property_settings_post) | **POST** /deleteAppPropertySettings | deleteAppPropertySettings +*AppSettingsApi* | [**get_app_property_settings_get**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#get_app_property_settings_get) | **GET** /getAppPropertySettings | getAppPropertySettings +*AppSettingsApi* | [**post_app_property_settings_post**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#post_app_property_settings_post) | **POST** /postAppPropertySettings | postAppPropertySettings +*AppSettingsApi* | [**put_app_property_settings_post**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#put_app_property_settings_post) | **POST** /putAppPropertySettings | putAppPropertySettings +*AuthenticationApi* | [**access_token_post**](cloudbeds_pms_v1_2/docs/AuthenticationApi.md#access_token_post) | **POST** /access_token | access_token +*AuthenticationApi* | [**oauth_metadata_get**](cloudbeds_pms_v1_2/docs/AuthenticationApi.md#oauth_metadata_get) | **GET** /oauth/metadata | metadata +*AuthenticationApi* | [**userinfo_get**](cloudbeds_pms_v1_2/docs/AuthenticationApi.md#userinfo_get) | **GET** /userinfo | userinfo +*CurrencyApi* | [**get_currency_settings_get**](cloudbeds_pms_v1_2/docs/CurrencyApi.md#get_currency_settings_get) | **GET** /getCurrencySettings | getCurrencySettings +*CustomFieldsApi* | [**get_custom_fields_get**](cloudbeds_pms_v1_2/docs/CustomFieldsApi.md#get_custom_fields_get) | **GET** /getCustomFields | getCustomFields +*CustomFieldsApi* | [**post_custom_field_post**](cloudbeds_pms_v1_2/docs/CustomFieldsApi.md#post_custom_field_post) | **POST** /postCustomField | postCustomField +*DashboardApi* | [**get_dashboard_get**](cloudbeds_pms_v1_2/docs/DashboardApi.md#get_dashboard_get) | **GET** /getDashboard | getDashboard +*EmailsApi* | [**get_email_schedule_get**](cloudbeds_pms_v1_2/docs/EmailsApi.md#get_email_schedule_get) | **GET** /getEmailSchedule | getEmailSchedule +*EmailsApi* | [**get_email_templates_get**](cloudbeds_pms_v1_2/docs/EmailsApi.md#get_email_templates_get) | **GET** /getEmailTemplates | getEmailTemplates +*EmailsApi* | [**post_email_schedule_post**](cloudbeds_pms_v1_2/docs/EmailsApi.md#post_email_schedule_post) | **POST** /postEmailSchedule | postEmailSchedule +*EmailsApi* | [**post_email_template_post**](cloudbeds_pms_v1_2/docs/EmailsApi.md#post_email_template_post) | **POST** /postEmailTemplate | postEmailTemplate +*GroupsApi* | [**get_group_notes_get**](cloudbeds_pms_v1_2/docs/GroupsApi.md#get_group_notes_get) | **GET** /getGroupNotes | getGroupNotes +*GroupsApi* | [**get_groups_get**](cloudbeds_pms_v1_2/docs/GroupsApi.md#get_groups_get) | **GET** /getGroups | getGroups +*GroupsApi* | [**patch_group_post**](cloudbeds_pms_v1_2/docs/GroupsApi.md#patch_group_post) | **POST** /patchGroup | patchGroup +*GroupsApi* | [**post_group_note_post**](cloudbeds_pms_v1_2/docs/GroupsApi.md#post_group_note_post) | **POST** /postGroupNote | postGroupNote +*GroupsApi* | [**put_group_post**](cloudbeds_pms_v1_2/docs/GroupsApi.md#put_group_post) | **POST** /putGroup | putGroup +*GuestApi* | [**delete_guest_note_delete**](cloudbeds_pms_v1_2/docs/GuestApi.md#delete_guest_note_delete) | **DELETE** /deleteGuestNote | deleteGuestNote +*GuestApi* | [**get_guest_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guest_get) | **GET** /getGuest | getGuest +*GuestApi* | [**get_guest_list_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guest_list_get) | **GET** /getGuestList | getGuestList +*GuestApi* | [**get_guest_notes_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guest_notes_get) | **GET** /getGuestNotes | getGuestNotes +*GuestApi* | [**get_guests_by_filter_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guests_by_filter_get) | **GET** /getGuestsByFilter | getGuestsByFilter +*GuestApi* | [**get_guests_by_status_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guests_by_status_get) | **GET** /getGuestsByStatus | getGuestsByStatus +*GuestApi* | [**get_guests_modified_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guests_modified_get) | **GET** /getGuestsModified | getGuestsModified +*GuestApi* | [**post_guest_document_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_document_post) | **POST** /postGuestDocument | postGuestDocument +*GuestApi* | [**post_guest_note_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_note_post) | **POST** /postGuestNote | postGuestNote +*GuestApi* | [**post_guest_photo_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_photo_post) | **POST** /postGuestPhoto | postGuestPhoto +*GuestApi* | [**post_guest_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_post) | **POST** /postGuest | postGuest +*GuestApi* | [**post_guests_to_room_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guests_to_room_post) | **POST** /postGuestsToRoom | postGuestsToRoom +*GuestApi* | [**put_guest_note_put**](cloudbeds_pms_v1_2/docs/GuestApi.md#put_guest_note_put) | **PUT** /putGuestNote | putGuestNote +*GuestApi* | [**put_guest_put**](cloudbeds_pms_v1_2/docs/GuestApi.md#put_guest_put) | **PUT** /putGuest | putGuest +*HotelApi* | [**get_files_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_files_get) | **GET** /getFiles | getFiles +*HotelApi* | [**get_hotel_details_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_hotel_details_get) | **GET** /getHotelDetails | getHotelDetails +*HotelApi* | [**get_hotels_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_hotels_get) | **GET** /getHotels | getHotels +*HotelApi* | [**post_file_post**](cloudbeds_pms_v1_2/docs/HotelApi.md#post_file_post) | **POST** /postFile | postFile +*HouseAccountApi* | [**get_house_account_details_get**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails +*HouseAccountApi* | [**get_house_account_list_get**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList +*HouseAccountApi* | [**post_new_house_account_post**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount +*HouseAccountApi* | [**put_house_account_status_put**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus +*HousekeepingApi* | [**get_housekeepers_get**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#get_housekeepers_get) | **GET** /getHousekeepers | getHousekeepers +*HousekeepingApi* | [**get_housekeeping_status_get**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#get_housekeeping_status_get) | **GET** /getHousekeepingStatus | getHousekeepingStatus +*HousekeepingApi* | [**post_housekeeper_post**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#post_housekeeper_post) | **POST** /postHousekeeper | postHousekeeper +*HousekeepingApi* | [**post_housekeeping_assignment_post**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#post_housekeeping_assignment_post) | **POST** /postHousekeepingAssignment | postHousekeepingAssignment +*HousekeepingApi* | [**post_housekeeping_status_post**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#post_housekeeping_status_post) | **POST** /postHousekeepingStatus | postHousekeepingStatus +*HousekeepingApi* | [**put_housekeeper_put**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#put_housekeeper_put) | **PUT** /putHousekeeper | putHousekeeper +*IntegrationApi* | [**delete_webhook_delete**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#delete_webhook_delete) | **DELETE** /deleteWebhook | deleteWebhook +*IntegrationApi* | [**get_app_settings_get**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#get_app_settings_get) | **GET** /getAppSettings | getAppSettings +*IntegrationApi* | [**get_app_state_get**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#get_app_state_get) | **GET** /getAppState | getAppState +*IntegrationApi* | [**get_webhooks_get**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#get_webhooks_get) | **GET** /getWebhooks | getWebhooks +*IntegrationApi* | [**post_app_error_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_app_error_post) | **POST** /postAppError | postAppError +*IntegrationApi* | [**post_app_state_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_app_state_post) | **POST** /postAppState | postAppState +*IntegrationApi* | [**post_government_receipt_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_government_receipt_post) | **POST** /postGovernmentReceipt | postGovernmentReceipt +*IntegrationApi* | [**post_webhook_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_webhook_post) | **POST** /postWebhook | postWebhook +*InvoicesApi* | [**get_invoice_get**](cloudbeds_pms_v1_2/docs/InvoicesApi.md#get_invoice_get) | **GET** /getInvoice | getInvoice +*InvoicesApi* | [**patch_invoice_post**](cloudbeds_pms_v1_2/docs/InvoicesApi.md#patch_invoice_post) | **POST** /patchInvoice | patchInvoice +*ItemApi* | [**append_custom_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#append_custom_item_post) | **POST** /appendCustomItem | appendCustomItem +*ItemApi* | [**get_item_categories_get**](cloudbeds_pms_v1_2/docs/ItemApi.md#get_item_categories_get) | **GET** /getItemCategories | getItemCategories +*ItemApi* | [**get_item_get**](cloudbeds_pms_v1_2/docs/ItemApi.md#get_item_get) | **GET** /getItem | getItem +*ItemApi* | [**get_items_get**](cloudbeds_pms_v1_2/docs/ItemApi.md#get_items_get) | **GET** /getItems | getItems +*ItemApi* | [**post_custom_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_custom_item_post) | **POST** /postCustomItem | postCustomItem +*ItemApi* | [**post_item_category_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_item_category_post) | **POST** /postItemCategory | postItemCategory +*ItemApi* | [**post_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_item_post) | **POST** /postItem | postItem +*ItemApi* | [**post_items_to_inventory_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_items_to_inventory_post) | **POST** /postItemsToInventory | postItemsToInventory +*ItemApi* | [**post_void_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_void_item_post) | **POST** /postVoidItem | postVoidItem +*ItemApi* | [**put_item_to_inventory_put**](cloudbeds_pms_v1_2/docs/ItemApi.md#put_item_to_inventory_put) | **PUT** /putItemToInventory | putItemToInventory +*PackageApi* | [**get_package_names_get**](cloudbeds_pms_v1_2/docs/PackageApi.md#get_package_names_get) | **GET** /getPackageNames | getPackageNames +*PackageApi* | [**get_packages_get**](cloudbeds_pms_v1_2/docs/PackageApi.md#get_packages_get) | **GET** /getPackages | getPackages +*PaymentApi* | [**get_payment_methods_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods +*PaymentApi* | [**get_payments_capabilities_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities +*PaymentApi* | [**get_payments_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments +*PaymentApi* | [**get_transactions_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions +*PaymentApi* | [**post_charge_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge +*PaymentApi* | [**post_credit_card_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard +*PaymentApi* | [**post_custom_payment_method_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod +*PaymentApi* | [**post_payment_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment +*PaymentApi* | [**post_void_payment_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment +*RateApi* | [**get_rate_get**](cloudbeds_pms_v1_2/docs/RateApi.md#get_rate_get) | **GET** /getRate | getRate +*RateApi* | [**get_rate_jobs_get**](cloudbeds_pms_v1_2/docs/RateApi.md#get_rate_jobs_get) | **GET** /getRateJobs | getRateJobs +*RateApi* | [**get_rate_plans_get**](cloudbeds_pms_v1_2/docs/RateApi.md#get_rate_plans_get) | **GET** /getRatePlans | getRatePlans +*RateApi* | [**patch_rate_post**](cloudbeds_pms_v1_2/docs/RateApi.md#patch_rate_post) | **POST** /patchRate | patchRate +*RateApi* | [**put_rate_post**](cloudbeds_pms_v1_2/docs/RateApi.md#put_rate_post) | **POST** /putRate | putRate +*ReservationApi* | [**delete_reservation_note_delete**](cloudbeds_pms_v1_2/docs/ReservationApi.md#delete_reservation_note_delete) | **DELETE** /deleteReservationNote | deleteReservationNote +*ReservationApi* | [**get_reservation_assignments_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_assignments_get) | **GET** /getReservationAssignments | getReservationAssignments +*ReservationApi* | [**get_reservation_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_get) | **GET** /getReservation | getReservation +*ReservationApi* | [**get_reservation_invoice_information_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_invoice_information_get) | **GET** /getReservationInvoiceInformation | getReservationInvoiceInformation +*ReservationApi* | [**get_reservation_notes_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_notes_get) | **GET** /getReservationNotes | getReservationNotes +*ReservationApi* | [**get_reservations_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservations_get) | **GET** /getReservations | getReservations +*ReservationApi* | [**get_reservations_with_rate_details_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservations_with_rate_details_get) | **GET** /getReservationsWithRateDetails | getReservationsWithRateDetails +*ReservationApi* | [**get_sources_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_sources_get) | **GET** /getSources | getSources +*ReservationApi* | [**post_reservation_document_post**](cloudbeds_pms_v1_2/docs/ReservationApi.md#post_reservation_document_post) | **POST** /postReservationDocument | postReservationDocument +*ReservationApi* | [**post_reservation_note_post**](cloudbeds_pms_v1_2/docs/ReservationApi.md#post_reservation_note_post) | **POST** /postReservationNote | postReservationNote +*ReservationApi* | [**post_reservation_post**](cloudbeds_pms_v1_2/docs/ReservationApi.md#post_reservation_post) | **POST** /postReservation | postReservation +*ReservationApi* | [**put_reservation_note_put**](cloudbeds_pms_v1_2/docs/ReservationApi.md#put_reservation_note_put) | **PUT** /putReservationNote | putReservationNote +*ReservationApi* | [**put_reservation_put**](cloudbeds_pms_v1_2/docs/ReservationApi.md#put_reservation_put) | **PUT** /putReservation | putReservation +*RoomApi* | [**delete_room_block_delete**](cloudbeds_pms_v1_2/docs/RoomApi.md#delete_room_block_delete) | **DELETE** /deleteRoomBlock | deleteRoomBlock +*RoomApi* | [**get_available_room_types_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_available_room_types_get) | **GET** /getAvailableRoomTypes | getAvailableRoomTypes +*RoomApi* | [**get_reservation_room_details_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_reservation_room_details_get) | **GET** /getReservationRoomDetails | getReservationRoomDetails +*RoomApi* | [**get_room_blocks_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_room_blocks_get) | **GET** /getRoomBlocks | getRoomBlocks +*RoomApi* | [**get_room_types_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_room_types_get) | **GET** /getRoomTypes | getRoomTypes +*RoomApi* | [**get_rooms_fees_and_taxes_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_rooms_fees_and_taxes_get) | **GET** /getRoomsFeesAndTaxes | getRoomsFeesAndTaxes +*RoomApi* | [**get_rooms_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_rooms_get) | **GET** /getRooms | getRooms +*RoomApi* | [**get_rooms_unassigned_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_rooms_unassigned_get) | **GET** /getRoomsUnassigned | getRoomsUnassigned +*RoomApi* | [**post_room_assign_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_assign_post) | **POST** /postRoomAssign | postRoomAssign +*RoomApi* | [**post_room_block_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_block_post) | **POST** /postRoomBlock | postRoomBlock +*RoomApi* | [**post_room_check_in_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_check_in_post) | **POST** /postRoomCheckIn | postRoomCheckIn +*RoomApi* | [**post_room_check_out_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_check_out_post) | **POST** /postRoomCheckOut | postRoomCheckOut +*RoomApi* | [**put_room_block_put**](cloudbeds_pms_v1_2/docs/RoomApi.md#put_room_block_put) | **PUT** /putRoomBlock | putRoomBlock +*TaxesAndFeesApi* | [**get_taxes_and_fees_get**](cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md#get_taxes_and_fees_get) | **GET** /getTaxesAndFees | getTaxesAndFees +*UserApi* | [**get_users_get**](cloudbeds_pms_v1_2/docs/UserApi.md#get_users_get) | **GET** /getUsers | getUsers + + +## Documentation For Models + + - [DeleteAdjustmentResponse](cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md) + - [DeleteGuestNoteResponse](cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md) + - [DeleteReservationNoteResponse](cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md) + - [DeleteRoomBlockResponse](cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md) + - [DeleteWebhookResponse](cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md) + - [GetAdjustmentResponse](cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md) + - [GetAdjustmentResponseData](cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md) + - [GetAdjustmentsResponse](cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md) + - [GetAdjustmentsResponseData](cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md) + - [GetAllotmentBlocksResponse](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md) + - [GetAllotmentBlocksResponseDataInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md) + - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md) + - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md) + - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md) + - [GetAllotmentBlocksResponseDataInnerAutoReleaseInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md) + - [GetAppPropertySettingsResponse](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md) + - [GetAppPropertySettingsResponseDataInner](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md) + - [GetAppSettingsResponse](cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md) + - [GetAppSettingsResponseData](cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md) + - [GetAppStateResponse](cloudbeds_pms_v1_2/docs/GetAppStateResponse.md) + - [GetAppStateResponseData](cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md) + - [GetAvailableRoomTypesResponse](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md) + - [GetAvailableRoomTypesResponseDataInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md) + - [GetCurrencySettingsResponse](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md) + - [GetCurrencySettingsResponseData](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md) + - [GetCurrencySettingsResponseDataFormat](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md) + - [GetCurrencySettingsResponseDataRates](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md) + - [GetCurrencySettingsResponseDataRatesFixedInner](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md) + - [GetCustomFieldsResponse](cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md) + - [GetCustomFieldsResponseDataInner](cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md) + - [GetDashboardResponse](cloudbeds_pms_v1_2/docs/GetDashboardResponse.md) + - [GetDashboardResponseData](cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md) + - [GetEmailScheduleResponse](cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md) + - [GetEmailScheduleResponseDataInner](cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md) + - [GetEmailTemplatesResponse](cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md) + - [GetEmailTemplatesResponseDataInner](cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md) + - [GetFilesResponse](cloudbeds_pms_v1_2/docs/GetFilesResponse.md) + - [GetFilesResponseDataInner](cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md) + - [GetGroupNotesResponse](cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md) + - [GetGroupNotesResponseData](cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md) + - [GetGroupsResponse](cloudbeds_pms_v1_2/docs/GetGroupsResponse.md) + - [GetGroupsResponseDataInner](cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md) + - [GetGuestListResponse](cloudbeds_pms_v1_2/docs/GetGuestListResponse.md) + - [GetGuestListResponseDataValue](cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md) + - [GetGuestListResponseDataValueGuestNotesInner](cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md) + - [GetGuestNotesResponse](cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md) + - [GetGuestNotesResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md) + - [GetGuestResponse](cloudbeds_pms_v1_2/docs/GetGuestResponse.md) + - [GetGuestResponseData](cloudbeds_pms_v1_2/docs/GetGuestResponseData.md) + - [GetGuestResponseDataCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md) + - [GetGuestsByFilterResponse](cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md) + - [GetGuestsByFilterResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md) + - [GetGuestsByStatusResponse](cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md) + - [GetGuestsByStatusResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md) + - [GetGuestsModifiedResponse](cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md) + - [GetGuestsModifiedResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md) + - [GetGuestsModifiedResponseDataInnerCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) + - [GetHotelDetailsResponse](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md) + - [GetHotelDetailsResponseData](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md) + - [GetHotelDetailsResponseDataPropertyAddress](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md) + - [GetHotelDetailsResponseDataPropertyCurrency](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md) + - [GetHotelDetailsResponseDataPropertyImageInner](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md) + - [GetHotelDetailsResponseDataPropertyPolicy](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md) + - [GetHotelsResponse](cloudbeds_pms_v1_2/docs/GetHotelsResponse.md) + - [GetHotelsResponseDataInner](cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md) + - [GetHotelsResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md) + - [GetHouseAccountDetailsResponse](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md) + - [GetHouseAccountDetailsResponseData](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md) + - [GetHouseAccountDetailsResponseDataRecordsInner](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md) + - [GetHouseAccountDetailsResponseDataTotalInner](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md) + - [GetHouseAccountListResponse](cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md) + - [GetHouseAccountListResponseDataInner](cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md) + - [GetHousekeepersResponse](cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md) + - [GetHousekeepersResponseDataInner](cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md) + - [GetHousekeepingStatusResponse](cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md) + - [GetHousekeepingStatusResponseDataInner](cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md) + - [GetInvoiceResponse](cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md) + - [GetInvoiceResponseData](cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md) + - [GetInvoiceResponseDataBilledTo](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md) + - [GetInvoiceResponseDataItemsInner](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md) + - [GetInvoiceResponseDataItemsInnerFeesInner](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md) + - [GetInvoiceResponseDataItemsInnerTaxesInner](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md) + - [GetItemCategoriesResponse](cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md) + - [GetItemCategoriesResponseDataInner](cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md) + - [GetItemResponse](cloudbeds_pms_v1_2/docs/GetItemResponse.md) + - [GetItemResponseData](cloudbeds_pms_v1_2/docs/GetItemResponseData.md) + - [GetItemResponseDataFeesInner](cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md) + - [GetItemResponseDataTaxesInner](cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md) + - [GetItemsResponse](cloudbeds_pms_v1_2/docs/GetItemsResponse.md) + - [GetItemsResponseDataInner](cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md) + - [GetListAllotmentBlockNotesResponse](cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md) + - [GetListAllotmentBlockNotesResponseDataInner](cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md) + - [GetMetadataResponse](cloudbeds_pms_v1_2/docs/GetMetadataResponse.md) + - [GetMetadataResponseData](cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md) + - [GetMetadataResponseDataApi](cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md) + - [GetPackagesResponse](cloudbeds_pms_v1_2/docs/GetPackagesResponse.md) + - [GetPackagesResponseData](cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md) + - [GetPaymentMethodsResponse](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md) + - [GetPaymentMethodsResponseData](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md) + - [GetPaymentMethodsResponseDataGatewayInner](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md) + - [GetPaymentMethodsResponseDataMethodsInner](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md) + - [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) + - [GetPaymentsCapabilitiesResponse](cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md) + - [GetPaymentsCapabilitiesResponseDataInner](cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md) + - [GetPaymentsResponse](cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md) + - [GetPaymentsResponseDataInner](cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md) + - [GetPaymentsResponseDataInnerPaymentAllocationInner](cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md) + - [GetRateJobsResponse](cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md) + - [GetRateJobsResponseDataInner](cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md) + - [GetRateJobsResponseDataInnerUpdatesInner](cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md) + - [GetRatePlansResponse](cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md) + - [GetRatePlansResponseDataInner](cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md) + - [GetRatePlansResponseDataInnerAddOnsInner](cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md) + - [GetRatePlansResponseDataInnerRoomRateDetailedInner](cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md) + - [GetRateResponse](cloudbeds_pms_v1_2/docs/GetRateResponse.md) + - [GetRateResponseData](cloudbeds_pms_v1_2/docs/GetRateResponseData.md) + - [GetRateResponseDataRoomRateDetailedInner](cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md) + - [GetReservationAssignmentsResponse](cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md) + - [GetReservationAssignmentsResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md) + - [GetReservationAssignmentsResponseDataInnerAssignedInner](cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md) + - [GetReservationInvoiceInformationResponse](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md) + - [GetReservationInvoiceInformationResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md) + - [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) + - [GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) + - [GetReservationNotesResponse](cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md) + - [GetReservationNotesResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md) + - [GetReservationResponse](cloudbeds_pms_v1_2/docs/GetReservationResponse.md) + - [GetReservationResponseData](cloudbeds_pms_v1_2/docs/GetReservationResponseData.md) + - [GetReservationResponseDataAssignedInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md) + - [GetReservationResponseDataAssignedInnerDailyRatesInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md) + - [GetReservationResponseDataBalanceDetailedInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md) + - [GetReservationResponseDataCardsOnFileInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md) + - [GetReservationResponseDataGuestListValue](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md) + - [GetReservationResponseDataGuestListValueCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md) + - [GetReservationResponseDataGuestListValueRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md) + - [GetReservationResponseDataGuestListValueUnassignedRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md) + - [GetReservationResponseDataUnassignedInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md) + - [GetReservationRoomDetailsResponse](cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md) + - [GetReservationRoomDetailsResponseData](cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md) + - [GetReservationRoomDetailsResponseDataGuestsInner](cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md) + - [GetReservationsResponse](cloudbeds_pms_v1_2/docs/GetReservationsResponse.md) + - [GetReservationsResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md) + - [GetReservationsResponseDataInnerGuestListValue](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md) + - [GetReservationsResponseDataInnerGuestListValueRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md) + - [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) + - [GetReservationsResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md) + - [GetReservationsWithRateDetailsResponse](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md) + - [GetReservationsWithRateDetailsResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md) + - [GetReservationsWithRateDetailsResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) + - [GetReservationsWithRateDetailsResponseDataInnerSourceInner](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md) + - [GetRoomBlocksResponse](cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md) + - [GetRoomBlocksResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md) + - [GetRoomTypesResponse](cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md) + - [GetRoomTypesResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md) + - [GetRoomsFeesAndTaxesResponse](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md) + - [GetRoomsFeesAndTaxesResponseData](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md) + - [GetRoomsFeesAndTaxesResponseDataFeesInner](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md) + - [GetRoomsFeesAndTaxesResponseDataTaxesInner](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md) + - [GetRoomsResponse](cloudbeds_pms_v1_2/docs/GetRoomsResponse.md) + - [GetRoomsResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md) + - [GetRoomsResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md) + - [GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner](cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md) + - [GetRoomsUnassignedResponse](cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md) + - [GetRoomsUnassignedResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md) + - [GetRoomsUnassignedResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md) + - [GetSourcesResponse](cloudbeds_pms_v1_2/docs/GetSourcesResponse.md) + - [GetSourcesResponseDataInner](cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md) + - [GetSourcesResponseDataInnerFeesInner](cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md) + - [GetSourcesResponseDataInnerTaxesInner](cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md) + - [GetTaxesAndFeesResponse](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md) + - [GetTaxesAndFeesResponseDataInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md) + - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) + - [GetTransactionsResponse](cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md) + - [GetTransactionsResponseDataInner](cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md) + - [GetUserinfoResponse](cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md) + - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md) + - [GetUsersResponse](cloudbeds_pms_v1_2/docs/GetUsersResponse.md) + - [GetUsersResponseDataInner](cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md) + - [GetUsersResponseDataInnerUserRole](cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md) + - [GetWebhooksResponse](cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md) + - [GetWebhooksResponseDataInner](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md) + - [GetWebhooksResponseDataInnerEvent](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md) + - [GetWebhooksResponseDataInnerKey](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md) + - [GetWebhooksResponseDataInnerOwner](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md) + - [GetWebhooksResponseDataInnerSubscriptionData](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md) + - [PostAccessTokenResponse](cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md) + - [PostAccessTokenResponseResourcesInner](cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md) + - [PostAdjustmentResponse](cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md) + - [PostAdjustmentResponseData](cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md) + - [PostAppErrorResponse](cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md) + - [PostAppErrorResponseData](cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md) + - [PostAppPropertySettingResponse](cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md) + - [PostAppPropertySettingResponseData](cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md) + - [PostAppStateResponse](cloudbeds_pms_v1_2/docs/PostAppStateResponse.md) + - [PostAppendCustomItemResponse](cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md) + - [PostAppendCustomItemResponseData](cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md) + - [PostCardResponse](cloudbeds_pms_v1_2/docs/PostCardResponse.md) + - [PostCardResponseData](cloudbeds_pms_v1_2/docs/PostCardResponseData.md) + - [PostChargeResponse](cloudbeds_pms_v1_2/docs/PostChargeResponse.md) + - [PostChargeResponseData](cloudbeds_pms_v1_2/docs/PostChargeResponseData.md) + - [PostChargeResponseDataNextAction](cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md) + - [PostChargeResponseDataNextActionDetails](cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md) + - [PostCreateAllotmentBlockNotesResponse](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md) + - [PostCreateAllotmentBlockNotesResponseData](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) + - [PostCreateAllotmentBlockRequestAutoRelease](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md) + - [PostCreateAllotmentBlockResponse](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md) + - [PostCreateAllotmentBlockResponseDataInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) + - [PostCreateAllotmentBlockResponseDataInnerAutoRelease](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md) + - [PostCustomFieldResponse](cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md) + - [PostCustomFieldResponseData](cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md) + - [PostCustomItemRequestItemsInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md) + - [PostCustomItemRequestItemsInnerItemFeesInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md) + - [PostCustomItemRequestItemsInnerItemTaxesInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md) + - [PostCustomItemRequestPaymentsInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md) + - [PostCustomItemResponse](cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md) + - [PostCustomItemResponseData](cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md) + - [PostCustomPaymentMethodResponse](cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md) + - [PostDeleteAllotmentBlockResponse](cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md) + - [PostDeleteAppPropertySettingsResponse](cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md) + - [PostEmailScheduleRequestSchedule](cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md) + - [PostEmailScheduleRequestScheduleReservationEvent](cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md) + - [PostEmailScheduleRequestScheduleReservationStatusChange](cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md) + - [PostEmailScheduleResponse](cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md) + - [PostEmailTemplateRequestBody](cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md) + - [PostEmailTemplateRequestSubject](cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md) + - [PostEmailTemplateResponse](cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md) + - [PostFileResponse](cloudbeds_pms_v1_2/docs/PostFileResponse.md) + - [PostGovernmentReceiptResponse](cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md) + - [PostGroupNoteResponse](cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md) + - [PostGroupNoteResponseDataInner](cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md) + - [PostGuestDocumentResponse](cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md) + - [PostGuestDocumentResponseData](cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md) + - [PostGuestNoteResponse](cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md) + - [PostGuestPhotoResponse](cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md) + - [PostGuestRequestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md) + - [PostGuestResponse](cloudbeds_pms_v1_2/docs/PostGuestResponse.md) + - [PostGuestsToRoomResponse](cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md) + - [PostHousekeeperResponse](cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md) + - [PostHousekeepingAssignmentResponse](cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md) + - [PostHousekeepingStatusResponse](cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md) + - [PostHousekeepingStatusResponseData](cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md) + - [PostItemCategoryResponse](cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md) + - [PostItemRequestPaymentsInner](cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md) + - [PostItemResponse](cloudbeds_pms_v1_2/docs/PostItemResponse.md) + - [PostItemResponseData](cloudbeds_pms_v1_2/docs/PostItemResponseData.md) + - [PostItemsToInventoryRequestItem](cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md) + - [PostItemsToInventoryResponse](cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md) + - [PostItemsToInventoryResponseDataInner](cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md) + - [PostNewHouseAccountResponse](cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md) + - [PostNewHouseAccountResponseData](cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md) + - [PostPatchGroupResponse](cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md) + - [PostPatchGroupResponseDataInner](cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md) + - [PostPatchInvoiceResponse](cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md) + - [PostPatchRateRequestRatesInner](cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md) + - [PostPatchRateRequestRatesInnerInterval](cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md) + - [PostPatchRateResponse](cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md) + - [PostPaymentResponse](cloudbeds_pms_v1_2/docs/PostPaymentResponse.md) + - [PostPutAppPropertySettingsResponse](cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md) + - [PostPutGroupResponse](cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md) + - [PostPutRateRequestRatesInner](cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md) + - [PostPutRateRequestRatesInnerIntervalInner](cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md) + - [PostPutRateResponse](cloudbeds_pms_v1_2/docs/PostPutRateResponse.md) + - [PostReservationDocumentResponse](cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md) + - [PostReservationNoteResponse](cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md) + - [PostReservationRequestAdultsInner](cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md) + - [PostReservationRequestChildrenInner](cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md) + - [PostReservationRequestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md) + - [PostReservationRequestRoomsInner](cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md) + - [PostReservationResponse](cloudbeds_pms_v1_2/docs/PostReservationResponse.md) + - [PostReservationResponseUnassignedInner](cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md) + - [PostRoomAssignResponse](cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md) + - [PostRoomBlockRequestRoomsInner](cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md) + - [PostRoomBlockResponse](cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md) + - [PostRoomBlockResponseRoomsInner](cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md) + - [PostRoomCheckInResponse](cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md) + - [PostRoomCheckOutResponse](cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md) + - [PostUpdateAllotmentBlockNotesResponse](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md) + - [PostUpdateAllotmentBlockNotesResponseData](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) + - [PostUpdateAllotmentBlockRequestAutoRelease](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md) + - [PostUpdateAllotmentBlockResponse](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md) + - [PostUpdateAllotmentBlockResponseDataInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md) + - [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) + - [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) + - [PostVoidItemResponse](cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md) + - [PostVoidPaymentResponse](cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md) + - [PostWebhookResponse](cloudbeds_pms_v1_2/docs/PostWebhookResponse.md) + - [PostWebhookResponseData](cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md) + - [PutGuestNoteResponse](cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md) + - [PutGuestRequestGuestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md) + - [PutGuestResponse](cloudbeds_pms_v1_2/docs/PutGuestResponse.md) + - [PutHouseAccountStatusResponse](cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md) + - [PutHousekeeperResponse](cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md) + - [PutItemToInventoryResponse](cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md) + - [PutReservationNoteResponse](cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md) + - [PutReservationRequestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md) + - [PutReservationRequestRoomsInner](cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md) + - [PutReservationResponse](cloudbeds_pms_v1_2/docs/PutReservationResponse.md) + - [PutRoomBlockRequestRoomsInner](cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md) + - [PutRoomBlockResponse](cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md) + + + +## Documentation For Authorization + + +Authentication schemes defined for the API: + +### api_key + +- **Type**: API key +- **API key parameter name**: x-api-key +- **Location**: HTTP header + + +### OAuth2 + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: +- **Scopes**: + - **delete:adjustment**: delete:adjustment + - **delete:appPropertySettings**: delete:appPropertySettings + - **delete:roomblock**: delete:roomblock + - **read:adjustment**: read:adjustment + - **read:allotmentBlock**: read:allotmentBlock + - **read:appPropertySettings**: read:appPropertySettings + - **read:communication**: read:communication + - **read:currency**: read:currency + - **read:customFields**: read:customFields + - **read:dashboard**: read:dashboard + - **read:group**: read:group + - **read:guest**: read:guest + - **read:hotel**: read:hotel + - **read:houseAccount**: read:houseAccount + - **read:housekeeping**: read:housekeeping + - **read:item**: read:item + - **read:package**: read:package + - **read:payment**: read:payment + - **read:rate**: read:rate + - **read:reservation**: read:reservation + - **read:room**: read:room + - **read:roomblock**: read:roomblock + - **read:taxesAndFees**: read:taxesAndFees + - **read:user**: read:user + - **write:adjustment**: write:adjustment + - **write:allotmentBlock**: write:allotmentBlock + - **write:appError**: write:appError + - **write:appPropertySettings**: write:appPropertySettings + - **write:communication**: write:communication + - **write:customFields**: write:customFields + - **write:group**: write:group + - **write:guest**: write:guest + - **write:hotel**: write:hotel + - **write:houseAccount**: write:houseAccount + - **write:housekeeping**: write:housekeeping + - **write:item**: write:item + - **write:payment**: write:payment + - **write:rate**: write:rate + - **write:reservation**: write:reservation + - **write:room**: write:room + - **write:roomblock**: write:roomblock + + +## Author + + + + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..3eefcb9 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.0 diff --git a/cloudbeds_pms_v1_2/__init__.py b/cloudbeds_pms_v1_2/__init__.py new file mode 100644 index 0000000..b3c3da0 --- /dev/null +++ b/cloudbeds_pms_v1_2/__init__.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +__version__ = "1.0.0" + +# import apis into sdk package +from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi +from cloudbeds_pms_v1_2.api.allotment_blocks_api import AllotmentBlocksApi +from cloudbeds_pms_v1_2.api.app_settings_api import AppSettingsApi +from cloudbeds_pms_v1_2.api.authentication_api import AuthenticationApi +from cloudbeds_pms_v1_2.api.currency_api import CurrencyApi +from cloudbeds_pms_v1_2.api.custom_fields_api import CustomFieldsApi +from cloudbeds_pms_v1_2.api.dashboard_api import DashboardApi +from cloudbeds_pms_v1_2.api.emails_api import EmailsApi +from cloudbeds_pms_v1_2.api.groups_api import GroupsApi +from cloudbeds_pms_v1_2.api.guest_api import GuestApi +from cloudbeds_pms_v1_2.api.hotel_api import HotelApi +from cloudbeds_pms_v1_2.api.house_account_api import HouseAccountApi +from cloudbeds_pms_v1_2.api.housekeeping_api import HousekeepingApi +from cloudbeds_pms_v1_2.api.integration_api import IntegrationApi +from cloudbeds_pms_v1_2.api.invoices_api import InvoicesApi +from cloudbeds_pms_v1_2.api.item_api import ItemApi +from cloudbeds_pms_v1_2.api.package_api import PackageApi +from cloudbeds_pms_v1_2.api.payment_api import PaymentApi +from cloudbeds_pms_v1_2.api.rate_api import RateApi +from cloudbeds_pms_v1_2.api.reservation_api import ReservationApi +from cloudbeds_pms_v1_2.api.room_api import RoomApi +from cloudbeds_pms_v1_2.api.taxes_and_fees_api import TaxesAndFeesApi +from cloudbeds_pms_v1_2.api.user_api import UserApi + +# import ApiClient +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.api_client import ApiClient +from cloudbeds_pms_v1_2.configuration import Configuration +from cloudbeds_pms_v1_2.exceptions import OpenApiException +from cloudbeds_pms_v1_2.exceptions import ApiTypeError +from cloudbeds_pms_v1_2.exceptions import ApiValueError +from cloudbeds_pms_v1_2.exceptions import ApiKeyError +from cloudbeds_pms_v1_2.exceptions import ApiAttributeError +from cloudbeds_pms_v1_2.exceptions import ApiException + +# import models into sdk package +from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData +from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner +from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner +from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData +from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner +from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner +from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData +from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse diff --git a/cloudbeds_pms_v1_2/api/__init__.py b/cloudbeds_pms_v1_2/api/__init__.py new file mode 100644 index 0000000..bf92439 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/__init__.py @@ -0,0 +1,27 @@ +# flake8: noqa + +# import apis into api package +from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi +from cloudbeds_pms_v1_2.api.allotment_blocks_api import AllotmentBlocksApi +from cloudbeds_pms_v1_2.api.app_settings_api import AppSettingsApi +from cloudbeds_pms_v1_2.api.authentication_api import AuthenticationApi +from cloudbeds_pms_v1_2.api.currency_api import CurrencyApi +from cloudbeds_pms_v1_2.api.custom_fields_api import CustomFieldsApi +from cloudbeds_pms_v1_2.api.dashboard_api import DashboardApi +from cloudbeds_pms_v1_2.api.emails_api import EmailsApi +from cloudbeds_pms_v1_2.api.groups_api import GroupsApi +from cloudbeds_pms_v1_2.api.guest_api import GuestApi +from cloudbeds_pms_v1_2.api.hotel_api import HotelApi +from cloudbeds_pms_v1_2.api.house_account_api import HouseAccountApi +from cloudbeds_pms_v1_2.api.housekeeping_api import HousekeepingApi +from cloudbeds_pms_v1_2.api.integration_api import IntegrationApi +from cloudbeds_pms_v1_2.api.invoices_api import InvoicesApi +from cloudbeds_pms_v1_2.api.item_api import ItemApi +from cloudbeds_pms_v1_2.api.package_api import PackageApi +from cloudbeds_pms_v1_2.api.payment_api import PaymentApi +from cloudbeds_pms_v1_2.api.rate_api import RateApi +from cloudbeds_pms_v1_2.api.reservation_api import ReservationApi +from cloudbeds_pms_v1_2.api.room_api import RoomApi +from cloudbeds_pms_v1_2.api.taxes_and_fees_api import TaxesAndFeesApi +from cloudbeds_pms_v1_2.api.user_api import UserApi + diff --git a/cloudbeds_pms_v1_2/api/adjustment_api.py b/cloudbeds_pms_v1_2/api/adjustment_api.py new file mode 100644 index 0000000..b4f1bd8 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/adjustment_api.py @@ -0,0 +1,1252 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class AdjustmentApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_adjustment_delete( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteAdjustmentResponse: + """deleteAdjustment + + Voids the AdjustmentID transaction on the specified reservationID + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_adjustment_delete_serialize( + reservation_id=reservation_id, + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_adjustment_delete_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteAdjustmentResponse]: + """deleteAdjustment + + Voids the AdjustmentID transaction on the specified reservationID + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_adjustment_delete_serialize( + reservation_id=reservation_id, + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_adjustment_delete_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteAdjustment + + Voids the AdjustmentID transaction on the specified reservationID + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_adjustment_delete_serialize( + reservation_id=reservation_id, + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_adjustment_delete_serialize( + self, + reservation_id, + adjustment_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if adjustment_id is not None: + + _query_params.append(('adjustmentID', adjustment_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/deleteAdjustment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_adjustment_get( + self, + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAdjustmentResponse: + """getAdjustment + + Gets the details for the one AdjustmentID + + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustment_get_serialize( + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_adjustment_get_with_http_info( + self, + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAdjustmentResponse]: + """getAdjustment + + Gets the details for the one AdjustmentID + + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustment_get_serialize( + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_adjustment_get_without_preload_content( + self, + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAdjustment + + Gets the details for the one AdjustmentID + + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustment_get_serialize( + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_adjustment_get_serialize( + self, + adjustment_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if adjustment_id is not None: + + _query_params.append(('adjustmentID', adjustment_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAdjustment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_adjustments_get( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAdjustmentsResponse: + """getAdjustments + + Gets all the Adjustments and their details to a specified reservation + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustments_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_adjustments_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAdjustmentsResponse]: + """getAdjustments + + Gets all the Adjustments and their details to a specified reservation + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustments_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_adjustments_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAdjustments + + Gets all the Adjustments and their details to a specified reservation + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustments_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_adjustments_get_serialize( + self, + reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAdjustments', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_adjustment_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, + notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAdjustmentResponse: + """postAdjustment + + Adds an adjustment to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param type: Apply Adjustment to + :type type: str + :param amount: Adjustment amount + :type amount: float + :param notes: Adjustment notes + :type notes: str + :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate + :type item_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjustment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + type=type, + amount=amount, + notes=notes, + item_id=item_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_adjustment_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, + notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAdjustmentResponse]: + """postAdjustment + + Adds an adjustment to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param type: Apply Adjustment to + :type type: str + :param amount: Adjustment amount + :type amount: float + :param notes: Adjustment notes + :type notes: str + :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate + :type item_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjustment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + type=type, + amount=amount, + notes=notes, + item_id=item_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_adjustment_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, + notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postAdjustment + + Adds an adjustment to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param type: Apply Adjustment to + :type type: str + :param amount: Adjustment amount + :type amount: float + :param notes: Adjustment notes + :type notes: str + :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate + :type item_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjustment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + type=type, + amount=amount, + notes=notes, + item_id=item_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_adjustment_post_serialize( + self, + property_id, + reservation_id, + type, + amount, + notes, + item_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if type is not None: + _form_params.append(('type', type)) + if amount is not None: + _form_params.append(('amount', amount)) + if notes is not None: + _form_params.append(('notes', notes)) + if item_id is not None: + _form_params.append(('itemID', item_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postAdjustment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/allotment_blocks_api.py b/cloudbeds_pms_v1_2/api/allotment_blocks_api.py new file mode 100644 index 0000000..5a20c26 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/allotment_blocks_api.py @@ -0,0 +1,2362 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictInt, StrictStr, field_validator +from typing import List, Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class AllotmentBlocksApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_allotment_block_notes_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment Block Code")] = None, + text: Annotated[Optional[StrictStr], Field(description="Note's text")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCreateAllotmentBlockNotesResponse: + """createAllotmentBlockNotes + + Add a note to an allotment block + + :param property_id: Property ID + :type property_id: str + :param allotment_block_code: Allotment Block Code + :type allotment_block_code: str + :param text: Note's text + :type text: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_allotment_block_notes_post_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + text=text, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCreateAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_allotment_block_notes_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment Block Code")] = None, + text: Annotated[Optional[StrictStr], Field(description="Note's text")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCreateAllotmentBlockNotesResponse]: + """createAllotmentBlockNotes + + Add a note to an allotment block + + :param property_id: Property ID + :type property_id: str + :param allotment_block_code: Allotment Block Code + :type allotment_block_code: str + :param text: Note's text + :type text: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_allotment_block_notes_post_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + text=text, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCreateAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_allotment_block_notes_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment Block Code")] = None, + text: Annotated[Optional[StrictStr], Field(description="Note's text")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """createAllotmentBlockNotes + + Add a note to an allotment block + + :param property_id: Property ID + :type property_id: str + :param allotment_block_code: Allotment Block Code + :type allotment_block_code: str + :param text: Note's text + :type text: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_allotment_block_notes_post_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + text=text, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCreateAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_allotment_block_notes_post_serialize( + self, + property_id, + allotment_block_code, + text, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if allotment_block_code is not None: + _form_params.append(('allotmentBlockCode', allotment_block_code)) + if text is not None: + _form_params.append(('text', text)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/createAllotmentBlockNotes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_allotment_block_post( + self, + group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, + allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + auto_release: Optional[PostCreateAllotmentBlockRequestAutoRelease] = None, + allotment_intervals: Annotated[Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCreateAllotmentBlockResponse: + """createAllotmentBlock + + Retreive allotment blocks @apiQuery {Integer} propertyID Property ID + + :param group_code: The unique identifier of the group profile the allotment block should be created + :type group_code: str + :param allotment_block_name: The name for the allotment block + :type allotment_block_name: str + :param rate_type: The rate type for the associated intervals + :type rate_type: str + :param allotment_type: The allotment type + :type allotment_type: str + :param allotment_block_status: The status for the allotment block under + :type allotment_block_status: str + :param auto_release: + :type auto_release: PostCreateAllotmentBlockRequestAutoRelease + :param allotment_intervals: The day-based data for the allotment block. + :type allotment_intervals: List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_allotment_block_post_serialize( + group_code=group_code, + allotment_block_name=allotment_block_name, + rate_type=rate_type, + allotment_type=allotment_type, + allotment_block_status=allotment_block_status, + auto_release=auto_release, + allotment_intervals=allotment_intervals, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCreateAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_allotment_block_post_with_http_info( + self, + group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, + allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + auto_release: Optional[PostCreateAllotmentBlockRequestAutoRelease] = None, + allotment_intervals: Annotated[Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCreateAllotmentBlockResponse]: + """createAllotmentBlock + + Retreive allotment blocks @apiQuery {Integer} propertyID Property ID + + :param group_code: The unique identifier of the group profile the allotment block should be created + :type group_code: str + :param allotment_block_name: The name for the allotment block + :type allotment_block_name: str + :param rate_type: The rate type for the associated intervals + :type rate_type: str + :param allotment_type: The allotment type + :type allotment_type: str + :param allotment_block_status: The status for the allotment block under + :type allotment_block_status: str + :param auto_release: + :type auto_release: PostCreateAllotmentBlockRequestAutoRelease + :param allotment_intervals: The day-based data for the allotment block. + :type allotment_intervals: List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_allotment_block_post_serialize( + group_code=group_code, + allotment_block_name=allotment_block_name, + rate_type=rate_type, + allotment_type=allotment_type, + allotment_block_status=allotment_block_status, + auto_release=auto_release, + allotment_intervals=allotment_intervals, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCreateAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_allotment_block_post_without_preload_content( + self, + group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, + allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + auto_release: Optional[PostCreateAllotmentBlockRequestAutoRelease] = None, + allotment_intervals: Annotated[Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """createAllotmentBlock + + Retreive allotment blocks @apiQuery {Integer} propertyID Property ID + + :param group_code: The unique identifier of the group profile the allotment block should be created + :type group_code: str + :param allotment_block_name: The name for the allotment block + :type allotment_block_name: str + :param rate_type: The rate type for the associated intervals + :type rate_type: str + :param allotment_type: The allotment type + :type allotment_type: str + :param allotment_block_status: The status for the allotment block under + :type allotment_block_status: str + :param auto_release: + :type auto_release: PostCreateAllotmentBlockRequestAutoRelease + :param allotment_intervals: The day-based data for the allotment block. + :type allotment_intervals: List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_allotment_block_post_serialize( + group_code=group_code, + allotment_block_name=allotment_block_name, + rate_type=rate_type, + allotment_type=allotment_type, + allotment_block_status=allotment_block_status, + auto_release=auto_release, + allotment_intervals=allotment_intervals, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCreateAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_allotment_block_post_serialize( + self, + group_code, + allotment_block_name, + rate_type, + allotment_type, + allotment_block_status, + auto_release, + allotment_intervals, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'allotmentIntervals': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if group_code is not None: + _form_params.append(('groupCode', group_code)) + if allotment_block_name is not None: + _form_params.append(('allotmentBlockName', allotment_block_name)) + if rate_type is not None: + _form_params.append(('rateType', rate_type)) + if allotment_type is not None: + _form_params.append(('allotmentType', allotment_type)) + if allotment_block_status is not None: + _form_params.append(('allotmentBlockStatus', allotment_block_status)) + if auto_release is not None: + _form_params.append(('autoRelease', auto_release)) + if allotment_intervals is not None: + _form_params.append(('allotmentIntervals', allotment_intervals)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/createAllotmentBlock', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_allotment_block_post( + self, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="The unique code of the allotment Block")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostDeleteAllotmentBlockResponse: + """deleteAllotmentBlock + + Delete allotment blocks + + :param allotment_block_code: The unique code of the allotment Block + :type allotment_block_code: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_allotment_block_post_serialize( + allotment_block_code=allotment_block_code, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostDeleteAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_allotment_block_post_with_http_info( + self, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="The unique code of the allotment Block")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostDeleteAllotmentBlockResponse]: + """deleteAllotmentBlock + + Delete allotment blocks + + :param allotment_block_code: The unique code of the allotment Block + :type allotment_block_code: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_allotment_block_post_serialize( + allotment_block_code=allotment_block_code, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostDeleteAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_allotment_block_post_without_preload_content( + self, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="The unique code of the allotment Block")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteAllotmentBlock + + Delete allotment blocks + + :param allotment_block_code: The unique code of the allotment Block + :type allotment_block_code: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_allotment_block_post_serialize( + allotment_block_code=allotment_block_code, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostDeleteAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_allotment_block_post_serialize( + self, + allotment_block_code, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if allotment_block_code is not None: + _form_params.append(('allotmentBlockCode', allotment_block_code)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/deleteAllotmentBlock', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_allotment_blocks_get( + self, + property_id: Annotated[StrictStr, Field(description="Property ID (optional, by default all authorized properties will be included)")], + allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], + group_code: Annotated[StrictStr, Field(description="A group profile code")], + allotment_block_status: Annotated[StrictStr, Field(description="Allotment block status(es)")], + page_size: Annotated[StrictInt, Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAllotmentBlocksResponse: + """getAllotmentBlocks + + Retrieve allotment blocks + + :param property_id: Property ID (optional, by default all authorized properties will be included) (required) + :type property_id: str + :param allotment_block_code: Allotment block code (required) + :type allotment_block_code: str + :param group_code: A group profile code (required) + :type group_code: str + :param allotment_block_status: Allotment block status(es) (required) + :type allotment_block_status: str + :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_allotment_blocks_get_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + group_code=group_code, + allotment_block_status=allotment_block_status, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAllotmentBlocksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_allotment_blocks_get_with_http_info( + self, + property_id: Annotated[StrictStr, Field(description="Property ID (optional, by default all authorized properties will be included)")], + allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], + group_code: Annotated[StrictStr, Field(description="A group profile code")], + allotment_block_status: Annotated[StrictStr, Field(description="Allotment block status(es)")], + page_size: Annotated[StrictInt, Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAllotmentBlocksResponse]: + """getAllotmentBlocks + + Retrieve allotment blocks + + :param property_id: Property ID (optional, by default all authorized properties will be included) (required) + :type property_id: str + :param allotment_block_code: Allotment block code (required) + :type allotment_block_code: str + :param group_code: A group profile code (required) + :type group_code: str + :param allotment_block_status: Allotment block status(es) (required) + :type allotment_block_status: str + :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_allotment_blocks_get_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + group_code=group_code, + allotment_block_status=allotment_block_status, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAllotmentBlocksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_allotment_blocks_get_without_preload_content( + self, + property_id: Annotated[StrictStr, Field(description="Property ID (optional, by default all authorized properties will be included)")], + allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], + group_code: Annotated[StrictStr, Field(description="A group profile code")], + allotment_block_status: Annotated[StrictStr, Field(description="Allotment block status(es)")], + page_size: Annotated[StrictInt, Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAllotmentBlocks + + Retrieve allotment blocks + + :param property_id: Property ID (optional, by default all authorized properties will be included) (required) + :type property_id: str + :param allotment_block_code: Allotment block code (required) + :type allotment_block_code: str + :param group_code: A group profile code (required) + :type group_code: str + :param allotment_block_status: Allotment block status(es) (required) + :type allotment_block_status: str + :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_allotment_blocks_get_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + group_code=group_code, + allotment_block_status=allotment_block_status, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAllotmentBlocksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_allotment_blocks_get_serialize( + self, + property_id, + allotment_block_code, + group_code, + allotment_block_status, + page_size, + page_number, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if allotment_block_code is not None: + + _query_params.append(('allotmentBlockCode', allotment_block_code)) + + if group_code is not None: + + _query_params.append(('groupCode', group_code)) + + if allotment_block_status is not None: + + _query_params.append(('allotmentBlockStatus', allotment_block_status)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAllotmentBlocks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_allotment_block_notes_get( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], + status: Annotated[Optional[StrictStr], Field(description="Note status")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of Items per Page (min 1, max 100)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetListAllotmentBlockNotesResponse: + """listAllotmentBlockNotes + + List notes added to an allotment block + + :param property_id: Property ID (required) + :type property_id: str + :param allotment_block_code: Allotment block code (required) + :type allotment_block_code: str + :param status: Note status + :type status: str + :param page_number: Page + :type page_number: int + :param page_size: Number of Items per Page (min 1, max 100) + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_allotment_block_notes_get_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + status=status, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetListAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_allotment_block_notes_get_with_http_info( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], + status: Annotated[Optional[StrictStr], Field(description="Note status")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of Items per Page (min 1, max 100)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetListAllotmentBlockNotesResponse]: + """listAllotmentBlockNotes + + List notes added to an allotment block + + :param property_id: Property ID (required) + :type property_id: str + :param allotment_block_code: Allotment block code (required) + :type allotment_block_code: str + :param status: Note status + :type status: str + :param page_number: Page + :type page_number: int + :param page_size: Number of Items per Page (min 1, max 100) + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_allotment_block_notes_get_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + status=status, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetListAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_allotment_block_notes_get_without_preload_content( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], + status: Annotated[Optional[StrictStr], Field(description="Note status")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of Items per Page (min 1, max 100)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """listAllotmentBlockNotes + + List notes added to an allotment block + + :param property_id: Property ID (required) + :type property_id: str + :param allotment_block_code: Allotment block code (required) + :type allotment_block_code: str + :param status: Note status + :type status: str + :param page_number: Page + :type page_number: int + :param page_size: Number of Items per Page (min 1, max 100) + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_allotment_block_notes_get_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + status=status, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetListAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_allotment_block_notes_get_serialize( + self, + property_id, + allotment_block_code, + status, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if allotment_block_code is not None: + + _query_params.append(('allotmentBlockCode', allotment_block_code)) + + if status is not None: + + _query_params.append(('status', status)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/listAllotmentBlockNotes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_allotment_block_notes_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment Block Code")] = None, + note_id: Annotated[Optional[StrictStr], Field(description="Note's ID")] = None, + text: Annotated[Optional[StrictStr], Field(description="Note's text (null for no change)")] = None, + status: Annotated[Optional[StrictStr], Field(description="Note status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostUpdateAllotmentBlockNotesResponse: + """updateAllotmentBlockNotes + + Update a note on an allotment block + + :param property_id: Property ID + :type property_id: str + :param allotment_block_code: Allotment Block Code + :type allotment_block_code: str + :param note_id: Note's ID + :type note_id: str + :param text: Note's text (null for no change) + :type text: str + :param status: Note status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_allotment_block_notes_post_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + note_id=note_id, + text=text, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostUpdateAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_allotment_block_notes_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment Block Code")] = None, + note_id: Annotated[Optional[StrictStr], Field(description="Note's ID")] = None, + text: Annotated[Optional[StrictStr], Field(description="Note's text (null for no change)")] = None, + status: Annotated[Optional[StrictStr], Field(description="Note status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostUpdateAllotmentBlockNotesResponse]: + """updateAllotmentBlockNotes + + Update a note on an allotment block + + :param property_id: Property ID + :type property_id: str + :param allotment_block_code: Allotment Block Code + :type allotment_block_code: str + :param note_id: Note's ID + :type note_id: str + :param text: Note's text (null for no change) + :type text: str + :param status: Note status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_allotment_block_notes_post_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + note_id=note_id, + text=text, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostUpdateAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_allotment_block_notes_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment Block Code")] = None, + note_id: Annotated[Optional[StrictStr], Field(description="Note's ID")] = None, + text: Annotated[Optional[StrictStr], Field(description="Note's text (null for no change)")] = None, + status: Annotated[Optional[StrictStr], Field(description="Note status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """updateAllotmentBlockNotes + + Update a note on an allotment block + + :param property_id: Property ID + :type property_id: str + :param allotment_block_code: Allotment Block Code + :type allotment_block_code: str + :param note_id: Note's ID + :type note_id: str + :param text: Note's text (null for no change) + :type text: str + :param status: Note status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_allotment_block_notes_post_serialize( + property_id=property_id, + allotment_block_code=allotment_block_code, + note_id=note_id, + text=text, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostUpdateAllotmentBlockNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_allotment_block_notes_post_serialize( + self, + property_id, + allotment_block_code, + note_id, + text, + status, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if allotment_block_code is not None: + _form_params.append(('allotmentBlockCode', allotment_block_code)) + if note_id is not None: + _form_params.append(('noteID', note_id)) + if text is not None: + _form_params.append(('text', text)) + if status is not None: + _form_params.append(('status', status)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/updateAllotmentBlockNotes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_allotment_block_post( + self, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="The allotment block code identifying the allotment block to update")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + auto_release: Optional[PostUpdateAllotmentBlockRequestAutoRelease] = None, + allotment_intervals: Annotated[Optional[List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostUpdateAllotmentBlockResponse: + """updateAllotmentBlock + + Update an allotment block @apiQuery {Integer} propertyID Property ID + + :param allotment_block_code: The allotment block code identifying the allotment block to update + :type allotment_block_code: str + :param allotment_block_name: The name for the allotment block + :type allotment_block_name: str + :param allotment_type: The allotment type + :type allotment_type: str + :param allotment_block_status: The status for the allotment block under + :type allotment_block_status: str + :param auto_release: + :type auto_release: PostUpdateAllotmentBlockRequestAutoRelease + :param allotment_intervals: The day-based data for the allotment block. + :type allotment_intervals: List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_allotment_block_post_serialize( + allotment_block_code=allotment_block_code, + allotment_block_name=allotment_block_name, + allotment_type=allotment_type, + allotment_block_status=allotment_block_status, + auto_release=auto_release, + allotment_intervals=allotment_intervals, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostUpdateAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_allotment_block_post_with_http_info( + self, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="The allotment block code identifying the allotment block to update")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + auto_release: Optional[PostUpdateAllotmentBlockRequestAutoRelease] = None, + allotment_intervals: Annotated[Optional[List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostUpdateAllotmentBlockResponse]: + """updateAllotmentBlock + + Update an allotment block @apiQuery {Integer} propertyID Property ID + + :param allotment_block_code: The allotment block code identifying the allotment block to update + :type allotment_block_code: str + :param allotment_block_name: The name for the allotment block + :type allotment_block_name: str + :param allotment_type: The allotment type + :type allotment_type: str + :param allotment_block_status: The status for the allotment block under + :type allotment_block_status: str + :param auto_release: + :type auto_release: PostUpdateAllotmentBlockRequestAutoRelease + :param allotment_intervals: The day-based data for the allotment block. + :type allotment_intervals: List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_allotment_block_post_serialize( + allotment_block_code=allotment_block_code, + allotment_block_name=allotment_block_name, + allotment_type=allotment_type, + allotment_block_status=allotment_block_status, + auto_release=auto_release, + allotment_intervals=allotment_intervals, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostUpdateAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_allotment_block_post_without_preload_content( + self, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="The allotment block code identifying the allotment block to update")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + auto_release: Optional[PostUpdateAllotmentBlockRequestAutoRelease] = None, + allotment_intervals: Annotated[Optional[List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """updateAllotmentBlock + + Update an allotment block @apiQuery {Integer} propertyID Property ID + + :param allotment_block_code: The allotment block code identifying the allotment block to update + :type allotment_block_code: str + :param allotment_block_name: The name for the allotment block + :type allotment_block_name: str + :param allotment_type: The allotment type + :type allotment_type: str + :param allotment_block_status: The status for the allotment block under + :type allotment_block_status: str + :param auto_release: + :type auto_release: PostUpdateAllotmentBlockRequestAutoRelease + :param allotment_intervals: The day-based data for the allotment block. + :type allotment_intervals: List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_allotment_block_post_serialize( + allotment_block_code=allotment_block_code, + allotment_block_name=allotment_block_name, + allotment_type=allotment_type, + allotment_block_status=allotment_block_status, + auto_release=auto_release, + allotment_intervals=allotment_intervals, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostUpdateAllotmentBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_allotment_block_post_serialize( + self, + allotment_block_code, + allotment_block_name, + allotment_type, + allotment_block_status, + auto_release, + allotment_intervals, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'allotmentIntervals': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if allotment_block_code is not None: + _form_params.append(('allotmentBlockCode', allotment_block_code)) + if allotment_block_name is not None: + _form_params.append(('allotmentBlockName', allotment_block_name)) + if allotment_type is not None: + _form_params.append(('allotmentType', allotment_type)) + if allotment_block_status is not None: + _form_params.append(('allotmentBlockStatus', allotment_block_status)) + if auto_release is not None: + _form_params.append(('autoRelease', auto_release)) + if allotment_intervals is not None: + _form_params.append(('allotmentIntervals', allotment_intervals)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/updateAllotmentBlock', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/app_settings_api.py b/cloudbeds_pms_v1_2/api/app_settings_api.py new file mode 100644 index 0000000..4644458 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/app_settings_api.py @@ -0,0 +1,1238 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class AppSettingsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_app_property_settings_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Key")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostDeleteAppPropertySettingsResponse: + """deleteAppPropertySettings + + + + :param property_id: Key + :type property_id: str + :param key: Key + :type key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_app_property_settings_post_serialize( + property_id=property_id, + key=key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostDeleteAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_app_property_settings_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Key")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostDeleteAppPropertySettingsResponse]: + """deleteAppPropertySettings + + + + :param property_id: Key + :type property_id: str + :param key: Key + :type key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_app_property_settings_post_serialize( + property_id=property_id, + key=key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostDeleteAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_app_property_settings_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Key")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteAppPropertySettings + + + + :param property_id: Key + :type property_id: str + :param key: Key + :type key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_app_property_settings_post_serialize( + property_id=property_id, + key=key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostDeleteAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_app_property_settings_post_serialize( + self, + property_id, + key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if key is not None: + _form_params.append(('key', key)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/deleteAppPropertySettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_app_property_settings_get( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAppPropertySettingsResponse: + """getAppPropertySettings + + Returns the app property settings + + :param property_id: Property ID (required) + :type property_id: str + :param key: Key + :type key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_property_settings_get_serialize( + property_id=property_id, + key=key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_app_property_settings_get_with_http_info( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAppPropertySettingsResponse]: + """getAppPropertySettings + + Returns the app property settings + + :param property_id: Property ID (required) + :type property_id: str + :param key: Key + :type key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_property_settings_get_serialize( + property_id=property_id, + key=key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_app_property_settings_get_without_preload_content( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAppPropertySettings + + Returns the app property settings + + :param property_id: Property ID (required) + :type property_id: str + :param key: Key + :type key: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_property_settings_get_serialize( + property_id=property_id, + key=key, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_app_property_settings_get_serialize( + self, + property_id, + key, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if key is not None: + + _query_params.append(('key', key)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAppPropertySettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_app_property_settings_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + value: Annotated[Optional[StrictStr], Field(description="Value")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAppPropertySettingResponse: + """postAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param app_client_id: Application Client ID + :type app_client_id: str + :param key: Key + :type key: str + :param value: Value + :type value: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_property_settings_post_serialize( + property_id=property_id, + app_client_id=app_client_id, + key=key, + value=value, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppPropertySettingResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_app_property_settings_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + value: Annotated[Optional[StrictStr], Field(description="Value")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAppPropertySettingResponse]: + """postAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param app_client_id: Application Client ID + :type app_client_id: str + :param key: Key + :type key: str + :param value: Value + :type value: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_property_settings_post_serialize( + property_id=property_id, + app_client_id=app_client_id, + key=key, + value=value, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppPropertySettingResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_app_property_settings_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + value: Annotated[Optional[StrictStr], Field(description="Value")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param app_client_id: Application Client ID + :type app_client_id: str + :param key: Key + :type key: str + :param value: Value + :type value: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_property_settings_post_serialize( + property_id=property_id, + app_client_id=app_client_id, + key=key, + value=value, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppPropertySettingResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_app_property_settings_post_serialize( + self, + property_id, + app_client_id, + key, + value, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if app_client_id is not None: + _form_params.append(('appClientID', app_client_id)) + if key is not None: + _form_params.append(('key', key)) + if value is not None: + _form_params.append(('value', value)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postAppPropertySettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_app_property_settings_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + value: Annotated[Optional[StrictStr], Field(description="Value")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPutAppPropertySettingsResponse: + """putAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param key: Key + :type key: str + :param value: Value + :type value: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_app_property_settings_post_serialize( + property_id=property_id, + key=key, + value=value, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_app_property_settings_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + value: Annotated[Optional[StrictStr], Field(description="Value")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPutAppPropertySettingsResponse]: + """putAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param key: Key + :type key: str + :param value: Value + :type value: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_app_property_settings_post_serialize( + property_id=property_id, + key=key, + value=value, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_app_property_settings_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + key: Annotated[Optional[StrictStr], Field(description="Key")] = None, + value: Annotated[Optional[StrictStr], Field(description="Value")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param key: Key + :type key: str + :param value: Value + :type value: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_app_property_settings_post_serialize( + property_id=property_id, + key=key, + value=value, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_app_property_settings_post_serialize( + self, + property_id, + key, + value, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if key is not None: + _form_params.append(('key', key)) + if value is not None: + _form_params.append(('value', value)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/putAppPropertySettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/authentication_api.py b/cloudbeds_pms_v1_2/api/authentication_api.py new file mode 100644 index 0000000..b06f93d --- /dev/null +++ b/cloudbeds_pms_v1_2/api/authentication_api.py @@ -0,0 +1,913 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class AuthenticationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def access_token_post( + self, + grant_type: Annotated[Optional[StrictStr], Field(description="The OAuth2 grant type.")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="The client identifier. Each client must be provisioned an identifier.")] = None, + client_secret: Annotated[Optional[StrictStr], Field(description="The client secret. Each client must be provisioned a secret.")] = None, + redirect_uri: Annotated[Optional[StrictStr], Field(description="The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key').")] = None, + code: Annotated[Optional[StrictStr], Field(description="An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key').")] = None, + refresh_token: Annotated[Optional[StrictStr], Field(description="A refresh token to renew an access_token (Required for grant type 'refresh_token' only).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAccessTokenResponse: + """access_token + + Query the authorization server for an access token used to access property resources.
If the automatic delivery method for API keys is used, the grant type `urn:ietf:params:oauth:grant-type:api-key` needs to be used to request an API key. This grant type requires `grant_type=urn:ietf:params:oauth:grant-type:api-key`, `client_id`, `client_secret`, `redirect_uri` and `code`.
For OAuth 2.0., two different grant types (`authorization_code`, `refresh_token`) are supported. Authorization code grant type requires `grant_type=authorization_code`, `client_id`, `client_secret`, `redirect_uri`, `code`. Refresh token grant type requires `grant_type=refresh_token`, `client_id`, `client_secret`, `refresh_token`.
Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + + :param grant_type: The OAuth2 grant type. + :type grant_type: str + :param client_id: The client identifier. Each client must be provisioned an identifier. + :type client_id: str + :param client_secret: The client secret. Each client must be provisioned a secret. + :type client_secret: str + :param redirect_uri: The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). + :type redirect_uri: str + :param code: An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). + :type code: str + :param refresh_token: A refresh token to renew an access_token (Required for grant type 'refresh_token' only). + :type refresh_token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._access_token_post_serialize( + grant_type=grant_type, + client_id=client_id, + client_secret=client_secret, + redirect_uri=redirect_uri, + code=code, + refresh_token=refresh_token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAccessTokenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def access_token_post_with_http_info( + self, + grant_type: Annotated[Optional[StrictStr], Field(description="The OAuth2 grant type.")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="The client identifier. Each client must be provisioned an identifier.")] = None, + client_secret: Annotated[Optional[StrictStr], Field(description="The client secret. Each client must be provisioned a secret.")] = None, + redirect_uri: Annotated[Optional[StrictStr], Field(description="The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key').")] = None, + code: Annotated[Optional[StrictStr], Field(description="An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key').")] = None, + refresh_token: Annotated[Optional[StrictStr], Field(description="A refresh token to renew an access_token (Required for grant type 'refresh_token' only).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAccessTokenResponse]: + """access_token + + Query the authorization server for an access token used to access property resources.
If the automatic delivery method for API keys is used, the grant type `urn:ietf:params:oauth:grant-type:api-key` needs to be used to request an API key. This grant type requires `grant_type=urn:ietf:params:oauth:grant-type:api-key`, `client_id`, `client_secret`, `redirect_uri` and `code`.
For OAuth 2.0., two different grant types (`authorization_code`, `refresh_token`) are supported. Authorization code grant type requires `grant_type=authorization_code`, `client_id`, `client_secret`, `redirect_uri`, `code`. Refresh token grant type requires `grant_type=refresh_token`, `client_id`, `client_secret`, `refresh_token`.
Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + + :param grant_type: The OAuth2 grant type. + :type grant_type: str + :param client_id: The client identifier. Each client must be provisioned an identifier. + :type client_id: str + :param client_secret: The client secret. Each client must be provisioned a secret. + :type client_secret: str + :param redirect_uri: The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). + :type redirect_uri: str + :param code: An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). + :type code: str + :param refresh_token: A refresh token to renew an access_token (Required for grant type 'refresh_token' only). + :type refresh_token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._access_token_post_serialize( + grant_type=grant_type, + client_id=client_id, + client_secret=client_secret, + redirect_uri=redirect_uri, + code=code, + refresh_token=refresh_token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAccessTokenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def access_token_post_without_preload_content( + self, + grant_type: Annotated[Optional[StrictStr], Field(description="The OAuth2 grant type.")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="The client identifier. Each client must be provisioned an identifier.")] = None, + client_secret: Annotated[Optional[StrictStr], Field(description="The client secret. Each client must be provisioned a secret.")] = None, + redirect_uri: Annotated[Optional[StrictStr], Field(description="The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key').")] = None, + code: Annotated[Optional[StrictStr], Field(description="An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key').")] = None, + refresh_token: Annotated[Optional[StrictStr], Field(description="A refresh token to renew an access_token (Required for grant type 'refresh_token' only).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """access_token + + Query the authorization server for an access token used to access property resources.
If the automatic delivery method for API keys is used, the grant type `urn:ietf:params:oauth:grant-type:api-key` needs to be used to request an API key. This grant type requires `grant_type=urn:ietf:params:oauth:grant-type:api-key`, `client_id`, `client_secret`, `redirect_uri` and `code`.
For OAuth 2.0., two different grant types (`authorization_code`, `refresh_token`) are supported. Authorization code grant type requires `grant_type=authorization_code`, `client_id`, `client_secret`, `redirect_uri`, `code`. Refresh token grant type requires `grant_type=refresh_token`, `client_id`, `client_secret`, `refresh_token`.
Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + + :param grant_type: The OAuth2 grant type. + :type grant_type: str + :param client_id: The client identifier. Each client must be provisioned an identifier. + :type client_id: str + :param client_secret: The client secret. Each client must be provisioned a secret. + :type client_secret: str + :param redirect_uri: The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). + :type redirect_uri: str + :param code: An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). + :type code: str + :param refresh_token: A refresh token to renew an access_token (Required for grant type 'refresh_token' only). + :type refresh_token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._access_token_post_serialize( + grant_type=grant_type, + client_id=client_id, + client_secret=client_secret, + redirect_uri=redirect_uri, + code=code, + refresh_token=refresh_token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAccessTokenResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _access_token_post_serialize( + self, + grant_type, + client_id, + client_secret, + redirect_uri, + code, + refresh_token, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if grant_type is not None: + _form_params.append(('grant_type', grant_type)) + if client_id is not None: + _form_params.append(('client_id', client_id)) + if client_secret is not None: + _form_params.append(('client_secret', client_secret)) + if redirect_uri is not None: + _form_params.append(('redirect_uri', redirect_uri)) + if code is not None: + _form_params.append(('code', code)) + if refresh_token is not None: + _form_params.append(('refresh_token', refresh_token)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/access_token', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def oauth_metadata_get( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetMetadataResponse: + """metadata + + In the context of properties being distributed across multiple localizations, this endpoint serves to retrieve the precise location of the property associated with the provided access token. Further information can be found in the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication). + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._oauth_metadata_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetMetadataResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def oauth_metadata_get_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetMetadataResponse]: + """metadata + + In the context of properties being distributed across multiple localizations, this endpoint serves to retrieve the precise location of the property associated with the provided access token. Further information can be found in the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication). + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._oauth_metadata_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetMetadataResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def oauth_metadata_get_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """metadata + + In the context of properties being distributed across multiple localizations, this endpoint serves to retrieve the precise location of the property associated with the provided access token. Further information can be found in the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication). + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._oauth_metadata_get_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetMetadataResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _oauth_metadata_get_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/oauth/metadata', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def userinfo_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Specify a property ID when using role_details")] = None, + role_details: Annotated[Optional[StrictBool], Field(description="Specify whether to include role and acl details of the user.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetUserinfoResponse: + """userinfo + + Returns information on user who authorized connection + + :param property_id: Specify a property ID when using role_details + :type property_id: str + :param role_details: Specify whether to include role and acl details of the user. + :type role_details: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._userinfo_get_serialize( + property_id=property_id, + role_details=role_details, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserinfoResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def userinfo_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Specify a property ID when using role_details")] = None, + role_details: Annotated[Optional[StrictBool], Field(description="Specify whether to include role and acl details of the user.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetUserinfoResponse]: + """userinfo + + Returns information on user who authorized connection + + :param property_id: Specify a property ID when using role_details + :type property_id: str + :param role_details: Specify whether to include role and acl details of the user. + :type role_details: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._userinfo_get_serialize( + property_id=property_id, + role_details=role_details, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserinfoResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def userinfo_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Specify a property ID when using role_details")] = None, + role_details: Annotated[Optional[StrictBool], Field(description="Specify whether to include role and acl details of the user.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """userinfo + + Returns information on user who authorized connection + + :param property_id: Specify a property ID when using role_details + :type property_id: str + :param role_details: Specify whether to include role and acl details of the user. + :type role_details: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._userinfo_get_serialize( + property_id=property_id, + role_details=role_details, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserinfoResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _userinfo_get_serialize( + self, + property_id, + role_details, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('property_id', property_id)) + + if role_details is not None: + + _query_params.append(('role_details', role_details)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/userinfo', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/currency_api.py b/cloudbeds_pms_v1_2/api/currency_api.py new file mode 100644 index 0000000..b6cf32d --- /dev/null +++ b/cloudbeds_pms_v1_2/api/currency_api.py @@ -0,0 +1,303 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class CurrencyApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_currency_settings_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCurrencySettingsResponse: + """getCurrencySettings + + Get currency settings + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_currency_settings_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCurrencySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_currency_settings_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCurrencySettingsResponse]: + """getCurrencySettings + + Get currency settings + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_currency_settings_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCurrencySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_currency_settings_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getCurrencySettings + + Get currency settings + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_currency_settings_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCurrencySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_currency_settings_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getCurrencySettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/custom_fields_api.py b/cloudbeds_pms_v1_2/api/custom_fields_api.py new file mode 100644 index 0000000..24ea2b0 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/custom_fields_api.py @@ -0,0 +1,734 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import List, Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class CustomFieldsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_custom_fields_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + custom_field_id: Annotated[Optional[StrictStr], Field(description="Field identifier")] = None, + shortcode: Annotated[Optional[StrictStr], Field(description="Internal reference and is used for integration purposes such as custom links and the API")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCustomFieldsResponse: + """getCustomFields + + Gets custom fields list
¹ data.displayed = \"booking\" - Display this field to guests on the booking engine.
¹ data.displayed = \"reservation\" - Add this field to the reservation folio for use by staff.
¹ data.displayed = \"card\" - Make this field available for registration cards.
+ + :param property_id: Property ID + :type property_id: str + :param custom_field_id: Field identifier + :type custom_field_id: str + :param shortcode: Internal reference and is used for integration purposes such as custom links and the API + :type shortcode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_custom_fields_get_serialize( + property_id=property_id, + custom_field_id=custom_field_id, + shortcode=shortcode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCustomFieldsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_custom_fields_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + custom_field_id: Annotated[Optional[StrictStr], Field(description="Field identifier")] = None, + shortcode: Annotated[Optional[StrictStr], Field(description="Internal reference and is used for integration purposes such as custom links and the API")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCustomFieldsResponse]: + """getCustomFields + + Gets custom fields list
¹ data.displayed = \"booking\" - Display this field to guests on the booking engine.
¹ data.displayed = \"reservation\" - Add this field to the reservation folio for use by staff.
¹ data.displayed = \"card\" - Make this field available for registration cards.
+ + :param property_id: Property ID + :type property_id: str + :param custom_field_id: Field identifier + :type custom_field_id: str + :param shortcode: Internal reference and is used for integration purposes such as custom links and the API + :type shortcode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_custom_fields_get_serialize( + property_id=property_id, + custom_field_id=custom_field_id, + shortcode=shortcode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCustomFieldsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_custom_fields_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + custom_field_id: Annotated[Optional[StrictStr], Field(description="Field identifier")] = None, + shortcode: Annotated[Optional[StrictStr], Field(description="Internal reference and is used for integration purposes such as custom links and the API")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getCustomFields + + Gets custom fields list
¹ data.displayed = \"booking\" - Display this field to guests on the booking engine.
¹ data.displayed = \"reservation\" - Add this field to the reservation folio for use by staff.
¹ data.displayed = \"card\" - Make this field available for registration cards.
+ + :param property_id: Property ID + :type property_id: str + :param custom_field_id: Field identifier + :type custom_field_id: str + :param shortcode: Internal reference and is used for integration purposes such as custom links and the API + :type shortcode: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_custom_fields_get_serialize( + property_id=property_id, + custom_field_id=custom_field_id, + shortcode=shortcode, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCustomFieldsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_custom_fields_get_serialize( + self, + property_id, + custom_field_id, + shortcode, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if custom_field_id is not None: + + _query_params.append(('customFieldID', custom_field_id)) + + if shortcode is not None: + + _query_params.append(('shortcode', shortcode)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getCustomFields', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_custom_field_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Field name")] = None, + shortcode: Annotated[Optional[StrictStr], Field(description="Internal reference and is used for integration purposes such as custom links and the API")] = None, + apply_to: Annotated[Optional[StrictStr], Field(description="Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk")] = None, + required: Annotated[Optional[StrictBool], Field(description="Specify whether this field is required to be filled out.")] = None, + max_characters: Annotated[Optional[StrictInt], Field(description="Maximum number of characters allowed to be entered in this field.")] = None, + type: Annotated[Optional[StrictStr], Field(description="The field's input type.")] = None, + displayed: Annotated[Optional[List[StrictStr]], Field(description="¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards")] = None, + is_personal: Annotated[Optional[StrictBool], Field(description="Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCustomFieldResponse: + """postCustomField + + Sets custom fields. The call should only be made once to add the field to the system. + + :param property_id: Property ID + :type property_id: str + :param name: Field name + :type name: str + :param shortcode: Internal reference and is used for integration purposes such as custom links and the API + :type shortcode: str + :param apply_to: Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk + :type apply_to: str + :param required: Specify whether this field is required to be filled out. + :type required: bool + :param max_characters: Maximum number of characters allowed to be entered in this field. + :type max_characters: int + :param type: The field's input type. + :type type: str + :param displayed: ¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards + :type displayed: List[str] + :param is_personal: Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules. + :type is_personal: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_field_post_serialize( + property_id=property_id, + name=name, + shortcode=shortcode, + apply_to=apply_to, + required=required, + max_characters=max_characters, + type=type, + displayed=displayed, + is_personal=is_personal, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomFieldResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_custom_field_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Field name")] = None, + shortcode: Annotated[Optional[StrictStr], Field(description="Internal reference and is used for integration purposes such as custom links and the API")] = None, + apply_to: Annotated[Optional[StrictStr], Field(description="Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk")] = None, + required: Annotated[Optional[StrictBool], Field(description="Specify whether this field is required to be filled out.")] = None, + max_characters: Annotated[Optional[StrictInt], Field(description="Maximum number of characters allowed to be entered in this field.")] = None, + type: Annotated[Optional[StrictStr], Field(description="The field's input type.")] = None, + displayed: Annotated[Optional[List[StrictStr]], Field(description="¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards")] = None, + is_personal: Annotated[Optional[StrictBool], Field(description="Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCustomFieldResponse]: + """postCustomField + + Sets custom fields. The call should only be made once to add the field to the system. + + :param property_id: Property ID + :type property_id: str + :param name: Field name + :type name: str + :param shortcode: Internal reference and is used for integration purposes such as custom links and the API + :type shortcode: str + :param apply_to: Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk + :type apply_to: str + :param required: Specify whether this field is required to be filled out. + :type required: bool + :param max_characters: Maximum number of characters allowed to be entered in this field. + :type max_characters: int + :param type: The field's input type. + :type type: str + :param displayed: ¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards + :type displayed: List[str] + :param is_personal: Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules. + :type is_personal: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_field_post_serialize( + property_id=property_id, + name=name, + shortcode=shortcode, + apply_to=apply_to, + required=required, + max_characters=max_characters, + type=type, + displayed=displayed, + is_personal=is_personal, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomFieldResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_custom_field_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Field name")] = None, + shortcode: Annotated[Optional[StrictStr], Field(description="Internal reference and is used for integration purposes such as custom links and the API")] = None, + apply_to: Annotated[Optional[StrictStr], Field(description="Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk")] = None, + required: Annotated[Optional[StrictBool], Field(description="Specify whether this field is required to be filled out.")] = None, + max_characters: Annotated[Optional[StrictInt], Field(description="Maximum number of characters allowed to be entered in this field.")] = None, + type: Annotated[Optional[StrictStr], Field(description="The field's input type.")] = None, + displayed: Annotated[Optional[List[StrictStr]], Field(description="¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards")] = None, + is_personal: Annotated[Optional[StrictBool], Field(description="Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCustomField + + Sets custom fields. The call should only be made once to add the field to the system. + + :param property_id: Property ID + :type property_id: str + :param name: Field name + :type name: str + :param shortcode: Internal reference and is used for integration purposes such as custom links and the API + :type shortcode: str + :param apply_to: Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk + :type apply_to: str + :param required: Specify whether this field is required to be filled out. + :type required: bool + :param max_characters: Maximum number of characters allowed to be entered in this field. + :type max_characters: int + :param type: The field's input type. + :type type: str + :param displayed: ¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards + :type displayed: List[str] + :param is_personal: Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules. + :type is_personal: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_field_post_serialize( + property_id=property_id, + name=name, + shortcode=shortcode, + apply_to=apply_to, + required=required, + max_characters=max_characters, + type=type, + displayed=displayed, + is_personal=is_personal, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomFieldResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_custom_field_post_serialize( + self, + property_id, + name, + shortcode, + apply_to, + required, + max_characters, + type, + displayed, + is_personal, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'displayed': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if name is not None: + _form_params.append(('name', name)) + if shortcode is not None: + _form_params.append(('shortcode', shortcode)) + if apply_to is not None: + _form_params.append(('applyTo', apply_to)) + if required is not None: + _form_params.append(('required', required)) + if max_characters is not None: + _form_params.append(('maxCharacters', max_characters)) + if type is not None: + _form_params.append(('type', type)) + if displayed is not None: + _form_params.append(('displayed', displayed)) + if is_personal is not None: + _form_params.append(('isPersonal', is_personal)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCustomField', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/dashboard_api.py b/cloudbeds_pms_v1_2/api/dashboard_api.py new file mode 100644 index 0000000..e2dae5c --- /dev/null +++ b/cloudbeds_pms_v1_2/api/dashboard_api.py @@ -0,0 +1,330 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class DashboardApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_dashboard_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Return data for this date. Format: YYYY-MM-DD")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetDashboardResponse: + """getDashboard + + Returns basic information about the current state of the hotel + + :param property_id: Property ID + :type property_id: str + :param var_date: Return data for this date. Format: YYYY-MM-DD + :type var_date: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_dashboard_get_serialize( + property_id=property_id, + var_date=var_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDashboardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_dashboard_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Return data for this date. Format: YYYY-MM-DD")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetDashboardResponse]: + """getDashboard + + Returns basic information about the current state of the hotel + + :param property_id: Property ID + :type property_id: str + :param var_date: Return data for this date. Format: YYYY-MM-DD + :type var_date: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_dashboard_get_serialize( + property_id=property_id, + var_date=var_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDashboardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_dashboard_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Return data for this date. Format: YYYY-MM-DD")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getDashboard + + Returns basic information about the current state of the hotel + + :param property_id: Property ID + :type property_id: str + :param var_date: Return data for this date. Format: YYYY-MM-DD + :type var_date: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_dashboard_get_serialize( + property_id=property_id, + var_date=var_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDashboardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_dashboard_get_serialize( + self, + property_id, + var_date, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if var_date is not None: + if isinstance(var_date, date): + _query_params.append( + ( + 'date', + var_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('date', var_date)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getDashboard', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/emails_api.py b/cloudbeds_pms_v1_2/api/emails_api.py new file mode 100644 index 0000000..e85dee6 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/emails_api.py @@ -0,0 +1,1333 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class EmailsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_email_schedule_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetEmailScheduleResponse: + """getEmailSchedule + + Returns a list of all existing email scheduling. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_email_schedule_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEmailScheduleResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_email_schedule_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetEmailScheduleResponse]: + """getEmailSchedule + + Returns a list of all existing email scheduling. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_email_schedule_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEmailScheduleResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_email_schedule_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getEmailSchedule + + Returns a list of all existing email scheduling. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_email_schedule_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEmailScheduleResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_email_schedule_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getEmailSchedule', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_email_templates_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetEmailTemplatesResponse: + """getEmailTemplates + + Returns a list of all existing email templates. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_email_templates_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEmailTemplatesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_email_templates_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetEmailTemplatesResponse]: + """getEmailTemplates + + Returns a list of all existing email templates. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_email_templates_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEmailTemplatesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_email_templates_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getEmailTemplates + + Returns a list of all existing email templates. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_email_templates_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEmailTemplatesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_email_templates_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getEmailTemplates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_email_schedule_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + email_template_id: Annotated[Optional[StrictStr], Field(description="ID of the email template that will be used when sending an email.")] = None, + schedule_name: Annotated[Optional[StrictStr], Field(description="User friendly schedule name that appears in the list. Should contain app name.")] = None, + schedule: Optional[PostEmailScheduleRequestSchedule] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostEmailScheduleResponse: + """postEmailSchedule + + Creates a new email schedule for existing email template. Email template can be scheduled based on two parameters: reservationStatusChange and reservationEvent. Only one of the parameters can be used. *reservationStatusChange* schedules email to be sent when reservation status transitions to a specific one, for instance: `confirmed`. *reservationEvent* schedules email to be sent number of days prior or after a specific event, for instance: `after_check_out` at a given time This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param email_template_id: ID of the email template that will be used when sending an email. + :type email_template_id: str + :param schedule_name: User friendly schedule name that appears in the list. Should contain app name. + :type schedule_name: str + :param schedule: + :type schedule: PostEmailScheduleRequestSchedule + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_email_schedule_post_serialize( + property_id=property_id, + email_template_id=email_template_id, + schedule_name=schedule_name, + schedule=schedule, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostEmailScheduleResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_email_schedule_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + email_template_id: Annotated[Optional[StrictStr], Field(description="ID of the email template that will be used when sending an email.")] = None, + schedule_name: Annotated[Optional[StrictStr], Field(description="User friendly schedule name that appears in the list. Should contain app name.")] = None, + schedule: Optional[PostEmailScheduleRequestSchedule] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostEmailScheduleResponse]: + """postEmailSchedule + + Creates a new email schedule for existing email template. Email template can be scheduled based on two parameters: reservationStatusChange and reservationEvent. Only one of the parameters can be used. *reservationStatusChange* schedules email to be sent when reservation status transitions to a specific one, for instance: `confirmed`. *reservationEvent* schedules email to be sent number of days prior or after a specific event, for instance: `after_check_out` at a given time This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param email_template_id: ID of the email template that will be used when sending an email. + :type email_template_id: str + :param schedule_name: User friendly schedule name that appears in the list. Should contain app name. + :type schedule_name: str + :param schedule: + :type schedule: PostEmailScheduleRequestSchedule + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_email_schedule_post_serialize( + property_id=property_id, + email_template_id=email_template_id, + schedule_name=schedule_name, + schedule=schedule, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostEmailScheduleResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_email_schedule_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + email_template_id: Annotated[Optional[StrictStr], Field(description="ID of the email template that will be used when sending an email.")] = None, + schedule_name: Annotated[Optional[StrictStr], Field(description="User friendly schedule name that appears in the list. Should contain app name.")] = None, + schedule: Optional[PostEmailScheduleRequestSchedule] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postEmailSchedule + + Creates a new email schedule for existing email template. Email template can be scheduled based on two parameters: reservationStatusChange and reservationEvent. Only one of the parameters can be used. *reservationStatusChange* schedules email to be sent when reservation status transitions to a specific one, for instance: `confirmed`. *reservationEvent* schedules email to be sent number of days prior or after a specific event, for instance: `after_check_out` at a given time This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param email_template_id: ID of the email template that will be used when sending an email. + :type email_template_id: str + :param schedule_name: User friendly schedule name that appears in the list. Should contain app name. + :type schedule_name: str + :param schedule: + :type schedule: PostEmailScheduleRequestSchedule + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_email_schedule_post_serialize( + property_id=property_id, + email_template_id=email_template_id, + schedule_name=schedule_name, + schedule=schedule, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostEmailScheduleResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_email_schedule_post_serialize( + self, + property_id, + email_template_id, + schedule_name, + schedule, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if email_template_id is not None: + _form_params.append(('emailTemplateID', email_template_id)) + if schedule_name is not None: + _form_params.append(('scheduleName', schedule_name)) + if schedule is not None: + _form_params.append(('schedule', schedule)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postEmailSchedule', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_email_template_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + email_type: Annotated[Optional[StrictStr], Field(description="Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Template name")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Email address from which the email message may be sent")] = None, + from_name: Annotated[Optional[StrictStr], Field(description="from which the email message may be sent. If empty email will be used")] = None, + subject: Optional[PostEmailTemplateRequestSubject] = None, + body: Optional[PostEmailTemplateRequestBody] = None, + reply_to: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be replied. If empty, the value on from parameter will be used.")] = None, + reply_to_name: Annotated[Optional[StrictStr], Field(description="Name to which the email message may be replied. If empty, email will be used.")] = None, + autofill_all_languages: Annotated[Optional[StrictBool], Field(description="If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false.")] = None, + cc: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be sent as a Carbon Copy")] = None, + bcc: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be sent as a Blind Carbon Copy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostEmailTemplateResponse: + """postEmailTemplate + + Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param email_type: Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties. + :type email_type: str + :param name: Template name + :type name: str + :param var_from: Email address from which the email message may be sent + :type var_from: str + :param from_name: from which the email message may be sent. If empty email will be used + :type from_name: str + :param subject: + :type subject: PostEmailTemplateRequestSubject + :param body: + :type body: PostEmailTemplateRequestBody + :param reply_to: Email address to which the email message may be replied. If empty, the value on from parameter will be used. + :type reply_to: str + :param reply_to_name: Name to which the email message may be replied. If empty, email will be used. + :type reply_to_name: str + :param autofill_all_languages: If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false. + :type autofill_all_languages: bool + :param cc: Email address to which the email message may be sent as a Carbon Copy + :type cc: str + :param bcc: Email address to which the email message may be sent as a Blind Carbon Copy + :type bcc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_email_template_post_serialize( + property_id=property_id, + email_type=email_type, + name=name, + var_from=var_from, + from_name=from_name, + subject=subject, + body=body, + reply_to=reply_to, + reply_to_name=reply_to_name, + autofill_all_languages=autofill_all_languages, + cc=cc, + bcc=bcc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostEmailTemplateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_email_template_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + email_type: Annotated[Optional[StrictStr], Field(description="Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Template name")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Email address from which the email message may be sent")] = None, + from_name: Annotated[Optional[StrictStr], Field(description="from which the email message may be sent. If empty email will be used")] = None, + subject: Optional[PostEmailTemplateRequestSubject] = None, + body: Optional[PostEmailTemplateRequestBody] = None, + reply_to: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be replied. If empty, the value on from parameter will be used.")] = None, + reply_to_name: Annotated[Optional[StrictStr], Field(description="Name to which the email message may be replied. If empty, email will be used.")] = None, + autofill_all_languages: Annotated[Optional[StrictBool], Field(description="If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false.")] = None, + cc: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be sent as a Carbon Copy")] = None, + bcc: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be sent as a Blind Carbon Copy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostEmailTemplateResponse]: + """postEmailTemplate + + Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param email_type: Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties. + :type email_type: str + :param name: Template name + :type name: str + :param var_from: Email address from which the email message may be sent + :type var_from: str + :param from_name: from which the email message may be sent. If empty email will be used + :type from_name: str + :param subject: + :type subject: PostEmailTemplateRequestSubject + :param body: + :type body: PostEmailTemplateRequestBody + :param reply_to: Email address to which the email message may be replied. If empty, the value on from parameter will be used. + :type reply_to: str + :param reply_to_name: Name to which the email message may be replied. If empty, email will be used. + :type reply_to_name: str + :param autofill_all_languages: If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false. + :type autofill_all_languages: bool + :param cc: Email address to which the email message may be sent as a Carbon Copy + :type cc: str + :param bcc: Email address to which the email message may be sent as a Blind Carbon Copy + :type bcc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_email_template_post_serialize( + property_id=property_id, + email_type=email_type, + name=name, + var_from=var_from, + from_name=from_name, + subject=subject, + body=body, + reply_to=reply_to, + reply_to_name=reply_to_name, + autofill_all_languages=autofill_all_languages, + cc=cc, + bcc=bcc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostEmailTemplateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_email_template_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + email_type: Annotated[Optional[StrictStr], Field(description="Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Template name")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Email address from which the email message may be sent")] = None, + from_name: Annotated[Optional[StrictStr], Field(description="from which the email message may be sent. If empty email will be used")] = None, + subject: Optional[PostEmailTemplateRequestSubject] = None, + body: Optional[PostEmailTemplateRequestBody] = None, + reply_to: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be replied. If empty, the value on from parameter will be used.")] = None, + reply_to_name: Annotated[Optional[StrictStr], Field(description="Name to which the email message may be replied. If empty, email will be used.")] = None, + autofill_all_languages: Annotated[Optional[StrictBool], Field(description="If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false.")] = None, + cc: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be sent as a Carbon Copy")] = None, + bcc: Annotated[Optional[StrictStr], Field(description="Email address to which the email message may be sent as a Blind Carbon Copy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postEmailTemplate + + Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param email_type: Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties. + :type email_type: str + :param name: Template name + :type name: str + :param var_from: Email address from which the email message may be sent + :type var_from: str + :param from_name: from which the email message may be sent. If empty email will be used + :type from_name: str + :param subject: + :type subject: PostEmailTemplateRequestSubject + :param body: + :type body: PostEmailTemplateRequestBody + :param reply_to: Email address to which the email message may be replied. If empty, the value on from parameter will be used. + :type reply_to: str + :param reply_to_name: Name to which the email message may be replied. If empty, email will be used. + :type reply_to_name: str + :param autofill_all_languages: If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false. + :type autofill_all_languages: bool + :param cc: Email address to which the email message may be sent as a Carbon Copy + :type cc: str + :param bcc: Email address to which the email message may be sent as a Blind Carbon Copy + :type bcc: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_email_template_post_serialize( + property_id=property_id, + email_type=email_type, + name=name, + var_from=var_from, + from_name=from_name, + subject=subject, + body=body, + reply_to=reply_to, + reply_to_name=reply_to_name, + autofill_all_languages=autofill_all_languages, + cc=cc, + bcc=bcc, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostEmailTemplateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_email_template_post_serialize( + self, + property_id, + email_type, + name, + var_from, + from_name, + subject, + body, + reply_to, + reply_to_name, + autofill_all_languages, + cc, + bcc, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if email_type is not None: + _form_params.append(('emailType', email_type)) + if name is not None: + _form_params.append(('name', name)) + if var_from is not None: + _form_params.append(('from', var_from)) + if from_name is not None: + _form_params.append(('fromName', from_name)) + if subject is not None: + _form_params.append(('subject', subject)) + if body is not None: + _form_params.append(('body', body)) + if reply_to is not None: + _form_params.append(('replyTo', reply_to)) + if reply_to_name is not None: + _form_params.append(('replyToName', reply_to_name)) + if autofill_all_languages is not None: + _form_params.append(('autofillAllLanguages', autofill_all_languages)) + if cc is not None: + _form_params.append(('cc', cc)) + if bcc is not None: + _form_params.append(('bcc', bcc)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postEmailTemplate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/groups_api.py b/cloudbeds_pms_v1_2/api/groups_api.py new file mode 100644 index 0000000..c6ecc5d --- /dev/null +++ b/cloudbeds_pms_v1_2/api/groups_api.py @@ -0,0 +1,1915 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import Field, StrictInt, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class GroupsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_group_notes_get( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + group_code: Annotated[StrictStr, Field(description="Group code")], + page_size: Annotated[StrictInt, Field(description="Number of groups notes to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGroupNotesResponse: + """getGroupNotes + + Returns group notes + + :param property_id: Property ID (required) + :type property_id: str + :param group_code: Group code (required) + :type group_code: str + :param page_size: Number of groups notes to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_group_notes_get_serialize( + property_id=property_id, + group_code=group_code, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGroupNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_group_notes_get_with_http_info( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + group_code: Annotated[StrictStr, Field(description="Group code")], + page_size: Annotated[StrictInt, Field(description="Number of groups notes to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGroupNotesResponse]: + """getGroupNotes + + Returns group notes + + :param property_id: Property ID (required) + :type property_id: str + :param group_code: Group code (required) + :type group_code: str + :param page_size: Number of groups notes to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_group_notes_get_serialize( + property_id=property_id, + group_code=group_code, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGroupNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_group_notes_get_without_preload_content( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + group_code: Annotated[StrictStr, Field(description="Group code")], + page_size: Annotated[StrictInt, Field(description="Number of groups notes to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGroupNotes + + Returns group notes + + :param property_id: Property ID (required) + :type property_id: str + :param group_code: Group code (required) + :type group_code: str + :param page_size: Number of groups notes to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_group_notes_get_serialize( + property_id=property_id, + group_code=group_code, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGroupNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_group_notes_get_serialize( + self, + property_id, + group_code, + page_size, + page_number, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if group_code is not None: + + _query_params.append(('groupCode', group_code)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGroupNotes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_groups_get( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + group_code: Annotated[StrictStr, Field(description="Unique ID for a group")], + type: Annotated[StrictStr, Field(description="The type of group")], + status: Annotated[StrictStr, Field(description="Group status")], + created_from: Annotated[datetime, Field(description="Datetime (lower limit) to be queried")], + created_to: Annotated[datetime, Field(description="Datetime (upper limit) to be queried")], + page_size: Annotated[StrictInt, Field(description="Number of groups to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGroupsResponse: + """getGroups + + Returns groups of allotment block + + :param property_id: Property ID (required) + :type property_id: str + :param group_code: Unique ID for a group (required) + :type group_code: str + :param type: The type of group (required) + :type type: str + :param status: Group status (required) + :type status: str + :param created_from: Datetime (lower limit) to be queried (required) + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried (required) + :type created_to: datetime + :param page_size: Number of groups to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_groups_get_serialize( + property_id=property_id, + group_code=group_code, + type=type, + status=status, + created_from=created_from, + created_to=created_to, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGroupsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_groups_get_with_http_info( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + group_code: Annotated[StrictStr, Field(description="Unique ID for a group")], + type: Annotated[StrictStr, Field(description="The type of group")], + status: Annotated[StrictStr, Field(description="Group status")], + created_from: Annotated[datetime, Field(description="Datetime (lower limit) to be queried")], + created_to: Annotated[datetime, Field(description="Datetime (upper limit) to be queried")], + page_size: Annotated[StrictInt, Field(description="Number of groups to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGroupsResponse]: + """getGroups + + Returns groups of allotment block + + :param property_id: Property ID (required) + :type property_id: str + :param group_code: Unique ID for a group (required) + :type group_code: str + :param type: The type of group (required) + :type type: str + :param status: Group status (required) + :type status: str + :param created_from: Datetime (lower limit) to be queried (required) + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried (required) + :type created_to: datetime + :param page_size: Number of groups to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_groups_get_serialize( + property_id=property_id, + group_code=group_code, + type=type, + status=status, + created_from=created_from, + created_to=created_to, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGroupsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_groups_get_without_preload_content( + self, + property_id: Annotated[StrictStr, Field(description="Property ID")], + group_code: Annotated[StrictStr, Field(description="Unique ID for a group")], + type: Annotated[StrictStr, Field(description="The type of group")], + status: Annotated[StrictStr, Field(description="Group status")], + created_from: Annotated[datetime, Field(description="Datetime (lower limit) to be queried")], + created_to: Annotated[datetime, Field(description="Datetime (upper limit) to be queried")], + page_size: Annotated[StrictInt, Field(description="Number of groups to return per page (min: 1, max: 100)")], + page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGroups + + Returns groups of allotment block + + :param property_id: Property ID (required) + :type property_id: str + :param group_code: Unique ID for a group (required) + :type group_code: str + :param type: The type of group (required) + :type type: str + :param status: Group status (required) + :type status: str + :param created_from: Datetime (lower limit) to be queried (required) + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried (required) + :type created_to: datetime + :param page_size: Number of groups to return per page (min: 1, max: 100) (required) + :type page_size: int + :param page_number: Which page in the results to access (required) + :type page_number: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_groups_get_serialize( + property_id=property_id, + group_code=group_code, + type=type, + status=status, + created_from=created_from, + created_to=created_to, + page_size=page_size, + page_number=page_number, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGroupsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_groups_get_serialize( + self, + property_id, + group_code, + type, + status, + created_from, + created_to, + page_size, + page_number, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if group_code is not None: + + _query_params.append(('groupCode', group_code)) + + if type is not None: + + _query_params.append(('type', type)) + + if status is not None: + + _query_params.append(('status', status)) + + if created_from is not None: + if isinstance(created_from, datetime): + _query_params.append( + ( + 'createdFrom', + created_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdFrom', created_from)) + + if created_to is not None: + if isinstance(created_to, datetime): + _query_params.append( + ( + 'createdTo', + created_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdTo', created_to)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGroups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def patch_group_post( + self, + group_code: Annotated[Optional[StrictStr], Field(description="code for a group")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Source ID for a group")] = None, + address1: Annotated[Optional[StrictStr], Field(description="Address line 1 for a group")] = None, + address2: Annotated[Optional[StrictStr], Field(description="Address line 2 for a group")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for a group")] = None, + zip: Annotated[Optional[StrictStr], Field(description="Zip for a group")] = None, + state: Annotated[Optional[StrictStr], Field(description="State for a group")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPatchGroupResponse: + """patchGroup + + Updates an existing group with information provided. At least one information field is required for this call. + + :param group_code: code for a group + :type group_code: str + :param property_id: Property ID + :type property_id: str + :param name: Name for a group + :type name: str + :param type: The type of group + :type type: str + :param status: Group status + :type status: str + :param source_id: Source ID for a group + :type source_id: str + :param address1: Address line 1 for a group + :type address1: str + :param address2: Address line 2 for a group + :type address2: str + :param city: City for a group + :type city: str + :param zip: Zip for a group + :type zip: str + :param state: State for a group + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_group_post_serialize( + group_code=group_code, + property_id=property_id, + name=name, + type=type, + status=status, + source_id=source_id, + address1=address1, + address2=address2, + city=city, + zip=zip, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def patch_group_post_with_http_info( + self, + group_code: Annotated[Optional[StrictStr], Field(description="code for a group")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Source ID for a group")] = None, + address1: Annotated[Optional[StrictStr], Field(description="Address line 1 for a group")] = None, + address2: Annotated[Optional[StrictStr], Field(description="Address line 2 for a group")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for a group")] = None, + zip: Annotated[Optional[StrictStr], Field(description="Zip for a group")] = None, + state: Annotated[Optional[StrictStr], Field(description="State for a group")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPatchGroupResponse]: + """patchGroup + + Updates an existing group with information provided. At least one information field is required for this call. + + :param group_code: code for a group + :type group_code: str + :param property_id: Property ID + :type property_id: str + :param name: Name for a group + :type name: str + :param type: The type of group + :type type: str + :param status: Group status + :type status: str + :param source_id: Source ID for a group + :type source_id: str + :param address1: Address line 1 for a group + :type address1: str + :param address2: Address line 2 for a group + :type address2: str + :param city: City for a group + :type city: str + :param zip: Zip for a group + :type zip: str + :param state: State for a group + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_group_post_serialize( + group_code=group_code, + property_id=property_id, + name=name, + type=type, + status=status, + source_id=source_id, + address1=address1, + address2=address2, + city=city, + zip=zip, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def patch_group_post_without_preload_content( + self, + group_code: Annotated[Optional[StrictStr], Field(description="code for a group")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Source ID for a group")] = None, + address1: Annotated[Optional[StrictStr], Field(description="Address line 1 for a group")] = None, + address2: Annotated[Optional[StrictStr], Field(description="Address line 2 for a group")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for a group")] = None, + zip: Annotated[Optional[StrictStr], Field(description="Zip for a group")] = None, + state: Annotated[Optional[StrictStr], Field(description="State for a group")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patchGroup + + Updates an existing group with information provided. At least one information field is required for this call. + + :param group_code: code for a group + :type group_code: str + :param property_id: Property ID + :type property_id: str + :param name: Name for a group + :type name: str + :param type: The type of group + :type type: str + :param status: Group status + :type status: str + :param source_id: Source ID for a group + :type source_id: str + :param address1: Address line 1 for a group + :type address1: str + :param address2: Address line 2 for a group + :type address2: str + :param city: City for a group + :type city: str + :param zip: Zip for a group + :type zip: str + :param state: State for a group + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_group_post_serialize( + group_code=group_code, + property_id=property_id, + name=name, + type=type, + status=status, + source_id=source_id, + address1=address1, + address2=address2, + city=city, + zip=zip, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _patch_group_post_serialize( + self, + group_code, + property_id, + name, + type, + status, + source_id, + address1, + address2, + city, + zip, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if group_code is not None: + _form_params.append(('groupCode', group_code)) + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if name is not None: + _form_params.append(('name', name)) + if type is not None: + _form_params.append(('type', type)) + if status is not None: + _form_params.append(('status', status)) + if source_id is not None: + _form_params.append(('sourceID', source_id)) + if address1 is not None: + _form_params.append(('address1', address1)) + if address2 is not None: + _form_params.append(('address2', address2)) + if city is not None: + _form_params.append(('city', city)) + if zip is not None: + _form_params.append(('zip', zip)) + if state is not None: + _form_params.append(('state', state)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/patchGroup', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_group_note_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group code")] = None, + group_note: Annotated[Optional[StrictStr], Field(description="Group note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGroupNoteResponse: + """postGroupNote + + Adds a group note + + :param property_id: Property ID + :type property_id: str + :param group_code: Group code + :type group_code: str + :param group_note: Group note + :type group_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_group_note_post_serialize( + property_id=property_id, + group_code=group_code, + group_note=group_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGroupNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_group_note_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group code")] = None, + group_note: Annotated[Optional[StrictStr], Field(description="Group note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGroupNoteResponse]: + """postGroupNote + + Adds a group note + + :param property_id: Property ID + :type property_id: str + :param group_code: Group code + :type group_code: str + :param group_note: Group note + :type group_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_group_note_post_serialize( + property_id=property_id, + group_code=group_code, + group_note=group_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGroupNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_group_note_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group code")] = None, + group_note: Annotated[Optional[StrictStr], Field(description="Group note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGroupNote + + Adds a group note + + :param property_id: Property ID + :type property_id: str + :param group_code: Group code + :type group_code: str + :param group_note: Group note + :type group_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_group_note_post_serialize( + property_id=property_id, + group_code=group_code, + group_note=group_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGroupNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_group_note_post_serialize( + self, + property_id, + group_code, + group_note, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) + if group_note is not None: + _form_params.append(('groupNote', group_note)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGroupNote', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_group_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + commission_type: Annotated[Optional[StrictStr], Field(description="Commission Type")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Source ID for a group")] = None, + address1: Annotated[Optional[StrictStr], Field(description="Address line 1 for a group")] = None, + address2: Annotated[Optional[StrictStr], Field(description="Address line 2 for a group")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for a group")] = None, + zip: Annotated[Optional[StrictStr], Field(description="Zip for a group")] = None, + state: Annotated[Optional[StrictStr], Field(description="State for a group")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPutGroupResponse: + """putGroup + + Adds a group to the property. Please note that the default setting for 'Route to Group Folio' will be 'No,' and the 'Reservation Folio Configuration' will be set as the default folio configuration. You can edit these settings through the user interface (UI). + + :param property_id: Property ID + :type property_id: str + :param name: Name for a group + :type name: str + :param type: The type of group + :type type: str + :param status: Group status + :type status: str + :param commission_type: Commission Type + :type commission_type: str + :param source_id: Source ID for a group + :type source_id: str + :param address1: Address line 1 for a group + :type address1: str + :param address2: Address line 2 for a group + :type address2: str + :param city: City for a group + :type city: str + :param zip: Zip for a group + :type zip: str + :param state: State for a group + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_group_post_serialize( + property_id=property_id, + name=name, + type=type, + status=status, + commission_type=commission_type, + source_id=source_id, + address1=address1, + address2=address2, + city=city, + zip=zip, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_group_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + commission_type: Annotated[Optional[StrictStr], Field(description="Commission Type")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Source ID for a group")] = None, + address1: Annotated[Optional[StrictStr], Field(description="Address line 1 for a group")] = None, + address2: Annotated[Optional[StrictStr], Field(description="Address line 2 for a group")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for a group")] = None, + zip: Annotated[Optional[StrictStr], Field(description="Zip for a group")] = None, + state: Annotated[Optional[StrictStr], Field(description="State for a group")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPutGroupResponse]: + """putGroup + + Adds a group to the property. Please note that the default setting for 'Route to Group Folio' will be 'No,' and the 'Reservation Folio Configuration' will be set as the default folio configuration. You can edit these settings through the user interface (UI). + + :param property_id: Property ID + :type property_id: str + :param name: Name for a group + :type name: str + :param type: The type of group + :type type: str + :param status: Group status + :type status: str + :param commission_type: Commission Type + :type commission_type: str + :param source_id: Source ID for a group + :type source_id: str + :param address1: Address line 1 for a group + :type address1: str + :param address2: Address line 2 for a group + :type address2: str + :param city: City for a group + :type city: str + :param zip: Zip for a group + :type zip: str + :param state: State for a group + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_group_post_serialize( + property_id=property_id, + name=name, + type=type, + status=status, + commission_type=commission_type, + source_id=source_id, + address1=address1, + address2=address2, + city=city, + zip=zip, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_group_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + commission_type: Annotated[Optional[StrictStr], Field(description="Commission Type")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Source ID for a group")] = None, + address1: Annotated[Optional[StrictStr], Field(description="Address line 1 for a group")] = None, + address2: Annotated[Optional[StrictStr], Field(description="Address line 2 for a group")] = None, + city: Annotated[Optional[StrictStr], Field(description="City for a group")] = None, + zip: Annotated[Optional[StrictStr], Field(description="Zip for a group")] = None, + state: Annotated[Optional[StrictStr], Field(description="State for a group")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putGroup + + Adds a group to the property. Please note that the default setting for 'Route to Group Folio' will be 'No,' and the 'Reservation Folio Configuration' will be set as the default folio configuration. You can edit these settings through the user interface (UI). + + :param property_id: Property ID + :type property_id: str + :param name: Name for a group + :type name: str + :param type: The type of group + :type type: str + :param status: Group status + :type status: str + :param commission_type: Commission Type + :type commission_type: str + :param source_id: Source ID for a group + :type source_id: str + :param address1: Address line 1 for a group + :type address1: str + :param address2: Address line 2 for a group + :type address2: str + :param city: City for a group + :type city: str + :param zip: Zip for a group + :type zip: str + :param state: State for a group + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_group_post_serialize( + property_id=property_id, + name=name, + type=type, + status=status, + commission_type=commission_type, + source_id=source_id, + address1=address1, + address2=address2, + city=city, + zip=zip, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutGroupResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_group_post_serialize( + self, + property_id, + name, + type, + status, + commission_type, + source_id, + address1, + address2, + city, + zip, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if name is not None: + _form_params.append(('name', name)) + if type is not None: + _form_params.append(('type', type)) + if status is not None: + _form_params.append(('status', status)) + if commission_type is not None: + _form_params.append(('commissionType', commission_type)) + if source_id is not None: + _form_params.append(('sourceID', source_id)) + if address1 is not None: + _form_params.append(('address1', address1)) + if address2 is not None: + _form_params.append(('address2', address2)) + if city is not None: + _form_params.append(('city', city)) + if zip is not None: + _form_params.append(('zip', zip)) + if state is not None: + _form_params.append(('state', state)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/putGroup', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/guest_api.py b/cloudbeds_pms_v1_2/api/guest_api.py new file mode 100644 index 0000000..382737b --- /dev/null +++ b/cloudbeds_pms_v1_2/api/guest_api.py @@ -0,0 +1,5585 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date, datetime +from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator +from typing import List, Optional, Tuple, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class GuestApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_guest_note_delete( + self, + guest_id: Annotated[StrictStr, Field(description="Guest ID")], + note_id: Annotated[StrictStr, Field(description="Note ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteGuestNoteResponse: + """deleteGuestNote + + Archives an existing guest note. + + :param guest_id: Guest ID (required) + :type guest_id: str + :param note_id: Note ID (required) + :type note_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_guest_note_delete_serialize( + guest_id=guest_id, + note_id=note_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_guest_note_delete_with_http_info( + self, + guest_id: Annotated[StrictStr, Field(description="Guest ID")], + note_id: Annotated[StrictStr, Field(description="Note ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteGuestNoteResponse]: + """deleteGuestNote + + Archives an existing guest note. + + :param guest_id: Guest ID (required) + :type guest_id: str + :param note_id: Note ID (required) + :type note_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_guest_note_delete_serialize( + guest_id=guest_id, + note_id=note_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_guest_note_delete_without_preload_content( + self, + guest_id: Annotated[StrictStr, Field(description="Guest ID")], + note_id: Annotated[StrictStr, Field(description="Note ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteGuestNote + + Archives an existing guest note. + + :param guest_id: Guest ID (required) + :type guest_id: str + :param note_id: Note ID (required) + :type note_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_guest_note_delete_serialize( + guest_id=guest_id, + note_id=note_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_guest_note_delete_serialize( + self, + guest_id, + note_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if note_id is not None: + + _query_params.append(('noteID', note_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/deleteGuestNote', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_guest_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier. Required if no guestID is provided.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID. Required if no reservationID is provided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGuestResponse: + """getGuest + + Returns information on a guest specified by the Reservation ID parameter + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier. Required if no guestID is provided. + :type reservation_id: str + :param guest_id: Guest ID. Required if no reservationID is provided. + :type guest_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_get_serialize( + property_id=property_id, + reservation_id=reservation_id, + guest_id=guest_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_guest_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier. Required if no guestID is provided.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID. Required if no reservationID is provided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGuestResponse]: + """getGuest + + Returns information on a guest specified by the Reservation ID parameter + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier. Required if no guestID is provided. + :type reservation_id: str + :param guest_id: Guest ID. Required if no reservationID is provided. + :type guest_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_get_serialize( + property_id=property_id, + reservation_id=reservation_id, + guest_id=guest_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_guest_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier. Required if no guestID is provided.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID. Required if no reservationID is provided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGuest + + Returns information on a guest specified by the Reservation ID parameter + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier. Required if no guestID is provided. + :type reservation_id: str + :param guest_id: Guest ID. Required if no reservationID is provided. + :type guest_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_get_serialize( + property_id=property_id, + reservation_id=reservation_id, + guest_id=guest_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_guest_get_serialize( + self, + property_id, + reservation_id, + guest_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGuest', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_guest_list_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, + include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, + exclude_secondary_guests: Annotated[Optional[StrictBool], Field(description="If true, response only returns main guest's")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGuestListResponse: + """getGuestList + + Returns a list of guests, ordered by modification date ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param results_from: Inferior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_to: datetime + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param status: Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed + :type status: str + :param sort_by: Sort By parameter + :type sort_by: str + :param include_guest_info: If API response should return with more of Guest's information + :type include_guest_info: bool + :param exclude_secondary_guests: If true, response only returns main guest's + :type exclude_secondary_guests: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_list_get_serialize( + property_ids=property_ids, + results_from=results_from, + results_to=results_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + status=status, + sort_by=sort_by, + include_guest_info=include_guest_info, + exclude_secondary_guests=exclude_secondary_guests, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_guest_list_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, + include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, + exclude_secondary_guests: Annotated[Optional[StrictBool], Field(description="If true, response only returns main guest's")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGuestListResponse]: + """getGuestList + + Returns a list of guests, ordered by modification date ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param results_from: Inferior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_to: datetime + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param status: Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed + :type status: str + :param sort_by: Sort By parameter + :type sort_by: str + :param include_guest_info: If API response should return with more of Guest's information + :type include_guest_info: bool + :param exclude_secondary_guests: If true, response only returns main guest's + :type exclude_secondary_guests: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_list_get_serialize( + property_ids=property_ids, + results_from=results_from, + results_to=results_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + status=status, + sort_by=sort_by, + include_guest_info=include_guest_info, + exclude_secondary_guests=exclude_secondary_guests, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_guest_list_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, + include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, + exclude_secondary_guests: Annotated[Optional[StrictBool], Field(description="If true, response only returns main guest's")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGuestList + + Returns a list of guests, ordered by modification date ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param results_from: Inferior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_to: datetime + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param status: Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed + :type status: str + :param sort_by: Sort By parameter + :type sort_by: str + :param include_guest_info: If API response should return with more of Guest's information + :type include_guest_info: bool + :param exclude_secondary_guests: If true, response only returns main guest's + :type exclude_secondary_guests: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_list_get_serialize( + property_ids=property_ids, + results_from=results_from, + results_to=results_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + status=status, + sort_by=sort_by, + include_guest_info=include_guest_info, + exclude_secondary_guests=exclude_secondary_guests, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_guest_list_get_serialize( + self, + property_ids, + results_from, + results_to, + check_in_from, + check_in_to, + check_out_from, + check_out_to, + status, + sort_by, + include_guest_info, + exclude_secondary_guests, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if check_in_from is not None: + if isinstance(check_in_from, date): + _query_params.append( + ( + 'checkInFrom', + check_in_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInFrom', check_in_from)) + + if check_in_to is not None: + if isinstance(check_in_to, date): + _query_params.append( + ( + 'checkInTo', + check_in_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInTo', check_in_to)) + + if check_out_from is not None: + if isinstance(check_out_from, date): + _query_params.append( + ( + 'checkOutFrom', + check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutFrom', check_out_from)) + + if check_out_to is not None: + if isinstance(check_out_to, date): + _query_params.append( + ( + 'checkOutTo', + check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutTo', check_out_to)) + + if status is not None: + + _query_params.append(('status', status)) + + if sort_by is not None: + + _query_params.append(('sortBy', sort_by)) + + if include_guest_info is not None: + + _query_params.append(('includeGuestInfo', include_guest_info)) + + if exclude_secondary_guests is not None: + + _query_params.append(('excludeSecondaryGuests', exclude_secondary_guests)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGuestList', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_guest_notes_get( + self, + guest_id: Annotated[StrictStr, Field(description="Guest ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGuestNotesResponse: + """getGuestNotes + + Retrieves a guest notes + + :param guest_id: Guest ID (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_notes_get_serialize( + guest_id=guest_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_guest_notes_get_with_http_info( + self, + guest_id: Annotated[StrictStr, Field(description="Guest ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGuestNotesResponse]: + """getGuestNotes + + Retrieves a guest notes + + :param guest_id: Guest ID (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_notes_get_serialize( + guest_id=guest_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_guest_notes_get_without_preload_content( + self, + guest_id: Annotated[StrictStr, Field(description="Guest ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGuestNotes + + Retrieves a guest notes + + :param guest_id: Guest ID (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guest_notes_get_serialize( + guest_id=guest_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_guest_notes_get_serialize( + self, + guest_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGuestNotes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_guests_by_filter_get( + self, + status: Annotated[StrictStr, Field(description="Current guest status")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + reservation_id: Optional[StrictStr] = None, + room_id: Optional[StrictStr] = None, + guest_name: Optional[StrictStr] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGuestsByFilterResponse: + """getGuestsByFilter + + Returns a list of guests matching the selected parameters ### Group account support + + :param status: Current guest status (required) + :type status: str + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param reservation_id: + :type reservation_id: str + :param room_id: + :type room_id: str + :param guest_name: + :type guest_name: str + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_by_filter_get_serialize( + status=status, + property_ids=property_ids, + reservation_id=reservation_id, + room_id=room_id, + guest_name=guest_name, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsByFilterResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_guests_by_filter_get_with_http_info( + self, + status: Annotated[StrictStr, Field(description="Current guest status")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + reservation_id: Optional[StrictStr] = None, + room_id: Optional[StrictStr] = None, + guest_name: Optional[StrictStr] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGuestsByFilterResponse]: + """getGuestsByFilter + + Returns a list of guests matching the selected parameters ### Group account support + + :param status: Current guest status (required) + :type status: str + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param reservation_id: + :type reservation_id: str + :param room_id: + :type room_id: str + :param guest_name: + :type guest_name: str + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_by_filter_get_serialize( + status=status, + property_ids=property_ids, + reservation_id=reservation_id, + room_id=room_id, + guest_name=guest_name, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsByFilterResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_guests_by_filter_get_without_preload_content( + self, + status: Annotated[StrictStr, Field(description="Current guest status")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + reservation_id: Optional[StrictStr] = None, + room_id: Optional[StrictStr] = None, + guest_name: Optional[StrictStr] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGuestsByFilter + + Returns a list of guests matching the selected parameters ### Group account support + + :param status: Current guest status (required) + :type status: str + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param reservation_id: + :type reservation_id: str + :param room_id: + :type room_id: str + :param guest_name: + :type guest_name: str + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_by_filter_get_serialize( + status=status, + property_ids=property_ids, + reservation_id=reservation_id, + room_id=room_id, + guest_name=guest_name, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsByFilterResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_guests_by_filter_get_serialize( + self, + status, + property_ids, + reservation_id, + room_id, + guest_name, + check_in_from, + check_in_to, + check_out_from, + check_out_to, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if status is not None: + + _query_params.append(('status', status)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if guest_name is not None: + + _query_params.append(('guestName', guest_name)) + + if check_in_from is not None: + if isinstance(check_in_from, date): + _query_params.append( + ( + 'checkInFrom', + check_in_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInFrom', check_in_from)) + + if check_in_to is not None: + if isinstance(check_in_to, date): + _query_params.append( + ( + 'checkInTo', + check_in_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInTo', check_in_to)) + + if check_out_from is not None: + if isinstance(check_out_from, date): + _query_params.append( + ( + 'checkOutFrom', + check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutFrom', check_out_from)) + + if check_out_to is not None: + if isinstance(check_out_to, date): + _query_params.append( + ( + 'checkOutTo', + check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutTo', check_out_to)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGuestsByFilter', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_guests_by_status_get( + self, + status: Annotated[StrictStr, Field(description="Guest status during the period")], + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + results_from: Annotated[Optional[datetime], Field(description="Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value")] = None, + results_to: Annotated[Optional[datetime], Field(description="Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGuestsByStatusResponse: + """getGuestsByStatus + + Returns a list of guests in the current status (Not Checked In, In House, Checked Out or Cancelled), sorted by modification date. If no date range is passed, it returns all guests with the selected status. ### Group account support + + :param status: Guest status during the period (required) + :type status: str + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param results_from: Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value + :type results_from: datetime + :param results_to: Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value + :type results_to: datetime + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_by_status_get_serialize( + status=status, + property_id=property_id, + results_from=results_from, + results_to=results_to, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsByStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_guests_by_status_get_with_http_info( + self, + status: Annotated[StrictStr, Field(description="Guest status during the period")], + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + results_from: Annotated[Optional[datetime], Field(description="Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value")] = None, + results_to: Annotated[Optional[datetime], Field(description="Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGuestsByStatusResponse]: + """getGuestsByStatus + + Returns a list of guests in the current status (Not Checked In, In House, Checked Out or Cancelled), sorted by modification date. If no date range is passed, it returns all guests with the selected status. ### Group account support + + :param status: Guest status during the period (required) + :type status: str + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param results_from: Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value + :type results_from: datetime + :param results_to: Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value + :type results_to: datetime + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_by_status_get_serialize( + status=status, + property_id=property_id, + results_from=results_from, + results_to=results_to, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsByStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_guests_by_status_get_without_preload_content( + self, + status: Annotated[StrictStr, Field(description="Guest status during the period")], + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + results_from: Annotated[Optional[datetime], Field(description="Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value")] = None, + results_to: Annotated[Optional[datetime], Field(description="Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGuestsByStatus + + Returns a list of guests in the current status (Not Checked In, In House, Checked Out or Cancelled), sorted by modification date. If no date range is passed, it returns all guests with the selected status. ### Group account support + + :param status: Guest status during the period (required) + :type status: str + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param results_from: Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value + :type results_from: datetime + :param results_to: Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value + :type results_to: datetime + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_by_status_get_serialize( + status=status, + property_id=property_id, + results_from=results_from, + results_to=results_to, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsByStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_guests_by_status_get_serialize( + self, + status, + property_id, + results_from, + results_to, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if status is not None: + + _query_params.append(('status', status)) + + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGuestsByStatus', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_guests_modified_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + in_house: Annotated[Optional[StrictBool], Field(description="When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results.")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGuestsModifiedResponse: + """getGuestsModified + + Returns a list of guests based on their modification date. Note that when a guest checks in or checks out of a room, their record is modified at that time. If no date range is passed, only the records for the current day are returned. Also note that if the guest is assigned to multiple rooms, it will result in multiple records. ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param in_house: When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results. + :type in_house: bool + :param results_from: Inferior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_to: datetime + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_modified_get_serialize( + property_ids=property_ids, + in_house=in_house, + results_from=results_from, + results_to=results_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsModifiedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_guests_modified_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + in_house: Annotated[Optional[StrictBool], Field(description="When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results.")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGuestsModifiedResponse]: + """getGuestsModified + + Returns a list of guests based on their modification date. Note that when a guest checks in or checks out of a room, their record is modified at that time. If no date range is passed, only the records for the current day are returned. Also note that if the guest is assigned to multiple rooms, it will result in multiple records. ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param in_house: When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results. + :type in_house: bool + :param results_from: Inferior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_to: datetime + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_modified_get_serialize( + property_ids=property_ids, + in_house=in_house, + results_from=results_from, + results_to=results_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsModifiedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_guests_modified_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + in_house: Annotated[Optional[StrictBool], Field(description="When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results.")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter guests result, based on latest creation/modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getGuestsModified + + Returns a list of guests based on their modification date. Note that when a guest checks in or checks out of a room, their record is modified at that time. If no date range is passed, only the records for the current day are returned. Also note that if the guest is assigned to multiple rooms, it will result in multiple records. ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param in_house: When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results. + :type in_house: bool + :param results_from: Inferior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter guests result, based on latest creation/modification date + :type results_to: datetime + :param check_in_from: Filters guests result to return only guests with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters guests result to return only guests with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters guests result to return only guests with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date + :type check_out_to: date + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_guests_modified_get_serialize( + property_ids=property_ids, + in_house=in_house, + results_from=results_from, + results_to=results_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGuestsModifiedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_guests_modified_get_serialize( + self, + property_ids, + in_house, + results_from, + results_to, + check_in_from, + check_in_to, + check_out_from, + check_out_to, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if in_house is not None: + + _query_params.append(('inHouse', in_house)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if check_in_from is not None: + if isinstance(check_in_from, date): + _query_params.append( + ( + 'checkInFrom', + check_in_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInFrom', check_in_from)) + + if check_in_to is not None: + if isinstance(check_in_to, date): + _query_params.append( + ( + 'checkInTo', + check_in_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInTo', check_in_to)) + + if check_out_from is not None: + if isinstance(check_out_from, date): + _query_params.append( + ( + 'checkOutFrom', + check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutFrom', check_out_from)) + + if check_out_to is not None: + if isinstance(check_out_to, date): + _query_params.append( + ( + 'checkOutTo', + check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutTo', check_out_to)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getGuestsModified', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_guest_document_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGuestDocumentResponse: + """postGuestDocument + + Attaches a document to a guest + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest Unique Identifier + :type guest_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_document_post_serialize( + property_id=property_id, + guest_id=guest_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestDocumentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_guest_document_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGuestDocumentResponse]: + """postGuestDocument + + Attaches a document to a guest + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest Unique Identifier + :type guest_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_document_post_serialize( + property_id=property_id, + guest_id=guest_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestDocumentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_guest_document_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGuestDocument + + Attaches a document to a guest + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest Unique Identifier + :type guest_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_document_post_serialize( + property_id=property_id, + guest_id=guest_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestDocumentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_guest_document_post_serialize( + self, + property_id, + guest_id, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if guest_id is not None: + _form_params.append(('guestID', guest_id)) + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGuestDocument', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_guest_note_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGuestNoteResponse: + """postGuestNote + + Adds a guest note + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest ID + :type guest_id: str + :param guest_note: Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_note_post_serialize( + property_id=property_id, + guest_id=guest_id, + guest_note=guest_note, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_guest_note_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGuestNoteResponse]: + """postGuestNote + + Adds a guest note + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest ID + :type guest_id: str + :param guest_note: Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_note_post_serialize( + property_id=property_id, + guest_id=guest_id, + guest_note=guest_note, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_guest_note_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGuestNote + + Adds a guest note + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest ID + :type guest_id: str + :param guest_note: Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_note_post_serialize( + property_id=property_id, + guest_id=guest_id, + guest_note=guest_note, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_guest_note_post_serialize( + self, + property_id, + guest_id, + guest_note, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if guest_id is not None: + _form_params.append(('guestID', guest_id)) + if guest_note is not None: + _form_params.append(('guestNote', guest_note)) + if user_id is not None: + _form_params.append(('userID', user_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGuestNote', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_guest_photo_post( + self, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGuestPhotoResponse: + """postGuestPhoto + + Attaches a photo to a guest + + :param guest_id: Guest Unique Identifier + :type guest_id: str + :param file: Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_photo_post_serialize( + guest_id=guest_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestPhotoResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_guest_photo_post_with_http_info( + self, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGuestPhotoResponse]: + """postGuestPhoto + + Attaches a photo to a guest + + :param guest_id: Guest Unique Identifier + :type guest_id: str + :param file: Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_photo_post_serialize( + guest_id=guest_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestPhotoResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_guest_photo_post_without_preload_content( + self, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGuestPhoto + + Attaches a photo to a guest + + :param guest_id: Guest Unique Identifier + :type guest_id: str + :param file: Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_photo_post_serialize( + guest_id=guest_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestPhotoResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_guest_photo_post_serialize( + self, + guest_id, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if guest_id is not None: + _form_params.append(('guestID', guest_id)) + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGuestPhoto', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_guest_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + guest_first_name: Optional[StrictStr] = None, + guest_last_name: Optional[StrictStr] = None, + guest_gender: Optional[StrictStr] = None, + guest_email: Optional[StrictStr] = None, + guest_phone: Optional[StrictStr] = None, + guest_cell_phone: Optional[StrictStr] = None, + guest_address1: Optional[StrictStr] = None, + guest_address2: Optional[StrictStr] = None, + guest_city: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters)")] = None, + guest_state: Optional[StrictStr] = None, + guest_zip: Optional[StrictStr] = None, + guest_birth_date: Optional[date] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, + guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, + guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, + guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, + guest_tax_id: Annotated[Optional[StrictStr], Field(description="Guest tax ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGuestResponse: + """postGuest + + Adds a guest to reservation as an additional guest. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param guest_first_name: + :type guest_first_name: str + :param guest_last_name: + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_email: + :type guest_email: str + :param guest_phone: + :type guest_phone: str + :param guest_cell_phone: + :type guest_cell_phone: str + :param guest_address1: + :type guest_address1: str + :param guest_address2: + :type guest_address2: str + :param guest_city: + :type guest_city: str + :param guest_country: ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_state: + :type guest_state: str + :param guest_zip: + :type guest_zip: str + :param guest_birth_date: + :type guest_birth_date: date + :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
+ :type guest_document_type: str + :param guest_document_number: (mandatory when guestDocumentType is sent) + :type guest_document_number: str + :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :type guest_document_issue_date: date + :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) + :type guest_document_issuing_country: str + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :type guest_document_expiration_date: date + :param custom_fields: Only guest custom fields are allowed. + :type custom_fields: List[PostGuestRequestCustomFieldsInner] + :param guest_note: Note to be added to the Guest + :type guest_note: str + :param reservation_note: Note to be added only to the Reservation. + :type reservation_note: str + :param guest_company_name: Guest company name + :type guest_company_name: str + :param guest_company_tax_id: Guest company tax ID + :type guest_company_tax_id: str + :param guest_tax_id: Guest tax ID + :type guest_tax_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, + guest_address1=guest_address1, + guest_address2=guest_address2, + guest_city=guest_city, + guest_country=guest_country, + guest_state=guest_state, + guest_zip=guest_zip, + guest_birth_date=guest_birth_date, + guest_document_type=guest_document_type, + guest_document_number=guest_document_number, + guest_document_issue_date=guest_document_issue_date, + guest_document_issuing_country=guest_document_issuing_country, + guest_document_expiration_date=guest_document_expiration_date, + custom_fields=custom_fields, + guest_note=guest_note, + reservation_note=reservation_note, + guest_company_name=guest_company_name, + guest_company_tax_id=guest_company_tax_id, + guest_tax_id=guest_tax_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_guest_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + guest_first_name: Optional[StrictStr] = None, + guest_last_name: Optional[StrictStr] = None, + guest_gender: Optional[StrictStr] = None, + guest_email: Optional[StrictStr] = None, + guest_phone: Optional[StrictStr] = None, + guest_cell_phone: Optional[StrictStr] = None, + guest_address1: Optional[StrictStr] = None, + guest_address2: Optional[StrictStr] = None, + guest_city: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters)")] = None, + guest_state: Optional[StrictStr] = None, + guest_zip: Optional[StrictStr] = None, + guest_birth_date: Optional[date] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, + guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, + guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, + guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, + guest_tax_id: Annotated[Optional[StrictStr], Field(description="Guest tax ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGuestResponse]: + """postGuest + + Adds a guest to reservation as an additional guest. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param guest_first_name: + :type guest_first_name: str + :param guest_last_name: + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_email: + :type guest_email: str + :param guest_phone: + :type guest_phone: str + :param guest_cell_phone: + :type guest_cell_phone: str + :param guest_address1: + :type guest_address1: str + :param guest_address2: + :type guest_address2: str + :param guest_city: + :type guest_city: str + :param guest_country: ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_state: + :type guest_state: str + :param guest_zip: + :type guest_zip: str + :param guest_birth_date: + :type guest_birth_date: date + :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
+ :type guest_document_type: str + :param guest_document_number: (mandatory when guestDocumentType is sent) + :type guest_document_number: str + :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :type guest_document_issue_date: date + :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) + :type guest_document_issuing_country: str + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :type guest_document_expiration_date: date + :param custom_fields: Only guest custom fields are allowed. + :type custom_fields: List[PostGuestRequestCustomFieldsInner] + :param guest_note: Note to be added to the Guest + :type guest_note: str + :param reservation_note: Note to be added only to the Reservation. + :type reservation_note: str + :param guest_company_name: Guest company name + :type guest_company_name: str + :param guest_company_tax_id: Guest company tax ID + :type guest_company_tax_id: str + :param guest_tax_id: Guest tax ID + :type guest_tax_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, + guest_address1=guest_address1, + guest_address2=guest_address2, + guest_city=guest_city, + guest_country=guest_country, + guest_state=guest_state, + guest_zip=guest_zip, + guest_birth_date=guest_birth_date, + guest_document_type=guest_document_type, + guest_document_number=guest_document_number, + guest_document_issue_date=guest_document_issue_date, + guest_document_issuing_country=guest_document_issuing_country, + guest_document_expiration_date=guest_document_expiration_date, + custom_fields=custom_fields, + guest_note=guest_note, + reservation_note=reservation_note, + guest_company_name=guest_company_name, + guest_company_tax_id=guest_company_tax_id, + guest_tax_id=guest_tax_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_guest_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + guest_first_name: Optional[StrictStr] = None, + guest_last_name: Optional[StrictStr] = None, + guest_gender: Optional[StrictStr] = None, + guest_email: Optional[StrictStr] = None, + guest_phone: Optional[StrictStr] = None, + guest_cell_phone: Optional[StrictStr] = None, + guest_address1: Optional[StrictStr] = None, + guest_address2: Optional[StrictStr] = None, + guest_city: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters)")] = None, + guest_state: Optional[StrictStr] = None, + guest_zip: Optional[StrictStr] = None, + guest_birth_date: Optional[date] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, + guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, + guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, + guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, + guest_tax_id: Annotated[Optional[StrictStr], Field(description="Guest tax ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGuest + + Adds a guest to reservation as an additional guest. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param guest_first_name: + :type guest_first_name: str + :param guest_last_name: + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_email: + :type guest_email: str + :param guest_phone: + :type guest_phone: str + :param guest_cell_phone: + :type guest_cell_phone: str + :param guest_address1: + :type guest_address1: str + :param guest_address2: + :type guest_address2: str + :param guest_city: + :type guest_city: str + :param guest_country: ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_state: + :type guest_state: str + :param guest_zip: + :type guest_zip: str + :param guest_birth_date: + :type guest_birth_date: date + :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
+ :type guest_document_type: str + :param guest_document_number: (mandatory when guestDocumentType is sent) + :type guest_document_number: str + :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :type guest_document_issue_date: date + :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) + :type guest_document_issuing_country: str + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :type guest_document_expiration_date: date + :param custom_fields: Only guest custom fields are allowed. + :type custom_fields: List[PostGuestRequestCustomFieldsInner] + :param guest_note: Note to be added to the Guest + :type guest_note: str + :param reservation_note: Note to be added only to the Reservation. + :type reservation_note: str + :param guest_company_name: Guest company name + :type guest_company_name: str + :param guest_company_tax_id: Guest company tax ID + :type guest_company_tax_id: str + :param guest_tax_id: Guest tax ID + :type guest_tax_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, + guest_address1=guest_address1, + guest_address2=guest_address2, + guest_city=guest_city, + guest_country=guest_country, + guest_state=guest_state, + guest_zip=guest_zip, + guest_birth_date=guest_birth_date, + guest_document_type=guest_document_type, + guest_document_number=guest_document_number, + guest_document_issue_date=guest_document_issue_date, + guest_document_issuing_country=guest_document_issuing_country, + guest_document_expiration_date=guest_document_expiration_date, + custom_fields=custom_fields, + guest_note=guest_note, + reservation_note=reservation_note, + guest_company_name=guest_company_name, + guest_company_tax_id=guest_company_tax_id, + guest_tax_id=guest_tax_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_guest_post_serialize( + self, + property_id, + reservation_id, + guest_first_name, + guest_last_name, + guest_gender, + guest_email, + guest_phone, + guest_cell_phone, + guest_address1, + guest_address2, + guest_city, + guest_country, + guest_state, + guest_zip, + guest_birth_date, + guest_document_type, + guest_document_number, + guest_document_issue_date, + guest_document_issuing_country, + guest_document_expiration_date, + custom_fields, + guest_note, + reservation_note, + guest_company_name, + guest_company_tax_id, + guest_tax_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'customFields': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if guest_first_name is not None: + _form_params.append(('guestFirstName', guest_first_name)) + if guest_last_name is not None: + _form_params.append(('guestLastName', guest_last_name)) + if guest_gender is not None: + _form_params.append(('guestGender', guest_gender)) + if guest_email is not None: + _form_params.append(('guestEmail', guest_email)) + if guest_phone is not None: + _form_params.append(('guestPhone', guest_phone)) + if guest_cell_phone is not None: + _form_params.append(('guestCellPhone', guest_cell_phone)) + if guest_address1 is not None: + _form_params.append(('guestAddress1', guest_address1)) + if guest_address2 is not None: + _form_params.append(('guestAddress2', guest_address2)) + if guest_city is not None: + _form_params.append(('guestCity', guest_city)) + if guest_country is not None: + _form_params.append(('guestCountry', guest_country)) + if guest_state is not None: + _form_params.append(('guestState', guest_state)) + if guest_zip is not None: + _form_params.append(('guestZip', guest_zip)) + if guest_birth_date is not None: + _form_params.append(('guestBirthDate', guest_birth_date)) + if guest_document_type is not None: + _form_params.append(('guestDocumentType', guest_document_type)) + if guest_document_number is not None: + _form_params.append(('guestDocumentNumber', guest_document_number)) + if guest_document_issue_date is not None: + _form_params.append(('guestDocumentIssueDate', guest_document_issue_date)) + if guest_document_issuing_country is not None: + _form_params.append(('guestDocumentIssuingCountry', guest_document_issuing_country)) + if guest_document_expiration_date is not None: + _form_params.append(('guestDocumentExpirationDate', guest_document_expiration_date)) + if custom_fields is not None: + _form_params.append(('customFields', custom_fields)) + if guest_note is not None: + _form_params.append(('guestNote', guest_note)) + if reservation_note is not None: + _form_params.append(('reservationNote', reservation_note)) + if guest_company_name is not None: + _form_params.append(('guestCompanyName', guest_company_name)) + if guest_company_tax_id is not None: + _form_params.append(('guestCompanyTaxId', guest_company_tax_id)) + if guest_tax_id is not None: + _form_params.append(('guestTaxId', guest_tax_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGuest', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_guests_to_room_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + room_id: Annotated[Optional[StrictInt], Field(description="Room ID already assigned to Reservation")] = None, + guest_ids: Annotated[Optional[StrictStr], Field(description="Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89")] = None, + remove_guest_ids: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed.")] = None, + remove_all: Annotated[Optional[StrictBool], Field(description="If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGuestsToRoomResponse: + """postGuestsToRoom + + Assigns guest(s) to a room in a reservation and adds these guests as additional guests. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param room_id: Room ID already assigned to Reservation + :type room_id: int + :param guest_ids: Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89 + :type guest_ids: str + :param remove_guest_ids: If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. + :type remove_guest_ids: str + :param remove_all: If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. + :type remove_all: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guests_to_room_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + room_id=room_id, + guest_ids=guest_ids, + remove_guest_ids=remove_guest_ids, + remove_all=remove_all, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestsToRoomResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_guests_to_room_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + room_id: Annotated[Optional[StrictInt], Field(description="Room ID already assigned to Reservation")] = None, + guest_ids: Annotated[Optional[StrictStr], Field(description="Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89")] = None, + remove_guest_ids: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed.")] = None, + remove_all: Annotated[Optional[StrictBool], Field(description="If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGuestsToRoomResponse]: + """postGuestsToRoom + + Assigns guest(s) to a room in a reservation and adds these guests as additional guests. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param room_id: Room ID already assigned to Reservation + :type room_id: int + :param guest_ids: Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89 + :type guest_ids: str + :param remove_guest_ids: If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. + :type remove_guest_ids: str + :param remove_all: If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. + :type remove_all: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guests_to_room_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + room_id=room_id, + guest_ids=guest_ids, + remove_guest_ids=remove_guest_ids, + remove_all=remove_all, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestsToRoomResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_guests_to_room_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + room_id: Annotated[Optional[StrictInt], Field(description="Room ID already assigned to Reservation")] = None, + guest_ids: Annotated[Optional[StrictStr], Field(description="Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89")] = None, + remove_guest_ids: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed.")] = None, + remove_all: Annotated[Optional[StrictBool], Field(description="If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGuestsToRoom + + Assigns guest(s) to a room in a reservation and adds these guests as additional guests. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param room_id: Room ID already assigned to Reservation + :type room_id: int + :param guest_ids: Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89 + :type guest_ids: str + :param remove_guest_ids: If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. + :type remove_guest_ids: str + :param remove_all: If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. + :type remove_all: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guests_to_room_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + room_id=room_id, + guest_ids=guest_ids, + remove_guest_ids=remove_guest_ids, + remove_all=remove_all, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestsToRoomResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_guests_to_room_post_serialize( + self, + property_id, + reservation_id, + room_id, + guest_ids, + remove_guest_ids, + remove_all, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if room_id is not None: + _form_params.append(('roomID', room_id)) + if guest_ids is not None: + _form_params.append(('guestIDs', guest_ids)) + if remove_guest_ids is not None: + _form_params.append(('removeGuestIDs', remove_guest_ids)) + if remove_all is not None: + _form_params.append(('removeAll', remove_all)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGuestsToRoom', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_guest_note_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID")] = None, + note_id: Annotated[Optional[StrictStr], Field(description="Note ID")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutGuestNoteResponse: + """putGuestNote + + Updates an existing guest note. + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest ID + :type guest_id: str + :param note_id: Note ID + :type note_id: str + :param guest_note: Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_guest_note_put_serialize( + property_id=property_id, + guest_id=guest_id, + note_id=note_id, + guest_note=guest_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_guest_note_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID")] = None, + note_id: Annotated[Optional[StrictStr], Field(description="Note ID")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutGuestNoteResponse]: + """putGuestNote + + Updates an existing guest note. + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest ID + :type guest_id: str + :param note_id: Note ID + :type note_id: str + :param guest_note: Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_guest_note_put_serialize( + property_id=property_id, + guest_id=guest_id, + note_id=note_id, + guest_note=guest_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_guest_note_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID")] = None, + note_id: Annotated[Optional[StrictStr], Field(description="Note ID")] = None, + guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putGuestNote + + Updates an existing guest note. + + :param property_id: Property ID + :type property_id: str + :param guest_id: Guest ID + :type guest_id: str + :param note_id: Note ID + :type note_id: str + :param guest_note: Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_guest_note_put_serialize( + property_id=property_id, + guest_id=guest_id, + note_id=note_id, + guest_note=guest_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutGuestNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_guest_note_put_serialize( + self, + property_id, + guest_id, + note_id, + guest_note, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if guest_id is not None: + _form_params.append(('guestID', guest_id)) + if note_id is not None: + _form_params.append(('noteID', note_id)) + if guest_note is not None: + _form_params.append(('guestNote', guest_note)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putGuestNote', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_guest_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Valid Guest ID")] = None, + guest_first_name: Optional[StrictStr] = None, + guest_last_name: Optional[StrictStr] = None, + guest_gender: Optional[StrictStr] = None, + guest_email: Optional[StrictStr] = None, + guest_phone: Optional[StrictStr] = None, + guest_cell_phone: Optional[StrictStr] = None, + guest_address1: Optional[StrictStr] = None, + guest_address2: Optional[StrictStr] = None, + guest_city: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters)")] = None, + guest_state: Optional[StrictStr] = None, + guest_zip: Optional[StrictStr] = None, + guest_birth_date: Optional[date] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, + guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, + guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, + guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, + guest_tax_id: Annotated[Optional[StrictStr], Field(description="Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutGuestResponse: + """putGuest + + Updates an existing guest with information provided. At least one information field is required for this call. + + :param property_id: Property ID + :type property_id: str + :param guest_id: Valid Guest ID + :type guest_id: str + :param guest_first_name: + :type guest_first_name: str + :param guest_last_name: + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_email: + :type guest_email: str + :param guest_phone: + :type guest_phone: str + :param guest_cell_phone: + :type guest_cell_phone: str + :param guest_address1: + :type guest_address1: str + :param guest_address2: + :type guest_address2: str + :param guest_city: + :type guest_city: str + :param guest_country: ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_state: + :type guest_state: str + :param guest_zip: + :type guest_zip: str + :param guest_birth_date: + :type guest_birth_date: date + :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
+ :type guest_document_type: str + :param guest_document_number: (mandatory when guestDocumentType is sent) + :type guest_document_number: str + :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :type guest_document_issue_date: date + :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) + :type guest_document_issuing_country: str + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :type guest_document_expiration_date: date + :param guest_custom_fields: + :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] + :param guest_company_name: Guest company name + :type guest_company_name: str + :param guest_company_tax_id: Guest company tax ID + :type guest_company_tax_id: str + :param guest_tax_id: Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_tax_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_guest_put_serialize( + property_id=property_id, + guest_id=guest_id, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, + guest_address1=guest_address1, + guest_address2=guest_address2, + guest_city=guest_city, + guest_country=guest_country, + guest_state=guest_state, + guest_zip=guest_zip, + guest_birth_date=guest_birth_date, + guest_document_type=guest_document_type, + guest_document_number=guest_document_number, + guest_document_issue_date=guest_document_issue_date, + guest_document_issuing_country=guest_document_issuing_country, + guest_document_expiration_date=guest_document_expiration_date, + guest_custom_fields=guest_custom_fields, + guest_company_name=guest_company_name, + guest_company_tax_id=guest_company_tax_id, + guest_tax_id=guest_tax_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_guest_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Valid Guest ID")] = None, + guest_first_name: Optional[StrictStr] = None, + guest_last_name: Optional[StrictStr] = None, + guest_gender: Optional[StrictStr] = None, + guest_email: Optional[StrictStr] = None, + guest_phone: Optional[StrictStr] = None, + guest_cell_phone: Optional[StrictStr] = None, + guest_address1: Optional[StrictStr] = None, + guest_address2: Optional[StrictStr] = None, + guest_city: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters)")] = None, + guest_state: Optional[StrictStr] = None, + guest_zip: Optional[StrictStr] = None, + guest_birth_date: Optional[date] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, + guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, + guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, + guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, + guest_tax_id: Annotated[Optional[StrictStr], Field(description="Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutGuestResponse]: + """putGuest + + Updates an existing guest with information provided. At least one information field is required for this call. + + :param property_id: Property ID + :type property_id: str + :param guest_id: Valid Guest ID + :type guest_id: str + :param guest_first_name: + :type guest_first_name: str + :param guest_last_name: + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_email: + :type guest_email: str + :param guest_phone: + :type guest_phone: str + :param guest_cell_phone: + :type guest_cell_phone: str + :param guest_address1: + :type guest_address1: str + :param guest_address2: + :type guest_address2: str + :param guest_city: + :type guest_city: str + :param guest_country: ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_state: + :type guest_state: str + :param guest_zip: + :type guest_zip: str + :param guest_birth_date: + :type guest_birth_date: date + :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
+ :type guest_document_type: str + :param guest_document_number: (mandatory when guestDocumentType is sent) + :type guest_document_number: str + :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :type guest_document_issue_date: date + :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) + :type guest_document_issuing_country: str + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :type guest_document_expiration_date: date + :param guest_custom_fields: + :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] + :param guest_company_name: Guest company name + :type guest_company_name: str + :param guest_company_tax_id: Guest company tax ID + :type guest_company_tax_id: str + :param guest_tax_id: Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_tax_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_guest_put_serialize( + property_id=property_id, + guest_id=guest_id, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, + guest_address1=guest_address1, + guest_address2=guest_address2, + guest_city=guest_city, + guest_country=guest_country, + guest_state=guest_state, + guest_zip=guest_zip, + guest_birth_date=guest_birth_date, + guest_document_type=guest_document_type, + guest_document_number=guest_document_number, + guest_document_issue_date=guest_document_issue_date, + guest_document_issuing_country=guest_document_issuing_country, + guest_document_expiration_date=guest_document_expiration_date, + guest_custom_fields=guest_custom_fields, + guest_company_name=guest_company_name, + guest_company_tax_id=guest_company_tax_id, + guest_tax_id=guest_tax_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_guest_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Valid Guest ID")] = None, + guest_first_name: Optional[StrictStr] = None, + guest_last_name: Optional[StrictStr] = None, + guest_gender: Optional[StrictStr] = None, + guest_email: Optional[StrictStr] = None, + guest_phone: Optional[StrictStr] = None, + guest_cell_phone: Optional[StrictStr] = None, + guest_address1: Optional[StrictStr] = None, + guest_address2: Optional[StrictStr] = None, + guest_city: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters)")] = None, + guest_state: Optional[StrictStr] = None, + guest_zip: Optional[StrictStr] = None, + guest_birth_date: Optional[date] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, + guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, + guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, + guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, + guest_tax_id: Annotated[Optional[StrictStr], Field(description="Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putGuest + + Updates an existing guest with information provided. At least one information field is required for this call. + + :param property_id: Property ID + :type property_id: str + :param guest_id: Valid Guest ID + :type guest_id: str + :param guest_first_name: + :type guest_first_name: str + :param guest_last_name: + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_email: + :type guest_email: str + :param guest_phone: + :type guest_phone: str + :param guest_cell_phone: + :type guest_cell_phone: str + :param guest_address1: + :type guest_address1: str + :param guest_address2: + :type guest_address2: str + :param guest_city: + :type guest_city: str + :param guest_country: ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_state: + :type guest_state: str + :param guest_zip: + :type guest_zip: str + :param guest_birth_date: + :type guest_birth_date: date + :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
+ :type guest_document_type: str + :param guest_document_number: (mandatory when guestDocumentType is sent) + :type guest_document_number: str + :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :type guest_document_issue_date: date + :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) + :type guest_document_issuing_country: str + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :type guest_document_expiration_date: date + :param guest_custom_fields: + :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] + :param guest_company_name: Guest company name + :type guest_company_name: str + :param guest_company_tax_id: Guest company tax ID + :type guest_company_tax_id: str + :param guest_tax_id: Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. + :type guest_tax_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_guest_put_serialize( + property_id=property_id, + guest_id=guest_id, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, + guest_address1=guest_address1, + guest_address2=guest_address2, + guest_city=guest_city, + guest_country=guest_country, + guest_state=guest_state, + guest_zip=guest_zip, + guest_birth_date=guest_birth_date, + guest_document_type=guest_document_type, + guest_document_number=guest_document_number, + guest_document_issue_date=guest_document_issue_date, + guest_document_issuing_country=guest_document_issuing_country, + guest_document_expiration_date=guest_document_expiration_date, + guest_custom_fields=guest_custom_fields, + guest_company_name=guest_company_name, + guest_company_tax_id=guest_company_tax_id, + guest_tax_id=guest_tax_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutGuestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_guest_put_serialize( + self, + property_id, + guest_id, + guest_first_name, + guest_last_name, + guest_gender, + guest_email, + guest_phone, + guest_cell_phone, + guest_address1, + guest_address2, + guest_city, + guest_country, + guest_state, + guest_zip, + guest_birth_date, + guest_document_type, + guest_document_number, + guest_document_issue_date, + guest_document_issuing_country, + guest_document_expiration_date, + guest_custom_fields, + guest_company_name, + guest_company_tax_id, + guest_tax_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'guestCustomFields': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if guest_id is not None: + _form_params.append(('guestID', guest_id)) + if guest_first_name is not None: + _form_params.append(('guestFirstName', guest_first_name)) + if guest_last_name is not None: + _form_params.append(('guestLastName', guest_last_name)) + if guest_gender is not None: + _form_params.append(('guestGender', guest_gender)) + if guest_email is not None: + _form_params.append(('guestEmail', guest_email)) + if guest_phone is not None: + _form_params.append(('guestPhone', guest_phone)) + if guest_cell_phone is not None: + _form_params.append(('guestCellPhone', guest_cell_phone)) + if guest_address1 is not None: + _form_params.append(('guestAddress1', guest_address1)) + if guest_address2 is not None: + _form_params.append(('guestAddress2', guest_address2)) + if guest_city is not None: + _form_params.append(('guestCity', guest_city)) + if guest_country is not None: + _form_params.append(('guestCountry', guest_country)) + if guest_state is not None: + _form_params.append(('guestState', guest_state)) + if guest_zip is not None: + _form_params.append(('guestZip', guest_zip)) + if guest_birth_date is not None: + _form_params.append(('guestBirthDate', guest_birth_date)) + if guest_document_type is not None: + _form_params.append(('guestDocumentType', guest_document_type)) + if guest_document_number is not None: + _form_params.append(('guestDocumentNumber', guest_document_number)) + if guest_document_issue_date is not None: + _form_params.append(('guestDocumentIssueDate', guest_document_issue_date)) + if guest_document_issuing_country is not None: + _form_params.append(('guestDocumentIssuingCountry', guest_document_issuing_country)) + if guest_document_expiration_date is not None: + _form_params.append(('guestDocumentExpirationDate', guest_document_expiration_date)) + if guest_custom_fields is not None: + _form_params.append(('guestCustomFields', guest_custom_fields)) + if guest_company_name is not None: + _form_params.append(('guestCompanyName', guest_company_name)) + if guest_company_tax_id is not None: + _form_params.append(('guestCompanyTaxId', guest_company_tax_id)) + if guest_tax_id is not None: + _form_params.append(('guestTaxId', guest_tax_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putGuest', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/hotel_api.py b/cloudbeds_pms_v1_2/api/hotel_api.py new file mode 100644 index 0000000..b69d033 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/hotel_api.py @@ -0,0 +1,1277 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator +from typing import Optional, Tuple, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class HotelApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_files_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + name: Annotated[Optional[StrictStr], Field(description="Filter filess by name. Include only with names containing specified string")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetFilesResponse: + """getFiles + + Returns a list of files attached to a hotel, ordered by creation date + + :param property_id: Property ID + :type property_id: str + :param sort_by: Sort By parameter + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param name: Filter filess by name. Include only with names containing specified string + :type name: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_files_get_serialize( + property_id=property_id, + sort_by=sort_by, + order_by=order_by, + name=name, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFilesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_files_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + name: Annotated[Optional[StrictStr], Field(description="Filter filess by name. Include only with names containing specified string")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetFilesResponse]: + """getFiles + + Returns a list of files attached to a hotel, ordered by creation date + + :param property_id: Property ID + :type property_id: str + :param sort_by: Sort By parameter + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param name: Filter filess by name. Include only with names containing specified string + :type name: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_files_get_serialize( + property_id=property_id, + sort_by=sort_by, + order_by=order_by, + name=name, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFilesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_files_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + name: Annotated[Optional[StrictStr], Field(description="Filter filess by name. Include only with names containing specified string")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getFiles + + Returns a list of files attached to a hotel, ordered by creation date + + :param property_id: Property ID + :type property_id: str + :param sort_by: Sort By parameter + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param name: Filter filess by name. Include only with names containing specified string + :type name: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_files_get_serialize( + property_id=property_id, + sort_by=sort_by, + order_by=order_by, + name=name, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFilesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_files_get_serialize( + self, + property_id, + sort_by, + order_by, + name, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if sort_by is not None: + + _query_params.append(('sortBy', sort_by)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + if name is not None: + + _query_params.append(('name', name)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getFiles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_hotel_details_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHotelDetailsResponse: + """getHotelDetails + + Returns the details of a specific hotel, identified by \"propertyID\" + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotel_details_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_hotel_details_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHotelDetailsResponse]: + """getHotelDetails + + Returns the details of a specific hotel, identified by \"propertyID\" + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotel_details_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_hotel_details_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHotelDetails + + Returns the details of a specific hotel, identified by \"propertyID\" + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotel_details_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_hotel_details_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHotelDetails', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_hotels_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + property_name: Annotated[Optional[StrictStr], Field(description="Property name, or part of it")] = None, + property_city: Annotated[Optional[StrictStr], Field(description="Property city, or part of it")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHotelsResponse: + """getHotels + + Returns a list of hotels, filtered by the parameters passed ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param property_name: Property name, or part of it + :type property_name: str + :param property_city: Property city, or part of it + :type property_city: str + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotels_get_serialize( + property_ids=property_ids, + property_name=property_name, + property_city=property_city, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_hotels_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + property_name: Annotated[Optional[StrictStr], Field(description="Property name, or part of it")] = None, + property_city: Annotated[Optional[StrictStr], Field(description="Property city, or part of it")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHotelsResponse]: + """getHotels + + Returns a list of hotels, filtered by the parameters passed ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param property_name: Property name, or part of it + :type property_name: str + :param property_city: Property city, or part of it + :type property_city: str + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotels_get_serialize( + property_ids=property_ids, + property_name=property_name, + property_city=property_city, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_hotels_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + property_name: Annotated[Optional[StrictStr], Field(description="Property name, or part of it")] = None, + property_city: Annotated[Optional[StrictStr], Field(description="Property city, or part of it")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHotels + + Returns a list of hotels, filtered by the parameters passed ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param property_name: Property name, or part of it + :type property_name: str + :param property_city: Property city, or part of it + :type property_city: str + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotels_get_serialize( + property_ids=property_ids, + property_name=property_name, + property_city=property_city, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_hotels_get_serialize( + self, + property_ids, + property_name, + property_city, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if property_name is not None: + + _query_params.append(('propertyName', property_name)) + + if property_city is not None: + + _query_params.append(('propertyCity', property_city)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHotels', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_file_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostFileResponse: + """postFile + + Attaches a file to a hotel + + :param property_id: Property ID + :type property_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_file_post_serialize( + property_id=property_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostFileResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_file_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostFileResponse]: + """postFile + + Attaches a file to a hotel + + :param property_id: Property ID + :type property_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_file_post_serialize( + property_id=property_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostFileResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_file_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postFile + + Attaches a file to a hotel + + :param property_id: Property ID + :type property_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_file_post_serialize( + property_id=property_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostFileResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_file_post_serialize( + self, + property_id, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postFile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/house_account_api.py b/cloudbeds_pms_v1_2/api/house_account_api.py new file mode 100644 index 0000000..2c4a499 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/house_account_api.py @@ -0,0 +1,1250 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date +from pydantic import Field, StrictBool, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class HouseAccountApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_house_account_details_get( + self, + house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHouseAccountDetailsResponse: + """getHouseAccountDetails + + Pulls details of specific house account + + :param house_account_id: House Account ID to get details for (required) + :type house_account_id: str + :param property_id: Property ID + :type property_id: str + :param results_from: date\"] Inferior limit date, used to filter result records + :type results_from: date + :param results_to: date\"] Inferior limit date, used to filter result records + :type results_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_details_get_serialize( + house_account_id=house_account_id, + property_id=property_id, + results_from=results_from, + results_to=results_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_house_account_details_get_with_http_info( + self, + house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHouseAccountDetailsResponse]: + """getHouseAccountDetails + + Pulls details of specific house account + + :param house_account_id: House Account ID to get details for (required) + :type house_account_id: str + :param property_id: Property ID + :type property_id: str + :param results_from: date\"] Inferior limit date, used to filter result records + :type results_from: date + :param results_to: date\"] Inferior limit date, used to filter result records + :type results_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_details_get_serialize( + house_account_id=house_account_id, + property_id=property_id, + results_from=results_from, + results_to=results_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_house_account_details_get_without_preload_content( + self, + house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHouseAccountDetails + + Pulls details of specific house account + + :param house_account_id: House Account ID to get details for (required) + :type house_account_id: str + :param property_id: Property ID + :type property_id: str + :param results_from: date\"] Inferior limit date, used to filter result records + :type results_from: date + :param results_to: date\"] Inferior limit date, used to filter result records + :type results_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_details_get_serialize( + house_account_id=house_account_id, + property_id=property_id, + results_from=results_from, + results_to=results_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_house_account_details_get_serialize( + self, + house_account_id, + property_id, + results_from, + results_to, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if house_account_id is not None: + + _query_params.append(('houseAccountID', house_account_id)) + + if results_from is not None: + if isinstance(results_from, date): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, date): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHouseAccountDetails', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_house_account_list_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHouseAccountListResponse: + """getHouseAccountList + + Pulls list of active house accounts + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_list_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_house_account_list_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHouseAccountListResponse]: + """getHouseAccountList + + Pulls list of active house accounts + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_list_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_house_account_list_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHouseAccountList + + Pulls list of active house accounts + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_list_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_house_account_list_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHouseAccountList', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_new_house_account_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostNewHouseAccountResponse: + """postNewHouseAccount + + Add a new House Account + + :param property_id: Property ID + :type property_id: str + :param account_name: House Account name + :type account_name: str + :param is_private: Whether House Account is available only to user + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_new_house_account_post_serialize( + property_id=property_id, + account_name=account_name, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostNewHouseAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_new_house_account_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostNewHouseAccountResponse]: + """postNewHouseAccount + + Add a new House Account + + :param property_id: Property ID + :type property_id: str + :param account_name: House Account name + :type account_name: str + :param is_private: Whether House Account is available only to user + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_new_house_account_post_serialize( + property_id=property_id, + account_name=account_name, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostNewHouseAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_new_house_account_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postNewHouseAccount + + Add a new House Account + + :param property_id: Property ID + :type property_id: str + :param account_name: House Account name + :type account_name: str + :param is_private: Whether House Account is available only to user + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_new_house_account_post_serialize( + property_id=property_id, + account_name=account_name, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostNewHouseAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_new_house_account_post_serialize( + self, + property_id, + account_name, + is_private, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if account_name is not None: + _form_params.append(('accountName', account_name)) + if is_private is not None: + _form_params.append(('isPrivate', is_private)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postNewHouseAccount', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_house_account_status_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutHouseAccountStatusResponse: + """putHouseAccountStatus + + Change specific house account to either open or closed. + + :param property_id: Property ID + :type property_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param status: House Account status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_house_account_status_put_serialize( + property_id=property_id, + house_account_id=house_account_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHouseAccountStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_house_account_status_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutHouseAccountStatusResponse]: + """putHouseAccountStatus + + Change specific house account to either open or closed. + + :param property_id: Property ID + :type property_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param status: House Account status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_house_account_status_put_serialize( + property_id=property_id, + house_account_id=house_account_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHouseAccountStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_house_account_status_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putHouseAccountStatus + + Change specific house account to either open or closed. + + :param property_id: Property ID + :type property_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param status: House Account status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_house_account_status_put_serialize( + property_id=property_id, + house_account_id=house_account_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHouseAccountStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_house_account_status_put_serialize( + self, + property_id, + house_account_id, + status, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if status is not None: + _form_params.append(('status', status)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putHouseAccountStatus', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/housekeeping_api.py b/cloudbeds_pms_v1_2/api/housekeeping_api.py new file mode 100644 index 0000000..d384442 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/housekeeping_api.py @@ -0,0 +1,1973 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class HousekeepingApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_housekeepers_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 1000")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHousekeepersResponse: + """getHousekeepers + + Returns a list of housekeepers ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 1000 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_housekeepers_get_serialize( + property_id=property_id, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHousekeepersResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_housekeepers_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 1000")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHousekeepersResponse]: + """getHousekeepers + + Returns a list of housekeepers ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 1000 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_housekeepers_get_serialize( + property_id=property_id, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHousekeepersResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_housekeepers_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 1000")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHousekeepers + + Returns a list of housekeepers ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 1000 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_housekeepers_get_serialize( + property_id=property_id, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHousekeepersResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_housekeepers_get_serialize( + self, + property_id, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHousekeepers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_housekeeping_status_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_type_ids: Annotated[Optional[StrictStr], Field(description="Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89")] = None, + housekeeper_ids: Annotated[Optional[StrictStr], Field(description="Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0.")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="Condition of room")] = None, + room_occupied: Annotated[Optional[StrictBool], Field(description="Flag for current room occupation status")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 5000")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHousekeepingStatusResponse: + """getHousekeepingStatus + + Returns the current date's housekeeping information The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + + :param property_id: Property ID + :type property_id: str + :param room_type_ids: Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89 + :type room_type_ids: str + :param housekeeper_ids: Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0. + :type housekeeper_ids: str + :param room_condition: Condition of room + :type room_condition: str + :param room_occupied: Flag for current room occupation status + :type room_occupied: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 5000 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_housekeeping_status_get_serialize( + property_id=property_id, + room_type_ids=room_type_ids, + housekeeper_ids=housekeeper_ids, + room_condition=room_condition, + room_occupied=room_occupied, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHousekeepingStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_housekeeping_status_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_type_ids: Annotated[Optional[StrictStr], Field(description="Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89")] = None, + housekeeper_ids: Annotated[Optional[StrictStr], Field(description="Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0.")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="Condition of room")] = None, + room_occupied: Annotated[Optional[StrictBool], Field(description="Flag for current room occupation status")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 5000")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHousekeepingStatusResponse]: + """getHousekeepingStatus + + Returns the current date's housekeeping information The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + + :param property_id: Property ID + :type property_id: str + :param room_type_ids: Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89 + :type room_type_ids: str + :param housekeeper_ids: Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0. + :type housekeeper_ids: str + :param room_condition: Condition of room + :type room_condition: str + :param room_occupied: Flag for current room occupation status + :type room_occupied: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 5000 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_housekeeping_status_get_serialize( + property_id=property_id, + room_type_ids=room_type_ids, + housekeeper_ids=housekeeper_ids, + room_condition=room_condition, + room_occupied=room_occupied, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHousekeepingStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_housekeeping_status_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_type_ids: Annotated[Optional[StrictStr], Field(description="Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89")] = None, + housekeeper_ids: Annotated[Optional[StrictStr], Field(description="Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0.")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="Condition of room")] = None, + room_occupied: Annotated[Optional[StrictBool], Field(description="Flag for current room occupation status")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 5000")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHousekeepingStatus + + Returns the current date's housekeeping information The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + + :param property_id: Property ID + :type property_id: str + :param room_type_ids: Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89 + :type room_type_ids: str + :param housekeeper_ids: Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0. + :type housekeeper_ids: str + :param room_condition: Condition of room + :type room_condition: str + :param room_occupied: Flag for current room occupation status + :type room_occupied: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 5000 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_housekeeping_status_get_serialize( + property_id=property_id, + room_type_ids=room_type_ids, + housekeeper_ids=housekeeper_ids, + room_condition=room_condition, + room_occupied=room_occupied, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHousekeepingStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_housekeeping_status_get_serialize( + self, + property_id, + room_type_ids, + housekeeper_ids, + room_condition, + room_occupied, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if room_type_ids is not None: + + _query_params.append(('roomTypeIDs', room_type_ids)) + + if housekeeper_ids is not None: + + _query_params.append(('housekeeperIDs', housekeeper_ids)) + + if room_condition is not None: + + _query_params.append(('roomCondition', room_condition)) + + if room_occupied is not None: + + _query_params.append(('roomOccupied', room_occupied)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHousekeepingStatus', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_housekeeper_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Housekeeper name")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostHousekeeperResponse: + """postHousekeeper + + Add New Housekeeper + + :param property_id: Property ID + :type property_id: str + :param name: Housekeeper name + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeper_post_serialize( + property_id=property_id, + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeeperResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_housekeeper_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Housekeeper name")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostHousekeeperResponse]: + """postHousekeeper + + Add New Housekeeper + + :param property_id: Property ID + :type property_id: str + :param name: Housekeeper name + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeper_post_serialize( + property_id=property_id, + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeeperResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_housekeeper_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Housekeeper name")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postHousekeeper + + Add New Housekeeper + + :param property_id: Property ID + :type property_id: str + :param name: Housekeeper name + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeper_post_serialize( + property_id=property_id, + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeeperResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_housekeeper_post_serialize( + self, + property_id, + name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if name is not None: + _form_params.append(('name', name)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postHousekeeper', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_housekeeping_assignment_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_ids: Annotated[Optional[StrictStr], Field(description="List of room IDs comma-separated, i.e. 37,345,89")] = None, + housekeeper_id: Annotated[Optional[StrictStr], Field(description="Housekeeper ID. To designate a room as unassigned, simply set the value to 0.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostHousekeepingAssignmentResponse: + """postHousekeepingAssignment + + Assign rooms (single or multiple) to an existing housekeeper + + :param property_id: Property ID + :type property_id: str + :param room_ids: List of room IDs comma-separated, i.e. 37,345,89 + :type room_ids: str + :param housekeeper_id: Housekeeper ID. To designate a room as unassigned, simply set the value to 0. + :type housekeeper_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeping_assignment_post_serialize( + property_id=property_id, + room_ids=room_ids, + housekeeper_id=housekeeper_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeepingAssignmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_housekeeping_assignment_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_ids: Annotated[Optional[StrictStr], Field(description="List of room IDs comma-separated, i.e. 37,345,89")] = None, + housekeeper_id: Annotated[Optional[StrictStr], Field(description="Housekeeper ID. To designate a room as unassigned, simply set the value to 0.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostHousekeepingAssignmentResponse]: + """postHousekeepingAssignment + + Assign rooms (single or multiple) to an existing housekeeper + + :param property_id: Property ID + :type property_id: str + :param room_ids: List of room IDs comma-separated, i.e. 37,345,89 + :type room_ids: str + :param housekeeper_id: Housekeeper ID. To designate a room as unassigned, simply set the value to 0. + :type housekeeper_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeping_assignment_post_serialize( + property_id=property_id, + room_ids=room_ids, + housekeeper_id=housekeeper_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeepingAssignmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_housekeeping_assignment_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_ids: Annotated[Optional[StrictStr], Field(description="List of room IDs comma-separated, i.e. 37,345,89")] = None, + housekeeper_id: Annotated[Optional[StrictStr], Field(description="Housekeeper ID. To designate a room as unassigned, simply set the value to 0.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postHousekeepingAssignment + + Assign rooms (single or multiple) to an existing housekeeper + + :param property_id: Property ID + :type property_id: str + :param room_ids: List of room IDs comma-separated, i.e. 37,345,89 + :type room_ids: str + :param housekeeper_id: Housekeeper ID. To designate a room as unassigned, simply set the value to 0. + :type housekeeper_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeping_assignment_post_serialize( + property_id=property_id, + room_ids=room_ids, + housekeeper_id=housekeeper_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeepingAssignmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_housekeeping_assignment_post_serialize( + self, + property_id, + room_ids, + housekeeper_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if room_ids is not None: + _form_params.append(('roomIDs', room_ids)) + if housekeeper_id is not None: + _form_params.append(('housekeeperID', housekeeper_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postHousekeepingAssignment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_housekeeping_status_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition")] = None, + do_not_disturb: Annotated[Optional[StrictBool], Field(description="New \\\"do not disturb\\\" status")] = None, + room_comments: Annotated[Optional[StrictStr], Field(description="New room comments.")] = None, + refused_service: Annotated[Optional[StrictBool], Field(description="New \\\"refused service\\\" status")] = None, + vacant_pickup: Annotated[Optional[StrictBool], Field(description="New \\\"vacant_pickup\\\" status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostHousekeepingStatusResponse: + """postHousekeepingStatus + + Switches the current date's housekeeping status for a specific room ID to either clean or dirty The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + + :param property_id: Property ID + :type property_id: str + :param room_id: Room ID + :type room_id: str + :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition + :type room_condition: str + :param do_not_disturb: New \\\"do not disturb\\\" status + :type do_not_disturb: bool + :param room_comments: New room comments. + :type room_comments: str + :param refused_service: New \\\"refused service\\\" status + :type refused_service: bool + :param vacant_pickup: New \\\"vacant_pickup\\\" status + :type vacant_pickup: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeping_status_post_serialize( + property_id=property_id, + room_id=room_id, + room_condition=room_condition, + do_not_disturb=do_not_disturb, + room_comments=room_comments, + refused_service=refused_service, + vacant_pickup=vacant_pickup, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeepingStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_housekeeping_status_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition")] = None, + do_not_disturb: Annotated[Optional[StrictBool], Field(description="New \\\"do not disturb\\\" status")] = None, + room_comments: Annotated[Optional[StrictStr], Field(description="New room comments.")] = None, + refused_service: Annotated[Optional[StrictBool], Field(description="New \\\"refused service\\\" status")] = None, + vacant_pickup: Annotated[Optional[StrictBool], Field(description="New \\\"vacant_pickup\\\" status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostHousekeepingStatusResponse]: + """postHousekeepingStatus + + Switches the current date's housekeeping status for a specific room ID to either clean or dirty The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + + :param property_id: Property ID + :type property_id: str + :param room_id: Room ID + :type room_id: str + :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition + :type room_condition: str + :param do_not_disturb: New \\\"do not disturb\\\" status + :type do_not_disturb: bool + :param room_comments: New room comments. + :type room_comments: str + :param refused_service: New \\\"refused service\\\" status + :type refused_service: bool + :param vacant_pickup: New \\\"vacant_pickup\\\" status + :type vacant_pickup: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeping_status_post_serialize( + property_id=property_id, + room_id=room_id, + room_condition=room_condition, + do_not_disturb=do_not_disturb, + room_comments=room_comments, + refused_service=refused_service, + vacant_pickup=vacant_pickup, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeepingStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_housekeeping_status_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition")] = None, + do_not_disturb: Annotated[Optional[StrictBool], Field(description="New \\\"do not disturb\\\" status")] = None, + room_comments: Annotated[Optional[StrictStr], Field(description="New room comments.")] = None, + refused_service: Annotated[Optional[StrictBool], Field(description="New \\\"refused service\\\" status")] = None, + vacant_pickup: Annotated[Optional[StrictBool], Field(description="New \\\"vacant_pickup\\\" status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postHousekeepingStatus + + Switches the current date's housekeeping status for a specific room ID to either clean or dirty The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + + :param property_id: Property ID + :type property_id: str + :param room_id: Room ID + :type room_id: str + :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition + :type room_condition: str + :param do_not_disturb: New \\\"do not disturb\\\" status + :type do_not_disturb: bool + :param room_comments: New room comments. + :type room_comments: str + :param refused_service: New \\\"refused service\\\" status + :type refused_service: bool + :param vacant_pickup: New \\\"vacant_pickup\\\" status + :type vacant_pickup: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_housekeeping_status_post_serialize( + property_id=property_id, + room_id=room_id, + room_condition=room_condition, + do_not_disturb=do_not_disturb, + room_comments=room_comments, + refused_service=refused_service, + vacant_pickup=vacant_pickup, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostHousekeepingStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_housekeeping_status_post_serialize( + self, + property_id, + room_id, + room_condition, + do_not_disturb, + room_comments, + refused_service, + vacant_pickup, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if room_id is not None: + _form_params.append(('roomID', room_id)) + if room_condition is not None: + _form_params.append(('roomCondition', room_condition)) + if do_not_disturb is not None: + _form_params.append(('doNotDisturb', do_not_disturb)) + if room_comments is not None: + _form_params.append(('roomComments', room_comments)) + if refused_service is not None: + _form_params.append(('refusedService', refused_service)) + if vacant_pickup is not None: + _form_params.append(('vacantPickup', vacant_pickup)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postHousekeepingStatus', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_housekeeper_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Housekeeper name")] = None, + housekeeper_id: Annotated[Optional[StrictStr], Field(description="Housekeeper ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutHousekeeperResponse: + """putHousekeeper + + Edit Housekeeper Details + + :param property_id: Property ID + :type property_id: str + :param name: Housekeeper name + :type name: str + :param housekeeper_id: Housekeeper ID + :type housekeeper_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_housekeeper_put_serialize( + property_id=property_id, + name=name, + housekeeper_id=housekeeper_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHousekeeperResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_housekeeper_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Housekeeper name")] = None, + housekeeper_id: Annotated[Optional[StrictStr], Field(description="Housekeeper ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutHousekeeperResponse]: + """putHousekeeper + + Edit Housekeeper Details + + :param property_id: Property ID + :type property_id: str + :param name: Housekeeper name + :type name: str + :param housekeeper_id: Housekeeper ID + :type housekeeper_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_housekeeper_put_serialize( + property_id=property_id, + name=name, + housekeeper_id=housekeeper_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHousekeeperResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_housekeeper_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + name: Annotated[Optional[StrictStr], Field(description="Housekeeper name")] = None, + housekeeper_id: Annotated[Optional[StrictStr], Field(description="Housekeeper ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putHousekeeper + + Edit Housekeeper Details + + :param property_id: Property ID + :type property_id: str + :param name: Housekeeper name + :type name: str + :param housekeeper_id: Housekeeper ID + :type housekeeper_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_housekeeper_put_serialize( + property_id=property_id, + name=name, + housekeeper_id=housekeeper_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHousekeeperResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_housekeeper_put_serialize( + self, + property_id, + name, + housekeeper_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if name is not None: + _form_params.append(('name', name)) + if housekeeper_id is not None: + _form_params.append(('housekeeperID', housekeeper_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putHousekeeper', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/integration_api.py b/cloudbeds_pms_v1_2/api/integration_api.py new file mode 100644 index 0000000..991c6fc --- /dev/null +++ b/cloudbeds_pms_v1_2/api/integration_api.py @@ -0,0 +1,2491 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class IntegrationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_webhook_delete( + self, + subscription_id: Annotated[StrictStr, Field(description="Subscription ID")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteWebhookResponse: + """deleteWebhook + + Remove subscription for webhook. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. ### Group account support + + :param subscription_id: Subscription ID (required) + :type subscription_id: str + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_webhook_delete_serialize( + subscription_id=subscription_id, + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteWebhookResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_webhook_delete_with_http_info( + self, + subscription_id: Annotated[StrictStr, Field(description="Subscription ID")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteWebhookResponse]: + """deleteWebhook + + Remove subscription for webhook. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. ### Group account support + + :param subscription_id: Subscription ID (required) + :type subscription_id: str + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_webhook_delete_serialize( + subscription_id=subscription_id, + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteWebhookResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_webhook_delete_without_preload_content( + self, + subscription_id: Annotated[StrictStr, Field(description="Subscription ID")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteWebhook + + Remove subscription for webhook. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. ### Group account support + + :param subscription_id: Subscription ID (required) + :type subscription_id: str + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_webhook_delete_serialize( + subscription_id=subscription_id, + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteWebhookResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_webhook_delete_serialize( + self, + subscription_id, + property_ids, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if subscription_id is not None: + + _query_params.append(('subscriptionID', subscription_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/deleteWebhook', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_app_settings_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAppSettingsResponse: + """getAppSettings + + Get the current app settings for a property.
+ + :param property_id: Property identifier to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_settings_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppSettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_app_settings_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAppSettingsResponse]: + """getAppSettings + + Get the current app settings for a property.
+ + :param property_id: Property identifier to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_settings_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppSettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_app_settings_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAppSettings + + Get the current app settings for a property.
+ + :param property_id: Property identifier to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_settings_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppSettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_app_settings_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAppSettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_app_state_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAppStateResponse: + """getAppState + + Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_state_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppStateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_app_state_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAppStateResponse]: + """getAppState + + Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_state_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppStateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_app_state_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAppState + + Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_app_state_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAppStateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_app_state_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAppState', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_webhooks_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetWebhooksResponse: + """getWebhooks + + List webhooks for which the API client is subscribed to. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_webhooks_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWebhooksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_webhooks_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetWebhooksResponse]: + """getWebhooks + + List webhooks for which the API client is subscribed to. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_webhooks_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWebhooksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_webhooks_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getWebhooks + + List webhooks for which the API client is subscribed to. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_webhooks_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetWebhooksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_webhooks_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getWebhooks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_app_error_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + timestamp: Annotated[Optional[datetime], Field(description="Date/time that the error was received by the middleware")] = None, + event_type: Annotated[Optional[StrictStr], Field(description="Description for the type of event that caused the error")] = None, + status_code: Annotated[Optional[StrictStr], Field(description="HTTP error status code or other error code ID")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the error")] = None, + error_message: Annotated[Optional[StrictStr], Field(description="Detailed message for error")] = None, + entity_type: Annotated[Optional[StrictStr], Field(description="Type of the entity related to the error")] = None, + entity_id: Annotated[Optional[StrictStr], Field(description="Unique ID for the entity related to the error")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID for the user that triggered event that caused the error")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAppErrorResponse: + """postAppError + + Submit the error received by the hybrid integration from the partner to the MFD + + :param property_id: Property identifier to be queried + :type property_id: str + :param timestamp: Date/time that the error was received by the middleware + :type timestamp: datetime + :param event_type: Description for the type of event that caused the error + :type event_type: str + :param status_code: HTTP error status code or other error code ID + :type status_code: str + :param description: Description of the error + :type description: str + :param error_message: Detailed message for error + :type error_message: str + :param entity_type: Type of the entity related to the error + :type entity_type: str + :param entity_id: Unique ID for the entity related to the error + :type entity_id: str + :param user_id: User ID for the user that triggered event that caused the error + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_error_post_serialize( + property_id=property_id, + timestamp=timestamp, + event_type=event_type, + status_code=status_code, + description=description, + error_message=error_message, + entity_type=entity_type, + entity_id=entity_id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_app_error_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + timestamp: Annotated[Optional[datetime], Field(description="Date/time that the error was received by the middleware")] = None, + event_type: Annotated[Optional[StrictStr], Field(description="Description for the type of event that caused the error")] = None, + status_code: Annotated[Optional[StrictStr], Field(description="HTTP error status code or other error code ID")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the error")] = None, + error_message: Annotated[Optional[StrictStr], Field(description="Detailed message for error")] = None, + entity_type: Annotated[Optional[StrictStr], Field(description="Type of the entity related to the error")] = None, + entity_id: Annotated[Optional[StrictStr], Field(description="Unique ID for the entity related to the error")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID for the user that triggered event that caused the error")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAppErrorResponse]: + """postAppError + + Submit the error received by the hybrid integration from the partner to the MFD + + :param property_id: Property identifier to be queried + :type property_id: str + :param timestamp: Date/time that the error was received by the middleware + :type timestamp: datetime + :param event_type: Description for the type of event that caused the error + :type event_type: str + :param status_code: HTTP error status code or other error code ID + :type status_code: str + :param description: Description of the error + :type description: str + :param error_message: Detailed message for error + :type error_message: str + :param entity_type: Type of the entity related to the error + :type entity_type: str + :param entity_id: Unique ID for the entity related to the error + :type entity_id: str + :param user_id: User ID for the user that triggered event that caused the error + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_error_post_serialize( + property_id=property_id, + timestamp=timestamp, + event_type=event_type, + status_code=status_code, + description=description, + error_message=error_message, + entity_type=entity_type, + entity_id=entity_id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_app_error_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + timestamp: Annotated[Optional[datetime], Field(description="Date/time that the error was received by the middleware")] = None, + event_type: Annotated[Optional[StrictStr], Field(description="Description for the type of event that caused the error")] = None, + status_code: Annotated[Optional[StrictStr], Field(description="HTTP error status code or other error code ID")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the error")] = None, + error_message: Annotated[Optional[StrictStr], Field(description="Detailed message for error")] = None, + entity_type: Annotated[Optional[StrictStr], Field(description="Type of the entity related to the error")] = None, + entity_id: Annotated[Optional[StrictStr], Field(description="Unique ID for the entity related to the error")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID for the user that triggered event that caused the error")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postAppError + + Submit the error received by the hybrid integration from the partner to the MFD + + :param property_id: Property identifier to be queried + :type property_id: str + :param timestamp: Date/time that the error was received by the middleware + :type timestamp: datetime + :param event_type: Description for the type of event that caused the error + :type event_type: str + :param status_code: HTTP error status code or other error code ID + :type status_code: str + :param description: Description of the error + :type description: str + :param error_message: Detailed message for error + :type error_message: str + :param entity_type: Type of the entity related to the error + :type entity_type: str + :param entity_id: Unique ID for the entity related to the error + :type entity_id: str + :param user_id: User ID for the user that triggered event that caused the error + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_error_post_serialize( + property_id=property_id, + timestamp=timestamp, + event_type=event_type, + status_code=status_code, + description=description, + error_message=error_message, + entity_type=entity_type, + entity_id=entity_id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppErrorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_app_error_post_serialize( + self, + property_id, + timestamp, + event_type, + status_code, + description, + error_message, + entity_type, + entity_id, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if timestamp is not None: + _form_params.append(('timestamp', timestamp)) + if event_type is not None: + _form_params.append(('eventType', event_type)) + if status_code is not None: + _form_params.append(('statusCode', status_code)) + if description is not None: + _form_params.append(('description', description)) + if error_message is not None: + _form_params.append(('errorMessage', error_message)) + if entity_type is not None: + _form_params.append(('entityType', entity_type)) + if entity_id is not None: + _form_params.append(('entityID', entity_id)) + if user_id is not None: + _form_params.append(('userID', user_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postAppError', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_app_state_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAppStateResponse: + """postAppState + + Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be updated + :type property_id: str + :param app_state: Current integration state between third-party and property. + :type app_state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_state_post_serialize( + property_id=property_id, + app_state=app_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppStateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_app_state_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAppStateResponse]: + """postAppState + + Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be updated + :type property_id: str + :param app_state: Current integration state between third-party and property. + :type app_state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_state_post_serialize( + property_id=property_id, + app_state=app_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppStateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_app_state_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postAppState + + Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be updated + :type property_id: str + :param app_state: Current integration state between third-party and property. + :type app_state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_state_post_serialize( + property_id=property_id, + app_state=app_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppStateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_app_state_post_serialize( + self, + property_id, + app_state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if app_state is not None: + _form_params.append(('app_state', app_state)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postAppState', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_government_receipt_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, + url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, + identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, + issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGovernmentReceiptResponse: + """postGovernmentReceipt + + Add a Government Receipt to a Reservation or House Account + + :param property_id: Property identifier to be updated + :type property_id: str + :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. It, or reservationID, is necessary. + :type house_account_id: str + :param name: Name of the document. Will be used to describe document in MFD. + :type name: str + :param url: URL for user to download document. + :type url: str + :param amount: Value of posted document + :type amount: float + :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. + :type identifier: str + :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. + :type issue_date: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_government_receipt_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + name=name, + url=url, + amount=amount, + identifier=identifier, + issue_date=issue_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGovernmentReceiptResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_government_receipt_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, + url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, + identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, + issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGovernmentReceiptResponse]: + """postGovernmentReceipt + + Add a Government Receipt to a Reservation or House Account + + :param property_id: Property identifier to be updated + :type property_id: str + :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. It, or reservationID, is necessary. + :type house_account_id: str + :param name: Name of the document. Will be used to describe document in MFD. + :type name: str + :param url: URL for user to download document. + :type url: str + :param amount: Value of posted document + :type amount: float + :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. + :type identifier: str + :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. + :type issue_date: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_government_receipt_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + name=name, + url=url, + amount=amount, + identifier=identifier, + issue_date=issue_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGovernmentReceiptResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_government_receipt_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, + url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, + identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, + issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGovernmentReceipt + + Add a Government Receipt to a Reservation or House Account + + :param property_id: Property identifier to be updated + :type property_id: str + :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. It, or reservationID, is necessary. + :type house_account_id: str + :param name: Name of the document. Will be used to describe document in MFD. + :type name: str + :param url: URL for user to download document. + :type url: str + :param amount: Value of posted document + :type amount: float + :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. + :type identifier: str + :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. + :type issue_date: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_government_receipt_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + name=name, + url=url, + amount=amount, + identifier=identifier, + issue_date=issue_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGovernmentReceiptResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_government_receipt_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + name, + url, + amount, + identifier, + issue_date, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if name is not None: + _form_params.append(('name', name)) + if url is not None: + _form_params.append(('url', url)) + if amount is not None: + _form_params.append(('amount', amount)) + if identifier is not None: + _form_params.append(('identifier', identifier)) + if issue_date is not None: + _form_params.append(('issueDate', issue_date)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGovernmentReceipt', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_webhook_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + object: Annotated[Optional[StrictStr], Field(description="Event object")] = None, + action: Annotated[Optional[StrictStr], Field(description="Event action")] = None, + endpoint_url: Annotated[Optional[StrictStr], Field(description="Endpoint URL")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostWebhookResponse: + """postWebhook + + Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. + + :param property_id: Property ID + :type property_id: str + :param object: Event object + :type object: str + :param action: Event action + :type action: str + :param endpoint_url: Endpoint URL + :type endpoint_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_webhook_post_serialize( + property_id=property_id, + object=object, + action=action, + endpoint_url=endpoint_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostWebhookResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_webhook_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + object: Annotated[Optional[StrictStr], Field(description="Event object")] = None, + action: Annotated[Optional[StrictStr], Field(description="Event action")] = None, + endpoint_url: Annotated[Optional[StrictStr], Field(description="Endpoint URL")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostWebhookResponse]: + """postWebhook + + Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. + + :param property_id: Property ID + :type property_id: str + :param object: Event object + :type object: str + :param action: Event action + :type action: str + :param endpoint_url: Endpoint URL + :type endpoint_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_webhook_post_serialize( + property_id=property_id, + object=object, + action=action, + endpoint_url=endpoint_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostWebhookResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_webhook_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + object: Annotated[Optional[StrictStr], Field(description="Event object")] = None, + action: Annotated[Optional[StrictStr], Field(description="Event action")] = None, + endpoint_url: Annotated[Optional[StrictStr], Field(description="Endpoint URL")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postWebhook + + Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. + + :param property_id: Property ID + :type property_id: str + :param object: Event object + :type object: str + :param action: Event action + :type action: str + :param endpoint_url: Endpoint URL + :type endpoint_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_webhook_post_serialize( + property_id=property_id, + object=object, + action=action, + endpoint_url=endpoint_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostWebhookResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_webhook_post_serialize( + self, + property_id, + object, + action, + endpoint_url, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if object is not None: + _form_params.append(('object', object)) + if action is not None: + _form_params.append(('action', action)) + if endpoint_url is not None: + _form_params.append(('endpointUrl', endpoint_url)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postWebhook', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/invoices_api.py b/cloudbeds_pms_v1_2/api/invoices_api.py new file mode 100644 index 0000000..d7afcca --- /dev/null +++ b/cloudbeds_pms_v1_2/api/invoices_api.py @@ -0,0 +1,641 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBytes, StrictStr, field_validator +from typing import Optional, Tuple, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class InvoicesApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_invoice_get( + self, + invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetInvoiceResponse: + """getInvoice + + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + + :param invoice_id: Invoice ID (required) + :type invoice_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_invoice_get_serialize( + invoice_id=invoice_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetInvoiceResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_invoice_get_with_http_info( + self, + invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetInvoiceResponse]: + """getInvoice + + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + + :param invoice_id: Invoice ID (required) + :type invoice_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_invoice_get_serialize( + invoice_id=invoice_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetInvoiceResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_invoice_get_without_preload_content( + self, + invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getInvoice + + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + + :param invoice_id: Invoice ID (required) + :type invoice_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_invoice_get_serialize( + invoice_id=invoice_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetInvoiceResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_invoice_get_serialize( + self, + invoice_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if invoice_id is not None: + + _query_params.append(('invoiceID', invoice_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getInvoice', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def patch_invoice_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPatchInvoiceResponse: + """patchInvoice + + Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param invoice_id: Invoice unique ID + :type invoice_id: str + :param status: Desired new invoice status + :type status: str + :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_invoice_post_serialize( + property_id=property_id, + invoice_id=invoice_id, + status=status, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchInvoiceResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def patch_invoice_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPatchInvoiceResponse]: + """patchInvoice + + Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param invoice_id: Invoice unique ID + :type invoice_id: str + :param status: Desired new invoice status + :type status: str + :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_invoice_post_serialize( + property_id=property_id, + invoice_id=invoice_id, + status=status, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchInvoiceResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def patch_invoice_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patchInvoice + + Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. + + :param property_id: Property ID + :type property_id: str + :param invoice_id: Invoice unique ID + :type invoice_id: str + :param status: Desired new invoice status + :type status: str + :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_invoice_post_serialize( + property_id=property_id, + invoice_id=invoice_id, + status=status, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchInvoiceResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _patch_invoice_post_serialize( + self, + property_id, + invoice_id, + status, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if invoice_id is not None: + _form_params.append(('invoiceID', invoice_id)) + if status is not None: + _form_params.append(('status', status)) + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/patchInvoice', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/item_api.py b/cloudbeds_pms_v1_2/api/item_api.py new file mode 100644 index 0000000..40887d4 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/item_api.py @@ -0,0 +1,3590 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import datetime +from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import List, Optional, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class ItemApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def append_custom_item_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID is provided.")] = None, + reference_id: Annotated[Optional[StrictStr], Field(description="partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room identifier (Ignored if subReservationID exist)")] = None, + items: Annotated[Optional[List[PostCustomItemRequestItemsInner]], Field(description="list of items will be posted")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest identifier")] = None, + guest_name: Annotated[Optional[StrictStr], Field(description="(Ignored if guestID exist)")] = None, + payments: Annotated[Optional[List[PostCustomItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAppendCustomItemResponse: + """appendCustomItem + + Append single, or multiple, custom items and their associated payments to a existing one in a Reservation. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID is provided. + :type reservation_id: str + :param reference_id: partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates + :type reference_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param room_id: Room identifier (Ignored if subReservationID exist) + :type room_id: str + :param items: list of items will be posted + :type items: List[PostCustomItemRequestItemsInner] + :param sale_date: posting date + :type sale_date: datetime + :param guest_id: Guest identifier + :type guest_id: str + :param guest_name: (Ignored if guestID exist) + :type guest_name: str + :param payments: list of payments If the item is already paid + :type payments: List[PostCustomItemRequestPaymentsInner] + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) + :type item_paid: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._append_custom_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reference_id=reference_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + items=items, + sale_date=sale_date, + guest_id=guest_id, + guest_name=guest_name, + payments=payments, + item_paid=item_paid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppendCustomItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def append_custom_item_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID is provided.")] = None, + reference_id: Annotated[Optional[StrictStr], Field(description="partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room identifier (Ignored if subReservationID exist)")] = None, + items: Annotated[Optional[List[PostCustomItemRequestItemsInner]], Field(description="list of items will be posted")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest identifier")] = None, + guest_name: Annotated[Optional[StrictStr], Field(description="(Ignored if guestID exist)")] = None, + payments: Annotated[Optional[List[PostCustomItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAppendCustomItemResponse]: + """appendCustomItem + + Append single, or multiple, custom items and their associated payments to a existing one in a Reservation. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID is provided. + :type reservation_id: str + :param reference_id: partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates + :type reference_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param room_id: Room identifier (Ignored if subReservationID exist) + :type room_id: str + :param items: list of items will be posted + :type items: List[PostCustomItemRequestItemsInner] + :param sale_date: posting date + :type sale_date: datetime + :param guest_id: Guest identifier + :type guest_id: str + :param guest_name: (Ignored if guestID exist) + :type guest_name: str + :param payments: list of payments If the item is already paid + :type payments: List[PostCustomItemRequestPaymentsInner] + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) + :type item_paid: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._append_custom_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reference_id=reference_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + items=items, + sale_date=sale_date, + guest_id=guest_id, + guest_name=guest_name, + payments=payments, + item_paid=item_paid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppendCustomItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def append_custom_item_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID is provided.")] = None, + reference_id: Annotated[Optional[StrictStr], Field(description="partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room identifier (Ignored if subReservationID exist)")] = None, + items: Annotated[Optional[List[PostCustomItemRequestItemsInner]], Field(description="list of items will be posted")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest identifier")] = None, + guest_name: Annotated[Optional[StrictStr], Field(description="(Ignored if guestID exist)")] = None, + payments: Annotated[Optional[List[PostCustomItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """appendCustomItem + + Append single, or multiple, custom items and their associated payments to a existing one in a Reservation. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID is provided. + :type reservation_id: str + :param reference_id: partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates + :type reference_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param room_id: Room identifier (Ignored if subReservationID exist) + :type room_id: str + :param items: list of items will be posted + :type items: List[PostCustomItemRequestItemsInner] + :param sale_date: posting date + :type sale_date: datetime + :param guest_id: Guest identifier + :type guest_id: str + :param guest_name: (Ignored if guestID exist) + :type guest_name: str + :param payments: list of payments If the item is already paid + :type payments: List[PostCustomItemRequestPaymentsInner] + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) + :type item_paid: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._append_custom_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reference_id=reference_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + items=items, + sale_date=sale_date, + guest_id=guest_id, + guest_name=guest_name, + payments=payments, + item_paid=item_paid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppendCustomItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _append_custom_item_post_serialize( + self, + property_id, + reservation_id, + reference_id, + sub_reservation_id, + room_id, + items, + sale_date, + guest_id, + guest_name, + payments, + item_paid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'items': 'csv', + 'payments': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if reference_id is not None: + _form_params.append(('referenceID', reference_id)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if room_id is not None: + _form_params.append(('roomID', room_id)) + if items is not None: + _form_params.append(('items', items)) + if sale_date is not None: + _form_params.append(('saleDate', sale_date)) + if guest_id is not None: + _form_params.append(('guestID', guest_id)) + if guest_name is not None: + _form_params.append(('guestName', guest_name)) + if payments is not None: + _form_params.append(('payments', payments)) + if item_paid is not None: + _form_params.append(('itemPaid', item_paid)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/appendCustomItem', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_item_categories_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetItemCategoriesResponse: + """getItemCategories + + Gets the item category list + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_item_categories_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemCategoriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_item_categories_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetItemCategoriesResponse]: + """getItemCategories + + Gets the item category list + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_item_categories_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemCategoriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_item_categories_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getItemCategories + + Gets the item category list + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_item_categories_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemCategoriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_item_categories_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getItemCategories', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_item_get( + self, + item_id: Annotated[StrictStr, Field(description="Item identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetItemResponse: + """getItem + + Gets the details for the one itemID
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ + :param item_id: Item identifier (required) + :type item_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_item_get_serialize( + item_id=item_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_item_get_with_http_info( + self, + item_id: Annotated[StrictStr, Field(description="Item identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetItemResponse]: + """getItem + + Gets the details for the one itemID
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ + :param item_id: Item identifier (required) + :type item_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_item_get_serialize( + item_id=item_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_item_get_without_preload_content( + self, + item_id: Annotated[StrictStr, Field(description="Item identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getItem + + Gets the details for the one itemID
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ + :param item_id: Item identifier (required) + :type item_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_item_get_serialize( + item_id=item_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_item_get_serialize( + self, + item_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if item_id is not None: + + _query_params.append(('itemID', item_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getItem', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_items_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + item_category_id: Annotated[Optional[StrictStr], Field(description="Category identifier")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetItemsResponse: + """getItems + + Gets all the items and their prices the hotel has created in myfrontdesk
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ + :param property_id: Property ID + :type property_id: str + :param item_category_id: Category identifier + :type item_category_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_items_get_serialize( + property_id=property_id, + item_category_id=item_category_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_items_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + item_category_id: Annotated[Optional[StrictStr], Field(description="Category identifier")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetItemsResponse]: + """getItems + + Gets all the items and their prices the hotel has created in myfrontdesk
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ + :param property_id: Property ID + :type property_id: str + :param item_category_id: Category identifier + :type item_category_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_items_get_serialize( + property_id=property_id, + item_category_id=item_category_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_items_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + item_category_id: Annotated[Optional[StrictStr], Field(description="Category identifier")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getItems + + Gets all the items and their prices the hotel has created in myfrontdesk
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ + :param property_id: Property ID + :type property_id: str + :param item_category_id: Category identifier + :type item_category_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_items_get_serialize( + property_id=property_id, + item_category_id=item_category_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetItemsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_items_get_serialize( + self, + property_id, + item_category_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if item_category_id is not None: + + _query_params.append(('itemCategoryID', item_category_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getItems', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_custom_item_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, + reference_id: Annotated[Optional[StrictStr], Field(description="partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room identifier (Ignored if subReservationID exist)")] = None, + items: Annotated[Optional[List[PostCustomItemRequestItemsInner]], Field(description="list of items will be posted")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest identifier")] = None, + guest_name: Annotated[Optional[StrictStr], Field(description="(Ignored if guestID exist)")] = None, + payments: Annotated[Optional[List[PostCustomItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCustomItemResponse: + """postCustomItem + + Adds single, or multiple, custom items and their associated payments to a Reservation or House Account as a single transaction. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. + :type reservation_id: str + :param house_account_id: House account identifier. Required if no reservationID or groupCode is provided. + :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str + :param reference_id: partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates + :type reference_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param room_id: Room identifier (Ignored if subReservationID exist) + :type room_id: str + :param items: list of items will be posted + :type items: List[PostCustomItemRequestItemsInner] + :param sale_date: posting date + :type sale_date: datetime + :param guest_id: Guest identifier + :type guest_id: str + :param guest_name: (Ignored if guestID exist) + :type guest_name: str + :param payments: list of payments If the item is already paid + :type payments: List[PostCustomItemRequestPaymentsInner] + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) + :type item_paid: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_code=group_code, + reference_id=reference_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + items=items, + sale_date=sale_date, + guest_id=guest_id, + guest_name=guest_name, + payments=payments, + item_paid=item_paid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_custom_item_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, + reference_id: Annotated[Optional[StrictStr], Field(description="partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room identifier (Ignored if subReservationID exist)")] = None, + items: Annotated[Optional[List[PostCustomItemRequestItemsInner]], Field(description="list of items will be posted")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest identifier")] = None, + guest_name: Annotated[Optional[StrictStr], Field(description="(Ignored if guestID exist)")] = None, + payments: Annotated[Optional[List[PostCustomItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCustomItemResponse]: + """postCustomItem + + Adds single, or multiple, custom items and their associated payments to a Reservation or House Account as a single transaction. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. + :type reservation_id: str + :param house_account_id: House account identifier. Required if no reservationID or groupCode is provided. + :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str + :param reference_id: partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates + :type reference_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param room_id: Room identifier (Ignored if subReservationID exist) + :type room_id: str + :param items: list of items will be posted + :type items: List[PostCustomItemRequestItemsInner] + :param sale_date: posting date + :type sale_date: datetime + :param guest_id: Guest identifier + :type guest_id: str + :param guest_name: (Ignored if guestID exist) + :type guest_name: str + :param payments: list of payments If the item is already paid + :type payments: List[PostCustomItemRequestPaymentsInner] + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) + :type item_paid: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_code=group_code, + reference_id=reference_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + items=items, + sale_date=sale_date, + guest_id=guest_id, + guest_name=guest_name, + payments=payments, + item_paid=item_paid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_custom_item_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, + reference_id: Annotated[Optional[StrictStr], Field(description="partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room identifier (Ignored if subReservationID exist)")] = None, + items: Annotated[Optional[List[PostCustomItemRequestItemsInner]], Field(description="list of items will be posted")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest identifier")] = None, + guest_name: Annotated[Optional[StrictStr], Field(description="(Ignored if guestID exist)")] = None, + payments: Annotated[Optional[List[PostCustomItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCustomItem + + Adds single, or multiple, custom items and their associated payments to a Reservation or House Account as a single transaction. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. + :type reservation_id: str + :param house_account_id: House account identifier. Required if no reservationID or groupCode is provided. + :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str + :param reference_id: partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates + :type reference_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param room_id: Room identifier (Ignored if subReservationID exist) + :type room_id: str + :param items: list of items will be posted + :type items: List[PostCustomItemRequestItemsInner] + :param sale_date: posting date + :type sale_date: datetime + :param guest_id: Guest identifier + :type guest_id: str + :param guest_name: (Ignored if guestID exist) + :type guest_name: str + :param payments: list of payments If the item is already paid + :type payments: List[PostCustomItemRequestPaymentsInner] + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) + :type item_paid: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_code=group_code, + reference_id=reference_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + items=items, + sale_date=sale_date, + guest_id=guest_id, + guest_name=guest_name, + payments=payments, + item_paid=item_paid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_custom_item_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + group_code, + reference_id, + sub_reservation_id, + room_id, + items, + sale_date, + guest_id, + guest_name, + payments, + item_paid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'items': 'csv', + 'payments': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) + if reference_id is not None: + _form_params.append(('referenceID', reference_id)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if room_id is not None: + _form_params.append(('roomID', room_id)) + if items is not None: + _form_params.append(('items', items)) + if sale_date is not None: + _form_params.append(('saleDate', sale_date)) + if guest_id is not None: + _form_params.append(('guestID', guest_id)) + if guest_name is not None: + _form_params.append(('guestName', guest_name)) + if payments is not None: + _form_params.append(('payments', payments)) + if item_paid is not None: + _form_params.append(('itemPaid', item_paid)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCustomItem', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_item_category_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + category_name: Annotated[Optional[StrictStr], Field(description="Category name")] = None, + category_code: Annotated[Optional[StrictStr], Field(description="Category code")] = None, + item_id: Annotated[Optional[List[StrictInt]], Field(description="Existing ItemIDs to reassign to new category")] = None, + category_color: Annotated[Optional[StrictStr], Field(description="Category color (like #3b7be7)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostItemCategoryResponse: + """postItemCategory + + Adds new items category + + :param property_id: Property ID + :type property_id: str + :param category_name: Category name + :type category_name: str + :param category_code: Category code + :type category_code: str + :param item_id: Existing ItemIDs to reassign to new category + :type item_id: List[int] + :param category_color: Category color (like #3b7be7) + :type category_color: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_category_post_serialize( + property_id=property_id, + category_name=category_name, + category_code=category_code, + item_id=item_id, + category_color=category_color, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemCategoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_item_category_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + category_name: Annotated[Optional[StrictStr], Field(description="Category name")] = None, + category_code: Annotated[Optional[StrictStr], Field(description="Category code")] = None, + item_id: Annotated[Optional[List[StrictInt]], Field(description="Existing ItemIDs to reassign to new category")] = None, + category_color: Annotated[Optional[StrictStr], Field(description="Category color (like #3b7be7)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostItemCategoryResponse]: + """postItemCategory + + Adds new items category + + :param property_id: Property ID + :type property_id: str + :param category_name: Category name + :type category_name: str + :param category_code: Category code + :type category_code: str + :param item_id: Existing ItemIDs to reassign to new category + :type item_id: List[int] + :param category_color: Category color (like #3b7be7) + :type category_color: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_category_post_serialize( + property_id=property_id, + category_name=category_name, + category_code=category_code, + item_id=item_id, + category_color=category_color, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemCategoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_item_category_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + category_name: Annotated[Optional[StrictStr], Field(description="Category name")] = None, + category_code: Annotated[Optional[StrictStr], Field(description="Category code")] = None, + item_id: Annotated[Optional[List[StrictInt]], Field(description="Existing ItemIDs to reassign to new category")] = None, + category_color: Annotated[Optional[StrictStr], Field(description="Category color (like #3b7be7)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postItemCategory + + Adds new items category + + :param property_id: Property ID + :type property_id: str + :param category_name: Category name + :type category_name: str + :param category_code: Category code + :type category_code: str + :param item_id: Existing ItemIDs to reassign to new category + :type item_id: List[int] + :param category_color: Category color (like #3b7be7) + :type category_color: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_category_post_serialize( + property_id=property_id, + category_name=category_name, + category_code=category_code, + item_id=item_id, + category_color=category_color, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemCategoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_item_category_post_serialize( + self, + property_id, + category_name, + category_code, + item_id, + category_color, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'itemID': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if category_name is not None: + _form_params.append(('categoryName', category_name)) + if category_code is not None: + _form_params.append(('categoryCode', category_code)) + if item_id is not None: + _form_params.append(('itemID', item_id)) + if category_color is not None: + _form_params.append(('categoryColor', category_color)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postItemCategory', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_item_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier.")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, + item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, + item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostItemResponse: + """postItem + + Adds an item either to a reservation or to a house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. + :type reservation_id: str + :param house_account_id: House account identifier. Required if no reservationID or groupCode is provided. + :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str + :param sub_reservation_id: Sub Reservation identifier. + :type sub_reservation_id: str + :param item_id: Item identifier + :type item_id: str + :param item_quantity: Items quantity + :type item_quantity: int + :param item_price: Item price, if not sent, items registered price will be used + :type item_price: str + :param item_note: Item note + :type item_note: str + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. + :type item_paid: bool + :param sale_date: posting date + :type sale_date: datetime + :param payments: list of payments If the item is already paid + :type payments: List[PostItemRequestPaymentsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_code=group_code, + sub_reservation_id=sub_reservation_id, + item_id=item_id, + item_quantity=item_quantity, + item_price=item_price, + item_note=item_note, + item_paid=item_paid, + sale_date=sale_date, + payments=payments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_item_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier.")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, + item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, + item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostItemResponse]: + """postItem + + Adds an item either to a reservation or to a house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. + :type reservation_id: str + :param house_account_id: House account identifier. Required if no reservationID or groupCode is provided. + :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str + :param sub_reservation_id: Sub Reservation identifier. + :type sub_reservation_id: str + :param item_id: Item identifier + :type item_id: str + :param item_quantity: Items quantity + :type item_quantity: int + :param item_price: Item price, if not sent, items registered price will be used + :type item_price: str + :param item_note: Item note + :type item_note: str + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. + :type item_paid: bool + :param sale_date: posting date + :type sale_date: datetime + :param payments: list of payments If the item is already paid + :type payments: List[PostItemRequestPaymentsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_code=group_code, + sub_reservation_id=sub_reservation_id, + item_id=item_id, + item_quantity=item_quantity, + item_price=item_price, + item_note=item_note, + item_paid=item_paid, + sale_date=sale_date, + payments=payments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_item_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier.")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, + item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, + item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, + sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, + payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postItem + + Adds an item either to a reservation or to a house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. + :type reservation_id: str + :param house_account_id: House account identifier. Required if no reservationID or groupCode is provided. + :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str + :param sub_reservation_id: Sub Reservation identifier. + :type sub_reservation_id: str + :param item_id: Item identifier + :type item_id: str + :param item_quantity: Items quantity + :type item_quantity: int + :param item_price: Item price, if not sent, items registered price will be used + :type item_price: str + :param item_note: Item note + :type item_note: str + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. + :type item_paid: bool + :param sale_date: posting date + :type sale_date: datetime + :param payments: list of payments If the item is already paid + :type payments: List[PostItemRequestPaymentsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_code=group_code, + sub_reservation_id=sub_reservation_id, + item_id=item_id, + item_quantity=item_quantity, + item_price=item_price, + item_note=item_note, + item_paid=item_paid, + sale_date=sale_date, + payments=payments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_item_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + group_code, + sub_reservation_id, + item_id, + item_quantity, + item_price, + item_note, + item_paid, + sale_date, + payments, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'payments': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if item_id is not None: + _form_params.append(('itemID', item_id)) + if item_quantity is not None: + _form_params.append(('itemQuantity', item_quantity)) + if item_price is not None: + _form_params.append(('itemPrice', item_price)) + if item_note is not None: + _form_params.append(('itemNote', item_note)) + if item_paid is not None: + _form_params.append(('itemPaid', item_paid)) + if sale_date is not None: + _form_params.append(('saleDate', sale_date)) + if payments is not None: + _form_params.append(('payments', payments)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postItem', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_items_to_inventory_post( + self, + item: Optional[PostItemsToInventoryRequestItem] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostItemsToInventoryResponse: + """postItemsToInventory + + Adds new items batch
¹ only if item.stockInventory = true
+ + :param item: + :type item: PostItemsToInventoryRequestItem + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_items_to_inventory_post_serialize( + item=item, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemsToInventoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_items_to_inventory_post_with_http_info( + self, + item: Optional[PostItemsToInventoryRequestItem] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostItemsToInventoryResponse]: + """postItemsToInventory + + Adds new items batch
¹ only if item.stockInventory = true
+ + :param item: + :type item: PostItemsToInventoryRequestItem + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_items_to_inventory_post_serialize( + item=item, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemsToInventoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_items_to_inventory_post_without_preload_content( + self, + item: Optional[PostItemsToInventoryRequestItem] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postItemsToInventory + + Adds new items batch
¹ only if item.stockInventory = true
+ + :param item: + :type item: PostItemsToInventoryRequestItem + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_items_to_inventory_post_serialize( + item=item, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemsToInventoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_items_to_inventory_post_serialize( + self, + item, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if item is not None: + _form_params.append(('item', item)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postItemsToInventory', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_void_item_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. reservationID or houseAccountID are necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. reservationID or houseAccountID are necessary.")] = None, + sold_product_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostVoidItemResponse: + """postVoidItem + + Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. reservationID or houseAccountID are necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. reservationID or houseAccountID are necessary. + :type house_account_id: str + :param sold_product_id: Item identifier + :type sold_product_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sold_product_id=sold_product_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_void_item_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. reservationID or houseAccountID are necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. reservationID or houseAccountID are necessary.")] = None, + sold_product_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostVoidItemResponse]: + """postVoidItem + + Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. reservationID or houseAccountID are necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. reservationID or houseAccountID are necessary. + :type house_account_id: str + :param sold_product_id: Item identifier + :type sold_product_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sold_product_id=sold_product_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_void_item_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. reservationID or houseAccountID are necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. reservationID or houseAccountID are necessary.")] = None, + sold_product_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postVoidItem + + Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier. reservationID or houseAccountID are necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. reservationID or houseAccountID are necessary. + :type house_account_id: str + :param sold_product_id: Item identifier + :type sold_product_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_item_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sold_product_id=sold_product_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidItemResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_void_item_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + sold_product_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if sold_product_id is not None: + _form_params.append(('soldProductID', sold_product_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postVoidItem', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_item_to_inventory_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_name: Annotated[Optional[StrictStr], Field(description="Item name")] = None, + item_type: Annotated[Optional[StrictStr], Field(description="Item type")] = None, + item_sku: Annotated[Optional[StrictStr], Field(description="Item SKU. Will be generated if not set")] = None, + item_code: Annotated[Optional[StrictStr], Field(description="Item code")] = None, + item_description: Annotated[Optional[StrictStr], Field(description="Item description")] = None, + item_price: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Item price")] = None, + stock_inventory: Annotated[Optional[StrictBool], Field(description="Track stock inventory for this item")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="¹ Current amount of item available")] = None, + reorder_threshold: Annotated[Optional[StrictInt], Field(description="¹ Quantity at which to reorder item")] = None, + stop_sell_met: Annotated[Optional[StrictBool], Field(description="¹ true - Whether item is at or below value set for stop-sell threshold.")] = None, + stop_sell: Annotated[Optional[StrictInt], Field(description="¹ Quantity at which to stop selling product.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutItemToInventoryResponse: + """putItemToInventory + + Updates an item with information provided
¹ only if item.stockInventory = true
+ + :param property_id: Property ID + :type property_id: str + :param item_id: Item identifier + :type item_id: str + :param item_name: Item name + :type item_name: str + :param item_type: Item type + :type item_type: str + :param item_sku: Item SKU. Will be generated if not set + :type item_sku: str + :param item_code: Item code + :type item_code: str + :param item_description: Item description + :type item_description: str + :param item_price: Item price + :type item_price: float + :param stock_inventory: Track stock inventory for this item + :type stock_inventory: bool + :param item_quantity: ¹ Current amount of item available + :type item_quantity: int + :param reorder_threshold: ¹ Quantity at which to reorder item + :type reorder_threshold: int + :param stop_sell_met: ¹ true - Whether item is at or below value set for stop-sell threshold. + :type stop_sell_met: bool + :param stop_sell: ¹ Quantity at which to stop selling product. + :type stop_sell: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_item_to_inventory_put_serialize( + property_id=property_id, + item_id=item_id, + item_name=item_name, + item_type=item_type, + item_sku=item_sku, + item_code=item_code, + item_description=item_description, + item_price=item_price, + stock_inventory=stock_inventory, + item_quantity=item_quantity, + reorder_threshold=reorder_threshold, + stop_sell_met=stop_sell_met, + stop_sell=stop_sell, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutItemToInventoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_item_to_inventory_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_name: Annotated[Optional[StrictStr], Field(description="Item name")] = None, + item_type: Annotated[Optional[StrictStr], Field(description="Item type")] = None, + item_sku: Annotated[Optional[StrictStr], Field(description="Item SKU. Will be generated if not set")] = None, + item_code: Annotated[Optional[StrictStr], Field(description="Item code")] = None, + item_description: Annotated[Optional[StrictStr], Field(description="Item description")] = None, + item_price: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Item price")] = None, + stock_inventory: Annotated[Optional[StrictBool], Field(description="Track stock inventory for this item")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="¹ Current amount of item available")] = None, + reorder_threshold: Annotated[Optional[StrictInt], Field(description="¹ Quantity at which to reorder item")] = None, + stop_sell_met: Annotated[Optional[StrictBool], Field(description="¹ true - Whether item is at or below value set for stop-sell threshold.")] = None, + stop_sell: Annotated[Optional[StrictInt], Field(description="¹ Quantity at which to stop selling product.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutItemToInventoryResponse]: + """putItemToInventory + + Updates an item with information provided
¹ only if item.stockInventory = true
+ + :param property_id: Property ID + :type property_id: str + :param item_id: Item identifier + :type item_id: str + :param item_name: Item name + :type item_name: str + :param item_type: Item type + :type item_type: str + :param item_sku: Item SKU. Will be generated if not set + :type item_sku: str + :param item_code: Item code + :type item_code: str + :param item_description: Item description + :type item_description: str + :param item_price: Item price + :type item_price: float + :param stock_inventory: Track stock inventory for this item + :type stock_inventory: bool + :param item_quantity: ¹ Current amount of item available + :type item_quantity: int + :param reorder_threshold: ¹ Quantity at which to reorder item + :type reorder_threshold: int + :param stop_sell_met: ¹ true - Whether item is at or below value set for stop-sell threshold. + :type stop_sell_met: bool + :param stop_sell: ¹ Quantity at which to stop selling product. + :type stop_sell: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_item_to_inventory_put_serialize( + property_id=property_id, + item_id=item_id, + item_name=item_name, + item_type=item_type, + item_sku=item_sku, + item_code=item_code, + item_description=item_description, + item_price=item_price, + stock_inventory=stock_inventory, + item_quantity=item_quantity, + reorder_threshold=reorder_threshold, + stop_sell_met=stop_sell_met, + stop_sell=stop_sell, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutItemToInventoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_item_to_inventory_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_name: Annotated[Optional[StrictStr], Field(description="Item name")] = None, + item_type: Annotated[Optional[StrictStr], Field(description="Item type")] = None, + item_sku: Annotated[Optional[StrictStr], Field(description="Item SKU. Will be generated if not set")] = None, + item_code: Annotated[Optional[StrictStr], Field(description="Item code")] = None, + item_description: Annotated[Optional[StrictStr], Field(description="Item description")] = None, + item_price: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Item price")] = None, + stock_inventory: Annotated[Optional[StrictBool], Field(description="Track stock inventory for this item")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="¹ Current amount of item available")] = None, + reorder_threshold: Annotated[Optional[StrictInt], Field(description="¹ Quantity at which to reorder item")] = None, + stop_sell_met: Annotated[Optional[StrictBool], Field(description="¹ true - Whether item is at or below value set for stop-sell threshold.")] = None, + stop_sell: Annotated[Optional[StrictInt], Field(description="¹ Quantity at which to stop selling product.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putItemToInventory + + Updates an item with information provided
¹ only if item.stockInventory = true
+ + :param property_id: Property ID + :type property_id: str + :param item_id: Item identifier + :type item_id: str + :param item_name: Item name + :type item_name: str + :param item_type: Item type + :type item_type: str + :param item_sku: Item SKU. Will be generated if not set + :type item_sku: str + :param item_code: Item code + :type item_code: str + :param item_description: Item description + :type item_description: str + :param item_price: Item price + :type item_price: float + :param stock_inventory: Track stock inventory for this item + :type stock_inventory: bool + :param item_quantity: ¹ Current amount of item available + :type item_quantity: int + :param reorder_threshold: ¹ Quantity at which to reorder item + :type reorder_threshold: int + :param stop_sell_met: ¹ true - Whether item is at or below value set for stop-sell threshold. + :type stop_sell_met: bool + :param stop_sell: ¹ Quantity at which to stop selling product. + :type stop_sell: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_item_to_inventory_put_serialize( + property_id=property_id, + item_id=item_id, + item_name=item_name, + item_type=item_type, + item_sku=item_sku, + item_code=item_code, + item_description=item_description, + item_price=item_price, + stock_inventory=stock_inventory, + item_quantity=item_quantity, + reorder_threshold=reorder_threshold, + stop_sell_met=stop_sell_met, + stop_sell=stop_sell, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutItemToInventoryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_item_to_inventory_put_serialize( + self, + property_id, + item_id, + item_name, + item_type, + item_sku, + item_code, + item_description, + item_price, + stock_inventory, + item_quantity, + reorder_threshold, + stop_sell_met, + stop_sell, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if item_id is not None: + _form_params.append(('itemID', item_id)) + if item_name is not None: + _form_params.append(('itemName', item_name)) + if item_type is not None: + _form_params.append(('itemType', item_type)) + if item_sku is not None: + _form_params.append(('itemSKU', item_sku)) + if item_code is not None: + _form_params.append(('itemCode', item_code)) + if item_description is not None: + _form_params.append(('itemDescription', item_description)) + if item_price is not None: + _form_params.append(('itemPrice', item_price)) + if stock_inventory is not None: + _form_params.append(('stockInventory', stock_inventory)) + if item_quantity is not None: + _form_params.append(('itemQuantity', item_quantity)) + if reorder_threshold is not None: + _form_params.append(('reorderThreshold', reorder_threshold)) + if stop_sell_met is not None: + _form_params.append(('stopSellMet', stop_sell_met)) + if stop_sell is not None: + _form_params.append(('stopSell', stop_sell)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putItemToInventory', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/package_api.py b/cloudbeds_pms_v1_2/api/package_api.py new file mode 100644 index 0000000..a8e4ca2 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/package_api.py @@ -0,0 +1,567 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class PackageApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_package_names_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPackagesResponse: + """getPackageNames + + Return a list of billing package names for a property + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_package_names_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPackagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_package_names_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPackagesResponse]: + """getPackageNames + + Return a list of billing package names for a property + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_package_names_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPackagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_package_names_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPackageNames + + Return a list of billing package names for a property + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_package_names_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPackagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_package_names_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPackageNames', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_packages_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPackagesResponse: + """getPackages + + This efficient method allows you to retrieve the collection of packages associated with a property. Packages here define a group of features that a property has the ability to utilize or access. By invoking this API method, developers will get a comprehensive view of the feature sets that are available and active for a specific property. The getPackages method boasts a seamless execution that offers essential information, vital in enhancing property management, understanding available functionalities and ultimately, optimizing user experience. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_packages_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPackagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_packages_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPackagesResponse]: + """getPackages + + This efficient method allows you to retrieve the collection of packages associated with a property. Packages here define a group of features that a property has the ability to utilize or access. By invoking this API method, developers will get a comprehensive view of the feature sets that are available and active for a specific property. The getPackages method boasts a seamless execution that offers essential information, vital in enhancing property management, understanding available functionalities and ultimately, optimizing user experience. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_packages_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPackagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_packages_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPackages + + This efficient method allows you to retrieve the collection of packages associated with a property. Packages here define a group of features that a property has the ability to utilize or access. By invoking this API method, developers will get a comprehensive view of the feature sets that are available and active for a specific property. The getPackages method boasts a seamless execution that offers essential information, vital in enhancing property management, understanding available functionalities and ultimately, optimizing user experience. + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_packages_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPackagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_packages_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPackages', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/payment_api.py b/cloudbeds_pms_v1_2/api/payment_api.py new file mode 100644 index 0000000..13cc490 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/payment_api.py @@ -0,0 +1,3466 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date, datetime +from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class PaymentApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_payment_methods_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPaymentMethodsResponse: + """getPaymentMethods + + Get a list of active methods for a property, or list of properties + + :param property_id: ID for the property to be queried + :type property_id: str + :param lang: Language that payment methods name should return (if available). + :type lang: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_methods_get_serialize( + property_id=property_id, + lang=lang, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentMethodsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payment_methods_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPaymentMethodsResponse]: + """getPaymentMethods + + Get a list of active methods for a property, or list of properties + + :param property_id: ID for the property to be queried + :type property_id: str + :param lang: Language that payment methods name should return (if available). + :type lang: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_methods_get_serialize( + property_id=property_id, + lang=lang, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentMethodsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payment_methods_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPaymentMethods + + Get a list of active methods for a property, or list of properties + + :param property_id: ID for the property to be queried + :type property_id: str + :param lang: Language that payment methods name should return (if available). + :type lang: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_methods_get_serialize( + property_id=property_id, + lang=lang, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentMethodsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payment_methods_get_serialize( + self, + property_id, + lang, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if lang is not None: + + _query_params.append(('lang', lang)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPaymentMethods', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_payments_capabilities_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPaymentsCapabilitiesResponse: + """getPaymentsCapabilities + + Lists the payment capabilities of a given property + + :param property_id: ID for the property to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_capabilities_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsCapabilitiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payments_capabilities_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPaymentsCapabilitiesResponse]: + """getPaymentsCapabilities + + Lists the payment capabilities of a given property + + :param property_id: ID for the property to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_capabilities_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsCapabilitiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payments_capabilities_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPaymentsCapabilities + + Lists the payment capabilities of a given property + + :param property_id: ID for the property to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_capabilities_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsCapabilitiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payments_capabilities_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPaymentsCapabilities', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_payments_get( + self, + reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], + house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], + guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, + include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPaymentsResponse: + """getPayments + + Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + + :param reservation_id: ¹ ID for the reservation to be queried. (required) + :type reservation_id: str + :param house_account_id: ¹ ID for the house account to be queried. (required) + :type house_account_id: str + :param guest_id: ¹ ID for the guest to be queried. (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. + :type created_to: datetime + :param include_payment_allocation: Adds payment allocation to response, when available. + :type include_payment_allocation: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_get_serialize( + reservation_id=reservation_id, + house_account_id=house_account_id, + guest_id=guest_id, + property_id=property_id, + created_from=created_from, + created_to=created_to, + include_payment_allocation=include_payment_allocation, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payments_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], + house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], + guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, + include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPaymentsResponse]: + """getPayments + + Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + + :param reservation_id: ¹ ID for the reservation to be queried. (required) + :type reservation_id: str + :param house_account_id: ¹ ID for the house account to be queried. (required) + :type house_account_id: str + :param guest_id: ¹ ID for the guest to be queried. (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. + :type created_to: datetime + :param include_payment_allocation: Adds payment allocation to response, when available. + :type include_payment_allocation: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_get_serialize( + reservation_id=reservation_id, + house_account_id=house_account_id, + guest_id=guest_id, + property_id=property_id, + created_from=created_from, + created_to=created_to, + include_payment_allocation=include_payment_allocation, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payments_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], + house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], + guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, + include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPayments + + Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + + :param reservation_id: ¹ ID for the reservation to be queried. (required) + :type reservation_id: str + :param house_account_id: ¹ ID for the house account to be queried. (required) + :type house_account_id: str + :param guest_id: ¹ ID for the guest to be queried. (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. + :type created_to: datetime + :param include_payment_allocation: Adds payment allocation to response, when available. + :type include_payment_allocation: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_get_serialize( + reservation_id=reservation_id, + house_account_id=house_account_id, + guest_id=guest_id, + property_id=property_id, + created_from=created_from, + created_to=created_to, + include_payment_allocation=include_payment_allocation, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payments_get_serialize( + self, + reservation_id, + house_account_id, + guest_id, + property_id, + created_from, + created_to, + include_payment_allocation, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if house_account_id is not None: + + _query_params.append(('houseAccountID', house_account_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if created_from is not None: + if isinstance(created_from, datetime): + _query_params.append( + ( + 'createdFrom', + created_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdFrom', created_from)) + + if created_to is not None: + if isinstance(created_to, datetime): + _query_params.append( + ( + 'createdTo', + created_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdTo', created_to)) + + if include_payment_allocation is not None: + + _query_params.append(('includePaymentAllocation', include_payment_allocation)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPayments', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_transactions_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetTransactionsResponse: + """getTransactions + + Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param transaction_filter: Transaction filter is used to filter transactions result + :type transaction_filter: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + created_from=created_from, + created_to=created_to, + transaction_filter=transaction_filter, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_transactions_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetTransactionsResponse]: + """getTransactions + + Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param transaction_filter: Transaction filter is used to filter transactions result + :type transaction_filter: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + created_from=created_from, + created_to=created_to, + transaction_filter=transaction_filter, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_transactions_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getTransactions + + Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param transaction_filter: Transaction filter is used to filter transactions result + :type transaction_filter: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + created_from=created_from, + created_to=created_to, + transaction_filter=transaction_filter, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_transactions_get_serialize( + self, + property_id, + include_debit, + include_credit, + include_deleted, + include_children, + reservation_id, + sub_reservation_id, + room_id, + guest_id, + house_account_id, + transaction_ids, + results_from, + results_to, + modified_from, + modified_to, + created_from, + created_to, + transaction_filter, + page_number, + page_size, + sort_by, + order_by, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if include_debit is not None: + + _query_params.append(('includeDebit', include_debit)) + + if include_credit is not None: + + _query_params.append(('includeCredit', include_credit)) + + if include_deleted is not None: + + _query_params.append(('includeDeleted', include_deleted)) + + if include_children is not None: + + _query_params.append(('includeChildren', include_children)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if sub_reservation_id is not None: + + _query_params.append(('subReservationID', sub_reservation_id)) + + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if house_account_id is not None: + + _query_params.append(('houseAccountID', house_account_id)) + + if transaction_ids is not None: + + _query_params.append(('transactionIDs', transaction_ids)) + + if results_from is not None: + if isinstance(results_from, date): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, date): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, date): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, date): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) + + if created_from is not None: + if isinstance(created_from, datetime): + _query_params.append( + ( + 'createdFrom', + created_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdFrom', created_from)) + + if created_to is not None: + if isinstance(created_to, datetime): + _query_params.append( + ( + 'createdTo', + created_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdTo', created_to)) + + if transaction_filter is not None: + + _query_params.append(('transactionFilter', transaction_filter)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if sort_by is not None: + + _query_params.append(('sortBy', sort_by)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getTransactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_charge_post( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostChargeResponse: + """postCharge + + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_charge_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostChargeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_charge_post_with_http_info( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostChargeResponse]: + """postCharge + + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_charge_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostChargeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_charge_post_without_preload_content( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCharge + + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_charge_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostChargeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_charge_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + group_id, + accounts_receivable_ledger_id, + amount, + currency, + description, + payment_method_id, + is_deposit, + redirect_url, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if group_id is not None: + _form_params.append(('groupID', group_id)) + if accounts_receivable_ledger_id is not None: + _form_params.append(('accountsReceivableLedgerID', accounts_receivable_ledger_id)) + if amount is not None: + _form_params.append(('amount', amount)) + if currency is not None: + _form_params.append(('currency', currency)) + if description is not None: + _form_params.append(('description', description)) + if payment_method_id is not None: + _form_params.append(('paymentMethodId', payment_method_id)) + if is_deposit is not None: + _form_params.append(('isDeposit', is_deposit)) + if redirect_url is not None: + _form_params.append(('redirectUrl', redirect_url)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCharge', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_credit_card_post( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCardResponse: + """postCreditCard + + Returns the rate of the room type selected, based on the provided parameters + + :param property_id: + :type property_id: str + :param reservation_id: + :type reservation_id: str + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_credit_card_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_credit_card_post_with_http_info( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCardResponse]: + """postCreditCard + + Returns the rate of the room type selected, based on the provided parameters + + :param property_id: + :type property_id: str + :param reservation_id: + :type reservation_id: str + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_credit_card_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_credit_card_post_without_preload_content( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCreditCard + + Returns the rate of the room type selected, based on the provided parameters + + :param property_id: + :type property_id: str + :param reservation_id: + :type reservation_id: str + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_credit_card_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_credit_card_post_serialize( + self, + property_id, + reservation_id, + card_token, + payment_method_id, + return_url, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) + if payment_method_id is not None: + _form_params.append(('paymentMethodId', payment_method_id)) + if return_url is not None: + _form_params.append(('returnUrl', return_url)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCreditCard', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_custom_payment_method_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCustomPaymentMethodResponse: + """postCustomPaymentMethod + + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomPaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_custom_payment_method_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCustomPaymentMethodResponse]: + """postCustomPaymentMethod + + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomPaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_custom_payment_method_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCustomPaymentMethod + + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomPaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_custom_payment_method_post_serialize( + self, + property_id, + method, + method_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if method is not None: + _form_params.append(('method', method)) + if method_name is not None: + _form_params.append(('methodName', method_name)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCustomPaymentMethod', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_payment_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, + card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, + description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPaymentResponse: + """postPayment + + Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. + :type sub_reservation_id: str + :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. + :type type: str + :param amount: Amount paid on this transaction + :type amount: float + :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" + :type card_type: str + :param description: Note to be added to payment + :type description: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sub_reservation_id=sub_reservation_id, + type=type, + amount=amount, + card_type=card_type, + description=description, + is_deposit=is_deposit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_payment_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, + card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, + description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPaymentResponse]: + """postPayment + + Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. + :type sub_reservation_id: str + :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. + :type type: str + :param amount: Amount paid on this transaction + :type amount: float + :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" + :type card_type: str + :param description: Note to be added to payment + :type description: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sub_reservation_id=sub_reservation_id, + type=type, + amount=amount, + card_type=card_type, + description=description, + is_deposit=is_deposit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_payment_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, + card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, + description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postPayment + + Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. + :type sub_reservation_id: str + :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. + :type type: str + :param amount: Amount paid on this transaction + :type amount: float + :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" + :type card_type: str + :param description: Note to be added to payment + :type description: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sub_reservation_id=sub_reservation_id, + type=type, + amount=amount, + card_type=card_type, + description=description, + is_deposit=is_deposit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_payment_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + sub_reservation_id, + type, + amount, + card_type, + description, + is_deposit, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if type is not None: + _form_params.append(('type', type)) + if amount is not None: + _form_params.append(('amount', amount)) + if card_type is not None: + _form_params.append(('cardType', card_type)) + if description is not None: + _form_params.append(('description', description)) + if is_deposit is not None: + _form_params.append(('isDeposit', is_deposit)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postPayment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_void_payment_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostVoidPaymentResponse: + """postVoidPayment + + Voids a payment (using paymentID) to a specified reservation or house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param payment_id: paymentID of transaction that should be voided. + :type payment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + payment_id=payment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_void_payment_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostVoidPaymentResponse]: + """postVoidPayment + + Voids a payment (using paymentID) to a specified reservation or house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param payment_id: paymentID of transaction that should be voided. + :type payment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + payment_id=payment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_void_payment_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postVoidPayment + + Voids a payment (using paymentID) to a specified reservation or house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param payment_id: paymentID of transaction that should be voided. + :type payment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + payment_id=payment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_void_payment_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + payment_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if payment_id is not None: + _form_params.append(('paymentID', payment_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postVoidPayment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/rate_api.py b/cloudbeds_pms_v1_2/api/rate_api.py new file mode 100644 index 0000000..ee41d0b --- /dev/null +++ b/cloudbeds_pms_v1_2/api/rate_api.py @@ -0,0 +1,1698 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date +from pydantic import Field, StrictBool, StrictInt, StrictStr +from typing import List, Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class RateApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_rate_get( + self, + room_type_id: Annotated[StrictStr, Field(description="Room Type ID")], + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + promo_code: Annotated[Optional[StrictBool], Field(description="Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRateResponse: + """getRate + + Returns the rate of the room type selected, based on the provided parameters + + :param room_type_id: Room Type ID (required) + :type room_type_id: str + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param adults: Number of adults + :type adults: int + :param children: Number of children + :type children: int + :param detailed_rates: If the rates need detailed information + :type detailed_rates: bool + :param promo_code: Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead + :type promo_code: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_get_serialize( + room_type_id=room_type_id, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + promo_code=promo_code, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_rate_get_with_http_info( + self, + room_type_id: Annotated[StrictStr, Field(description="Room Type ID")], + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + promo_code: Annotated[Optional[StrictBool], Field(description="Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRateResponse]: + """getRate + + Returns the rate of the room type selected, based on the provided parameters + + :param room_type_id: Room Type ID (required) + :type room_type_id: str + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param adults: Number of adults + :type adults: int + :param children: Number of children + :type children: int + :param detailed_rates: If the rates need detailed information + :type detailed_rates: bool + :param promo_code: Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead + :type promo_code: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_get_serialize( + room_type_id=room_type_id, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + promo_code=promo_code, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_rate_get_without_preload_content( + self, + room_type_id: Annotated[StrictStr, Field(description="Room Type ID")], + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + promo_code: Annotated[Optional[StrictBool], Field(description="Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRate + + Returns the rate of the room type selected, based on the provided parameters + + :param room_type_id: Room Type ID (required) + :type room_type_id: str + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param adults: Number of adults + :type adults: int + :param children: Number of children + :type children: int + :param detailed_rates: If the rates need detailed information + :type detailed_rates: bool + :param promo_code: Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead + :type promo_code: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_get_serialize( + room_type_id=room_type_id, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + promo_code=promo_code, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_rate_get_serialize( + self, + room_type_id, + start_date, + end_date, + adults, + children, + detailed_rates, + promo_code, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if room_type_id is not None: + + _query_params.append(('roomTypeID', room_type_id)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if adults is not None: + + _query_params.append(('adults', adults)) + + if children is not None: + + _query_params.append(('children', children)) + + if detailed_rates is not None: + + _query_params.append(('detailedRates', detailed_rates)) + + if promo_code is not None: + + _query_params.append(('promoCode', promo_code)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_rate_jobs_get( + self, + job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRateJobsResponse: + """getRateJobs + + Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + + :param job_reference_id: Filter Rate Jobs by jobReferenceID + :type job_reference_id: str + :param status: Filter Rate Jobs based on status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_jobs_get_serialize( + job_reference_id=job_reference_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRateJobsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_rate_jobs_get_with_http_info( + self, + job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRateJobsResponse]: + """getRateJobs + + Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + + :param job_reference_id: Filter Rate Jobs by jobReferenceID + :type job_reference_id: str + :param status: Filter Rate Jobs based on status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_jobs_get_serialize( + job_reference_id=job_reference_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRateJobsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_rate_jobs_get_without_preload_content( + self, + job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRateJobs + + Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + + :param job_reference_id: Filter Rate Jobs by jobReferenceID + :type job_reference_id: str + :param status: Filter Rate Jobs based on status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_jobs_get_serialize( + job_reference_id=job_reference_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRateJobsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_rate_jobs_get_serialize( + self, + job_reference_id, + status, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if job_reference_id is not None: + + _query_params.append(('jobReferenceID', job_reference_id)) + + if status is not None: + + _query_params.append(('status', status)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRateJobs', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_rate_plans_get( + self, + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + rate_ids: Annotated[Optional[StrictStr], Field(description="List of Rate IDs, comma-separated, i.e. 37,345,89")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="List of Room Type IDs, comma-separated, i.e. 37,345,89")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="List of Promo Codes, comma-separated, i.e. 37,345,89")] = None, + include_promo_code: Annotated[Optional[StrictBool], Field(description="Include rate plans with promo code")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRatePlansResponse: + """getRatePlans + + Returns the rates of the room type or promo code selected, based on the provided parameters. If no parameters are provided, then the method will return all publicly available rate plans. ### Group account support + + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param rate_ids: List of Rate IDs, comma-separated, i.e. 37,345,89 + :type rate_ids: str + :param room_type_id: List of Room Type IDs, comma-separated, i.e. 37,345,89 + :type room_type_id: str + :param promo_code: List of Promo Codes, comma-separated, i.e. 37,345,89 + :type promo_code: str + :param include_promo_code: Include rate plans with promo code + :type include_promo_code: bool + :param adults: Number of adults + :type adults: int + :param children: Number of children + :type children: int + :param detailed_rates: If the rates need detailed information + :type detailed_rates: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_plans_get_serialize( + start_date=start_date, + end_date=end_date, + property_ids=property_ids, + rate_ids=rate_ids, + room_type_id=room_type_id, + promo_code=promo_code, + include_promo_code=include_promo_code, + adults=adults, + children=children, + detailed_rates=detailed_rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRatePlansResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_rate_plans_get_with_http_info( + self, + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + rate_ids: Annotated[Optional[StrictStr], Field(description="List of Rate IDs, comma-separated, i.e. 37,345,89")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="List of Room Type IDs, comma-separated, i.e. 37,345,89")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="List of Promo Codes, comma-separated, i.e. 37,345,89")] = None, + include_promo_code: Annotated[Optional[StrictBool], Field(description="Include rate plans with promo code")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRatePlansResponse]: + """getRatePlans + + Returns the rates of the room type or promo code selected, based on the provided parameters. If no parameters are provided, then the method will return all publicly available rate plans. ### Group account support + + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param rate_ids: List of Rate IDs, comma-separated, i.e. 37,345,89 + :type rate_ids: str + :param room_type_id: List of Room Type IDs, comma-separated, i.e. 37,345,89 + :type room_type_id: str + :param promo_code: List of Promo Codes, comma-separated, i.e. 37,345,89 + :type promo_code: str + :param include_promo_code: Include rate plans with promo code + :type include_promo_code: bool + :param adults: Number of adults + :type adults: int + :param children: Number of children + :type children: int + :param detailed_rates: If the rates need detailed information + :type detailed_rates: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_plans_get_serialize( + start_date=start_date, + end_date=end_date, + property_ids=property_ids, + rate_ids=rate_ids, + room_type_id=room_type_id, + promo_code=promo_code, + include_promo_code=include_promo_code, + adults=adults, + children=children, + detailed_rates=detailed_rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRatePlansResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_rate_plans_get_without_preload_content( + self, + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + rate_ids: Annotated[Optional[StrictStr], Field(description="List of Rate IDs, comma-separated, i.e. 37,345,89")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="List of Room Type IDs, comma-separated, i.e. 37,345,89")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="List of Promo Codes, comma-separated, i.e. 37,345,89")] = None, + include_promo_code: Annotated[Optional[StrictBool], Field(description="Include rate plans with promo code")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRatePlans + + Returns the rates of the room type or promo code selected, based on the provided parameters. If no parameters are provided, then the method will return all publicly available rate plans. ### Group account support + + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param rate_ids: List of Rate IDs, comma-separated, i.e. 37,345,89 + :type rate_ids: str + :param room_type_id: List of Room Type IDs, comma-separated, i.e. 37,345,89 + :type room_type_id: str + :param promo_code: List of Promo Codes, comma-separated, i.e. 37,345,89 + :type promo_code: str + :param include_promo_code: Include rate plans with promo code + :type include_promo_code: bool + :param adults: Number of adults + :type adults: int + :param children: Number of children + :type children: int + :param detailed_rates: If the rates need detailed information + :type detailed_rates: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rate_plans_get_serialize( + start_date=start_date, + end_date=end_date, + property_ids=property_ids, + rate_ids=rate_ids, + room_type_id=room_type_id, + promo_code=promo_code, + include_promo_code=include_promo_code, + adults=adults, + children=children, + detailed_rates=detailed_rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRatePlansResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_rate_plans_get_serialize( + self, + start_date, + end_date, + property_ids, + rate_ids, + room_type_id, + promo_code, + include_promo_code, + adults, + children, + detailed_rates, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if rate_ids is not None: + + _query_params.append(('rateIDs', rate_ids)) + + if room_type_id is not None: + + _query_params.append(('roomTypeID', room_type_id)) + + if promo_code is not None: + + _query_params.append(('promoCode', promo_code)) + + if include_promo_code is not None: + + _query_params.append(('includePromoCode', include_promo_code)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if adults is not None: + + _query_params.append(('adults', adults)) + + if children is not None: + + _query_params.append(('children', children)) + + if detailed_rates is not None: + + _query_params.append(('detailedRates', detailed_rates)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRatePlans', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def patch_rate_post( + self, + rates: Annotated[Optional[List[PostPatchRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPatchRateResponse: + """patchRate + + Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + + :param rates: Array of rates to update + :type rates: List[PostPatchRateRequestRatesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_rate_post_serialize( + rates=rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def patch_rate_post_with_http_info( + self, + rates: Annotated[Optional[List[PostPatchRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPatchRateResponse]: + """patchRate + + Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + + :param rates: Array of rates to update + :type rates: List[PostPatchRateRequestRatesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_rate_post_serialize( + rates=rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def patch_rate_post_without_preload_content( + self, + rates: Annotated[Optional[List[PostPatchRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patchRate + + Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + + :param rates: Array of rates to update + :type rates: List[PostPatchRateRequestRatesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_rate_post_serialize( + rates=rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPatchRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _patch_rate_post_serialize( + self, + rates, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'rates': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if rates is not None: + _form_params.append(('rates', rates)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/patchRate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_rate_post( + self, + rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPutRateResponse: + """putRate + + Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + + :param rates: Array of rates to update + :type rates: List[PostPutRateRequestRatesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_rate_post_serialize( + rates=rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_rate_post_with_http_info( + self, + rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPutRateResponse]: + """putRate + + Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + + :param rates: Array of rates to update + :type rates: List[PostPutRateRequestRatesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_rate_post_serialize( + rates=rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_rate_post_without_preload_content( + self, + rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putRate + + Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + + :param rates: Array of rates to update + :type rates: List[PostPutRateRequestRatesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_rate_post_serialize( + rates=rates, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPutRateResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_rate_post_serialize( + self, + rates, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'rates': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if rates is not None: + _form_params.append(('rates', rates)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/putRate', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/reservation_api.py b/cloudbeds_pms_v1_2/api/reservation_api.py new file mode 100644 index 0000000..7c917dd --- /dev/null +++ b/cloudbeds_pms_v1_2/api/reservation_api.py @@ -0,0 +1,4951 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date, datetime +from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator +from typing import List, Optional, Tuple, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class ReservationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_reservation_note_delete( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + reservation_note_id: Annotated[StrictStr, Field(description="Reservation Note ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteReservationNoteResponse: + """deleteReservationNote + + Archives an existing reservation note. + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param reservation_note_id: Reservation Note ID (required) + :type reservation_note_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_reservation_note_delete_serialize( + reservation_id=reservation_id, + reservation_note_id=reservation_note_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_reservation_note_delete_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + reservation_note_id: Annotated[StrictStr, Field(description="Reservation Note ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteReservationNoteResponse]: + """deleteReservationNote + + Archives an existing reservation note. + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param reservation_note_id: Reservation Note ID (required) + :type reservation_note_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_reservation_note_delete_serialize( + reservation_id=reservation_id, + reservation_note_id=reservation_note_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_reservation_note_delete_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + reservation_note_id: Annotated[StrictStr, Field(description="Reservation Note ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteReservationNote + + Archives an existing reservation note. + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param reservation_note_id: Reservation Note ID (required) + :type reservation_note_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_reservation_note_delete_serialize( + reservation_id=reservation_id, + reservation_note_id=reservation_note_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_reservation_note_delete_serialize( + self, + reservation_id, + reservation_note_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if reservation_note_id is not None: + + _query_params.append(('reservationNoteID', reservation_note_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/deleteReservationNote', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservation_assignments_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationAssignmentsResponse: + """getReservationAssignments + + Returns a list of rooms/reservations assigned for a selected date. + + :param property_id: Property ID + :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_assignments_get_serialize( + property_id=property_id, + var_date=var_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationAssignmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservation_assignments_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationAssignmentsResponse]: + """getReservationAssignments + + Returns a list of rooms/reservations assigned for a selected date. + + :param property_id: Property ID + :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_assignments_get_serialize( + property_id=property_id, + var_date=var_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationAssignmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservation_assignments_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationAssignments + + Returns a list of rooms/reservations assigned for a selected date. + + :param property_id: Property ID + :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_assignments_get_serialize( + property_id=property_id, + var_date=var_date, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationAssignmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservation_assignments_get_serialize( + self, + property_id, + var_date, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if var_date is not None: + if isinstance(var_date, date): + _query_params.append( + ( + 'date', + var_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('date', var_date)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationAssignments', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservation_get( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationResponse: + """getReservation + + Returns information on a booking specified by the reservationID parameter + + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservation_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationResponse]: + """getReservation + + Returns information on a booking specified by the reservationID parameter + + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservation_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservation + + Returns information on a booking specified by the reservationID parameter + + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservation_get_serialize( + self, + reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservation_invoice_information_get( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationInvoiceInformationResponse: + """getReservationInvoiceInformation + + Returns information that can be used to create an invoice for the selected reservation + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_invoice_information_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationInvoiceInformationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservation_invoice_information_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationInvoiceInformationResponse]: + """getReservationInvoiceInformation + + Returns information that can be used to create an invoice for the selected reservation + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_invoice_information_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationInvoiceInformationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservation_invoice_information_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationInvoiceInformation + + Returns information that can be used to create an invoice for the selected reservation + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_invoice_information_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationInvoiceInformationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservation_invoice_information_get_serialize( + self, + reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationInvoiceInformation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservation_notes_get( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationNotesResponse: + """getReservationNotes + + Retrieves reservation notes based on parameters + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservation_notes_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationNotesResponse]: + """getReservationNotes + + Retrieves reservation notes based on parameters + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservation_notes_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationNotes + + Retrieves reservation notes based on parameters + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservation_notes_get_serialize( + self, + reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationNotes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservations_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationsResponse: + """getReservations + + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_get_serialize( + property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservations_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationsResponse]: + """getReservations + + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_get_serialize( + property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservations_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservations + + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_get_serialize( + property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservations_get_serialize( + self, + property_id, + status, + results_from, + results_to, + modified_from, + modified_to, + check_in_from, + check_in_to, + check_out_from, + check_out_to, + room_id, + room_name, + include_guests_details, + include_custom_fields, + include_all_rooms, + source_id, + source_reservation_id, + rate_plan_id, + first_name, + last_name, + sort_by_recent, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if status is not None: + + _query_params.append(('status', status)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, datetime): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, datetime): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) + + if check_in_from is not None: + if isinstance(check_in_from, date): + _query_params.append( + ( + 'checkInFrom', + check_in_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInFrom', check_in_from)) + + if check_in_to is not None: + if isinstance(check_in_to, date): + _query_params.append( + ( + 'checkInTo', + check_in_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInTo', check_in_to)) + + if check_out_from is not None: + if isinstance(check_out_from, date): + _query_params.append( + ( + 'checkOutFrom', + check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutFrom', check_out_from)) + + if check_out_to is not None: + if isinstance(check_out_to, date): + _query_params.append( + ( + 'checkOutTo', + check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutTo', check_out_to)) + + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if room_name is not None: + + _query_params.append(('roomName', room_name)) + + if include_guests_details is not None: + + _query_params.append(('includeGuestsDetails', include_guests_details)) + + if include_custom_fields is not None: + + _query_params.append(('includeCustomFields', include_custom_fields)) + + if include_all_rooms is not None: + + _query_params.append(('includeAllRooms', include_all_rooms)) + + if source_id is not None: + + _query_params.append(('sourceId', source_id)) + + if source_reservation_id is not None: + + _query_params.append(('sourceReservationId', source_reservation_id)) + + if rate_plan_id is not None: + + _query_params.append(('ratePlanId', rate_plan_id)) + + if first_name is not None: + + _query_params.append(('firstName', first_name)) + + if last_name is not None: + + _query_params.append(('lastName', last_name)) + + if sort_by_recent is not None: + + _query_params.append(('sortByRecent', sort_by_recent)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservations_with_rate_details_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationsWithRateDetailsResponse: + """getReservationsWithRateDetails + + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, + reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsWithRateDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservations_with_rate_details_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationsWithRateDetailsResponse]: + """getReservationsWithRateDetails + + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, + reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsWithRateDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservations_with_rate_details_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationsWithRateDetails + + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, + reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsWithRateDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservations_with_rate_details_get_serialize( + self, + property_id, + results_from, + results_to, + modified_from, + modified_to, + sort_by_recent, + reservation_id, + reservation_check_out_from, + reservation_check_out_to, + include_deleted, + exclude_statuses, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, datetime): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, datetime): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) + + if sort_by_recent is not None: + + _query_params.append(('sortByRecent', sort_by_recent)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if reservation_check_out_from is not None: + if isinstance(reservation_check_out_from, date): + _query_params.append( + ( + 'reservationCheckOutFrom', + reservation_check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('reservationCheckOutFrom', reservation_check_out_from)) + + if reservation_check_out_to is not None: + if isinstance(reservation_check_out_to, date): + _query_params.append( + ( + 'reservationCheckOutTo', + reservation_check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('reservationCheckOutTo', reservation_check_out_to)) + + if include_deleted is not None: + + _query_params.append(('includeDeleted', include_deleted)) + + if exclude_statuses is not None: + + _query_params.append(('excludeStatuses', exclude_statuses)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationsWithRateDetails', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_sources_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetSourcesResponse: + """getSources + + Gets available property sources + + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sources_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourcesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_sources_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetSourcesResponse]: + """getSources + + Gets available property sources + + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sources_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourcesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_sources_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getSources + + Gets available property sources + + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sources_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourcesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_sources_get_serialize( + self, + property_ids, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getSources', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_reservation_document_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostReservationDocumentResponse: + """postReservationDocument + + Attaches a document to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_document_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationDocumentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_reservation_document_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostReservationDocumentResponse]: + """postReservationDocument + + Attaches a document to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_document_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationDocumentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_reservation_document_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postReservationDocument + + Attaches a document to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_document_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationDocumentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_reservation_document_post_serialize( + self, + property_id, + reservation_id, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postReservationDocument', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_reservation_note_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostReservationNoteResponse: + """postReservationNote + + Adds a reservation note + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_note_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note=reservation_note, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_reservation_note_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostReservationNoteResponse]: + """postReservationNote + + Adds a reservation note + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_note_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note=reservation_note, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_reservation_note_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postReservationNote + + Adds a reservation note + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_note_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note=reservation_note, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_reservation_note_post_serialize( + self, + property_id, + reservation_id, + reservation_note, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if reservation_note is not None: + _form_params.append(('reservationNote', reservation_note)) + if user_id is not None: + _form_params.append(('userID', user_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postReservationNote', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_reservation_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostReservationResponse: + """postReservation + + Adds a reservation to the selected property + + :param property_id: Property ID + :type property_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str + :param custom_fields: Array with custom fields information + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_post_serialize( + property_id=property_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + estimated_arrival_time=estimated_arrival_time, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, + custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_reservation_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostReservationResponse]: + """postReservation + + Adds a reservation to the selected property + + :param property_id: Property ID + :type property_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str + :param custom_fields: Array with custom fields information + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_post_serialize( + property_id=property_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + estimated_arrival_time=estimated_arrival_time, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, + custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_reservation_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postReservation + + Adds a reservation to the selected property + + :param property_id: Property ID + :type property_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str + :param custom_fields: Array with custom fields information + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_post_serialize( + property_id=property_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + estimated_arrival_time=estimated_arrival_time, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, + custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_reservation_post_serialize( + self, + property_id, + source_id, + third_party_identifier, + start_date, + end_date, + guest_first_name, + guest_last_name, + guest_gender, + guest_country, + guest_zip, + guest_email, + guest_phone, + estimated_arrival_time, + rooms, + adults, + children, + payment_method, + card_token, + payment_authorization_code, + custom_fields, + promo_code, + allotment_block_code, + date_created, + send_email_confirmation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'rooms': 'csv', + 'adults': 'csv', + 'children': 'csv', + 'customFields': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if source_id is not None: + _form_params.append(('sourceID', source_id)) + if third_party_identifier is not None: + _form_params.append(('thirdPartyIdentifier', third_party_identifier)) + if start_date is not None: + _form_params.append(('startDate', start_date)) + if end_date is not None: + _form_params.append(('endDate', end_date)) + if guest_first_name is not None: + _form_params.append(('guestFirstName', guest_first_name)) + if guest_last_name is not None: + _form_params.append(('guestLastName', guest_last_name)) + if guest_gender is not None: + _form_params.append(('guestGender', guest_gender)) + if guest_country is not None: + _form_params.append(('guestCountry', guest_country)) + if guest_zip is not None: + _form_params.append(('guestZip', guest_zip)) + if guest_email is not None: + _form_params.append(('guestEmail', guest_email)) + if guest_phone is not None: + _form_params.append(('guestPhone', guest_phone)) + if estimated_arrival_time is not None: + _form_params.append(('estimatedArrivalTime', estimated_arrival_time)) + if rooms is not None: + _form_params.append(('rooms', rooms)) + if adults is not None: + _form_params.append(('adults', adults)) + if children is not None: + _form_params.append(('children', children)) + if payment_method is not None: + _form_params.append(('paymentMethod', payment_method)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) + if payment_authorization_code is not None: + _form_params.append(('paymentAuthorizationCode', payment_authorization_code)) + if custom_fields is not None: + _form_params.append(('customFields', custom_fields)) + if promo_code is not None: + _form_params.append(('promoCode', promo_code)) + if allotment_block_code is not None: + _form_params.append(('allotmentBlockCode', allotment_block_code)) + if date_created is not None: + _form_params.append(('dateCreated', date_created)) + if send_email_confirmation is not None: + _form_params.append(('sendEmailConfirmation', send_email_confirmation)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postReservation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_reservation_note_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note_id: Annotated[Optional[StrictStr], Field(description="Reservation Note ID")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutReservationNoteResponse: + """putReservationNote + + Updates an existing reservation note. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note_id: Reservation Note ID + :type reservation_note_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reservation_note_put_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note_id=reservation_note_id, + reservation_note=reservation_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_reservation_note_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note_id: Annotated[Optional[StrictStr], Field(description="Reservation Note ID")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutReservationNoteResponse]: + """putReservationNote + + Updates an existing reservation note. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note_id: Reservation Note ID + :type reservation_note_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reservation_note_put_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note_id=reservation_note_id, + reservation_note=reservation_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_reservation_note_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note_id: Annotated[Optional[StrictStr], Field(description="Reservation Note ID")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putReservationNote + + Updates an existing reservation note. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note_id: Reservation Note ID + :type reservation_note_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reservation_note_put_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note_id=reservation_note_id, + reservation_note=reservation_note, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutReservationNoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_reservation_note_put_serialize( + self, + property_id, + reservation_id, + reservation_note_id, + reservation_note, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if reservation_note_id is not None: + _form_params.append(('reservationNoteID', reservation_note_id)) + if reservation_note is not None: + _form_params.append(('reservationNote', reservation_note)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putReservationNote', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_reservation_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, + checkout_date: Annotated[Optional[date], Field(description="Update the checkoutDate across the whole reservation")] = None, + custom_fields: Annotated[Optional[List[PutReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + rooms: Annotated[Optional[List[PutReservationRequestRoomsInner]], Field(description="Array with rooms information to change accommodations assigned to the reservation")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Do not change if omitted.")] = None, + send_status_change_email: Annotated[Optional[StrictBool], Field(description="Send email on reservation status change to property and guest.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutReservationResponse: + """putReservation + + Updates a reservation, such as custom fields, estimated arrival time, room configuration and reservation status. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier, one reservation ID per call. + :type reservation_id: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date + :type status: str + :param checkout_date: Update the checkoutDate across the whole reservation + :type checkout_date: date + :param custom_fields: Array with custom fields information + :type custom_fields: List[PutReservationRequestCustomFieldsInner] + :param rooms: Array with rooms information to change accommodations assigned to the reservation + :type rooms: List[PutReservationRequestRoomsInner] + :param date_created: Date reservation was made. Do not change if omitted. + :type date_created: datetime + :param send_status_change_email: Send email on reservation status change to property and guest. + :type send_status_change_email: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reservation_put_serialize( + property_id=property_id, + reservation_id=reservation_id, + estimated_arrival_time=estimated_arrival_time, + status=status, + checkout_date=checkout_date, + custom_fields=custom_fields, + rooms=rooms, + date_created=date_created, + send_status_change_email=send_status_change_email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_reservation_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, + checkout_date: Annotated[Optional[date], Field(description="Update the checkoutDate across the whole reservation")] = None, + custom_fields: Annotated[Optional[List[PutReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + rooms: Annotated[Optional[List[PutReservationRequestRoomsInner]], Field(description="Array with rooms information to change accommodations assigned to the reservation")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Do not change if omitted.")] = None, + send_status_change_email: Annotated[Optional[StrictBool], Field(description="Send email on reservation status change to property and guest.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutReservationResponse]: + """putReservation + + Updates a reservation, such as custom fields, estimated arrival time, room configuration and reservation status. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier, one reservation ID per call. + :type reservation_id: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date + :type status: str + :param checkout_date: Update the checkoutDate across the whole reservation + :type checkout_date: date + :param custom_fields: Array with custom fields information + :type custom_fields: List[PutReservationRequestCustomFieldsInner] + :param rooms: Array with rooms information to change accommodations assigned to the reservation + :type rooms: List[PutReservationRequestRoomsInner] + :param date_created: Date reservation was made. Do not change if omitted. + :type date_created: datetime + :param send_status_change_email: Send email on reservation status change to property and guest. + :type send_status_change_email: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reservation_put_serialize( + property_id=property_id, + reservation_id=reservation_id, + estimated_arrival_time=estimated_arrival_time, + status=status, + checkout_date=checkout_date, + custom_fields=custom_fields, + rooms=rooms, + date_created=date_created, + send_status_change_email=send_status_change_email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_reservation_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, + checkout_date: Annotated[Optional[date], Field(description="Update the checkoutDate across the whole reservation")] = None, + custom_fields: Annotated[Optional[List[PutReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + rooms: Annotated[Optional[List[PutReservationRequestRoomsInner]], Field(description="Array with rooms information to change accommodations assigned to the reservation")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Do not change if omitted.")] = None, + send_status_change_email: Annotated[Optional[StrictBool], Field(description="Send email on reservation status change to property and guest.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putReservation + + Updates a reservation, such as custom fields, estimated arrival time, room configuration and reservation status. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier, one reservation ID per call. + :type reservation_id: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date + :type status: str + :param checkout_date: Update the checkoutDate across the whole reservation + :type checkout_date: date + :param custom_fields: Array with custom fields information + :type custom_fields: List[PutReservationRequestCustomFieldsInner] + :param rooms: Array with rooms information to change accommodations assigned to the reservation + :type rooms: List[PutReservationRequestRoomsInner] + :param date_created: Date reservation was made. Do not change if omitted. + :type date_created: datetime + :param send_status_change_email: Send email on reservation status change to property and guest. + :type send_status_change_email: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reservation_put_serialize( + property_id=property_id, + reservation_id=reservation_id, + estimated_arrival_time=estimated_arrival_time, + status=status, + checkout_date=checkout_date, + custom_fields=custom_fields, + rooms=rooms, + date_created=date_created, + send_status_change_email=send_status_change_email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_reservation_put_serialize( + self, + property_id, + reservation_id, + estimated_arrival_time, + status, + checkout_date, + custom_fields, + rooms, + date_created, + send_status_change_email, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'customFields': 'csv', + 'rooms': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if estimated_arrival_time is not None: + _form_params.append(('estimatedArrivalTime', estimated_arrival_time)) + if status is not None: + _form_params.append(('status', status)) + if checkout_date is not None: + _form_params.append(('checkoutDate', checkout_date)) + if custom_fields is not None: + _form_params.append(('customFields', custom_fields)) + if rooms is not None: + _form_params.append(('rooms', rooms)) + if date_created is not None: + _form_params.append(('dateCreated', date_created)) + if send_status_change_email is not None: + _form_params.append(('sendStatusChangeEmail', send_status_change_email)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putReservation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/room_api.py b/cloudbeds_pms_v1_2/api/room_api.py new file mode 100644 index 0000000..5117a6a --- /dev/null +++ b/cloudbeds_pms_v1_2/api/room_api.py @@ -0,0 +1,4743 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date +from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import List, Optional, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class RoomApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_room_block_delete( + self, + room_block_id: Annotated[StrictStr, Field(description="Room block ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteRoomBlockResponse: + """deleteRoomBlock + + Deletes a room block + + :param room_block_id: Room block ID (required) + :type room_block_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_room_block_delete_serialize( + room_block_id=room_block_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_room_block_delete_with_http_info( + self, + room_block_id: Annotated[StrictStr, Field(description="Room block ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteRoomBlockResponse]: + """deleteRoomBlock + + Deletes a room block + + :param room_block_id: Room block ID (required) + :type room_block_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_room_block_delete_serialize( + room_block_id=room_block_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_room_block_delete_without_preload_content( + self, + room_block_id: Annotated[StrictStr, Field(description="Room block ID")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteRoomBlock + + Deletes a room block + + :param room_block_id: Room block ID (required) + :type room_block_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_room_block_delete_serialize( + room_block_id=room_block_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_room_block_delete_serialize( + self, + room_block_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if room_block_id is not None: + + _query_params.append(('roomBlockID', room_block_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/deleteRoomBlock', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_available_room_types_get( + self, + start_date: Annotated[date, Field(description="Check-In date.")], + end_date: Annotated[date, Field(description="Check-Out date.")], + rooms: Annotated[StrictInt, Field(description="Number of rooms.")], + adults: Annotated[StrictInt, Field(description="Number of adults.")], + children: Annotated[StrictInt, Field(description="Number of children.")], + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sort parameter")] = None, + order: Optional[StrictStr] = None, + min_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minimum daily rate. Used to filter results")] = None, + max_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Maximum daily rate. Used to filter results")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAvailableRoomTypesResponse: + """getAvailableRoomTypes + + Returns a list of room types with availability considering the informed parameters ### Group account support + + :param start_date: Check-In date. (required) + :type start_date: date + :param end_date: Check-Out date. (required) + :type end_date: date + :param rooms: Number of rooms. (required) + :type rooms: int + :param adults: Number of adults. (required) + :type adults: int + :param children: Number of children. (required) + :type children: int + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param promo_code: Promotional code + :type promo_code: str + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param sort: Sort parameter + :type sort: str + :param order: + :type order: str + :param min_rate: Minimum daily rate. Used to filter results + :type min_rate: float + :param max_rate: Maximum daily rate. Used to filter results + :type max_rate: float + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_available_room_types_get_serialize( + start_date=start_date, + end_date=end_date, + rooms=rooms, + adults=adults, + children=children, + property_ids=property_ids, + promo_code=promo_code, + detailed_rates=detailed_rates, + sort=sort, + order=order, + min_rate=min_rate, + max_rate=max_rate, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAvailableRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_available_room_types_get_with_http_info( + self, + start_date: Annotated[date, Field(description="Check-In date.")], + end_date: Annotated[date, Field(description="Check-Out date.")], + rooms: Annotated[StrictInt, Field(description="Number of rooms.")], + adults: Annotated[StrictInt, Field(description="Number of adults.")], + children: Annotated[StrictInt, Field(description="Number of children.")], + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sort parameter")] = None, + order: Optional[StrictStr] = None, + min_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minimum daily rate. Used to filter results")] = None, + max_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Maximum daily rate. Used to filter results")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAvailableRoomTypesResponse]: + """getAvailableRoomTypes + + Returns a list of room types with availability considering the informed parameters ### Group account support + + :param start_date: Check-In date. (required) + :type start_date: date + :param end_date: Check-Out date. (required) + :type end_date: date + :param rooms: Number of rooms. (required) + :type rooms: int + :param adults: Number of adults. (required) + :type adults: int + :param children: Number of children. (required) + :type children: int + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param promo_code: Promotional code + :type promo_code: str + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param sort: Sort parameter + :type sort: str + :param order: + :type order: str + :param min_rate: Minimum daily rate. Used to filter results + :type min_rate: float + :param max_rate: Maximum daily rate. Used to filter results + :type max_rate: float + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_available_room_types_get_serialize( + start_date=start_date, + end_date=end_date, + rooms=rooms, + adults=adults, + children=children, + property_ids=property_ids, + promo_code=promo_code, + detailed_rates=detailed_rates, + sort=sort, + order=order, + min_rate=min_rate, + max_rate=max_rate, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAvailableRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_available_room_types_get_without_preload_content( + self, + start_date: Annotated[date, Field(description="Check-In date.")], + end_date: Annotated[date, Field(description="Check-Out date.")], + rooms: Annotated[StrictInt, Field(description="Number of rooms.")], + adults: Annotated[StrictInt, Field(description="Number of adults.")], + children: Annotated[StrictInt, Field(description="Number of children.")], + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sort parameter")] = None, + order: Optional[StrictStr] = None, + min_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minimum daily rate. Used to filter results")] = None, + max_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Maximum daily rate. Used to filter results")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAvailableRoomTypes + + Returns a list of room types with availability considering the informed parameters ### Group account support + + :param start_date: Check-In date. (required) + :type start_date: date + :param end_date: Check-Out date. (required) + :type end_date: date + :param rooms: Number of rooms. (required) + :type rooms: int + :param adults: Number of adults. (required) + :type adults: int + :param children: Number of children. (required) + :type children: int + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param promo_code: Promotional code + :type promo_code: str + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param sort: Sort parameter + :type sort: str + :param order: + :type order: str + :param min_rate: Minimum daily rate. Used to filter results + :type min_rate: float + :param max_rate: Maximum daily rate. Used to filter results + :type max_rate: float + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_available_room_types_get_serialize( + start_date=start_date, + end_date=end_date, + rooms=rooms, + adults=adults, + children=children, + property_ids=property_ids, + promo_code=promo_code, + detailed_rates=detailed_rates, + sort=sort, + order=order, + min_rate=min_rate, + max_rate=max_rate, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAvailableRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_available_room_types_get_serialize( + self, + start_date, + end_date, + rooms, + adults, + children, + property_ids, + promo_code, + detailed_rates, + sort, + order, + min_rate, + max_rate, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if rooms is not None: + + _query_params.append(('rooms', rooms)) + + if adults is not None: + + _query_params.append(('adults', adults)) + + if children is not None: + + _query_params.append(('children', children)) + + if promo_code is not None: + + _query_params.append(('promoCode', promo_code)) + + if detailed_rates is not None: + + _query_params.append(('detailedRates', detailed_rates)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if order is not None: + + _query_params.append(('order', order)) + + if min_rate is not None: + + _query_params.append(('minRate', min_rate)) + + if max_rate is not None: + + _query_params.append(('maxRate', max_rate)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAvailableRoomTypes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservation_room_details_get( + self, + sub_reservation_id: Annotated[StrictStr, Field(description="Sub Reservation ID of the specific assigned room")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationRoomDetailsResponse: + """getReservationRoomDetails + + Returns information about particular room in reservation by its subReservationID + + :param sub_reservation_id: Sub Reservation ID of the specific assigned room (required) + :type sub_reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_room_details_get_serialize( + sub_reservation_id=sub_reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationRoomDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservation_room_details_get_with_http_info( + self, + sub_reservation_id: Annotated[StrictStr, Field(description="Sub Reservation ID of the specific assigned room")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationRoomDetailsResponse]: + """getReservationRoomDetails + + Returns information about particular room in reservation by its subReservationID + + :param sub_reservation_id: Sub Reservation ID of the specific assigned room (required) + :type sub_reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_room_details_get_serialize( + sub_reservation_id=sub_reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationRoomDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservation_room_details_get_without_preload_content( + self, + sub_reservation_id: Annotated[StrictStr, Field(description="Sub Reservation ID of the specific assigned room")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationRoomDetails + + Returns information about particular room in reservation by its subReservationID + + :param sub_reservation_id: Sub Reservation ID of the specific assigned room (required) + :type sub_reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_room_details_get_serialize( + sub_reservation_id=sub_reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationRoomDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservation_room_details_get_serialize( + self, + sub_reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if sub_reservation_id is not None: + + _query_params.append(('subReservationID', sub_reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationRoomDetails', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_room_blocks_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_id: Annotated[Optional[StrictStr], Field(description="Room block ID")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room type ID")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, + start_date: Annotated[Optional[date], Field(description="date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less)")] = None, + end_date: Annotated[Optional[date], Field(description="date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRoomBlocksResponse: + """getRoomBlocks + + Returns a list of all room blocks considering the informed parameters. + + :param property_id: Property ID + :type property_id: str + :param room_block_id: Room block ID + :type room_block_id: str + :param room_type_id: Room type ID + :type room_type_id: str + :param room_id: Room ID + :type room_id: str + :param start_date: date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less) + :type start_date: date + :param end_date: date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less) + :type end_date: date + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_room_blocks_get_serialize( + property_id=property_id, + room_block_id=room_block_id, + room_type_id=room_type_id, + room_id=room_id, + start_date=start_date, + end_date=end_date, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomBlocksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_room_blocks_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_id: Annotated[Optional[StrictStr], Field(description="Room block ID")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room type ID")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, + start_date: Annotated[Optional[date], Field(description="date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less)")] = None, + end_date: Annotated[Optional[date], Field(description="date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRoomBlocksResponse]: + """getRoomBlocks + + Returns a list of all room blocks considering the informed parameters. + + :param property_id: Property ID + :type property_id: str + :param room_block_id: Room block ID + :type room_block_id: str + :param room_type_id: Room type ID + :type room_type_id: str + :param room_id: Room ID + :type room_id: str + :param start_date: date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less) + :type start_date: date + :param end_date: date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less) + :type end_date: date + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_room_blocks_get_serialize( + property_id=property_id, + room_block_id=room_block_id, + room_type_id=room_type_id, + room_id=room_id, + start_date=start_date, + end_date=end_date, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomBlocksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_room_blocks_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_id: Annotated[Optional[StrictStr], Field(description="Room block ID")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room type ID")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, + start_date: Annotated[Optional[date], Field(description="date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less)")] = None, + end_date: Annotated[Optional[date], Field(description="date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRoomBlocks + + Returns a list of all room blocks considering the informed parameters. + + :param property_id: Property ID + :type property_id: str + :param room_block_id: Room block ID + :type room_block_id: str + :param room_type_id: Room type ID + :type room_type_id: str + :param room_id: Room ID + :type room_id: str + :param start_date: date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less) + :type start_date: date + :param end_date: date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less) + :type end_date: date + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_room_blocks_get_serialize( + property_id=property_id, + room_block_id=room_block_id, + room_type_id=room_type_id, + room_id=room_id, + start_date=start_date, + end_date=end_date, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomBlocksResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_room_blocks_get_serialize( + self, + property_id, + room_block_id, + room_type_id, + room_id, + start_date, + end_date, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if room_block_id is not None: + + _query_params.append(('roomBlockID', room_block_id)) + + if room_type_id is not None: + + _query_params.append(('roomTypeID', room_type_id)) + + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRoomBlocks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_room_types_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + room_type_ids: Annotated[Optional[StrictStr], Field(description="Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89")] = None, + start_date: Annotated[Optional[date], Field(description="Check-in date. Required for the rates to be returned.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-out date. Required for the rates to be returned.")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for the rates to be returned.")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for the rates to be returned.")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + room_type_name: Annotated[Optional[StrictStr], Field(description="Room type name, used to filter")] = None, + property_city: Annotated[Optional[StrictStr], Field(description="Hotel city, used to filter")] = None, + property_name: Annotated[Optional[StrictStr], Field(description="Hotel name, used to filter")] = None, + max_guests: Annotated[Optional[StrictStr], Field(description="Max number of guests, used to filter")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRoomTypesResponse: + """getRoomTypes + + Returns a list of room types filtered by the selected parameters ### Group account support + + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param room_type_ids: Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89 + :type room_type_ids: str + :param start_date: Check-in date. Required for the rates to be returned. + :type start_date: date + :param end_date: Check-out date. Required for the rates to be returned. + :type end_date: date + :param adults: Number of adults. Required for the rates to be returned. + :type adults: int + :param children: Number of children. Required for the rates to be returned. + :type children: int + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param room_type_name: Room type name, used to filter + :type room_type_name: str + :param property_city: Hotel city, used to filter + :type property_city: str + :param property_name: Hotel name, used to filter + :type property_name: str + :param max_guests: Max number of guests, used to filter + :type max_guests: str + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_room_types_get_serialize( + property_ids=property_ids, + room_type_ids=room_type_ids, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + room_type_name=room_type_name, + property_city=property_city, + property_name=property_name, + max_guests=max_guests, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_room_types_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + room_type_ids: Annotated[Optional[StrictStr], Field(description="Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89")] = None, + start_date: Annotated[Optional[date], Field(description="Check-in date. Required for the rates to be returned.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-out date. Required for the rates to be returned.")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for the rates to be returned.")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for the rates to be returned.")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + room_type_name: Annotated[Optional[StrictStr], Field(description="Room type name, used to filter")] = None, + property_city: Annotated[Optional[StrictStr], Field(description="Hotel city, used to filter")] = None, + property_name: Annotated[Optional[StrictStr], Field(description="Hotel name, used to filter")] = None, + max_guests: Annotated[Optional[StrictStr], Field(description="Max number of guests, used to filter")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRoomTypesResponse]: + """getRoomTypes + + Returns a list of room types filtered by the selected parameters ### Group account support + + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param room_type_ids: Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89 + :type room_type_ids: str + :param start_date: Check-in date. Required for the rates to be returned. + :type start_date: date + :param end_date: Check-out date. Required for the rates to be returned. + :type end_date: date + :param adults: Number of adults. Required for the rates to be returned. + :type adults: int + :param children: Number of children. Required for the rates to be returned. + :type children: int + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param room_type_name: Room type name, used to filter + :type room_type_name: str + :param property_city: Hotel city, used to filter + :type property_city: str + :param property_name: Hotel name, used to filter + :type property_name: str + :param max_guests: Max number of guests, used to filter + :type max_guests: str + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_room_types_get_serialize( + property_ids=property_ids, + room_type_ids=room_type_ids, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + room_type_name=room_type_name, + property_city=property_city, + property_name=property_name, + max_guests=max_guests, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_room_types_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + room_type_ids: Annotated[Optional[StrictStr], Field(description="Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89")] = None, + start_date: Annotated[Optional[date], Field(description="Check-in date. Required for the rates to be returned.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-out date. Required for the rates to be returned.")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for the rates to be returned.")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for the rates to be returned.")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + room_type_name: Annotated[Optional[StrictStr], Field(description="Room type name, used to filter")] = None, + property_city: Annotated[Optional[StrictStr], Field(description="Hotel city, used to filter")] = None, + property_name: Annotated[Optional[StrictStr], Field(description="Hotel name, used to filter")] = None, + max_guests: Annotated[Optional[StrictStr], Field(description="Max number of guests, used to filter")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRoomTypes + + Returns a list of room types filtered by the selected parameters ### Group account support + + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param room_type_ids: Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89 + :type room_type_ids: str + :param start_date: Check-in date. Required for the rates to be returned. + :type start_date: date + :param end_date: Check-out date. Required for the rates to be returned. + :type end_date: date + :param adults: Number of adults. Required for the rates to be returned. + :type adults: int + :param children: Number of children. Required for the rates to be returned. + :type children: int + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param room_type_name: Room type name, used to filter + :type room_type_name: str + :param property_city: Hotel city, used to filter + :type property_city: str + :param property_name: Hotel name, used to filter + :type property_name: str + :param max_guests: Max number of guests, used to filter + :type max_guests: str + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_room_types_get_serialize( + property_ids=property_ids, + room_type_ids=room_type_ids, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + room_type_name=room_type_name, + property_city=property_city, + property_name=property_name, + max_guests=max_guests, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_room_types_get_serialize( + self, + property_ids, + room_type_ids, + start_date, + end_date, + adults, + children, + detailed_rates, + room_type_name, + property_city, + property_name, + max_guests, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if room_type_ids is not None: + + _query_params.append(('roomTypeIDs', room_type_ids)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if adults is not None: + + _query_params.append(('adults', adults)) + + if children is not None: + + _query_params.append(('children', children)) + + if detailed_rates is not None: + + _query_params.append(('detailedRates', detailed_rates)) + + if room_type_name is not None: + + _query_params.append(('roomTypeName', room_type_name)) + + if property_city is not None: + + _query_params.append(('propertyCity', property_city)) + + if property_name is not None: + + _query_params.append(('propertyName', property_name)) + + if max_guests is not None: + + _query_params.append(('maxGuests', max_guests)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRoomTypes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_rooms_fees_and_taxes_get( + self, + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + rooms_total: Annotated[Union[StrictFloat, StrictInt], Field(description="Total value of the rooms to be booked, with included taxes")], + rooms_count: Annotated[StrictInt, Field(description="Number of rooms to be booked")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRoomsFeesAndTaxesResponse: + """getRoomsFeesAndTaxes + + Get applicable fees and tax to a booking. This is meant to be used on checkout to display to the guest. + + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param rooms_total: Total value of the rooms to be booked, with included taxes (required) + :type rooms_total: float + :param rooms_count: Number of rooms to be booked (required) + :type rooms_count: int + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_fees_and_taxes_get_serialize( + start_date=start_date, + end_date=end_date, + rooms_total=rooms_total, + rooms_count=rooms_count, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsFeesAndTaxesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_rooms_fees_and_taxes_get_with_http_info( + self, + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + rooms_total: Annotated[Union[StrictFloat, StrictInt], Field(description="Total value of the rooms to be booked, with included taxes")], + rooms_count: Annotated[StrictInt, Field(description="Number of rooms to be booked")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRoomsFeesAndTaxesResponse]: + """getRoomsFeesAndTaxes + + Get applicable fees and tax to a booking. This is meant to be used on checkout to display to the guest. + + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param rooms_total: Total value of the rooms to be booked, with included taxes (required) + :type rooms_total: float + :param rooms_count: Number of rooms to be booked (required) + :type rooms_count: int + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_fees_and_taxes_get_serialize( + start_date=start_date, + end_date=end_date, + rooms_total=rooms_total, + rooms_count=rooms_count, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsFeesAndTaxesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_rooms_fees_and_taxes_get_without_preload_content( + self, + start_date: Annotated[date, Field(description="Check-in date")], + end_date: Annotated[date, Field(description="Check-out date")], + rooms_total: Annotated[Union[StrictFloat, StrictInt], Field(description="Total value of the rooms to be booked, with included taxes")], + rooms_count: Annotated[StrictInt, Field(description="Number of rooms to be booked")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRoomsFeesAndTaxes + + Get applicable fees and tax to a booking. This is meant to be used on checkout to display to the guest. + + :param start_date: Check-in date (required) + :type start_date: date + :param end_date: Check-out date (required) + :type end_date: date + :param rooms_total: Total value of the rooms to be booked, with included taxes (required) + :type rooms_total: float + :param rooms_count: Number of rooms to be booked (required) + :type rooms_count: int + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_fees_and_taxes_get_serialize( + start_date=start_date, + end_date=end_date, + rooms_total=rooms_total, + rooms_count=rooms_count, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsFeesAndTaxesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_rooms_fees_and_taxes_get_serialize( + self, + start_date, + end_date, + rooms_total, + rooms_count, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if rooms_total is not None: + + _query_params.append(('roomsTotal', rooms_total)) + + if rooms_count is not None: + + _query_params.append(('roomsCount', rooms_count)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRoomsFeesAndTaxes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_rooms_get( + self, + room_type_id: Annotated[StrictStr, Field(description="Room type ID, comma-separated, i.e. 37,345,89")], + room_type_name_short: Annotated[StrictStr, Field(description="Room Type (short-version)")], + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + start_date: Annotated[Optional[date], Field(description="Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent.")] = None, + end_date: Annotated[Optional[date], Field(description="Final stay date. Necessary if startDate is sent.")] = None, + include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRoomsResponse: + """getRooms + + Returns a list of all rooms considering the informed parameters. If Check-in/out dates are sent, only unassigned rooms are returned. ### Group account support + + :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 (required) + :type room_type_id: str + :param room_type_name_short: Room Type (short-version) (required) + :type room_type_name_short: str + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param start_date: Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. + :type start_date: date + :param end_date: Final stay date. Necessary if startDate is sent. + :type end_date: date + :param include_room_relations: Determines whether room relations info should be included in the response + :type include_room_relations: int + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_get_serialize( + room_type_id=room_type_id, + room_type_name_short=room_type_name_short, + property_ids=property_ids, + start_date=start_date, + end_date=end_date, + include_room_relations=include_room_relations, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_rooms_get_with_http_info( + self, + room_type_id: Annotated[StrictStr, Field(description="Room type ID, comma-separated, i.e. 37,345,89")], + room_type_name_short: Annotated[StrictStr, Field(description="Room Type (short-version)")], + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + start_date: Annotated[Optional[date], Field(description="Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent.")] = None, + end_date: Annotated[Optional[date], Field(description="Final stay date. Necessary if startDate is sent.")] = None, + include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRoomsResponse]: + """getRooms + + Returns a list of all rooms considering the informed parameters. If Check-in/out dates are sent, only unassigned rooms are returned. ### Group account support + + :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 (required) + :type room_type_id: str + :param room_type_name_short: Room Type (short-version) (required) + :type room_type_name_short: str + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param start_date: Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. + :type start_date: date + :param end_date: Final stay date. Necessary if startDate is sent. + :type end_date: date + :param include_room_relations: Determines whether room relations info should be included in the response + :type include_room_relations: int + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_get_serialize( + room_type_id=room_type_id, + room_type_name_short=room_type_name_short, + property_ids=property_ids, + start_date=start_date, + end_date=end_date, + include_room_relations=include_room_relations, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_rooms_get_without_preload_content( + self, + room_type_id: Annotated[StrictStr, Field(description="Room type ID, comma-separated, i.e. 37,345,89")], + room_type_name_short: Annotated[StrictStr, Field(description="Room Type (short-version)")], + property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + start_date: Annotated[Optional[date], Field(description="Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent.")] = None, + end_date: Annotated[Optional[date], Field(description="Final stay date. Necessary if startDate is sent.")] = None, + include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRooms + + Returns a list of all rooms considering the informed parameters. If Check-in/out dates are sent, only unassigned rooms are returned. ### Group account support + + :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 (required) + :type room_type_id: str + :param room_type_name_short: Room Type (short-version) (required) + :type room_type_name_short: str + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param start_date: Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. + :type start_date: date + :param end_date: Final stay date. Necessary if startDate is sent. + :type end_date: date + :param include_room_relations: Determines whether room relations info should be included in the response + :type include_room_relations: int + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_get_serialize( + room_type_id=room_type_id, + room_type_name_short=room_type_name_short, + property_ids=property_ids, + start_date=start_date, + end_date=end_date, + include_room_relations=include_room_relations, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_rooms_get_serialize( + self, + room_type_id, + room_type_name_short, + property_ids, + start_date, + end_date, + include_room_relations, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if room_type_id is not None: + + _query_params.append(('roomTypeID', room_type_id)) + + if room_type_name_short is not None: + + _query_params.append(('roomTypeNameShort', room_type_name_short)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if include_room_relations is not None: + + _query_params.append(('includeRoomRelations', include_room_relations)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRooms', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_rooms_unassigned_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetRoomsUnassignedResponse: + """getRoomsUnassigned + + Returns a list of unassigned rooms in the property. Call is alias of [getRooms](#api-Room-getRooms). Please check its documentation for parameters, response and example. ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_unassigned_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsUnassignedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_rooms_unassigned_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetRoomsUnassignedResponse]: + """getRoomsUnassigned + + Returns a list of unassigned rooms in the property. Call is alias of [getRooms](#api-Room-getRooms). Please check its documentation for parameters, response and example. ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_unassigned_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsUnassignedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_rooms_unassigned_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="List of property IDs, comma-separated, i.e. 37,345,89")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getRoomsUnassigned + + Returns a list of unassigned rooms in the property. Call is alias of [getRooms](#api-Room-getRooms). Please check its documentation for parameters, response and example. ### Group account support + + :param property_ids: List of property IDs, comma-separated, i.e. 37,345,89 + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_rooms_unassigned_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetRoomsUnassignedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_rooms_unassigned_get_serialize( + self, + property_ids, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getRoomsUnassigned', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_room_assign_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be informed in case of assignment.")] = None, + old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be informed in case of reassignment.")] = None, + override_rates: Annotated[Optional[StrictBool], Field(description="Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment.")] = None, + adjust_price: Annotated[Optional[StrictBool], Field(description="If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostRoomAssignResponse: + """postRoomAssign + + Assign/Reassign a room on a guest reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param new_room_id: Room ID of the room that will be assigned. + :type new_room_id: str + :param room_type_id: Room Type ID of the room that will be assigned. Need to be informed in case of assignment. + :type room_type_id: str + :param old_room_id: Room ID of the room that was assigned. Need to be informed in case of reassignment. + :type old_room_id: str + :param override_rates: Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. + :type override_rates: bool + :param adjust_price: If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value. + :type adjust_price: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_assign_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + new_room_id=new_room_id, + room_type_id=room_type_id, + old_room_id=old_room_id, + override_rates=override_rates, + adjust_price=adjust_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomAssignResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_room_assign_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be informed in case of assignment.")] = None, + old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be informed in case of reassignment.")] = None, + override_rates: Annotated[Optional[StrictBool], Field(description="Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment.")] = None, + adjust_price: Annotated[Optional[StrictBool], Field(description="If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostRoomAssignResponse]: + """postRoomAssign + + Assign/Reassign a room on a guest reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param new_room_id: Room ID of the room that will be assigned. + :type new_room_id: str + :param room_type_id: Room Type ID of the room that will be assigned. Need to be informed in case of assignment. + :type room_type_id: str + :param old_room_id: Room ID of the room that was assigned. Need to be informed in case of reassignment. + :type old_room_id: str + :param override_rates: Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. + :type override_rates: bool + :param adjust_price: If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value. + :type adjust_price: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_assign_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + new_room_id=new_room_id, + room_type_id=room_type_id, + old_room_id=old_room_id, + override_rates=override_rates, + adjust_price=adjust_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomAssignResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_room_assign_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, + new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be informed in case of assignment.")] = None, + old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be informed in case of reassignment.")] = None, + override_rates: Annotated[Optional[StrictBool], Field(description="Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment.")] = None, + adjust_price: Annotated[Optional[StrictBool], Field(description="If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postRoomAssign + + Assign/Reassign a room on a guest reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier + :type sub_reservation_id: str + :param new_room_id: Room ID of the room that will be assigned. + :type new_room_id: str + :param room_type_id: Room Type ID of the room that will be assigned. Need to be informed in case of assignment. + :type room_type_id: str + :param old_room_id: Room ID of the room that was assigned. Need to be informed in case of reassignment. + :type old_room_id: str + :param override_rates: Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. + :type override_rates: bool + :param adjust_price: If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value. + :type adjust_price: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_assign_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + new_room_id=new_room_id, + room_type_id=room_type_id, + old_room_id=old_room_id, + override_rates=override_rates, + adjust_price=adjust_price, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomAssignResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_room_assign_post_serialize( + self, + property_id, + reservation_id, + sub_reservation_id, + new_room_id, + room_type_id, + old_room_id, + override_rates, + adjust_price, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if new_room_id is not None: + _form_params.append(('newRoomID', new_room_id)) + if room_type_id is not None: + _form_params.append(('roomTypeID', room_type_id)) + if old_room_id is not None: + _form_params.append(('oldRoomID', old_room_id)) + if override_rates is not None: + _form_params.append(('overrideRates', override_rates)) + if adjust_price is not None: + _form_params.append(('adjustPrice', adjust_price)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postRoomAssign', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_room_block_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block")] = None, + room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, + start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, + end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostRoomBlockResponse: + """postRoomBlock + + Adds a room block to the selected property. + + :param property_id: Property ID + :type property_id: str + :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block + :type room_block_type: str + :param room_block_reason: Room block reason + :type room_block_reason: str + :param start_date: Room block start date + :type start_date: date + :param end_date: Room block end date + :type end_date: date + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :type rooms: List[PostRoomBlockRequestRoomsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_block_post_serialize( + property_id=property_id, + room_block_type=room_block_type, + room_block_reason=room_block_reason, + start_date=start_date, + end_date=end_date, + rooms=rooms, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_room_block_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block")] = None, + room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, + start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, + end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostRoomBlockResponse]: + """postRoomBlock + + Adds a room block to the selected property. + + :param property_id: Property ID + :type property_id: str + :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block + :type room_block_type: str + :param room_block_reason: Room block reason + :type room_block_reason: str + :param start_date: Room block start date + :type start_date: date + :param end_date: Room block end date + :type end_date: date + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :type rooms: List[PostRoomBlockRequestRoomsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_block_post_serialize( + property_id=property_id, + room_block_type=room_block_type, + room_block_reason=room_block_reason, + start_date=start_date, + end_date=end_date, + rooms=rooms, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_room_block_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block")] = None, + room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, + start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, + end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postRoomBlock + + Adds a room block to the selected property. + + :param property_id: Property ID + :type property_id: str + :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block + :type room_block_type: str + :param room_block_reason: Room block reason + :type room_block_reason: str + :param start_date: Room block start date + :type start_date: date + :param end_date: Room block end date + :type end_date: date + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :type rooms: List[PostRoomBlockRequestRoomsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_block_post_serialize( + property_id=property_id, + room_block_type=room_block_type, + room_block_reason=room_block_reason, + start_date=start_date, + end_date=end_date, + rooms=rooms, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_room_block_post_serialize( + self, + property_id, + room_block_type, + room_block_reason, + start_date, + end_date, + rooms, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'rooms': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if room_block_type is not None: + _form_params.append(('roomBlockType', room_block_type)) + if room_block_reason is not None: + _form_params.append(('roomBlockReason', room_block_reason)) + if start_date is not None: + _form_params.append(('startDate', start_date)) + if end_date is not None: + _form_params.append(('endDate', end_date)) + if rooms is not None: + _form_params.append(('rooms', rooms)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postRoomBlock', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_room_check_in_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be checked-in.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostRoomCheckInResponse: + """postRoomCheckIn + + Check-in a room already assigned for a guest + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored. + :type sub_reservation_id: str + :param room_id: Room ID of the room that will be checked-in. + :type room_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_check_in_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomCheckInResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_room_check_in_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be checked-in.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostRoomCheckInResponse]: + """postRoomCheckIn + + Check-in a room already assigned for a guest + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored. + :type sub_reservation_id: str + :param room_id: Room ID of the room that will be checked-in. + :type room_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_check_in_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomCheckInResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_room_check_in_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be checked-in.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postRoomCheckIn + + Check-in a room already assigned for a guest + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored. + :type sub_reservation_id: str + :param room_id: Room ID of the room that will be checked-in. + :type room_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_check_in_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomCheckInResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_room_check_in_post_serialize( + self, + property_id, + reservation_id, + sub_reservation_id, + room_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if room_id is not None: + _form_params.append(('roomID', room_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postRoomCheckIn', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_room_check_out_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be checked out.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostRoomCheckOutResponse: + """postRoomCheckOut + + Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to \"Checked Out\" as well. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored. + :type sub_reservation_id: str + :param room_id: Room ID of the room that will be checked out. + :type room_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_check_out_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomCheckOutResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_room_check_out_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be checked out.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostRoomCheckOutResponse]: + """postRoomCheckOut + + Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to \"Checked Out\" as well. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored. + :type sub_reservation_id: str + :param room_id: Room ID of the room that will be checked out. + :type room_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_check_out_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomCheckOutResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_room_check_out_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be checked out.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postRoomCheckOut + + Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to \"Checked Out\" as well. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param sub_reservation_id: Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored. + :type sub_reservation_id: str + :param room_id: Room ID of the room that will be checked out. + :type room_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_check_out_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomCheckOutResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_room_check_out_post_serialize( + self, + property_id, + reservation_id, + sub_reservation_id, + room_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if room_id is not None: + _form_params.append(('roomID', room_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postRoomCheckOut', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_room_block_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_id: Annotated[Optional[StrictStr], Field(description="Room block ID")] = None, + room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, + start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, + end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutRoomBlockResponse: + """putRoomBlock + + Updates a room block. + + :param property_id: Property ID + :type property_id: str + :param room_block_id: Room block ID + :type room_block_id: str + :param room_block_reason: Room block reason + :type room_block_reason: str + :param start_date: Room block start date + :type start_date: date + :param end_date: Room block end date + :type end_date: date + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :type rooms: List[PutRoomBlockRequestRoomsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_room_block_put_serialize( + property_id=property_id, + room_block_id=room_block_id, + room_block_reason=room_block_reason, + start_date=start_date, + end_date=end_date, + rooms=rooms, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_room_block_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_id: Annotated[Optional[StrictStr], Field(description="Room block ID")] = None, + room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, + start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, + end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutRoomBlockResponse]: + """putRoomBlock + + Updates a room block. + + :param property_id: Property ID + :type property_id: str + :param room_block_id: Room block ID + :type room_block_id: str + :param room_block_reason: Room block reason + :type room_block_reason: str + :param start_date: Room block start date + :type start_date: date + :param end_date: Room block end date + :type end_date: date + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :type rooms: List[PutRoomBlockRequestRoomsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_room_block_put_serialize( + property_id=property_id, + room_block_id=room_block_id, + room_block_reason=room_block_reason, + start_date=start_date, + end_date=end_date, + rooms=rooms, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_room_block_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_block_id: Annotated[Optional[StrictStr], Field(description="Room block ID")] = None, + room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, + start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, + end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putRoomBlock + + Updates a room block. + + :param property_id: Property ID + :type property_id: str + :param room_block_id: Room block ID + :type room_block_id: str + :param room_block_reason: Room block reason + :type room_block_reason: str + :param start_date: Room block start date + :type start_date: date + :param end_date: Room block end date + :type end_date: date + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :type rooms: List[PutRoomBlockRequestRoomsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_room_block_put_serialize( + property_id=property_id, + room_block_id=room_block_id, + room_block_reason=room_block_reason, + start_date=start_date, + end_date=end_date, + rooms=rooms, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutRoomBlockResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_room_block_put_serialize( + self, + property_id, + room_block_id, + room_block_reason, + start_date, + end_date, + rooms, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'rooms': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if room_block_id is not None: + _form_params.append(('roomBlockID', room_block_id)) + if room_block_reason is not None: + _form_params.append(('roomBlockReason', room_block_reason)) + if start_date is not None: + _form_params.append(('startDate', start_date)) + if end_date is not None: + _form_params.append(('endDate', end_date)) + if rooms is not None: + _form_params.append(('rooms', rooms)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putRoomBlock', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/taxes_and_fees_api.py b/cloudbeds_pms_v1_2/api/taxes_and_fees_api.py new file mode 100644 index 0000000..b81b697 --- /dev/null +++ b/cloudbeds_pms_v1_2/api/taxes_and_fees_api.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class TaxesAndFeesApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_taxes_and_fees_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted taxes and fees")] = None, + include_expired: Annotated[Optional[StrictBool], Field(description="If the response should include expired taxes and fees")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetTaxesAndFeesResponse: + """getTaxesAndFees + + Returns the taxes and fees set for the property. Read the [Rate-Based tax (Dynamic Tax) guide](https://myfrontdesk.cloudbeds.com/hc/en-us/articles/360014103514-rate-based-tax-dynamic-tax) to understand its usage. + + :param property_id: Property ID + :type property_id: str + :param include_deleted: If the response should include deleted taxes and fees + :type include_deleted: bool + :param include_expired: If the response should include expired taxes and fees + :type include_expired: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_taxes_and_fees_get_serialize( + property_id=property_id, + include_deleted=include_deleted, + include_expired=include_expired, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTaxesAndFeesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_taxes_and_fees_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted taxes and fees")] = None, + include_expired: Annotated[Optional[StrictBool], Field(description="If the response should include expired taxes and fees")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetTaxesAndFeesResponse]: + """getTaxesAndFees + + Returns the taxes and fees set for the property. Read the [Rate-Based tax (Dynamic Tax) guide](https://myfrontdesk.cloudbeds.com/hc/en-us/articles/360014103514-rate-based-tax-dynamic-tax) to understand its usage. + + :param property_id: Property ID + :type property_id: str + :param include_deleted: If the response should include deleted taxes and fees + :type include_deleted: bool + :param include_expired: If the response should include expired taxes and fees + :type include_expired: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_taxes_and_fees_get_serialize( + property_id=property_id, + include_deleted=include_deleted, + include_expired=include_expired, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTaxesAndFeesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_taxes_and_fees_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted taxes and fees")] = None, + include_expired: Annotated[Optional[StrictBool], Field(description="If the response should include expired taxes and fees")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getTaxesAndFees + + Returns the taxes and fees set for the property. Read the [Rate-Based tax (Dynamic Tax) guide](https://myfrontdesk.cloudbeds.com/hc/en-us/articles/360014103514-rate-based-tax-dynamic-tax) to understand its usage. + + :param property_id: Property ID + :type property_id: str + :param include_deleted: If the response should include deleted taxes and fees + :type include_deleted: bool + :param include_expired: If the response should include expired taxes and fees + :type include_expired: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_taxes_and_fees_get_serialize( + property_id=property_id, + include_deleted=include_deleted, + include_expired=include_expired, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTaxesAndFeesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_taxes_and_fees_get_serialize( + self, + property_id, + include_deleted, + include_expired, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if include_deleted is not None: + + _query_params.append(('includeDeleted', include_deleted)) + + if include_expired is not None: + + _query_params.append(('includeExpired', include_expired)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getTaxesAndFees', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/user_api.py b/cloudbeds_pms_v1_2/api/user_api.py new file mode 100644 index 0000000..ecc56dd --- /dev/null +++ b/cloudbeds_pms_v1_2/api/user_api.py @@ -0,0 +1,303 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse + +from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_2.api_response import ApiResponse +from cloudbeds_pms_v1_2.rest import RESTResponseType + + +class UserApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_users_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="Property numeric identifiers (comma-separated, i.e. 37,345,89)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetUsersResponse: + """getUsers + + Returns information on the properties' users ### Group account support + + :param property_ids: Property numeric identifiers (comma-separated, i.e. 37,345,89) + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_users_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUsersResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_users_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="Property numeric identifiers (comma-separated, i.e. 37,345,89)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetUsersResponse]: + """getUsers + + Returns information on the properties' users ### Group account support + + :param property_ids: Property numeric identifiers (comma-separated, i.e. 37,345,89) + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_users_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUsersResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_users_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="Property numeric identifiers (comma-separated, i.e. 37,345,89)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getUsers + + Returns information on the properties' users ### Group account support + + :param property_ids: Property numeric identifiers (comma-separated, i.e. 37,345,89) + :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_users_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUsersResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_users_get_serialize( + self, + property_ids, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('property_ids', property_ids)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getUsers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api_client.py b/cloudbeds_pms_v1_2/api_client.py new file mode 100644 index 0000000..91e7c73 --- /dev/null +++ b/cloudbeds_pms_v1_2/api_client.py @@ -0,0 +1,797 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import datetime +from dateutil.parser import parse +from enum import Enum +import decimal +import json +import mimetypes +import os +import re +import tempfile + +from urllib.parse import quote +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr + +from cloudbeds_pms_v1_2.configuration import Configuration +from cloudbeds_pms_v1_2.api_response import ApiResponse, T as ApiResponseT +import cloudbeds_pms_v1_2.models +from cloudbeds_pms_v1_2 import rest +from cloudbeds_pms_v1_2.exceptions import ( + ApiValueError, + ApiException, + BadRequestException, + UnauthorizedException, + ForbiddenException, + NotFoundException, + ServiceException +) + +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + +class ApiClient: + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, str, int) + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, + 'object': object, + } + _pool = None + + def __init__( + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None + ) -> None: + # use default configuration if none is provided + if configuration is None: + configuration = Configuration.get_default() + self.configuration = configuration + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.client_side_validation = configuration.client_side_validation + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + pass + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + + _default = None + + @classmethod + def get_default(cls): + """Return new instance of ApiClient. + + This method returns newly created, based on default constructor, + object of ApiClient class or returns a copy of default + ApiClient. + + :return: The ApiClient object. + """ + if cls._default is None: + cls._default = ApiClient() + return cls._default + + @classmethod + def set_default(cls, default): + """Set default instance of ApiClient. + + It stores default ApiClient. + + :param default: object of ApiClient. + """ + cls._default = default + + def param_serialize( + self, + method, + resource_path, + path_params=None, + query_params=None, + header_params=None, + body=None, + post_params=None, + files=None, auth_settings=None, + collection_formats=None, + _host=None, + _request_auth=None + ) -> RequestSerialized: + + """Builds the HTTP request params needed by the request. + :param method: Method to call. + :param resource_path: Path to method endpoint. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :return: tuple of form (path, http_method, query_params, header_params, + body, post_params, files) + """ + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict( + self.parameters_to_tuples(header_params,collection_formats) + ) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) + if files: + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth( + header_params, + query_params, + auth_settings, + resource_path, + method, + body, + request_auth=_request_auth + ) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + if _host is None or self.configuration.ignore_operation_servers: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) + url += "?" + url_query + + return method, url, header_params, body, post_params + + + def call_api( + self, + method, + url, + header_params=None, + body=None, + post_params=None, + _request_timeout=None + ) -> rest.RESTResponse: + """Makes the HTTP request (synchronous) + :param method: Method to call. + :param url: Path to method endpoint. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param _request_timeout: timeout setting for this request. + :return: RESTResponse + """ + + try: + # perform request and return response + response_data = self.rest_client.request( + method, url, + headers=header_params, + body=body, post_params=post_params, + _request_timeout=_request_timeout + ) + + except ApiException as e: + raise e + + return response_data + + def response_deserialize( + self, + response_data: rest.RESTResponse, + response_types_map: Optional[Dict[str, ApiResponseT]]=None + ) -> ApiResponse[ApiResponseT]: + """Deserializes response into an object. + :param response_data: RESTResponse object to be deserialized. + :param response_types_map: dict of response types. + :return: ApiResponse + """ + + msg = "RESTResponse.read() must be called before passing it to response_deserialize()" + assert response_data.data is not None, msg + + response_type = response_types_map.get(str(response_data.status), None) + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + # if not found, look for '1XX', '2XX', etc. + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) + + # deserialize response data + response_text = None + return_data = None + try: + if response_type == "bytearray": + return_data = response_data.data + elif response_type == "file": + return_data = self.__deserialize_file(response_data) + elif response_type is not None: + match = None + content_type = response_data.getheader('content-type') + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_text = response_data.data.decode(encoding) + return_data = self.deserialize(response_text, response_type, content_type) + finally: + if not 200 <= response_data.status <= 299: + raise ApiException.from_response( + http_resp=response_data, + body=response_text, + data=return_data, + ) + + return ApiResponse( + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data + ) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is SecretStr, return obj.get_secret_value() + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is decimal.Decimal return string representation. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, Enum): + return obj.value + elif isinstance(obj, SecretStr): + return obj.get_secret_value() + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] + elif isinstance(obj, tuple): + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + elif isinstance(obj, decimal.Decimal): + return str(obj) + + elif isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() + else: + obj_dict = obj.__dict__ + + return { + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() + } + + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + :param content_type: content type of response. + + :return: deserialized object. + """ + + # fetch data from response object + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): + data = response_text + else: + raise ApiException( + status=0, + reason="Unsupported content type: {0}".format(content_type) + ) + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if isinstance(klass, str): + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" + sub_kls = m.group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(cloudbeds_pms_v1_2.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datetime(data) + elif klass == decimal.Decimal: + return decimal.Decimal(data) + elif issubclass(klass, Enum): + return self.__deserialize_enum(data, klass) + else: + return self.__deserialize_model(data, klass) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def parameters_to_url_query(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: URL query string (e.g. a=Hello%20World&b=123) + """ + new_params: List[Tuple[str, str]] = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if isinstance(v, bool): + v = str(v).lower() + if isinstance(v, (int, float)): + v = str(v) + if isinstance(v, dict): + v = json.dumps(v) + + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, str(value)) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(quote(str(value)) for value in v)) + ) + else: + new_params.append((k, quote(str(v)))) + + return "&".join(["=".join(map(str, item)) for item in new_params]) + + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): + """Builds form parameters. + + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + for k, v in files.items(): + if isinstance(v, str): + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + elif isinstance(v, bytes): + filename = k + filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue + else: + raise ValueError("Unsupported file value") + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) + return params + + def select_header_accept(self, accepts: List[str]) -> Optional[str]: + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return None + + for accept in accepts: + if re.search('json', accept, re.IGNORECASE): + return accept + + return accepts[0] + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None + + for content_type in content_types: + if re.search('json', content_type, re.IGNORECASE): + return content_type + + return content_types[0] + + def update_params_for_auth( + self, + headers, + queries, + auth_settings, + resource_path, + method, + body, + request_auth=None + ) -> None: + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param request_auth: if set, the provided settings will + override the token in the configuration. + """ + if not auth_settings: + return + + if request_auth: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + request_auth + ) + else: + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + auth_setting + ) + + def _apply_auth_params( + self, + headers, + queries, + resource_path, + method, + body, + auth_setting + ) -> None: + """Updates the request parameters based on a single auth_setting + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param auth_setting: auth settings for the endpoint + """ + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + handle file downloading + save response body into a tmp file and return the instance + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + m = re.search( + r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition + ) + assert m is not None, "Unexpected 'content-disposition' header value" + filename = m.group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return str(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datetime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_enum(self, data, klass): + """Deserializes primitive type to enum. + + :param data: primitive type. + :param klass: class literal. + :return: enum value. + """ + try: + return klass(data) + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as `{1}`" + .format(data, klass) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + return klass.from_dict(data) diff --git a/cloudbeds_pms_v1_2/api_response.py b/cloudbeds_pms_v1_2/api_response.py new file mode 100644 index 0000000..9bc7c11 --- /dev/null +++ b/cloudbeds_pms_v1_2/api_response.py @@ -0,0 +1,21 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel + +T = TypeVar("T") + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = { + "arbitrary_types_allowed": True + } diff --git a/cloudbeds_pms_v1_2/configuration.py b/cloudbeds_pms_v1_2/configuration.py new file mode 100644 index 0000000..3bafd70 --- /dev/null +++ b/cloudbeds_pms_v1_2/configuration.py @@ -0,0 +1,486 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import copy +import logging +from logging import FileHandler +import multiprocessing +import sys +from typing import Optional +import urllib3 + +import http.client as httplib + +JSON_SCHEMA_VALIDATION_KEYWORDS = { + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' +} + +class Configuration: + """This class contains various settings of the API client. + + :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum + values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. + :param retries: Number of retries for API requests. + + :Example: + + API Key Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + cookieAuth: # name for the security scheme + type: apiKey + in: cookie + name: JSESSIONID # cookie name + + You can programmatically set the cookie: + +conf = cloudbeds_pms_v1_2.Configuration( + api_key={'cookieAuth': 'abc123'} + api_key_prefix={'cookieAuth': 'JSESSIONID'} +) + + The following cookie will be added to the HTTP request: + Cookie: JSESSIONID abc123 + """ + + _default = None + + def __init__(self, host=None, + api_key=None, api_key_prefix=None, + username=None, password=None, + access_token=None, + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, + ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None + ) -> None: + """Constructor + """ + self._base_path = "https://api.cloudbeds.com/api/v1.2" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.access_token = access_token + """Access token + """ + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("cloudbeds_pms_v1_2") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler: Optional[FileHandler] = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + if debug is not None: + self.debug = debug + else: + self.__debug = False + """Debug switch + """ + + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + self.tls_server_name = None + """SSL/TLS Server Name Indication (SNI) + Set this to the SNI value expected by the server. + """ + + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ + + self.proxy: Optional[str] = None + """Proxy URL + """ + self.proxy_headers = None + """Proxy headers + """ + self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = retries + """Adding retries to override urllib3 default value 3 + """ + # Enable client side validation + self.client_side_validation = True + + self.socket_options = None + """Options to pass down to the underlying urllib3 socket + """ + + self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" + """datetime format + """ + + self.date_format = "%Y-%m-%d" + """date format + """ + + def __deepcopy__(self, memo): + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name, value): + object.__setattr__(self, name, value) + + @classmethod + def set_default(cls, default): + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = default + + @classmethod + def get_default_copy(cls): + """Deprecated. Please use `get_default` instead. + + Deprecated. Please use `get_default` instead. + + :return: The configuration object. + """ + return cls.get_default() + + @classmethod + def get_default(cls): + """Return the default configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration. + + :return: The configuration object. + """ + if cls._default is None: + cls._default = Configuration() + return cls._default + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in self.logger.items(): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in self.logger.items(): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in self.logger.items(): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier, alias=None): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth = {} + if 'api_key' in self.api_key: + auth['api_key'] = { + 'type': 'api_key', + 'in': 'header', + 'key': 'x-api-key', + 'value': self.get_api_key_with_prefix( + 'api_key', + ), + } + if self.access_token is not None: + auth['OAuth2'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } + return auth + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: v1.2\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "https://api.cloudbeds.com/api/v1.2", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables=None, servers=None): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None + :return: URL based on host settings + """ + if index is None: + return self._base_path + + variables = {} if variables is None else variables + servers = self.get_host_settings() if servers is None else servers + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url + + @property + def host(self): + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value): + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/cloudbeds_pms_v1_2/docs/AdjustmentApi.md b/cloudbeds_pms_v1_2/docs/AdjustmentApi.md new file mode 100644 index 0000000..764696e --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/AdjustmentApi.md @@ -0,0 +1,358 @@ +# cloudbeds_pms_v1_2.AdjustmentApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_adjustment_delete**](AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment +[**get_adjustment_get**](AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment +[**get_adjustments_get**](AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments +[**post_adjustment_post**](AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment + + +# **delete_adjustment_delete** +> DeleteAdjustmentResponse delete_adjustment_delete(reservation_id, adjustment_id, property_id=property_id) + +deleteAdjustment + +Voids the AdjustmentID transaction on the specified reservationID + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier + adjustment_id = 'adjustment_id_example' # str | Adjustment identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # deleteAdjustment + api_response = api_instance.delete_adjustment_delete(reservation_id, adjustment_id, property_id=property_id) + print("The response of AdjustmentApi->delete_adjustment_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->delete_adjustment_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation identifier | + **adjustment_id** | **str**| Adjustment identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**DeleteAdjustmentResponse**](DeleteAdjustmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_adjustment_get** +> GetAdjustmentResponse get_adjustment_get(adjustment_id, property_id=property_id) + +getAdjustment + +Gets the details for the one AdjustmentID + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) + adjustment_id = 'adjustment_id_example' # str | Adjustment identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getAdjustment + api_response = api_instance.get_adjustment_get(adjustment_id, property_id=property_id) + print("The response of AdjustmentApi->get_adjustment_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->get_adjustment_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **adjustment_id** | **str**| Adjustment identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetAdjustmentResponse**](GetAdjustmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_adjustments_get** +> GetAdjustmentsResponse get_adjustments_get(reservation_id, property_id=property_id) + +getAdjustments + +Gets all the Adjustments and their details to a specified reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getAdjustments + api_response = api_instance.get_adjustments_get(reservation_id, property_id=property_id) + print("The response of AdjustmentApi->get_adjustments_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->get_adjustments_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetAdjustmentsResponse**](GetAdjustmentsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_adjustment_post** +> PostAdjustmentResponse post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) + +postAdjustment + +Adds an adjustment to a reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + type = 'type_example' # str | Apply Adjustment to (optional) + amount = 3.4 # float | Adjustment amount (optional) + notes = 'notes_example' # str | Adjustment notes (optional) + item_id = 'item_id_example' # str | Apply Adjustment to. Identifier for: product, tax, fee. Not for rate (optional) + + try: + # postAdjustment + api_response = api_instance.post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) + print("The response of AdjustmentApi->post_adjustment_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->post_adjustment_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **type** | **str**| Apply Adjustment to | [optional] + **amount** | **float**| Adjustment amount | [optional] + **notes** | **str**| Adjustment notes | [optional] + **item_id** | **str**| Apply Adjustment to. Identifier for: product, tax, fee. Not for rate | [optional] + +### Return type + +[**PostAdjustmentResponse**](PostAdjustmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md b/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md new file mode 100644 index 0000000..ca35d64 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md @@ -0,0 +1,645 @@ +# cloudbeds_pms_v1_2.AllotmentBlocksApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_allotment_block_notes_post**](AllotmentBlocksApi.md#create_allotment_block_notes_post) | **POST** /createAllotmentBlockNotes | createAllotmentBlockNotes +[**create_allotment_block_post**](AllotmentBlocksApi.md#create_allotment_block_post) | **POST** /createAllotmentBlock | createAllotmentBlock +[**delete_allotment_block_post**](AllotmentBlocksApi.md#delete_allotment_block_post) | **POST** /deleteAllotmentBlock | deleteAllotmentBlock +[**get_allotment_blocks_get**](AllotmentBlocksApi.md#get_allotment_blocks_get) | **GET** /getAllotmentBlocks | getAllotmentBlocks +[**list_allotment_block_notes_get**](AllotmentBlocksApi.md#list_allotment_block_notes_get) | **GET** /listAllotmentBlockNotes | listAllotmentBlockNotes +[**update_allotment_block_notes_post**](AllotmentBlocksApi.md#update_allotment_block_notes_post) | **POST** /updateAllotmentBlockNotes | updateAllotmentBlockNotes +[**update_allotment_block_post**](AllotmentBlocksApi.md#update_allotment_block_post) | **POST** /updateAllotmentBlock | updateAllotmentBlock + + +# **create_allotment_block_notes_post** +> PostCreateAllotmentBlockNotesResponse create_allotment_block_notes_post(property_id=property_id, allotment_block_code=allotment_block_code, text=text) + +createAllotmentBlockNotes + +Add a note to an allotment block + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + allotment_block_code = 'allotment_block_code_example' # str | Allotment Block Code (optional) + text = 'text_example' # str | Note's text (optional) + + try: + # createAllotmentBlockNotes + api_response = api_instance.create_allotment_block_notes_post(property_id=property_id, allotment_block_code=allotment_block_code, text=text) + print("The response of AllotmentBlocksApi->create_allotment_block_notes_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AllotmentBlocksApi->create_allotment_block_notes_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **allotment_block_code** | **str**| Allotment Block Code | [optional] + **text** | **str**| Note's text | [optional] + +### Return type + +[**PostCreateAllotmentBlockNotesResponse**](PostCreateAllotmentBlockNotesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_allotment_block_post** +> PostCreateAllotmentBlockResponse create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) + +createAllotmentBlock + +Retreive allotment blocks @apiQuery {Integer} propertyID Property ID + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + group_code = 'group_code_example' # str | The unique identifier of the group profile the allotment block should be created (optional) + allotment_block_name = 'allotment_block_name_example' # str | The name for the allotment block (optional) + rate_type = 'rate_type_example' # str | The rate type for the associated intervals (optional) + allotment_type = 'allotment_type_example' # str | The allotment type (optional) + allotment_block_status = 'allotment_block_status_example' # str | The status for the allotment block under (optional) + auto_release = cloudbeds_pms_v1_2.PostCreateAllotmentBlockRequestAutoRelease() # PostCreateAllotmentBlockRequestAutoRelease | (optional) + allotment_intervals = [cloudbeds_pms_v1_2.PostCreateAllotmentBlockRequestAllotmentIntervalsInner()] # List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner] | The day-based data for the allotment block. (optional) + + try: + # createAllotmentBlock + api_response = api_instance.create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) + print("The response of AllotmentBlocksApi->create_allotment_block_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AllotmentBlocksApi->create_allotment_block_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_code** | **str**| The unique identifier of the group profile the allotment block should be created | [optional] + **allotment_block_name** | **str**| The name for the allotment block | [optional] + **rate_type** | **str**| The rate type for the associated intervals | [optional] + **allotment_type** | **str**| The allotment type | [optional] + **allotment_block_status** | **str**| The status for the allotment block under | [optional] + **auto_release** | [**PostCreateAllotmentBlockRequestAutoRelease**](PostCreateAllotmentBlockRequestAutoRelease.md)| | [optional] + **allotment_intervals** | [**List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]**](PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md)| The day-based data for the allotment block. | [optional] + +### Return type + +[**PostCreateAllotmentBlockResponse**](PostCreateAllotmentBlockResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_allotment_block_post** +> PostDeleteAllotmentBlockResponse delete_allotment_block_post(allotment_block_code=allotment_block_code) + +deleteAllotmentBlock + +Delete allotment blocks + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + allotment_block_code = 'allotment_block_code_example' # str | The unique code of the allotment Block (optional) + + try: + # deleteAllotmentBlock + api_response = api_instance.delete_allotment_block_post(allotment_block_code=allotment_block_code) + print("The response of AllotmentBlocksApi->delete_allotment_block_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AllotmentBlocksApi->delete_allotment_block_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allotment_block_code** | **str**| The unique code of the allotment Block | [optional] + +### Return type + +[**PostDeleteAllotmentBlockResponse**](PostDeleteAllotmentBlockResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_allotment_blocks_get** +> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code, group_code, allotment_block_status, page_size, page_number) + +getAllotmentBlocks + +Retrieve allotment blocks + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional, by default all authorized properties will be included) + allotment_block_code = 'allotment_block_code_example' # str | Allotment block code + group_code = 'group_code_example' # str | A group profile code + allotment_block_status = 'allotment_block_status_example' # str | Allotment block status(es) + page_size = 56 # int | Number of allotment blocks to return per page (min: 1, max: 100) + page_number = 56 # int | Which page in the results to access + + try: + # getAllotmentBlocks + api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code, group_code, allotment_block_status, page_size, page_number) + print("The response of AllotmentBlocksApi->get_allotment_blocks_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AllotmentBlocksApi->get_allotment_blocks_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID (optional, by default all authorized properties will be included) | + **allotment_block_code** | **str**| Allotment block code | + **group_code** | **str**| A group profile code | + **allotment_block_status** | **str**| Allotment block status(es) | + **page_size** | **int**| Number of allotment blocks to return per page (min: 1, max: 100) | + **page_number** | **int**| Which page in the results to access | + +### Return type + +[**GetAllotmentBlocksResponse**](GetAllotmentBlocksResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_allotment_block_notes_get** +> GetListAllotmentBlockNotesResponse list_allotment_block_notes_get(property_id, allotment_block_code, status=status, page_number=page_number, page_size=page_size) + +listAllotmentBlockNotes + +List notes added to an allotment block + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + property_id = 'property_id_example' # str | Property ID + allotment_block_code = 'allotment_block_code_example' # str | Allotment block code + status = 'status_example' # str | Note status (optional) + page_number = 56 # int | Page (optional) + page_size = 56 # int | Number of Items per Page (min 1, max 100) (optional) + + try: + # listAllotmentBlockNotes + api_response = api_instance.list_allotment_block_notes_get(property_id, allotment_block_code, status=status, page_number=page_number, page_size=page_size) + print("The response of AllotmentBlocksApi->list_allotment_block_notes_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AllotmentBlocksApi->list_allotment_block_notes_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | + **allotment_block_code** | **str**| Allotment block code | + **status** | **str**| Note status | [optional] + **page_number** | **int**| Page | [optional] + **page_size** | **int**| Number of Items per Page (min 1, max 100) | [optional] + +### Return type + +[**GetListAllotmentBlockNotesResponse**](GetListAllotmentBlockNotesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_allotment_block_notes_post** +> PostUpdateAllotmentBlockNotesResponse update_allotment_block_notes_post(property_id=property_id, allotment_block_code=allotment_block_code, note_id=note_id, text=text, status=status) + +updateAllotmentBlockNotes + +Update a note on an allotment block + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + allotment_block_code = 'allotment_block_code_example' # str | Allotment Block Code (optional) + note_id = 'note_id_example' # str | Note's ID (optional) + text = 'text_example' # str | Note's text (null for no change) (optional) + status = 'status_example' # str | Note status (optional) + + try: + # updateAllotmentBlockNotes + api_response = api_instance.update_allotment_block_notes_post(property_id=property_id, allotment_block_code=allotment_block_code, note_id=note_id, text=text, status=status) + print("The response of AllotmentBlocksApi->update_allotment_block_notes_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AllotmentBlocksApi->update_allotment_block_notes_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **allotment_block_code** | **str**| Allotment Block Code | [optional] + **note_id** | **str**| Note's ID | [optional] + **text** | **str**| Note's text (null for no change) | [optional] + **status** | **str**| Note status | [optional] + +### Return type + +[**PostUpdateAllotmentBlockNotesResponse**](PostUpdateAllotmentBlockNotesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_allotment_block_post** +> PostUpdateAllotmentBlockResponse update_allotment_block_post(allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) + +updateAllotmentBlock + +Update an allotment block @apiQuery {Integer} propertyID Property ID + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + allotment_block_code = 'allotment_block_code_example' # str | The allotment block code identifying the allotment block to update (optional) + allotment_block_name = 'allotment_block_name_example' # str | The name for the allotment block (optional) + allotment_type = 'allotment_type_example' # str | The allotment type (optional) + allotment_block_status = 'allotment_block_status_example' # str | The status for the allotment block under (optional) + auto_release = cloudbeds_pms_v1_2.PostUpdateAllotmentBlockRequestAutoRelease() # PostUpdateAllotmentBlockRequestAutoRelease | (optional) + allotment_intervals = [cloudbeds_pms_v1_2.PostUpdateAllotmentBlockRequestAllotmentIntervalsInner()] # List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner] | The day-based data for the allotment block. (optional) + + try: + # updateAllotmentBlock + api_response = api_instance.update_allotment_block_post(allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) + print("The response of AllotmentBlocksApi->update_allotment_block_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AllotmentBlocksApi->update_allotment_block_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allotment_block_code** | **str**| The allotment block code identifying the allotment block to update | [optional] + **allotment_block_name** | **str**| The name for the allotment block | [optional] + **allotment_type** | **str**| The allotment type | [optional] + **allotment_block_status** | **str**| The status for the allotment block under | [optional] + **auto_release** | [**PostUpdateAllotmentBlockRequestAutoRelease**](PostUpdateAllotmentBlockRequestAutoRelease.md)| | [optional] + **allotment_intervals** | [**List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner]**](PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md)| The day-based data for the allotment block. | [optional] + +### Return type + +[**PostUpdateAllotmentBlockResponse**](PostUpdateAllotmentBlockResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/AppSettingsApi.md b/cloudbeds_pms_v1_2/docs/AppSettingsApi.md new file mode 100644 index 0000000..7d93b78 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/AppSettingsApi.md @@ -0,0 +1,354 @@ +# cloudbeds_pms_v1_2.AppSettingsApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_app_property_settings_post**](AppSettingsApi.md#delete_app_property_settings_post) | **POST** /deleteAppPropertySettings | deleteAppPropertySettings +[**get_app_property_settings_get**](AppSettingsApi.md#get_app_property_settings_get) | **GET** /getAppPropertySettings | getAppPropertySettings +[**post_app_property_settings_post**](AppSettingsApi.md#post_app_property_settings_post) | **POST** /postAppPropertySettings | postAppPropertySettings +[**put_app_property_settings_post**](AppSettingsApi.md#put_app_property_settings_post) | **POST** /putAppPropertySettings | putAppPropertySettings + + +# **delete_app_property_settings_post** +> PostDeleteAppPropertySettingsResponse delete_app_property_settings_post(property_id=property_id, key=key) + +deleteAppPropertySettings + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + property_id = 'property_id_example' # str | Key (optional) + key = 'key_example' # str | Key (optional) + + try: + # deleteAppPropertySettings + api_response = api_instance.delete_app_property_settings_post(property_id=property_id, key=key) + print("The response of AppSettingsApi->delete_app_property_settings_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppSettingsApi->delete_app_property_settings_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Key | [optional] + **key** | **str**| Key | [optional] + +### Return type + +[**PostDeleteAppPropertySettingsResponse**](PostDeleteAppPropertySettingsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_app_property_settings_get** +> GetAppPropertySettingsResponse get_app_property_settings_get(property_id, key=key) + +getAppPropertySettings + +Returns the app property settings + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + property_id = 'property_id_example' # str | Property ID + key = 'key_example' # str | Key (optional) + + try: + # getAppPropertySettings + api_response = api_instance.get_app_property_settings_get(property_id, key=key) + print("The response of AppSettingsApi->get_app_property_settings_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppSettingsApi->get_app_property_settings_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | + **key** | **str**| Key | [optional] + +### Return type + +[**GetAppPropertySettingsResponse**](GetAppPropertySettingsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_app_property_settings_post** +> PostAppPropertySettingResponse post_app_property_settings_post(property_id=property_id, app_client_id=app_client_id, key=key, value=value) + +postAppPropertySettings + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + app_client_id = 'app_client_id_example' # str | Application Client ID (optional) + key = 'key_example' # str | Key (optional) + value = 'value_example' # str | Value (optional) + + try: + # postAppPropertySettings + api_response = api_instance.post_app_property_settings_post(property_id=property_id, app_client_id=app_client_id, key=key, value=value) + print("The response of AppSettingsApi->post_app_property_settings_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppSettingsApi->post_app_property_settings_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **app_client_id** | **str**| Application Client ID | [optional] + **key** | **str**| Key | [optional] + **value** | **str**| Value | [optional] + +### Return type + +[**PostAppPropertySettingResponse**](PostAppPropertySettingResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_app_property_settings_post** +> PostPutAppPropertySettingsResponse put_app_property_settings_post(property_id=property_id, key=key, value=value) + +putAppPropertySettings + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + key = 'key_example' # str | Key (optional) + value = 'value_example' # str | Value (optional) + + try: + # putAppPropertySettings + api_response = api_instance.put_app_property_settings_post(property_id=property_id, key=key, value=value) + print("The response of AppSettingsApi->put_app_property_settings_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppSettingsApi->put_app_property_settings_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **key** | **str**| Key | [optional] + **value** | **str**| Value | [optional] + +### Return type + +[**PostPutAppPropertySettingsResponse**](PostPutAppPropertySettingsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/AuthenticationApi.md b/cloudbeds_pms_v1_2/docs/AuthenticationApi.md new file mode 100644 index 0000000..2a98728 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/AuthenticationApi.md @@ -0,0 +1,223 @@ +# cloudbeds_pms_v1_2.AuthenticationApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**access_token_post**](AuthenticationApi.md#access_token_post) | **POST** /access_token | access_token +[**oauth_metadata_get**](AuthenticationApi.md#oauth_metadata_get) | **GET** /oauth/metadata | metadata +[**userinfo_get**](AuthenticationApi.md#userinfo_get) | **GET** /userinfo | userinfo + + +# **access_token_post** +> PostAccessTokenResponse access_token_post(grant_type=grant_type, client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri, code=code, refresh_token=refresh_token) + +access_token + +Query the authorization server for an access token used to access property resources.
If the automatic delivery method for API keys is used, the grant type `urn:ietf:params:oauth:grant-type:api-key` needs to be used to request an API key. This grant type requires `grant_type=urn:ietf:params:oauth:grant-type:api-key`, `client_id`, `client_secret`, `redirect_uri` and `code`.
For OAuth 2.0., two different grant types (`authorization_code`, `refresh_token`) are supported. Authorization code grant type requires `grant_type=authorization_code`, `client_id`, `client_secret`, `redirect_uri`, `code`. Refresh token grant type requires `grant_type=refresh_token`, `client_id`, `client_secret`, `refresh_token`.
Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AuthenticationApi(api_client) + grant_type = 'grant_type_example' # str | The OAuth2 grant type. (optional) + client_id = 'client_id_example' # str | The client identifier. Each client must be provisioned an identifier. (optional) + client_secret = 'client_secret_example' # str | The client secret. Each client must be provisioned a secret. (optional) + redirect_uri = 'redirect_uri_example' # str | The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). (optional) + code = 'code_example' # str | An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). (optional) + refresh_token = 'refresh_token_example' # str | A refresh token to renew an access_token (Required for grant type 'refresh_token' only). (optional) + + try: + # access_token + api_response = api_instance.access_token_post(grant_type=grant_type, client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri, code=code, refresh_token=refresh_token) + print("The response of AuthenticationApi->access_token_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthenticationApi->access_token_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **grant_type** | **str**| The OAuth2 grant type. | [optional] + **client_id** | **str**| The client identifier. Each client must be provisioned an identifier. | [optional] + **client_secret** | **str**| The client secret. Each client must be provisioned a secret. | [optional] + **redirect_uri** | **str**| The client pre-configured redirect URI. (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). | [optional] + **code** | **str**| An authorization code provisioned by /oauth (Required for grant type 'authorization_code' and 'urn:ietf:params:oauth:grant-type:api-key'). | [optional] + **refresh_token** | **str**| A refresh token to renew an access_token (Required for grant type 'refresh_token' only). | [optional] + +### Return type + +[**PostAccessTokenResponse**](PostAccessTokenResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **oauth_metadata_get** +> GetMetadataResponse oauth_metadata_get() + +metadata + +In the context of properties being distributed across multiple localizations, this endpoint serves to retrieve the precise location of the property associated with the provided access token. Further information can be found in the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication). + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AuthenticationApi(api_client) + + try: + # metadata + api_response = api_instance.oauth_metadata_get() + print("The response of AuthenticationApi->oauth_metadata_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthenticationApi->oauth_metadata_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetMetadataResponse**](GetMetadataResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **userinfo_get** +> GetUserinfoResponse userinfo_get(property_id=property_id, role_details=role_details) + +userinfo + +Returns information on user who authorized connection + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.AuthenticationApi(api_client) + property_id = 'property_id_example' # str | Specify a property ID when using role_details (optional) + role_details = True # bool | Specify whether to include role and acl details of the user. (optional) + + try: + # userinfo + api_response = api_instance.userinfo_get(property_id=property_id, role_details=role_details) + print("The response of AuthenticationApi->userinfo_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthenticationApi->userinfo_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Specify a property ID when using role_details | [optional] + **role_details** | **bool**| Specify whether to include role and acl details of the user. | [optional] + +### Return type + +[**GetUserinfoResponse**](GetUserinfoResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/CurrencyApi.md b/cloudbeds_pms_v1_2/docs/CurrencyApi.md new file mode 100644 index 0000000..5127275 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/CurrencyApi.md @@ -0,0 +1,91 @@ +# cloudbeds_pms_v1_2.CurrencyApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_currency_settings_get**](CurrencyApi.md#get_currency_settings_get) | **GET** /getCurrencySettings | getCurrencySettings + + +# **get_currency_settings_get** +> GetCurrencySettingsResponse get_currency_settings_get(property_id=property_id) + +getCurrencySettings + +Get currency settings + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.CurrencyApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getCurrencySettings + api_response = api_instance.get_currency_settings_get(property_id=property_id) + print("The response of CurrencyApi->get_currency_settings_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CurrencyApi->get_currency_settings_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetCurrencySettingsResponse**](GetCurrencySettingsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/CustomFieldsApi.md b/cloudbeds_pms_v1_2/docs/CustomFieldsApi.md new file mode 100644 index 0000000..685d797 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/CustomFieldsApi.md @@ -0,0 +1,194 @@ +# cloudbeds_pms_v1_2.CustomFieldsApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_custom_fields_get**](CustomFieldsApi.md#get_custom_fields_get) | **GET** /getCustomFields | getCustomFields +[**post_custom_field_post**](CustomFieldsApi.md#post_custom_field_post) | **POST** /postCustomField | postCustomField + + +# **get_custom_fields_get** +> GetCustomFieldsResponse get_custom_fields_get(property_id=property_id, custom_field_id=custom_field_id, shortcode=shortcode) + +getCustomFields + +Gets custom fields list
¹ data.displayed = \"booking\" - Display this field to guests on the booking engine.
¹ data.displayed = \"reservation\" - Add this field to the reservation folio for use by staff.
¹ data.displayed = \"card\" - Make this field available for registration cards.
+ +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.CustomFieldsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + custom_field_id = 'custom_field_id_example' # str | Field identifier (optional) + shortcode = 'shortcode_example' # str | Internal reference and is used for integration purposes such as custom links and the API (optional) + + try: + # getCustomFields + api_response = api_instance.get_custom_fields_get(property_id=property_id, custom_field_id=custom_field_id, shortcode=shortcode) + print("The response of CustomFieldsApi->get_custom_fields_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CustomFieldsApi->get_custom_fields_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **custom_field_id** | **str**| Field identifier | [optional] + **shortcode** | **str**| Internal reference and is used for integration purposes such as custom links and the API | [optional] + +### Return type + +[**GetCustomFieldsResponse**](GetCustomFieldsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_custom_field_post** +> PostCustomFieldResponse post_custom_field_post(property_id=property_id, name=name, shortcode=shortcode, apply_to=apply_to, required=required, max_characters=max_characters, type=type, displayed=displayed, is_personal=is_personal) + +postCustomField + +Sets custom fields. The call should only be made once to add the field to the system. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.CustomFieldsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + name = 'name_example' # str | Field name (optional) + shortcode = 'shortcode_example' # str | Internal reference and is used for integration purposes such as custom links and the API (optional) + apply_to = reservation # str | Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk (optional) (default to reservation) + required = False # bool | Specify whether this field is required to be filled out. (optional) (default to False) + max_characters = 40 # int | Maximum number of characters allowed to be entered in this field. (optional) (default to 40) + type = input # str | The field's input type. (optional) (default to input) + displayed = ['displayed_example'] # List[str] | ¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards (optional) + is_personal = True # bool | Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules. (optional) + + try: + # postCustomField + api_response = api_instance.post_custom_field_post(property_id=property_id, name=name, shortcode=shortcode, apply_to=apply_to, required=required, max_characters=max_characters, type=type, displayed=displayed, is_personal=is_personal) + print("The response of CustomFieldsApi->post_custom_field_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CustomFieldsApi->post_custom_field_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **name** | **str**| Field name | [optional] + **shortcode** | **str**| Internal reference and is used for integration purposes such as custom links and the API | [optional] + **apply_to** | **str**| Where put this field in reservation or guest section of the booking. reservation - applies the custom field to reservations in myfrontdesk guest - applies the custom field to guest interface in myfrontdesk | [optional] [default to reservation] + **required** | **bool**| Specify whether this field is required to be filled out. | [optional] [default to False] + **max_characters** | **int**| Maximum number of characters allowed to be entered in this field. | [optional] [default to 40] + **type** | **str**| The field's input type. | [optional] [default to input] + **displayed** | [**List[str]**](str.md)| ¹ Specify where this custom field to show up. reservation - applies the custom field to reservation interface in myfrontdesk booking - applies the custom field to the booking engine card - applies the custom field to Registration cards | [optional] + **is_personal** | **bool**| Specifies if the contents of this field may contain personal information. User's personal information may be removed upon request according to GDPR rules. | [optional] + +### Return type + +[**PostCustomFieldResponse**](PostCustomFieldResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/DashboardApi.md b/cloudbeds_pms_v1_2/docs/DashboardApi.md new file mode 100644 index 0000000..89e8c2f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/DashboardApi.md @@ -0,0 +1,93 @@ +# cloudbeds_pms_v1_2.DashboardApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_dashboard_get**](DashboardApi.md#get_dashboard_get) | **GET** /getDashboard | getDashboard + + +# **get_dashboard_get** +> GetDashboardResponse get_dashboard_get(property_id=property_id, var_date=var_date) + +getDashboard + +Returns basic information about the current state of the hotel + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.DashboardApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + var_date = '2013-10-20' # date | Return data for this date. Format: YYYY-MM-DD (optional) + + try: + # getDashboard + api_response = api_instance.get_dashboard_get(property_id=property_id, var_date=var_date) + print("The response of DashboardApi->get_dashboard_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardApi->get_dashboard_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **var_date** | **date**| Return data for this date. Format: YYYY-MM-DD | [optional] + +### Return type + +[**GetDashboardResponse**](GetDashboardResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md b/cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md new file mode 100644 index 0000000..68fb514 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md @@ -0,0 +1,30 @@ +# DeleteAdjustmentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteAdjustmentResponse from a JSON string +delete_adjustment_response_instance = DeleteAdjustmentResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteAdjustmentResponse.to_json()) + +# convert the object into a dict +delete_adjustment_response_dict = delete_adjustment_response_instance.to_dict() +# create an instance of DeleteAdjustmentResponse from a dict +delete_adjustment_response_from_dict = DeleteAdjustmentResponse.from_dict(delete_adjustment_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md b/cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md new file mode 100644 index 0000000..9256a6e --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md @@ -0,0 +1,30 @@ +# DeleteGuestNoteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteGuestNoteResponse from a JSON string +delete_guest_note_response_instance = DeleteGuestNoteResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteGuestNoteResponse.to_json()) + +# convert the object into a dict +delete_guest_note_response_dict = delete_guest_note_response_instance.to_dict() +# create an instance of DeleteGuestNoteResponse from a dict +delete_guest_note_response_from_dict = DeleteGuestNoteResponse.from_dict(delete_guest_note_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md b/cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md new file mode 100644 index 0000000..a2e983c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md @@ -0,0 +1,30 @@ +# DeleteReservationNoteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteReservationNoteResponse from a JSON string +delete_reservation_note_response_instance = DeleteReservationNoteResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteReservationNoteResponse.to_json()) + +# convert the object into a dict +delete_reservation_note_response_dict = delete_reservation_note_response_instance.to_dict() +# create an instance of DeleteReservationNoteResponse from a dict +delete_reservation_note_response_from_dict = DeleteReservationNoteResponse.from_dict(delete_reservation_note_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md b/cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md new file mode 100644 index 0000000..4d664b8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md @@ -0,0 +1,30 @@ +# DeleteRoomBlockResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteRoomBlockResponse from a JSON string +delete_room_block_response_instance = DeleteRoomBlockResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteRoomBlockResponse.to_json()) + +# convert the object into a dict +delete_room_block_response_dict = delete_room_block_response_instance.to_dict() +# create an instance of DeleteRoomBlockResponse from a dict +delete_room_block_response_from_dict = DeleteRoomBlockResponse.from_dict(delete_room_block_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md b/cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md new file mode 100644 index 0000000..02e2c04 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md @@ -0,0 +1,29 @@ +# DeleteWebhookResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteWebhookResponse from a JSON string +delete_webhook_response_instance = DeleteWebhookResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteWebhookResponse.to_json()) + +# convert the object into a dict +delete_webhook_response_dict = delete_webhook_response_instance.to_dict() +# create an instance of DeleteWebhookResponse from a dict +delete_webhook_response_from_dict = DeleteWebhookResponse.from_dict(delete_webhook_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/EmailsApi.md b/cloudbeds_pms_v1_2/docs/EmailsApi.md new file mode 100644 index 0000000..7262d40 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/EmailsApi.md @@ -0,0 +1,371 @@ +# cloudbeds_pms_v1_2.EmailsApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_email_schedule_get**](EmailsApi.md#get_email_schedule_get) | **GET** /getEmailSchedule | getEmailSchedule +[**get_email_templates_get**](EmailsApi.md#get_email_templates_get) | **GET** /getEmailTemplates | getEmailTemplates +[**post_email_schedule_post**](EmailsApi.md#post_email_schedule_post) | **POST** /postEmailSchedule | postEmailSchedule +[**post_email_template_post**](EmailsApi.md#post_email_template_post) | **POST** /postEmailTemplate | postEmailTemplate + + +# **get_email_schedule_get** +> GetEmailScheduleResponse get_email_schedule_get(property_id=property_id) + +getEmailSchedule + +Returns a list of all existing email scheduling. This call is only available for third-party integration partners, and not for property client IDs. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getEmailSchedule + api_response = api_instance.get_email_schedule_get(property_id=property_id) + print("The response of EmailsApi->get_email_schedule_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EmailsApi->get_email_schedule_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetEmailScheduleResponse**](GetEmailScheduleResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_email_templates_get** +> GetEmailTemplatesResponse get_email_templates_get(property_id=property_id) + +getEmailTemplates + +Returns a list of all existing email templates. This call is only available for third-party integration partners, and not for property client IDs. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getEmailTemplates + api_response = api_instance.get_email_templates_get(property_id=property_id) + print("The response of EmailsApi->get_email_templates_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EmailsApi->get_email_templates_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_email_schedule_post** +> PostEmailScheduleResponse post_email_schedule_post(property_id=property_id, email_template_id=email_template_id, schedule_name=schedule_name, schedule=schedule) + +postEmailSchedule + +Creates a new email schedule for existing email template. Email template can be scheduled based on two parameters: reservationStatusChange and reservationEvent. Only one of the parameters can be used. *reservationStatusChange* schedules email to be sent when reservation status transitions to a specific one, for instance: `confirmed`. *reservationEvent* schedules email to be sent number of days prior or after a specific event, for instance: `after_check_out` at a given time This call is only available for third-party integration partners, and not for property client IDs. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + email_template_id = 'email_template_id_example' # str | ID of the email template that will be used when sending an email. (optional) + schedule_name = 'schedule_name_example' # str | User friendly schedule name that appears in the list. Should contain app name. (optional) + schedule = cloudbeds_pms_v1_2.PostEmailScheduleRequestSchedule() # PostEmailScheduleRequestSchedule | (optional) + + try: + # postEmailSchedule + api_response = api_instance.post_email_schedule_post(property_id=property_id, email_template_id=email_template_id, schedule_name=schedule_name, schedule=schedule) + print("The response of EmailsApi->post_email_schedule_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EmailsApi->post_email_schedule_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **email_template_id** | **str**| ID of the email template that will be used when sending an email. | [optional] + **schedule_name** | **str**| User friendly schedule name that appears in the list. Should contain app name. | [optional] + **schedule** | [**PostEmailScheduleRequestSchedule**](PostEmailScheduleRequestSchedule.md)| | [optional] + +### Return type + +[**PostEmailScheduleResponse**](PostEmailScheduleResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_email_template_post** +> PostEmailTemplateResponse post_email_template_post(property_id=property_id, email_type=email_type, name=name, var_from=var_from, from_name=from_name, subject=subject, body=body, reply_to=reply_to, reply_to_name=reply_to_name, autofill_all_languages=autofill_all_languages, cc=cc, bcc=bcc) + +postEmailTemplate + +Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + email_type = nonMarketing # str | Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties. (optional) (default to nonMarketing) + name = 'name_example' # str | Template name (optional) + var_from = 'var_from_example' # str | Email address from which the email message may be sent (optional) + from_name = 'from_name_example' # str | from which the email message may be sent. If empty email will be used (optional) + subject = cloudbeds_pms_v1_2.PostEmailTemplateRequestSubject() # PostEmailTemplateRequestSubject | (optional) + body = cloudbeds_pms_v1_2.PostEmailTemplateRequestBody() # PostEmailTemplateRequestBody | (optional) + reply_to = 'reply_to_example' # str | Email address to which the email message may be replied. If empty, the value on from parameter will be used. (optional) + reply_to_name = 'reply_to_name_example' # str | Name to which the email message may be replied. If empty, email will be used. (optional) + autofill_all_languages = True # bool | If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false. (optional) + cc = 'cc_example' # str | Email address to which the email message may be sent as a Carbon Copy (optional) + bcc = 'bcc_example' # str | Email address to which the email message may be sent as a Blind Carbon Copy (optional) + + try: + # postEmailTemplate + api_response = api_instance.post_email_template_post(property_id=property_id, email_type=email_type, name=name, var_from=var_from, from_name=from_name, subject=subject, body=body, reply_to=reply_to, reply_to_name=reply_to_name, autofill_all_languages=autofill_all_languages, cc=cc, bcc=bcc) + print("The response of EmailsApi->post_email_template_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EmailsApi->post_email_template_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **email_type** | **str**| Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties. | [optional] [default to nonMarketing] + **name** | **str**| Template name | [optional] + **var_from** | **str**| Email address from which the email message may be sent | [optional] + **from_name** | **str**| from which the email message may be sent. If empty email will be used | [optional] + **subject** | [**PostEmailTemplateRequestSubject**](PostEmailTemplateRequestSubject.md)| | [optional] + **body** | [**PostEmailTemplateRequestBody**](PostEmailTemplateRequestBody.md)| | [optional] + **reply_to** | **str**| Email address to which the email message may be replied. If empty, the value on from parameter will be used. | [optional] + **reply_to_name** | **str**| Name to which the email message may be replied. If empty, email will be used. | [optional] + **autofill_all_languages** | **bool**| If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false. | [optional] + **cc** | **str**| Email address to which the email message may be sent as a Carbon Copy | [optional] + **bcc** | **str**| Email address to which the email message may be sent as a Blind Carbon Copy | [optional] + +### Return type + +[**PostEmailTemplateResponse**](PostEmailTemplateResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md new file mode 100644 index 0000000..1fbbcd2 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md @@ -0,0 +1,30 @@ +# GetAdjustmentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetAdjustmentResponseData**](GetAdjustmentResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentResponse from a JSON string +get_adjustment_response_instance = GetAdjustmentResponse.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentResponse.to_json()) + +# convert the object into a dict +get_adjustment_response_dict = get_adjustment_response_instance.to_dict() +# create an instance of GetAdjustmentResponse from a dict +get_adjustment_response_from_dict = GetAdjustmentResponse.from_dict(get_adjustment_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md new file mode 100644 index 0000000..3c92b90 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md @@ -0,0 +1,42 @@ +# GetAdjustmentResponseData + +Adjustment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustment_id** | **str** | Adjustment unique identifier | [optional] +**property_id** | **str** | unique hotel identifier | [optional] +**created** | **datetime** | Adjustment created time | [optional] +**room_id** | **str** | Adjustment room id | [optional] +**room_name** | **str** | Room name of Adjustment | [optional] +**reservation_identifier** | **str** | Reservation Unique Identifier | [optional] +**description** | **str** | Adjustment description | [optional] +**notes** | **str** | Adjustment notes | [optional] +**amount** | **float** | Adjustment amount | [optional] +**currency** | **float** | Adjustment currency | [optional] +**posted** | **float** | Adjustment posted transaction | [optional] +**type** | **str** | Adjustment type | [optional] +**void_id** | **str** | Voided adjustment transaction unique identifier. Null if adjustment not voided | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentResponseData from a JSON string +get_adjustment_response_data_instance = GetAdjustmentResponseData.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentResponseData.to_json()) + +# convert the object into a dict +get_adjustment_response_data_dict = get_adjustment_response_data_instance.to_dict() +# create an instance of GetAdjustmentResponseData from a dict +get_adjustment_response_data_from_dict = GetAdjustmentResponseData.from_dict(get_adjustment_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md new file mode 100644 index 0000000..c37a513 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md @@ -0,0 +1,30 @@ +# GetAdjustmentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetAdjustmentsResponseData**](GetAdjustmentsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentsResponse from a JSON string +get_adjustments_response_instance = GetAdjustmentsResponse.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentsResponse.to_json()) + +# convert the object into a dict +get_adjustments_response_dict = get_adjustments_response_instance.to_dict() +# create an instance of GetAdjustmentsResponse from a dict +get_adjustments_response_from_dict = GetAdjustmentsResponse.from_dict(get_adjustments_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md new file mode 100644 index 0000000..b8a1064 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md @@ -0,0 +1,37 @@ +# GetAdjustmentsResponseData + +Adjustments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustment_id** | **str** | Adjustment unique identifier | [optional] +**created** | **datetime** | Adjustment created time | [optional] +**room_id** | **str** | Adjustment room id | [optional] +**room_name** | **str** | Room name of Adjustment | [optional] +**description** | **str** | Adjustment description | [optional] +**notes** | **str** | Adjustment notes | [optional] +**amount** | **float** | Adjustment amount | [optional] +**type** | **str** | Adjustment type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentsResponseData from a JSON string +get_adjustments_response_data_instance = GetAdjustmentsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentsResponseData.to_json()) + +# convert the object into a dict +get_adjustments_response_data_dict = get_adjustments_response_data_instance.to_dict() +# create an instance of GetAdjustmentsResponseData from a dict +get_adjustments_response_data_from_dict = GetAdjustmentsResponseData.from_dict(get_adjustments_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md new file mode 100644 index 0000000..a14af29 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md @@ -0,0 +1,32 @@ +# GetAllotmentBlocksResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**count** | **int** | Number of allotment blocks returned | [optional] +**total** | **int** | Total number of allotment blocks | [optional] +**data** | [**List[GetAllotmentBlocksResponseDataInner]**](GetAllotmentBlocksResponseDataInner.md) | Allotment Blocks | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAllotmentBlocksResponse from a JSON string +get_allotment_blocks_response_instance = GetAllotmentBlocksResponse.from_json(json) +# print the JSON string representation of the object +print(GetAllotmentBlocksResponse.to_json()) + +# convert the object into a dict +get_allotment_blocks_response_dict = get_allotment_blocks_response_instance.to_dict() +# create an instance of GetAllotmentBlocksResponse from a dict +get_allotment_blocks_response_from_dict = GetAllotmentBlocksResponse.from_dict(get_allotment_blocks_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md new file mode 100644 index 0000000..a8fd956 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md @@ -0,0 +1,41 @@ +# GetAllotmentBlocksResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID associated to the allotment block | [optional] +**allotment_block_code** | **str** | Allotment block code | [optional] +**allotment_block_status** | **str** | Allotment block status | [optional] +**allotment_block_name** | **str** | Allotment block name | [optional] +**allotment_block_id** | **str** | Allotment block ID | [optional] +**rate_type** | **str** | Rate type for the allotment block | [optional] +**rate_plan_id** | **str** | Rate plan ID if applicable | [optional] +**allotment_type** | **str** | the type of allotment block | [optional] +**group_id** | **str** | Group profile ID associated to the allotment block | [optional] +**group_code** | **str** | Group profile code associated to the allotment block | [optional] +**is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] +**auto_release** | [**List[GetAllotmentBlocksResponseDataInnerAutoReleaseInner]**](GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md) | auto-release data if applicable | [optional] +**allotment_intervals** | [**List[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner]**](GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAllotmentBlocksResponseDataInner from a JSON string +get_allotment_blocks_response_data_inner_instance = GetAllotmentBlocksResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetAllotmentBlocksResponseDataInner.to_json()) + +# convert the object into a dict +get_allotment_blocks_response_data_inner_dict = get_allotment_blocks_response_data_inner_instance.to_dict() +# create an instance of GetAllotmentBlocksResponseDataInner from a dict +get_allotment_blocks_response_data_inner_from_dict = GetAllotmentBlocksResponseDataInner.from_dict(get_allotment_blocks_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md new file mode 100644 index 0000000..e91d33a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md @@ -0,0 +1,33 @@ +# GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type ID | [optional] +**start_date** | **date** | Interval start date | [optional] +**end_date** | **date** | Interval end date | [optional] +**availability** | [**List[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner]**](GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md) | Interval availability data by day in interval | [optional] +**restrictions** | [**GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions**](GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner from a JSON string +get_allotment_blocks_response_data_inner_allotment_intervals_inner_instance = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.from_json(json) +# print the JSON string representation of the object +print(GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.to_json()) + +# convert the object into a dict +get_allotment_blocks_response_data_inner_allotment_intervals_inner_dict = get_allotment_blocks_response_data_inner_allotment_intervals_inner_instance.to_dict() +# create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner from a dict +get_allotment_blocks_response_data_inner_allotment_intervals_inner_from_dict = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.from_dict(get_allotment_blocks_response_data_inner_allotment_intervals_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md new file mode 100644 index 0000000..5ac77e3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md @@ -0,0 +1,34 @@ +# GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | Day within interval | [optional] +**block_remaining** | **int** | Number of units remaining for the room type for this day | [optional] +**block_allotted** | **int** | Total number of units available for the room type for this day | [optional] +**block_confirmed** | **int** | Number of units booked for the room type for this day | [optional] +**rate** | **str** | the price | [optional] +**guest_pricing** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner from a JSON string +get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner_instance = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.from_json(json) +# print the JSON string representation of the object +print(GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.to_json()) + +# convert the object into a dict +get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner_dict = get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner_instance.to_dict() +# create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner from a dict +get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner_from_dict = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.from_dict(get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md new file mode 100644 index 0000000..1f6428b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md @@ -0,0 +1,35 @@ +# GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions + +Interval restrictions if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_los** | **int** | Minimum length of stay requirement | [optional] +**max_los** | **int** | Maximum length of stay requirement | [optional] +**cut_off_days** | **int** | How many days before arrival should guests be required to book | [optional] +**last_minute_booking_days** | **int** | How many days before the arrival guests are allowed to book | [optional] +**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] +**closed_to_departure** | **int** | If the interval dates are closed for departure | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions from a JSON string +get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions_instance = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.from_json(json) +# print the JSON string representation of the object +print(GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.to_json()) + +# convert the object into a dict +get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions_dict = get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions_instance.to_dict() +# create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions from a dict +get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions_from_dict = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.from_dict(get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md new file mode 100644 index 0000000..b6cacce --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md @@ -0,0 +1,31 @@ +# GetAllotmentBlocksResponseDataInnerAutoReleaseInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**release_type** | **str** | The type of auto-release | [optional] +**days** | **int** | The number of days prior to the end of the allotment block to begin releasing dates from the allotment block | [optional] +**release_time** | **str** | The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'... | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAllotmentBlocksResponseDataInnerAutoReleaseInner from a JSON string +get_allotment_blocks_response_data_inner_auto_release_inner_instance = GetAllotmentBlocksResponseDataInnerAutoReleaseInner.from_json(json) +# print the JSON string representation of the object +print(GetAllotmentBlocksResponseDataInnerAutoReleaseInner.to_json()) + +# convert the object into a dict +get_allotment_blocks_response_data_inner_auto_release_inner_dict = get_allotment_blocks_response_data_inner_auto_release_inner_instance.to_dict() +# create an instance of GetAllotmentBlocksResponseDataInnerAutoReleaseInner from a dict +get_allotment_blocks_response_data_inner_auto_release_inner_from_dict = GetAllotmentBlocksResponseDataInnerAutoReleaseInner.from_dict(get_allotment_blocks_response_data_inner_auto_release_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md new file mode 100644 index 0000000..a4d3dc4 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md @@ -0,0 +1,30 @@ +# GetAppPropertySettingsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**data** | [**List[GetAppPropertySettingsResponseDataInner]**](GetAppPropertySettingsResponseDataInner.md) | Data | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppPropertySettingsResponse from a JSON string +get_app_property_settings_response_instance = GetAppPropertySettingsResponse.from_json(json) +# print the JSON string representation of the object +print(GetAppPropertySettingsResponse.to_json()) + +# convert the object into a dict +get_app_property_settings_response_dict = get_app_property_settings_response_instance.to_dict() +# create an instance of GetAppPropertySettingsResponse from a dict +get_app_property_settings_response_from_dict = GetAppPropertySettingsResponse.from_dict(get_app_property_settings_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md new file mode 100644 index 0000000..da4d63c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md @@ -0,0 +1,31 @@ +# GetAppPropertySettingsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID | [optional] +**key** | **str** | Key | [optional] +**value** | **str** | Value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppPropertySettingsResponseDataInner from a JSON string +get_app_property_settings_response_data_inner_instance = GetAppPropertySettingsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetAppPropertySettingsResponseDataInner.to_json()) + +# convert the object into a dict +get_app_property_settings_response_data_inner_dict = get_app_property_settings_response_data_inner_instance.to_dict() +# create an instance of GetAppPropertySettingsResponseDataInner from a dict +get_app_property_settings_response_data_inner_from_dict = GetAppPropertySettingsResponseDataInner.from_dict(get_app_property_settings_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md b/cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md new file mode 100644 index 0000000..0d170d7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md @@ -0,0 +1,30 @@ +# GetAppSettingsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetAppSettingsResponseData**](GetAppSettingsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppSettingsResponse from a JSON string +get_app_settings_response_instance = GetAppSettingsResponse.from_json(json) +# print the JSON string representation of the object +print(GetAppSettingsResponse.to_json()) + +# convert the object into a dict +get_app_settings_response_dict = get_app_settings_response_instance.to_dict() +# create an instance of GetAppSettingsResponse from a dict +get_app_settings_response_from_dict = GetAppSettingsResponse.from_dict(get_app_settings_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md b/cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md new file mode 100644 index 0000000..a805b20 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md @@ -0,0 +1,30 @@ +# GetAppSettingsResponseData + +Application settings details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**full_revenue_sync** | **bool** | Full Revenue Sync | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppSettingsResponseData from a JSON string +get_app_settings_response_data_instance = GetAppSettingsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetAppSettingsResponseData.to_json()) + +# convert the object into a dict +get_app_settings_response_data_dict = get_app_settings_response_data_instance.to_dict() +# create an instance of GetAppSettingsResponseData from a dict +get_app_settings_response_data_from_dict = GetAppSettingsResponseData.from_dict(get_app_settings_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAppStateResponse.md b/cloudbeds_pms_v1_2/docs/GetAppStateResponse.md new file mode 100644 index 0000000..9fd7e56 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppStateResponse.md @@ -0,0 +1,30 @@ +# GetAppStateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetAppStateResponseData**](GetAppStateResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppStateResponse from a JSON string +get_app_state_response_instance = GetAppStateResponse.from_json(json) +# print the JSON string representation of the object +print(GetAppStateResponse.to_json()) + +# convert the object into a dict +get_app_state_response_dict = get_app_state_response_instance.to_dict() +# create an instance of GetAppStateResponse from a dict +get_app_state_response_from_dict = GetAppStateResponse.from_dict(get_app_state_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md b/cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md new file mode 100644 index 0000000..f8e12d0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md @@ -0,0 +1,30 @@ +# GetAppStateResponseData + +Integration state details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_state** | **str** | Integration state | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppStateResponseData from a JSON string +get_app_state_response_data_instance = GetAppStateResponseData.from_json(json) +# print the JSON string representation of the object +print(GetAppStateResponseData.to_json()) + +# convert the object into a dict +get_app_state_response_data_dict = get_app_state_response_data_instance.to_dict() +# create an instance of GetAppStateResponseData from a dict +get_app_state_response_data_from_dict = GetAppStateResponseData.from_dict(get_app_state_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md new file mode 100644 index 0000000..6bfbb68 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md @@ -0,0 +1,34 @@ +# GetAvailableRoomTypesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetAvailableRoomTypesResponseDataInner]**](GetAvailableRoomTypesResponseDataInner.md) | Room Types details | [optional] +**room_count** | **int** | Number of results (room types) returned | [optional] +**count** | **int** | Number of results (properties) returned | [optional] +**total** | **int** | Total number of results (properties) | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAvailableRoomTypesResponse from a JSON string +get_available_room_types_response_instance = GetAvailableRoomTypesResponse.from_json(json) +# print the JSON string representation of the object +print(GetAvailableRoomTypesResponse.to_json()) + +# convert the object into a dict +get_available_room_types_response_dict = get_available_room_types_response_instance.to_dict() +# create an instance of GetAvailableRoomTypesResponse from a dict +get_available_room_types_response_from_dict = GetAvailableRoomTypesResponse.from_dict(get_available_room_types_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md new file mode 100644 index 0000000..d842c88 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md @@ -0,0 +1,31 @@ +# GetAvailableRoomTypesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**property_currency** | [**List[GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner]**](GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md) | Currency used by the property | [optional] +**property_rooms** | [**List[GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner]**](GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md) | List of room types for the property | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAvailableRoomTypesResponseDataInner from a JSON string +get_available_room_types_response_data_inner_instance = GetAvailableRoomTypesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetAvailableRoomTypesResponseDataInner.to_json()) + +# convert the object into a dict +get_available_room_types_response_data_inner_dict = get_available_room_types_response_data_inner_instance.to_dict() +# create an instance of GetAvailableRoomTypesResponseDataInner from a dict +get_available_room_types_response_data_inner_from_dict = GetAvailableRoomTypesResponseDataInner.from_dict(get_available_room_types_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md new file mode 100644 index 0000000..b4abba8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md @@ -0,0 +1,31 @@ +# GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency_code** | **str** | Currency identifier code | [optional] +**currency_symbol** | **str** | Currency symbol | [optional] +**currency_position** | **str** | Currency position | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner from a JSON string +get_available_room_types_response_data_inner_property_currency_inner_instance = GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.from_json(json) +# print the JSON string representation of the object +print(GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.to_json()) + +# convert the object into a dict +get_available_room_types_response_data_inner_property_currency_inner_dict = get_available_room_types_response_data_inner_property_currency_inner_instance.to_dict() +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner from a dict +get_available_room_types_response_data_inner_property_currency_inner_from_dict = GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.from_dict(get_available_room_types_response_data_inner_property_currency_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md new file mode 100644 index 0000000..4f6fd79 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md @@ -0,0 +1,48 @@ +# GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type ID | [optional] +**room_type_name** | **str** | Room type name | [optional] +**room_type_name_short** | **str** | Room type short name | [optional] +**room_type_description** | **str** | Room Type Description | [optional] +**max_guests** | **int** | Max number of guests allowed in the room type | [optional] +**adults_included** | **int** | Number of adults included on the basic room rate | [optional] +**children_included** | **int** | Number of children included on the basic room rate | [optional] +**room_type_photos** | [**List[GetHotelDetailsResponseDataPropertyImageInner]**](GetHotelDetailsResponseDataPropertyImageInner.md) | List of photos for the room type | [optional] +**room_type_features** | **List[str]** | List of features for the room type | [optional] +**room_rate** | **float** | Basic rate for the room, based on the parameters provided | [optional] +**room_rate_id** | **str** | Specific Rate ID used for the room type ID | [optional] +**rate_plan_name_public** | **str** | Rate plan public name | [optional] +**rate_plan_name_private** | **str** | Rate plan private name | [optional] +**rooms_available** | **int** | Number of rooms available, based on the parameters provided | [optional] +**adults_extra_charge** | **List[object]** | Total extra charge for number of adults, depending on room settings (see \"adultsIncluded\" field). It is an associative array, where the key is the number of adults, and the value is the total extra charge when the number of adults is selected. | [optional] +**children_extra_charge** | **List[object]** | Total extra charge for number of children, depending on room settings (see \"childrenIncluded\" field). It is an associative array, where the key is the number of children, and the value is the total extra charge when the number of children is selected. | [optional] +**room_rate_detailed** | [**List[GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner]**](GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md) | Detailed information on the rates, if requested | [optional] +**derived_type** | **str** | type of deriving (only if current rate was derived from other one). | [optional] +**derived_value** | **float** | Can be positive or negative (only if current rate was derived from other one). | [optional] +**individual_rooms** | [**List[GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner]**](GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md) | Individual rooms available to be booked (if set on backend) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner from a JSON string +get_available_room_types_response_data_inner_property_rooms_inner_instance = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.to_json()) + +# convert the object into a dict +get_available_room_types_response_data_inner_property_rooms_inner_dict = get_available_room_types_response_data_inner_property_rooms_inner_instance.to_dict() +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner from a dict +get_available_room_types_response_data_inner_property_rooms_inner_from_dict = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.from_dict(get_available_room_types_response_data_inner_property_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md new file mode 100644 index 0000000..0e618f5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md @@ -0,0 +1,31 @@ +# GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | | [optional] +**room_name** | **float** | | [optional] +**dorm_room_name** | **str** | Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner from a JSON string +get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner_instance = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.to_json()) + +# convert the object into a dict +get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner_dict = get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner_instance.to_dict() +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner from a dict +get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner_from_dict = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.from_dict(get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md new file mode 100644 index 0000000..7e1181c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md @@ -0,0 +1,30 @@ +# GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | | [optional] +**rate** | **float** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner from a JSON string +get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner_instance = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.from_json(json) +# print the JSON string representation of the object +print(GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.to_json()) + +# convert the object into a dict +get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner_dict = get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner_instance.to_dict() +# create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner from a dict +get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner_from_dict = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.from_dict(get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md new file mode 100644 index 0000000..d1ee746 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md @@ -0,0 +1,31 @@ +# GetCurrencySettingsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetCurrencySettingsResponseData**](GetCurrencySettingsResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCurrencySettingsResponse from a JSON string +get_currency_settings_response_instance = GetCurrencySettingsResponse.from_json(json) +# print the JSON string representation of the object +print(GetCurrencySettingsResponse.to_json()) + +# convert the object into a dict +get_currency_settings_response_dict = get_currency_settings_response_instance.to_dict() +# create an instance of GetCurrencySettingsResponse from a dict +get_currency_settings_response_from_dict = GetCurrencySettingsResponse.from_dict(get_currency_settings_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md new file mode 100644 index 0000000..a0edd83 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md @@ -0,0 +1,33 @@ +# GetCurrencySettingsResponseData + +Currency Settings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default** | **str** | Default Currency ISO CODE | [optional] +**acceptable** | **List[str]** | Acceptable Currency ISO CODEs | [optional] +**format** | [**GetCurrencySettingsResponseDataFormat**](GetCurrencySettingsResponseDataFormat.md) | | [optional] +**rates** | [**GetCurrencySettingsResponseDataRates**](GetCurrencySettingsResponseDataRates.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCurrencySettingsResponseData from a JSON string +get_currency_settings_response_data_instance = GetCurrencySettingsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetCurrencySettingsResponseData.to_json()) + +# convert the object into a dict +get_currency_settings_response_data_dict = get_currency_settings_response_data_instance.to_dict() +# create an instance of GetCurrencySettingsResponseData from a dict +get_currency_settings_response_data_from_dict = GetCurrencySettingsResponseData.from_dict(get_currency_settings_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md new file mode 100644 index 0000000..7aec04a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md @@ -0,0 +1,31 @@ +# GetCurrencySettingsResponseDataFormat + +Currency Format + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**decimal** | **str** | Decimal separator | [optional] +**thousand** | **str** | Thousand separator | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCurrencySettingsResponseDataFormat from a JSON string +get_currency_settings_response_data_format_instance = GetCurrencySettingsResponseDataFormat.from_json(json) +# print the JSON string representation of the object +print(GetCurrencySettingsResponseDataFormat.to_json()) + +# convert the object into a dict +get_currency_settings_response_data_format_dict = get_currency_settings_response_data_format_instance.to_dict() +# create an instance of GetCurrencySettingsResponseDataFormat from a dict +get_currency_settings_response_data_format_from_dict = GetCurrencySettingsResponseDataFormat.from_dict(get_currency_settings_response_data_format_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md new file mode 100644 index 0000000..1ddf0b2 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md @@ -0,0 +1,30 @@ +# GetCurrencySettingsResponseDataRates + +Currency rates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fixed** | [**List[GetCurrencySettingsResponseDataRatesFixedInner]**](GetCurrencySettingsResponseDataRatesFixedInner.md) | Fixed currency rates (configured by the property) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCurrencySettingsResponseDataRates from a JSON string +get_currency_settings_response_data_rates_instance = GetCurrencySettingsResponseDataRates.from_json(json) +# print the JSON string representation of the object +print(GetCurrencySettingsResponseDataRates.to_json()) + +# convert the object into a dict +get_currency_settings_response_data_rates_dict = get_currency_settings_response_data_rates_instance.to_dict() +# create an instance of GetCurrencySettingsResponseDataRates from a dict +get_currency_settings_response_data_rates_from_dict = GetCurrencySettingsResponseDataRates.from_dict(get_currency_settings_response_data_rates_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md new file mode 100644 index 0000000..6aaebd6 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md @@ -0,0 +1,30 @@ +# GetCurrencySettingsResponseDataRatesFixedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency** | **str** | Currency ISO CODE | [optional] +**rate** | **float** | Currency rate | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCurrencySettingsResponseDataRatesFixedInner from a JSON string +get_currency_settings_response_data_rates_fixed_inner_instance = GetCurrencySettingsResponseDataRatesFixedInner.from_json(json) +# print the JSON string representation of the object +print(GetCurrencySettingsResponseDataRatesFixedInner.to_json()) + +# convert the object into a dict +get_currency_settings_response_data_rates_fixed_inner_dict = get_currency_settings_response_data_rates_fixed_inner_instance.to_dict() +# create an instance of GetCurrencySettingsResponseDataRatesFixedInner from a dict +get_currency_settings_response_data_rates_fixed_inner_from_dict = GetCurrencySettingsResponseDataRatesFixedInner.from_dict(get_currency_settings_response_data_rates_fixed_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md b/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md new file mode 100644 index 0000000..82f603c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md @@ -0,0 +1,31 @@ +# GetCustomFieldsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetCustomFieldsResponseDataInner]**](GetCustomFieldsResponseDataInner.md) | Field details | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCustomFieldsResponse from a JSON string +get_custom_fields_response_instance = GetCustomFieldsResponse.from_json(json) +# print the JSON string representation of the object +print(GetCustomFieldsResponse.to_json()) + +# convert the object into a dict +get_custom_fields_response_dict = get_custom_fields_response_instance.to_dict() +# create an instance of GetCustomFieldsResponse from a dict +get_custom_fields_response_from_dict = GetCustomFieldsResponse.from_dict(get_custom_fields_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md new file mode 100644 index 0000000..d000e1b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md @@ -0,0 +1,37 @@ +# GetCustomFieldsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Unique hotel identifier | [optional] +**name** | **str** | Field name | [optional] +**shortcode** | **str** | Internal reference and is used for integration purposes such as custom links and the API | [optional] +**apply_to** | **str** | Where put this field in reservation or guest section of the booking. | [optional] +**required** | **bool** | Specify whether this field is required to be filled out. | [optional] +**is_personal** | **bool** | Specifies if the contents of this field may contain personal information (GDPR). | [optional] +**max_characters** | **int** | Maximum number of characters allowed to be entered in this field. | [optional] +**type** | **str** | The field's input type. | [optional] +**displayed** | **List[str]** | ¹ Specify where this custom field to show up. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCustomFieldsResponseDataInner from a JSON string +get_custom_fields_response_data_inner_instance = GetCustomFieldsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetCustomFieldsResponseDataInner.to_json()) + +# convert the object into a dict +get_custom_fields_response_data_inner_dict = get_custom_fields_response_data_inner_instance.to_dict() +# create an instance of GetCustomFieldsResponseDataInner from a dict +get_custom_fields_response_data_inner_from_dict = GetCustomFieldsResponseDataInner.from_dict(get_custom_fields_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetDashboardResponse.md b/cloudbeds_pms_v1_2/docs/GetDashboardResponse.md new file mode 100644 index 0000000..9271ee7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetDashboardResponse.md @@ -0,0 +1,31 @@ +# GetDashboardResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] [default to True] +**data** | [**GetDashboardResponseData**](GetDashboardResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDashboardResponse from a JSON string +get_dashboard_response_instance = GetDashboardResponse.from_json(json) +# print the JSON string representation of the object +print(GetDashboardResponse.to_json()) + +# convert the object into a dict +get_dashboard_response_dict = get_dashboard_response_instance.to_dict() +# create an instance of GetDashboardResponse from a dict +get_dashboard_response_from_dict = GetDashboardResponse.from_dict(get_dashboard_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md b/cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md new file mode 100644 index 0000000..81343bf --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md @@ -0,0 +1,34 @@ +# GetDashboardResponseData + +Data to be displayed on dashboard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rooms_occupied** | **int** | Number of rooms occupied at the moment | [optional] +**percentage_occupied** | **int** | Percentage of rooms occupied (rooms occupied/rooms total) for the current day | [optional] +**arrivals** | **int** | Number of arrivals (check-ins) expected for the current day | [optional] +**departures** | **int** | Number of departures (check-outs) expected for the current day | [optional] +**in_house** | **int** | Number of rooms occupied, and not expected to have a check-out for the current day | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDashboardResponseData from a JSON string +get_dashboard_response_data_instance = GetDashboardResponseData.from_json(json) +# print the JSON string representation of the object +print(GetDashboardResponseData.to_json()) + +# convert the object into a dict +get_dashboard_response_data_dict = get_dashboard_response_data_instance.to_dict() +# create an instance of GetDashboardResponseData from a dict +get_dashboard_response_data_from_dict = GetDashboardResponseData.from_dict(get_dashboard_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md b/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md new file mode 100644 index 0000000..a233e89 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md @@ -0,0 +1,30 @@ +# GetEmailScheduleResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetEmailScheduleResponseDataInner]**](GetEmailScheduleResponseDataInner.md) | List of existing email schedules | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetEmailScheduleResponse from a JSON string +get_email_schedule_response_instance = GetEmailScheduleResponse.from_json(json) +# print the JSON string representation of the object +print(GetEmailScheduleResponse.to_json()) + +# convert the object into a dict +get_email_schedule_response_dict = get_email_schedule_response_instance.to_dict() +# create an instance of GetEmailScheduleResponse from a dict +get_email_schedule_response_from_dict = GetEmailScheduleResponse.from_dict(get_email_schedule_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md new file mode 100644 index 0000000..658ebc3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md @@ -0,0 +1,33 @@ +# GetEmailScheduleResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email_schedule_id** | **str** | ID of the email schedule | [optional] +**name** | **str** | Name of the email schedule | [optional] +**email_template_id** | **str** | ID of the email template used in this schedule | [optional] +**template_name** | **str** | Name of the email template used in this schedule | [optional] +**is_active** | **bool** | True if email template is active; false if not | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetEmailScheduleResponseDataInner from a JSON string +get_email_schedule_response_data_inner_instance = GetEmailScheduleResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetEmailScheduleResponseDataInner.to_json()) + +# convert the object into a dict +get_email_schedule_response_data_inner_dict = get_email_schedule_response_data_inner_instance.to_dict() +# create an instance of GetEmailScheduleResponseDataInner from a dict +get_email_schedule_response_data_inner_from_dict = GetEmailScheduleResponseDataInner.from_dict(get_email_schedule_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md b/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md new file mode 100644 index 0000000..e88835a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md @@ -0,0 +1,30 @@ +# GetEmailTemplatesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetEmailTemplatesResponseDataInner]**](GetEmailTemplatesResponseDataInner.md) | List of existing email templates | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetEmailTemplatesResponse from a JSON string +get_email_templates_response_instance = GetEmailTemplatesResponse.from_json(json) +# print the JSON string representation of the object +print(GetEmailTemplatesResponse.to_json()) + +# convert the object into a dict +get_email_templates_response_dict = get_email_templates_response_instance.to_dict() +# create an instance of GetEmailTemplatesResponse from a dict +get_email_templates_response_from_dict = GetEmailTemplatesResponse.from_dict(get_email_templates_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md new file mode 100644 index 0000000..2043d12 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md @@ -0,0 +1,32 @@ +# GetEmailTemplatesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email_template_id** | **str** | ID of the email template | [optional] +**name** | **str** | Name | [optional] +**subject** | **str** | Subject | [optional] +**is_active** | **bool** | True if email template is active; false if not | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetEmailTemplatesResponseDataInner from a JSON string +get_email_templates_response_data_inner_instance = GetEmailTemplatesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetEmailTemplatesResponseDataInner.to_json()) + +# convert the object into a dict +get_email_templates_response_data_inner_dict = get_email_templates_response_data_inner_instance.to_dict() +# create an instance of GetEmailTemplatesResponseDataInner from a dict +get_email_templates_response_data_inner_from_dict = GetEmailTemplatesResponseDataInner.from_dict(get_email_templates_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetFilesResponse.md b/cloudbeds_pms_v1_2/docs/GetFilesResponse.md new file mode 100644 index 0000000..099fced --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetFilesResponse.md @@ -0,0 +1,33 @@ +# GetFilesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetFilesResponseDataInner]**](GetFilesResponseDataInner.md) | Files linked to the property | [optional] +**count** | **int** | Number of results returned | [optional] +**total** | **int** | Total number of results for supplied parameters | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetFilesResponse from a JSON string +get_files_response_instance = GetFilesResponse.from_json(json) +# print the JSON string representation of the object +print(GetFilesResponse.to_json()) + +# convert the object into a dict +get_files_response_dict = get_files_response_instance.to_dict() +# create an instance of GetFilesResponse from a dict +get_files_response_from_dict = GetFilesResponse.from_dict(get_files_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md new file mode 100644 index 0000000..b43564d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md @@ -0,0 +1,34 @@ +# GetFilesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **str** | File's unique identifier | [optional] +**name** | **str** | File Name | [optional] +**type** | **str** | File Type | [optional] +**source** | **str** | File Source | [optional] +**date_created** | **datetime** | File creation date | [optional] +**url** | **str** | File's URL to download | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetFilesResponseDataInner from a JSON string +get_files_response_data_inner_instance = GetFilesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetFilesResponseDataInner.to_json()) + +# convert the object into a dict +get_files_response_data_inner_dict = get_files_response_data_inner_instance.to_dict() +# create an instance of GetFilesResponseDataInner from a dict +get_files_response_data_inner_from_dict = GetFilesResponseDataInner.from_dict(get_files_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md b/cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md new file mode 100644 index 0000000..cfa7dfa --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md @@ -0,0 +1,31 @@ +# GetGroupNotesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**code** | **int** | HTTP status code | [optional] +**data** | [**GetGroupNotesResponseData**](GetGroupNotesResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGroupNotesResponse from a JSON string +get_group_notes_response_instance = GetGroupNotesResponse.from_json(json) +# print the JSON string representation of the object +print(GetGroupNotesResponse.to_json()) + +# convert the object into a dict +get_group_notes_response_dict = get_group_notes_response_instance.to_dict() +# create an instance of GetGroupNotesResponse from a dict +get_group_notes_response_from_dict = GetGroupNotesResponse.from_dict(get_group_notes_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md b/cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md new file mode 100644 index 0000000..8e4736b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md @@ -0,0 +1,37 @@ +# GetGroupNotesResponseData + +Data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID for the note | [optional] +**group_profile_id** | **str** | Group profile ID | [optional] +**text** | **str** | Note text | [optional] +**created_by** | **str** | Created by | [optional] +**created_at** | **str** | Created at | [optional] +**updated_at** | **str** | Updated at | [optional] +**archived** | **bool** | Note archived | [optional] +**archived_at** | **str** | Note archived at | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGroupNotesResponseData from a JSON string +get_group_notes_response_data_instance = GetGroupNotesResponseData.from_json(json) +# print the JSON string representation of the object +print(GetGroupNotesResponseData.to_json()) + +# convert the object into a dict +get_group_notes_response_data_dict = get_group_notes_response_data_instance.to_dict() +# create an instance of GetGroupNotesResponseData from a dict +get_group_notes_response_data_from_dict = GetGroupNotesResponseData.from_dict(get_group_notes_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGroupsResponse.md b/cloudbeds_pms_v1_2/docs/GetGroupsResponse.md new file mode 100644 index 0000000..70a91ca --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGroupsResponse.md @@ -0,0 +1,30 @@ +# GetGroupsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**data** | [**List[GetGroupsResponseDataInner]**](GetGroupsResponseDataInner.md) | Data | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGroupsResponse from a JSON string +get_groups_response_instance = GetGroupsResponse.from_json(json) +# print the JSON string representation of the object +print(GetGroupsResponse.to_json()) + +# convert the object into a dict +get_groups_response_dict = get_groups_response_instance.to_dict() +# create an instance of GetGroupsResponse from a dict +get_groups_response_from_dict = GetGroupsResponse.from_dict(get_groups_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md new file mode 100644 index 0000000..cbdde7c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md @@ -0,0 +1,39 @@ +# GetGroupsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_code** | **str** | Unique ID for a group | [optional] +**name** | **str** | The name of the group | [optional] +**type** | **str** | The type of the group | [optional] +**status** | **str** | Group status | [optional] +**created** | **datetime** | Group created time | [optional] +**source_id** | **str** | The third-party source ID for this group, can be null | [optional] +**address1** | **str** | Address | [optional] +**address2** | **str** | Address2 | [optional] +**city** | **str** | City | [optional] +**zip** | **str** | Zip | [optional] +**state** | **str** | State | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGroupsResponseDataInner from a JSON string +get_groups_response_data_inner_instance = GetGroupsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetGroupsResponseDataInner.to_json()) + +# convert the object into a dict +get_groups_response_data_inner_dict = get_groups_response_data_inner_instance.to_dict() +# create an instance of GetGroupsResponseDataInner from a dict +get_groups_response_data_inner_from_dict = GetGroupsResponseDataInner.from_dict(get_groups_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestListResponse.md b/cloudbeds_pms_v1_2/docs/GetGuestListResponse.md new file mode 100644 index 0000000..a6fcc8d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestListResponse.md @@ -0,0 +1,33 @@ +# GetGuestListResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**Dict[str, GetGuestListResponseDataValue]**](GetGuestListResponseDataValue.md) | Details for the guest linked to the property (key is the Guest ID) | [optional] +**count** | **int** | Number of results returned | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestListResponse from a JSON string +get_guest_list_response_instance = GetGuestListResponse.from_json(json) +# print the JSON string representation of the object +print(GetGuestListResponse.to_json()) + +# convert the object into a dict +get_guest_list_response_dict = get_guest_list_response_instance.to_dict() +# create an instance of GetGuestListResponse from a dict +get_guest_list_response_from_dict = GetGuestListResponse.from_dict(get_guest_list_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md b/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md new file mode 100644 index 0000000..5e3478c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md @@ -0,0 +1,61 @@ +# GetGuestListResponseDataValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservation_id** | **str** | Reservation's unique identifier | [optional] +**guest_name** | **str** | Guest Name | [optional] +**guest_email** | **str** | Guest Email | [optional] +**guest_id** | **str** | Guest ID | [optional] +**date_created** | **datetime** | Reservation creation date | [optional] +**date_modified** | **datetime** | Reservation modification date | [optional] +**is_main_guest** | **bool** | If the guest is the main guest of its reservation | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**guest_first_name** | **str** | Guest First Name | [optional] +**guest_last_name** | **str** | Guest Last Name | [optional] +**guest_gender** | **str** | Guest Gender | [optional] +**guest_phone** | **str** | Guest Phone | [optional] +**guest_cell_phone** | **str** | Guest Cell Phone | [optional] +**guest_address1** | **str** | Guest Address (line 1) | [optional] +**guest_address2** | **str** | Guest Address (line 2) | [optional] +**guest_city** | **str** | Guest City | [optional] +**guest_state** | **str** | Guest State | [optional] +**guest_country** | **str** | Guest Country | [optional] +**guest_zip** | **str** | Guest Zip code | [optional] +**guest_birth_date** | **date** | Guest Birth Date | [optional] +**guest_document_type** | **str** | Guest Document Type | [optional] +**guest_document_number** | **str** | Guest Document Number | [optional] +**guest_document_issue_date** | **date** | Guest Document Issue Date | [optional] +**guest_document_issuing_country** | **str** | Guest Document Issuing Country | [optional] +**guest_document_expiration_date** | **date** | Guest Document Expiration Date | [optional] +**tax_id** | **str** | Tax ID | [optional] +**company_tax_id** | **str** | Company tax ID | [optional] +**company_name** | **str** | Company name | [optional] +**guest_opt_in** | **bool** | If guest has opted-in to marketing communication or not | [optional] +**guest_notes** | [**List[GetGuestListResponseDataValueGuestNotesInner]**](GetGuestListResponseDataValueGuestNotesInner.md) | Guest Notes | [optional] +**status** | **str** | Reservation status<br /> in_progress - Reservation is pending confirmation<br /> confirmed - Reservation is confirmed<br /> not_confirmed - Reservation not passed confirmation<br /> canceled - Reservation is canceled<br /> checked_in - Guest is in hotel<br /> checked_out - Guest already left hotel<br /> no_show - Guest didn't showed up on check-in date | [optional] +**is_merged** | **bool** | Flag indicating that guest was merged | [optional] +**new_guest_id** | **str** | Merged guest ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestListResponseDataValue from a JSON string +get_guest_list_response_data_value_instance = GetGuestListResponseDataValue.from_json(json) +# print the JSON string representation of the object +print(GetGuestListResponseDataValue.to_json()) + +# convert the object into a dict +get_guest_list_response_data_value_dict = get_guest_list_response_data_value_instance.to_dict() +# create an instance of GetGuestListResponseDataValue from a dict +get_guest_list_response_data_value_from_dict = GetGuestListResponseDataValue.from_dict(get_guest_list_response_data_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md b/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md new file mode 100644 index 0000000..9013855 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md @@ -0,0 +1,30 @@ +# GetGuestListResponseDataValueGuestNotesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Guest Notes ID | [optional] +**note** | **str** | Guest Notes \"note\" | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestListResponseDataValueGuestNotesInner from a JSON string +get_guest_list_response_data_value_guest_notes_inner_instance = GetGuestListResponseDataValueGuestNotesInner.from_json(json) +# print the JSON string representation of the object +print(GetGuestListResponseDataValueGuestNotesInner.to_json()) + +# convert the object into a dict +get_guest_list_response_data_value_guest_notes_inner_dict = get_guest_list_response_data_value_guest_notes_inner_instance.to_dict() +# create an instance of GetGuestListResponseDataValueGuestNotesInner from a dict +get_guest_list_response_data_value_guest_notes_inner_from_dict = GetGuestListResponseDataValueGuestNotesInner.from_dict(get_guest_list_response_data_value_guest_notes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md b/cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md new file mode 100644 index 0000000..ab0ac20 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md @@ -0,0 +1,31 @@ +# GetGuestNotesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetGuestNotesResponseDataInner]**](GetGuestNotesResponseDataInner.md) | Details for the notes on that reservation | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestNotesResponse from a JSON string +get_guest_notes_response_instance = GetGuestNotesResponse.from_json(json) +# print the JSON string representation of the object +print(GetGuestNotesResponse.to_json()) + +# convert the object into a dict +get_guest_notes_response_dict = get_guest_notes_response_instance.to_dict() +# create an instance of GetGuestNotesResponse from a dict +get_guest_notes_response_from_dict = GetGuestNotesResponse.from_dict(get_guest_notes_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md new file mode 100644 index 0000000..01339e1 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md @@ -0,0 +1,33 @@ +# GetGuestNotesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_note_id** | **str** | Guest note ID | [optional] +**user_name** | **str** | User Name | [optional] +**date_created** | **datetime** | Creation datetime | [optional] +**date_modified** | **datetime** | Last modification datetime | [optional] +**guest_note** | **str** | Note content | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestNotesResponseDataInner from a JSON string +get_guest_notes_response_data_inner_instance = GetGuestNotesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetGuestNotesResponseDataInner.to_json()) + +# convert the object into a dict +get_guest_notes_response_data_inner_dict = get_guest_notes_response_data_inner_instance.to_dict() +# create an instance of GetGuestNotesResponseDataInner from a dict +get_guest_notes_response_data_inner_from_dict = GetGuestNotesResponseDataInner.from_dict(get_guest_notes_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponse.md b/cloudbeds_pms_v1_2/docs/GetGuestResponse.md new file mode 100644 index 0000000..fe199f5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestResponse.md @@ -0,0 +1,30 @@ +# GetGuestResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetGuestResponseData**](GetGuestResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestResponse from a JSON string +get_guest_response_instance = GetGuestResponse.from_json(json) +# print the JSON string representation of the object +print(GetGuestResponse.to_json()) + +# convert the object into a dict +get_guest_response_dict = get_guest_response_instance.to_dict() +# create an instance of GetGuestResponse from a dict +get_guest_response_from_dict = GetGuestResponse.from_dict(get_guest_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md b/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md new file mode 100644 index 0000000..626e3fc --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md @@ -0,0 +1,56 @@ +# GetGuestResponseData + +Details for the guest queried + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | First Name | [optional] +**last_name** | **str** | Last Name | [optional] +**gender** | **str** | Gender | [optional] +**email** | **str** | Email | [optional] +**phone** | **str** | Phone number | [optional] +**cell_phone** | **str** | Cell phone number | [optional] +**country** | **str** | Country (2 digit code) | [optional] +**address** | **str** | Address | [optional] +**address2** | **str** | Address 2 | [optional] +**city** | **str** | City | [optional] +**zip** | **str** | Zip | [optional] +**state** | **str** | State | [optional] +**birth_date** | **date** | Birth date | [optional] +**document_type** | **str** | Document Type | [optional] +**document_number** | **str** | Document number | [optional] +**document_issue_date** | **date** | Document Issue Date, can be null | [optional] +**document_issuing_country** | **str** | Document Issuing Country (2-digits code) | [optional] +**document_expiration_date** | **date** | Document Expiration Date, can be null | [optional] +**custom_fields** | [**List[GetGuestResponseDataCustomFieldsInner]**](GetGuestResponseDataCustomFieldsInner.md) | | [optional] +**special_requests** | **str** | Special requests made by the guest at the time of the booking | [optional] +**tax_id** | **str** | Tax ID | [optional] +**company_tax_id** | **str** | Company tax ID | [optional] +**company_name** | **str** | Company name | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**guest_opt_in** | **bool** | If guest has opted-in to marketing communication or not | [optional] +**is_merged** | **bool** | Flag indicating that guest was merged | [optional] +**new_guest_id** | **str** | Merged guest ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestResponseData from a JSON string +get_guest_response_data_instance = GetGuestResponseData.from_json(json) +# print the JSON string representation of the object +print(GetGuestResponseData.to_json()) + +# convert the object into a dict +get_guest_response_data_dict = get_guest_response_data_instance.to_dict() +# create an instance of GetGuestResponseData from a dict +get_guest_response_data_from_dict = GetGuestResponseData.from_dict(get_guest_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md new file mode 100644 index 0000000..46c324d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md @@ -0,0 +1,30 @@ +# GetGuestResponseDataCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_field_name** | **str** | | [optional] +**custom_field_value** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestResponseDataCustomFieldsInner from a JSON string +get_guest_response_data_custom_fields_inner_instance = GetGuestResponseDataCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(GetGuestResponseDataCustomFieldsInner.to_json()) + +# convert the object into a dict +get_guest_response_data_custom_fields_inner_dict = get_guest_response_data_custom_fields_inner_instance.to_dict() +# create an instance of GetGuestResponseDataCustomFieldsInner from a dict +get_guest_response_data_custom_fields_inner_from_dict = GetGuestResponseDataCustomFieldsInner.from_dict(get_guest_response_data_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md b/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md new file mode 100644 index 0000000..7104992 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md @@ -0,0 +1,33 @@ +# GetGuestsByFilterResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetGuestsByFilterResponseDataInner]**](GetGuestsByFilterResponseDataInner.md) | Details for the guest | [optional] +**count** | **int** | Number of results returned | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestsByFilterResponse from a JSON string +get_guests_by_filter_response_instance = GetGuestsByFilterResponse.from_json(json) +# print the JSON string representation of the object +print(GetGuestsByFilterResponse.to_json()) + +# convert the object into a dict +get_guests_by_filter_response_dict = get_guests_by_filter_response_instance.to_dict() +# create an instance of GetGuestsByFilterResponse from a dict +get_guests_by_filter_response_from_dict = GetGuestsByFilterResponse.from_dict(get_guests_by_filter_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md new file mode 100644 index 0000000..9dd3add --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md @@ -0,0 +1,38 @@ +# GetGuestsByFilterResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservation_id** | **str** | Reservation's unique identifier | [optional] +**guest_name** | **str** | | [optional] +**guest_id** | **str** | Guest ID | [optional] +**room_id** | **str** | Room ID that the guest is assigned | [optional] +**room_name** | **str** | Name of the room where guest is assigned | [optional] +**is_main_guest** | **bool** | True if the main guest of the reservation | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**guest_opt_in** | **bool** | If guest has opted-in to marketing communication or not | [optional] +**is_merged** | **bool** | Flag indicating that guest was merged | [optional] +**new_guest_id** | **str** | Merged guest ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestsByFilterResponseDataInner from a JSON string +get_guests_by_filter_response_data_inner_instance = GetGuestsByFilterResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetGuestsByFilterResponseDataInner.to_json()) + +# convert the object into a dict +get_guests_by_filter_response_data_inner_dict = get_guests_by_filter_response_data_inner_instance.to_dict() +# create an instance of GetGuestsByFilterResponseDataInner from a dict +get_guests_by_filter_response_data_inner_from_dict = GetGuestsByFilterResponseDataInner.from_dict(get_guests_by_filter_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md b/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md new file mode 100644 index 0000000..6998f74 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md @@ -0,0 +1,33 @@ +# GetGuestsByStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetGuestsByStatusResponseDataInner]**](GetGuestsByStatusResponseDataInner.md) | Details for the guest | [optional] +**count** | **int** | Number of results returned | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestsByStatusResponse from a JSON string +get_guests_by_status_response_instance = GetGuestsByStatusResponse.from_json(json) +# print the JSON string representation of the object +print(GetGuestsByStatusResponse.to_json()) + +# convert the object into a dict +get_guests_by_status_response_dict = get_guests_by_status_response_instance.to_dict() +# create an instance of GetGuestsByStatusResponse from a dict +get_guests_by_status_response_from_dict = GetGuestsByStatusResponse.from_dict(get_guests_by_status_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md new file mode 100644 index 0000000..f4501aa --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md @@ -0,0 +1,67 @@ +# GetGuestsByStatusResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | Guest ID | [optional] +**reservation_id** | **str** | Reservation's unique identifier | [optional] +**sub_reservation_id** | **str** | | [optional] +**reservation_created_date_time** | **datetime** | Reservation creation datetime | [optional] +**room_type_id** | **str** | Room Type ID that the guest is assigned | [optional] +**room_id** | **str** | Room ID that the guest is assigned | [optional] +**room_name** | **str** | Name of the room where guest is assigned | [optional] +**guest_first_name** | **str** | First Name | [optional] +**guest_last_name** | **str** | Last Name | [optional] +**guest_gender** | **str** | Gender | [optional] +**guest_email** | **str** | Email Address | [optional] +**guest_phone** | **str** | Phone Number | [optional] +**guest_cell_phone** | **str** | Cell Phone Number | [optional] +**guest_address1** | **str** | Address | [optional] +**guest_address2** | **str** | Address line 2 | [optional] +**guest_city** | **str** | Address city | [optional] +**guest_state** | **str** | Address state | [optional] +**guest_country** | **str** | Address country | [optional] +**guest_zip** | **str** | Address zip code | [optional] +**guest_birth_date** | **date** | Guests Date of Birth | [optional] +**guest_document_type** | **str** | Document Type | [optional] +**guest_document_number** | **str** | Document Number | [optional] +**guest_document_issue_date** | **date** | Document Issue Date | [optional] +**guest_document_issuing_country** | **str** | Document Issuing Country | [optional] +**guest_document_expiration_date** | **date** | Document Expiration Date | [optional] +**start_date** | **datetime** | Check-in date | [optional] +**end_date** | **datetime** | Check-out date | [optional] +**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of custom fields | [optional] +**date_modified** | **datetime** | Guest modification date | [optional] +**current_status** | **str** | Current Status of the guest. Does not need to be equal to the status looked for (it may have had a status change outside of the filtered date range). | [optional] +**status_date** | **datetime** | DateTime when the last status modification occurred. | [optional] +**tax_id** | **str** | Tax ID | [optional] +**company_tax_id** | **str** | Company tax ID | [optional] +**company_name** | **str** | Company name | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**is_deleted** | **bool** | Flag indicating the guest's reservation was removed | [optional] +**guest_opt_in** | **bool** | If guest has opted-in to marketing communication or not | [optional] +**is_merged** | **bool** | Flag indicating that guest was merged | [optional] +**new_guest_id** | **str** | Merged guest ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestsByStatusResponseDataInner from a JSON string +get_guests_by_status_response_data_inner_instance = GetGuestsByStatusResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetGuestsByStatusResponseDataInner.to_json()) + +# convert the object into a dict +get_guests_by_status_response_data_inner_dict = get_guests_by_status_response_data_inner_instance.to_dict() +# create an instance of GetGuestsByStatusResponseDataInner from a dict +get_guests_by_status_response_data_inner_from_dict = GetGuestsByStatusResponseDataInner.from_dict(get_guests_by_status_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md b/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md new file mode 100644 index 0000000..5c1d6bc --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md @@ -0,0 +1,33 @@ +# GetGuestsModifiedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetGuestsModifiedResponseDataInner]**](GetGuestsModifiedResponseDataInner.md) | Details for the guest linked to the property | [optional] +**count** | **int** | Number of results returned | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestsModifiedResponse from a JSON string +get_guests_modified_response_instance = GetGuestsModifiedResponse.from_json(json) +# print the JSON string representation of the object +print(GetGuestsModifiedResponse.to_json()) + +# convert the object into a dict +get_guests_modified_response_dict = get_guests_modified_response_instance.to_dict() +# create an instance of GetGuestsModifiedResponse from a dict +get_guests_modified_response_from_dict = GetGuestsModifiedResponse.from_dict(get_guests_modified_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md new file mode 100644 index 0000000..5217724 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md @@ -0,0 +1,62 @@ +# GetGuestsModifiedResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | Guest ID | [optional] +**reservation_id** | **str** | Reservation's unique identifier | [optional] +**room_type_id** | **str** | Room Type ID that the guest is assigned | [optional] +**room_id** | **str** | Room ID that the guest is assigned | [optional] +**room_name** | **str** | Name of the room where guest is assigned | [optional] +**guest_first_name** | **str** | First Name | [optional] +**guest_last_name** | **str** | Last Name | [optional] +**guest_gender** | **str** | | [optional] +**guest_email** | **str** | Email Address | [optional] +**guest_phone** | **str** | Phone Number | [optional] +**guest_cell_phone** | **str** | Cell Phone Number | [optional] +**guest_address1** | **str** | Address | [optional] +**guest_address2** | **str** | Address line 2 | [optional] +**guest_city** | **str** | Address city | [optional] +**guest_state** | **str** | Address state | [optional] +**guest_country** | **str** | Address country | [optional] +**guest_zip** | **str** | Address zip code | [optional] +**guest_birth_date** | **date** | Guests Date of Birth | [optional] +**guest_document_type** | **str** | Document Type | [optional] +**guest_document_number** | **str** | Document Number | [optional] +**guest_document_issue_date** | **date** | Document Issue Date | [optional] +**guest_document_issuing_country** | **str** | Document Issuing Country | [optional] +**guest_document_expiration_date** | **date** | Document Expiration Date | [optional] +**start_date** | **datetime** | Check-in date | [optional] +**end_date** | **datetime** | Check-out date | [optional] +**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of custom fields | [optional] +**date_modified** | **datetime** | Guest modification date | [optional] +**tax_id** | **str** | Tax ID | [optional] +**company_tax_id** | **str** | Company tax ID | [optional] +**company_name** | **str** | Company name | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**guest_opt_in** | **bool** | If guest has opted-in to marketing communication or not | [optional] +**is_merged** | **bool** | Flag indicating that guest was merged | [optional] +**new_guest_id** | **str** | Merged guest ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestsModifiedResponseDataInner from a JSON string +get_guests_modified_response_data_inner_instance = GetGuestsModifiedResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetGuestsModifiedResponseDataInner.to_json()) + +# convert the object into a dict +get_guests_modified_response_data_inner_dict = get_guests_modified_response_data_inner_instance.to_dict() +# create an instance of GetGuestsModifiedResponseDataInner from a dict +get_guests_modified_response_data_inner_from_dict = GetGuestsModifiedResponseDataInner.from_dict(get_guests_modified_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md new file mode 100644 index 0000000..7750b0b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md @@ -0,0 +1,30 @@ +# GetGuestsModifiedResponseDataInnerCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_field_name** | **str** | Custom Field Name | [optional] +**custom_field_value** | **str** | Custom Field Value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestsModifiedResponseDataInnerCustomFieldsInner from a JSON string +get_guests_modified_response_data_inner_custom_fields_inner_instance = GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(GetGuestsModifiedResponseDataInnerCustomFieldsInner.to_json()) + +# convert the object into a dict +get_guests_modified_response_data_inner_custom_fields_inner_dict = get_guests_modified_response_data_inner_custom_fields_inner_instance.to_dict() +# create an instance of GetGuestsModifiedResponseDataInnerCustomFieldsInner from a dict +get_guests_modified_response_data_inner_custom_fields_inner_from_dict = GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(get_guests_modified_response_data_inner_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md new file mode 100644 index 0000000..bcf9935 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md @@ -0,0 +1,30 @@ +# GetHotelDetailsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetHotelDetailsResponseData**](GetHotelDetailsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelDetailsResponse from a JSON string +get_hotel_details_response_instance = GetHotelDetailsResponse.from_json(json) +# print the JSON string representation of the object +print(GetHotelDetailsResponse.to_json()) + +# convert the object into a dict +get_hotel_details_response_dict = get_hotel_details_response_instance.to_dict() +# create an instance of GetHotelDetailsResponse from a dict +get_hotel_details_response_from_dict = GetHotelDetailsResponse.from_dict(get_hotel_details_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md new file mode 100644 index 0000000..6d94e25 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md @@ -0,0 +1,46 @@ +# GetHotelDetailsResponseData + +Information about the hotel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**organization_id** | **str** | Organization ID | [optional] +**property_name** | **str** | Property name | [optional] +**property_type** | **str** | The type of property | [optional] +**property_image** | [**List[GetHotelDetailsResponseDataPropertyImageInner]**](GetHotelDetailsResponseDataPropertyImageInner.md) | Property images details | [optional] +**property_description** | **str** | Property description | [optional] +**property_currency** | [**GetHotelDetailsResponseDataPropertyCurrency**](GetHotelDetailsResponseDataPropertyCurrency.md) | | [optional] +**property_primary_language** | **str** | Property primary language | [optional] +**property_additional_photos** | [**List[GetHotelDetailsResponseDataPropertyImageInner]**](GetHotelDetailsResponseDataPropertyImageInner.md) | Property additional photos | [optional] +**property_phone** | **str** | Property phone number | [optional] +**property_email** | **str** | Property main email address | [optional] +**property_address** | [**GetHotelDetailsResponseDataPropertyAddress**](GetHotelDetailsResponseDataPropertyAddress.md) | | [optional] +**property_policy** | [**GetHotelDetailsResponseDataPropertyPolicy**](GetHotelDetailsResponseDataPropertyPolicy.md) | | [optional] +**property_amenities** | **List[str]** | List of property amenities | [optional] +**tax_id** | **str** | Tax ID number | [optional] +**tax_id2** | **str** | Second Tax ID number | [optional] +**company_legal_name** | **str** | Legal company name | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelDetailsResponseData from a JSON string +get_hotel_details_response_data_instance = GetHotelDetailsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetHotelDetailsResponseData.to_json()) + +# convert the object into a dict +get_hotel_details_response_data_dict = get_hotel_details_response_data_instance.to_dict() +# create an instance of GetHotelDetailsResponseData from a dict +get_hotel_details_response_data_from_dict = GetHotelDetailsResponseData.from_dict(get_hotel_details_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md new file mode 100644 index 0000000..de4fe07 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md @@ -0,0 +1,37 @@ +# GetHotelDetailsResponseDataPropertyAddress + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_address1** | **str** | | [optional] +**property_address2** | **str** | | [optional] +**property_city** | **str** | | [optional] +**property_state** | **str** | | [optional] +**property_zip** | **str** | | [optional] +**property_country** | **str** | | [optional] +**property_latitude** | **str** | | [optional] +**property_longitude** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelDetailsResponseDataPropertyAddress from a JSON string +get_hotel_details_response_data_property_address_instance = GetHotelDetailsResponseDataPropertyAddress.from_json(json) +# print the JSON string representation of the object +print(GetHotelDetailsResponseDataPropertyAddress.to_json()) + +# convert the object into a dict +get_hotel_details_response_data_property_address_dict = get_hotel_details_response_data_property_address_instance.to_dict() +# create an instance of GetHotelDetailsResponseDataPropertyAddress from a dict +get_hotel_details_response_data_property_address_from_dict = GetHotelDetailsResponseDataPropertyAddress.from_dict(get_hotel_details_response_data_property_address_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md new file mode 100644 index 0000000..10de9d0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md @@ -0,0 +1,32 @@ +# GetHotelDetailsResponseDataPropertyCurrency + +Currency used by the property + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency_code** | **str** | Currency code | [optional] +**currency_symbol** | **str** | Currency symbol | [optional] +**currency_position** | **str** | Currency position | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelDetailsResponseDataPropertyCurrency from a JSON string +get_hotel_details_response_data_property_currency_instance = GetHotelDetailsResponseDataPropertyCurrency.from_json(json) +# print the JSON string representation of the object +print(GetHotelDetailsResponseDataPropertyCurrency.to_json()) + +# convert the object into a dict +get_hotel_details_response_data_property_currency_dict = get_hotel_details_response_data_property_currency_instance.to_dict() +# create an instance of GetHotelDetailsResponseDataPropertyCurrency from a dict +get_hotel_details_response_data_property_currency_from_dict = GetHotelDetailsResponseDataPropertyCurrency.from_dict(get_hotel_details_response_data_property_currency_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md new file mode 100644 index 0000000..b250481 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md @@ -0,0 +1,30 @@ +# GetHotelDetailsResponseDataPropertyImageInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**thumb** | **str** | Thumbnail URL | [optional] +**image** | **str** | Full Image URL | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelDetailsResponseDataPropertyImageInner from a JSON string +get_hotel_details_response_data_property_image_inner_instance = GetHotelDetailsResponseDataPropertyImageInner.from_json(json) +# print the JSON string representation of the object +print(GetHotelDetailsResponseDataPropertyImageInner.to_json()) + +# convert the object into a dict +get_hotel_details_response_data_property_image_inner_dict = get_hotel_details_response_data_property_image_inner_instance.to_dict() +# create an instance of GetHotelDetailsResponseDataPropertyImageInner from a dict +get_hotel_details_response_data_property_image_inner_from_dict = GetHotelDetailsResponseDataPropertyImageInner.from_dict(get_hotel_details_response_data_property_image_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md new file mode 100644 index 0000000..64c8377 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md @@ -0,0 +1,36 @@ +# GetHotelDetailsResponseDataPropertyPolicy + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_check_in_time** | **str** | | [optional] +**property_check_out_time** | **str** | | [optional] +**property_late_check_out_allowed** | **bool** | | [optional] +**property_late_check_out_type** | **str** | If the property accepts late check-out, defines if the value is fixed, or a percentage of the daily rate | [optional] +**property_late_check_out_value** | **str** | The fixed value, or percentage of the daily rate, to be charged on a late check-out | [optional] +**property_terms_and_conditions** | **str** | Text describing the terms and conditions to be displayed to guest | [optional] +**property_full_payment_before_checkin** | **bool** | If the property requires the full payment amount of the reservation to be collected prior to check-in | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelDetailsResponseDataPropertyPolicy from a JSON string +get_hotel_details_response_data_property_policy_instance = GetHotelDetailsResponseDataPropertyPolicy.from_json(json) +# print the JSON string representation of the object +print(GetHotelDetailsResponseDataPropertyPolicy.to_json()) + +# convert the object into a dict +get_hotel_details_response_data_property_policy_dict = get_hotel_details_response_data_property_policy_instance.to_dict() +# create an instance of GetHotelDetailsResponseDataPropertyPolicy from a dict +get_hotel_details_response_data_property_policy_from_dict = GetHotelDetailsResponseDataPropertyPolicy.from_dict(get_hotel_details_response_data_property_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelsResponse.md b/cloudbeds_pms_v1_2/docs/GetHotelsResponse.md new file mode 100644 index 0000000..dd77040 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelsResponse.md @@ -0,0 +1,32 @@ +# GetHotelsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetHotelsResponseDataInner]**](GetHotelsResponseDataInner.md) | Information about the hotels | [optional] +**count** | **int** | Number of results in this page | [optional] +**total** | **int** | Total number of results | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelsResponse from a JSON string +get_hotels_response_instance = GetHotelsResponse.from_json(json) +# print the JSON string representation of the object +print(GetHotelsResponse.to_json()) + +# convert the object into a dict +get_hotels_response_dict = get_hotels_response_instance.to_dict() +# create an instance of GetHotelsResponse from a dict +get_hotels_response_from_dict = GetHotelsResponse.from_dict(get_hotels_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md new file mode 100644 index 0000000..660d5b3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md @@ -0,0 +1,35 @@ +# GetHotelsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**organization_id** | **str** | Organization ID | [optional] +**property_name** | **str** | Property name | [optional] +**property_image** | **str** | Property image URL | [optional] +**property_description** | **str** | Property description | [optional] +**property_timezone** | **str** | Property Timezone | [optional] +**property_currency** | [**List[GetHotelsResponseDataInnerPropertyCurrencyInner]**](GetHotelsResponseDataInnerPropertyCurrencyInner.md) | Currency used by the property | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelsResponseDataInner from a JSON string +get_hotels_response_data_inner_instance = GetHotelsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetHotelsResponseDataInner.to_json()) + +# convert the object into a dict +get_hotels_response_data_inner_dict = get_hotels_response_data_inner_instance.to_dict() +# create an instance of GetHotelsResponseDataInner from a dict +get_hotels_response_data_inner_from_dict = GetHotelsResponseDataInner.from_dict(get_hotels_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md b/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md new file mode 100644 index 0000000..3e00b97 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md @@ -0,0 +1,31 @@ +# GetHotelsResponseDataInnerPropertyCurrencyInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency_code** | **str** | Currency code | [optional] +**currency_symbol** | **str** | Currency symbol | [optional] +**currency_position** | **str** | Currency position | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelsResponseDataInnerPropertyCurrencyInner from a JSON string +get_hotels_response_data_inner_property_currency_inner_instance = GetHotelsResponseDataInnerPropertyCurrencyInner.from_json(json) +# print the JSON string representation of the object +print(GetHotelsResponseDataInnerPropertyCurrencyInner.to_json()) + +# convert the object into a dict +get_hotels_response_data_inner_property_currency_inner_dict = get_hotels_response_data_inner_property_currency_inner_instance.to_dict() +# create an instance of GetHotelsResponseDataInnerPropertyCurrencyInner from a dict +get_hotels_response_data_inner_property_currency_inner_from_dict = GetHotelsResponseDataInnerPropertyCurrencyInner.from_dict(get_hotels_response_data_inner_property_currency_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md new file mode 100644 index 0000000..80735c2 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md @@ -0,0 +1,30 @@ +# GetHouseAccountDetailsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetHouseAccountDetailsResponseData**](GetHouseAccountDetailsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponse from a JSON string +get_house_account_details_response_instance = GetHouseAccountDetailsResponse.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponse.to_json()) + +# convert the object into a dict +get_house_account_details_response_dict = get_house_account_details_response_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponse from a dict +get_house_account_details_response_from_dict = GetHouseAccountDetailsResponse.from_dict(get_house_account_details_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md new file mode 100644 index 0000000..2a8d500 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md @@ -0,0 +1,31 @@ +# GetHouseAccountDetailsResponseData + +Includes records list for House Account and summary info covering the date range specified + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[GetHouseAccountDetailsResponseDataTotalInner]**](GetHouseAccountDetailsResponseDataTotalInner.md) | Section with summary records info | [optional] +**records** | [**List[GetHouseAccountDetailsResponseDataRecordsInner]**](GetHouseAccountDetailsResponseDataRecordsInner.md) | Section with records list | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponseData from a JSON string +get_house_account_details_response_data_instance = GetHouseAccountDetailsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponseData.to_json()) + +# convert the object into a dict +get_house_account_details_response_data_dict = get_house_account_details_response_data_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponseData from a dict +get_house_account_details_response_data_from_dict = GetHouseAccountDetailsResponseData.from_dict(get_house_account_details_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md new file mode 100644 index 0000000..71beecf --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md @@ -0,0 +1,43 @@ +# GetHouseAccountDetailsResponseDataRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**transaction_id** | **str** | Transaction ID | [optional] +**user_name** | **str** | User name | [optional] +**description** | **str** | Record description | [optional] +**notes** | **str** | Record notes | [optional] +**quantity** | **str** | Quantity of items (for product type record) | [optional] +**debit** | **str** | Debit amount (non formatted) | [optional] +**credit** | **str** | Credit amount (non formatted) | [optional] +**debit_formatter** | **str** | Debit amount (formatted) | [optional] +**credit_formatted** | **str** | Credit amount (formatted) | [optional] +**currency** | **str** | Currency string | [optional] +**transaction_code** | **str** | Transaction code | [optional] +**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] +**transaction_date** | **date** | Transaction date | [optional] +**transaction_date_time** | **datetime** | Transaction date and time | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string +get_house_account_details_response_data_records_inner_instance = GetHouseAccountDetailsResponseDataRecordsInner.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponseDataRecordsInner.to_json()) + +# convert the object into a dict +get_house_account_details_response_data_records_inner_dict = get_house_account_details_response_data_records_inner_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict +get_house_account_details_response_data_records_inner_from_dict = GetHouseAccountDetailsResponseDataRecordsInner.from_dict(get_house_account_details_response_data_records_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md new file mode 100644 index 0000000..22dcf3f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md @@ -0,0 +1,32 @@ +# GetHouseAccountDetailsResponseDataTotalInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Total number of House Account records | [optional] +**quantity** | **str** | Total items quantity of product type records | [optional] +**debit** | **str** | Total debit (formatted) | [optional] +**credit** | **str** | Total credit (formatted) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string +get_house_account_details_response_data_total_inner_instance = GetHouseAccountDetailsResponseDataTotalInner.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponseDataTotalInner.to_json()) + +# convert the object into a dict +get_house_account_details_response_data_total_inner_dict = get_house_account_details_response_data_total_inner_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict +get_house_account_details_response_data_total_inner_from_dict = GetHouseAccountDetailsResponseDataTotalInner.from_dict(get_house_account_details_response_data_total_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md new file mode 100644 index 0000000..4ecfa2a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md @@ -0,0 +1,30 @@ +# GetHouseAccountListResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetHouseAccountListResponseDataInner]**](GetHouseAccountListResponseDataInner.md) | Details for the house accounts | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountListResponse from a JSON string +get_house_account_list_response_instance = GetHouseAccountListResponse.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountListResponse.to_json()) + +# convert the object into a dict +get_house_account_list_response_dict = get_house_account_list_response_instance.to_dict() +# create an instance of GetHouseAccountListResponse from a dict +get_house_account_list_response_from_dict = GetHouseAccountListResponse.from_dict(get_house_account_list_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md new file mode 100644 index 0000000..148a834 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md @@ -0,0 +1,34 @@ +# GetHouseAccountListResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | House Account ID | [optional] +**property_id** | **str** | Property ID | [optional] +**account_name** | **str** | House Account name | [optional] +**account_status** | **str** | House Account status | [optional] +**is_private** | **bool** | Whether House Account is set to private or not (if true \"userName\" will be specified) | [optional] +**user_name** | **str** | Owner Name of private House Account | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountListResponseDataInner from a JSON string +get_house_account_list_response_data_inner_instance = GetHouseAccountListResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountListResponseDataInner.to_json()) + +# convert the object into a dict +get_house_account_list_response_data_inner_dict = get_house_account_list_response_data_inner_instance.to_dict() +# create an instance of GetHouseAccountListResponseDataInner from a dict +get_house_account_list_response_data_inner_from_dict = GetHouseAccountListResponseDataInner.from_dict(get_house_account_list_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md b/cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md new file mode 100644 index 0000000..f69eb46 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md @@ -0,0 +1,31 @@ +# GetHousekeepersResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetHousekeepersResponseDataInner]**](GetHousekeepersResponseDataInner.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHousekeepersResponse from a JSON string +get_housekeepers_response_instance = GetHousekeepersResponse.from_json(json) +# print the JSON string representation of the object +print(GetHousekeepersResponse.to_json()) + +# convert the object into a dict +get_housekeepers_response_dict = get_housekeepers_response_instance.to_dict() +# create an instance of GetHousekeepersResponse from a dict +get_housekeepers_response_from_dict = GetHousekeepersResponse.from_dict(get_housekeepers_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md new file mode 100644 index 0000000..db9bd58 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md @@ -0,0 +1,31 @@ +# GetHousekeepersResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**housekeeper_id** | **str** | Housekeeper ID | [optional] +**name** | **str** | Housekeeper Name | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHousekeepersResponseDataInner from a JSON string +get_housekeepers_response_data_inner_instance = GetHousekeepersResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetHousekeepersResponseDataInner.to_json()) + +# convert the object into a dict +get_housekeepers_response_data_inner_dict = get_housekeepers_response_data_inner_instance.to_dict() +# create an instance of GetHousekeepersResponseDataInner from a dict +get_housekeepers_response_data_inner_from_dict = GetHousekeepersResponseDataInner.from_dict(get_housekeepers_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md b/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md new file mode 100644 index 0000000..71780d1 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md @@ -0,0 +1,33 @@ +# GetHousekeepingStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetHousekeepingStatusResponseDataInner]**](GetHousekeepingStatusResponseDataInner.md) | | [optional] +**count** | **int** | Results in current request | [optional] +**total** | **int** | Total number of results for supplied parameters | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHousekeepingStatusResponse from a JSON string +get_housekeeping_status_response_instance = GetHousekeepingStatusResponse.from_json(json) +# print the JSON string representation of the object +print(GetHousekeepingStatusResponse.to_json()) + +# convert the object into a dict +get_housekeeping_status_response_dict = get_housekeeping_status_response_instance.to_dict() +# create an instance of GetHousekeepingStatusResponse from a dict +get_housekeeping_status_response_from_dict = GetHousekeepingStatusResponse.from_dict(get_housekeeping_status_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md new file mode 100644 index 0000000..8ec08bc --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md @@ -0,0 +1,43 @@ +# GetHousekeepingStatusResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | Date for last date/time that the room condition changed | [optional] +**room_type_id** | **str** | ID of the room type | [optional] +**room_type_name** | **str** | Name of the room type | [optional] +**room_id** | **str** | ID of room | [optional] +**room_name** | **str** | Name of room | [optional] +**room_condition** | **str** | Room cleaning condition | [optional] +**room_occupied** | **bool** | Flag if room currently occupied | [optional] +**room_blocked** | **bool** | Flag if room is blocked | [optional] +**frontdesk_status** | **str** | The following frontdesk statuses exist:<br /><br /> 'check-in' - There is no guest checking out, but there is a guest checking in.<br /> 'check-out' - Guest checking out today, but no guest checking in.<br /> 'stayover' - Guest is in-house, not checking out today and is staying for another night<br /> 'turnover' - Guest checking out today and another guest checking in today<br /> 'unused' - Room is not being used. There is no one there now due to check out, and no one arriving. | [optional] +**housekeeper_id** | **str** | ID of Housekeeper | [optional] +**housekeeper** | **str** | Housekeeper name | [optional] +**do_not_disturb** | **bool** | Flag if room as set as \"Do Not Disturb\" | [optional] +**refused_service** | **bool** | Flag if room as set as \"Refused Service\" | [optional] +**vacant_pickup** | **bool** | Flag if room as set as \"Vacant Pickup\" | [optional] +**room_comments** | **str** | Room comments | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHousekeepingStatusResponseDataInner from a JSON string +get_housekeeping_status_response_data_inner_instance = GetHousekeepingStatusResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetHousekeepingStatusResponseDataInner.to_json()) + +# convert the object into a dict +get_housekeeping_status_response_data_inner_dict = get_housekeeping_status_response_data_inner_instance.to_dict() +# create an instance of GetHousekeepingStatusResponseDataInner from a dict +get_housekeeping_status_response_data_inner_from_dict = GetHousekeepingStatusResponseDataInner.from_dict(get_housekeeping_status_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md b/cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md new file mode 100644 index 0000000..c2d2d75 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md @@ -0,0 +1,30 @@ +# GetInvoiceResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetInvoiceResponseData**](GetInvoiceResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetInvoiceResponse from a JSON string +get_invoice_response_instance = GetInvoiceResponse.from_json(json) +# print the JSON string representation of the object +print(GetInvoiceResponse.to_json()) + +# convert the object into a dict +get_invoice_response_dict = get_invoice_response_instance.to_dict() +# create an instance of GetInvoiceResponse from a dict +get_invoice_response_from_dict = GetInvoiceResponse.from_dict(get_invoice_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md new file mode 100644 index 0000000..882aba7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md @@ -0,0 +1,40 @@ +# GetInvoiceResponseData + +Invoice details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invoice_id** | **str** | Unique invoice ID | [optional] +**reservation_id** | **str** | Reservation identifier | [optional] +**prefix** | **str** | Invoice ID prefix | [optional] +**number** | **int** | Invoice ID number | [optional] +**suffix** | **str** | Invoice ID suffix | [optional] +**document_issue_date** | **str** | Date and time when invoice was issued | [optional] +**status** | **str** | Invoice status | [optional] +**billed_to** | [**GetInvoiceResponseDataBilledTo**](GetInvoiceResponseDataBilledTo.md) | | [optional] +**items** | [**List[GetInvoiceResponseDataItemsInner]**](GetInvoiceResponseDataItemsInner.md) | Invoice items | [optional] +**taxes** | [**List[GetInvoiceResponseDataItemsInnerTaxesInner]**](GetInvoiceResponseDataItemsInnerTaxesInner.md) | | [optional] +**fees** | [**List[GetInvoiceResponseDataItemsInnerFeesInner]**](GetInvoiceResponseDataItemsInnerFeesInner.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetInvoiceResponseData from a JSON string +get_invoice_response_data_instance = GetInvoiceResponseData.from_json(json) +# print the JSON string representation of the object +print(GetInvoiceResponseData.to_json()) + +# convert the object into a dict +get_invoice_response_data_dict = get_invoice_response_data_instance.to_dict() +# create an instance of GetInvoiceResponseData from a dict +get_invoice_response_data_from_dict = GetInvoiceResponseData.from_dict(get_invoice_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md new file mode 100644 index 0000000..0699d51 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md @@ -0,0 +1,31 @@ +# GetInvoiceResponseDataBilledTo + +Information about who being billed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique identifier of who being billed Additional information about who being billed could be retrieved via corresponding API e.g.: for a guest it could be [getGuest](#tag/Guest/paths/~1getGuest/get) | [optional] +**type** | **str** | Type of who being billed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo + +# TODO update the JSON string below +json = "{}" +# create an instance of GetInvoiceResponseDataBilledTo from a JSON string +get_invoice_response_data_billed_to_instance = GetInvoiceResponseDataBilledTo.from_json(json) +# print the JSON string representation of the object +print(GetInvoiceResponseDataBilledTo.to_json()) + +# convert the object into a dict +get_invoice_response_data_billed_to_dict = get_invoice_response_data_billed_to_instance.to_dict() +# create an instance of GetInvoiceResponseDataBilledTo from a dict +get_invoice_response_data_billed_to_from_dict = GetInvoiceResponseDataBilledTo.from_dict(get_invoice_response_data_billed_to_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md new file mode 100644 index 0000000..45108e0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md @@ -0,0 +1,36 @@ +# GetInvoiceResponseDataItemsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**type** | **str** | | [optional] +**quantity** | **int** | | [optional] +**total_amount** | **str** | | [optional] +**net_amount** | **str** | | [optional] +**currency** | **str** | | [optional] +**taxes** | [**List[GetInvoiceResponseDataItemsInnerTaxesInner]**](GetInvoiceResponseDataItemsInnerTaxesInner.md) | | [optional] +**fees** | [**List[GetInvoiceResponseDataItemsInnerFeesInner]**](GetInvoiceResponseDataItemsInnerFeesInner.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetInvoiceResponseDataItemsInner from a JSON string +get_invoice_response_data_items_inner_instance = GetInvoiceResponseDataItemsInner.from_json(json) +# print the JSON string representation of the object +print(GetInvoiceResponseDataItemsInner.to_json()) + +# convert the object into a dict +get_invoice_response_data_items_inner_dict = get_invoice_response_data_items_inner_instance.to_dict() +# create an instance of GetInvoiceResponseDataItemsInner from a dict +get_invoice_response_data_items_inner_from_dict = GetInvoiceResponseDataItemsInner.from_dict(get_invoice_response_data_items_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md new file mode 100644 index 0000000..8a96762 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md @@ -0,0 +1,32 @@ +# GetInvoiceResponseDataItemsInnerFeesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**amount** | **str** | | [optional] +**code** | **str** | | [optional] +**fee_id** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a JSON string +get_invoice_response_data_items_inner_fees_inner_instance = GetInvoiceResponseDataItemsInnerFeesInner.from_json(json) +# print the JSON string representation of the object +print(GetInvoiceResponseDataItemsInnerFeesInner.to_json()) + +# convert the object into a dict +get_invoice_response_data_items_inner_fees_inner_dict = get_invoice_response_data_items_inner_fees_inner_instance.to_dict() +# create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a dict +get_invoice_response_data_items_inner_fees_inner_from_dict = GetInvoiceResponseDataItemsInnerFeesInner.from_dict(get_invoice_response_data_items_inner_fees_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md new file mode 100644 index 0000000..628c143 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md @@ -0,0 +1,32 @@ +# GetInvoiceResponseDataItemsInnerTaxesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**amount** | **str** | | [optional] +**code** | **str** | | [optional] +**tax_id** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a JSON string +get_invoice_response_data_items_inner_taxes_inner_instance = GetInvoiceResponseDataItemsInnerTaxesInner.from_json(json) +# print the JSON string representation of the object +print(GetInvoiceResponseDataItemsInnerTaxesInner.to_json()) + +# convert the object into a dict +get_invoice_response_data_items_inner_taxes_inner_dict = get_invoice_response_data_items_inner_taxes_inner_instance.to_dict() +# create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a dict +get_invoice_response_data_items_inner_taxes_inner_from_dict = GetInvoiceResponseDataItemsInnerTaxesInner.from_dict(get_invoice_response_data_items_inner_taxes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md b/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md new file mode 100644 index 0000000..21735ab --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md @@ -0,0 +1,31 @@ +# GetItemCategoriesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetItemCategoriesResponseDataInner]**](GetItemCategoriesResponseDataInner.md) | Categories details | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemCategoriesResponse from a JSON string +get_item_categories_response_instance = GetItemCategoriesResponse.from_json(json) +# print the JSON string representation of the object +print(GetItemCategoriesResponse.to_json()) + +# convert the object into a dict +get_item_categories_response_dict = get_item_categories_response_instance.to_dict() +# create an instance of GetItemCategoriesResponse from a dict +get_item_categories_response_from_dict = GetItemCategoriesResponse.from_dict(get_item_categories_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md new file mode 100644 index 0000000..01bc259 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md @@ -0,0 +1,32 @@ +# GetItemCategoriesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category_id** | **str** | Category unique identifier | [optional] +**category_name** | **str** | Category name | [optional] +**category_code** | **str** | Category code | [optional] +**category_color** | **str** | Category color (like #3b7be7) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemCategoriesResponseDataInner from a JSON string +get_item_categories_response_data_inner_instance = GetItemCategoriesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetItemCategoriesResponseDataInner.to_json()) + +# convert the object into a dict +get_item_categories_response_data_inner_dict = get_item_categories_response_data_inner_instance.to_dict() +# create an instance of GetItemCategoriesResponseDataInner from a dict +get_item_categories_response_data_inner_from_dict = GetItemCategoriesResponseDataInner.from_dict(get_item_categories_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponse.md b/cloudbeds_pms_v1_2/docs/GetItemResponse.md new file mode 100644 index 0000000..f26e987 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemResponse.md @@ -0,0 +1,31 @@ +# GetItemResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetItemResponseData**](GetItemResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemResponse from a JSON string +get_item_response_instance = GetItemResponse.from_json(json) +# print the JSON string representation of the object +print(GetItemResponse.to_json()) + +# convert the object into a dict +get_item_response_dict = get_item_response_instance.to_dict() +# create an instance of GetItemResponse from a dict +get_item_response_from_dict = GetItemResponse.from_dict(get_item_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponseData.md b/cloudbeds_pms_v1_2/docs/GetItemResponseData.md new file mode 100644 index 0000000..d957fff --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemResponseData.md @@ -0,0 +1,50 @@ +# GetItemResponseData + +Item details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item_id** | **str** | Item unique identifier | [optional] +**item_type** | **str** | Item type | [optional] +**sku** | **str** | Item SKU | [optional] +**item_code** | **str** | Item code | [optional] +**name** | **str** | Item name | [optional] +**category_id** | **str** | Item category identifier. Null if unset | [optional] +**category_name** | **str** | Item category name. Empty if unset | [optional] +**description** | **str** | Item description | [optional] +**price** | **float** | Item price | [optional] +**stock_inventory** | **bool** | Track stock inventory for this item | [optional] +**item_quantity** | **int** | <sup>1</sup> Current amount of item available | [optional] +**reorder_threshold** | **int** | <sup>1</sup> Quantity at which to reorder item | [optional] +**reorder_needed** | **bool** | <sup>1</sup> true - Whether item is at or below value set for reorder threshold. | [optional] +**stop_sell** | **int** | <sup>1</sup> Quantity at which to stop selling product. | [optional] +**stop_sell_met** | **bool** | <sup>1</sup> true - Whether item is at or below value set for stop-sell threshold. | [optional] +**taxes** | [**List[GetItemResponseDataTaxesInner]**](GetItemResponseDataTaxesInner.md) | <sup>2</sup> Details of the taxes applicable | [optional] +**total_taxes** | **float** | <sup>2</sup> Total value of the taxes | [optional] +**fees** | [**List[GetItemResponseDataFeesInner]**](GetItemResponseDataFeesInner.md) | <sup>2</sup> Details of the fees applicable | [optional] +**total_fees** | **float** | <sup>2</sup> Total value of the fees | [optional] +**price_without_fees_and_taxes** | **float** | <sup>2</sup> item price subtracting the included taxes | [optional] +**grand_total** | **float** | <sup>2</sup> item price with fees and taxes | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemResponseData from a JSON string +get_item_response_data_instance = GetItemResponseData.from_json(json) +# print the JSON string representation of the object +print(GetItemResponseData.to_json()) + +# convert the object into a dict +get_item_response_data_dict = get_item_response_data_instance.to_dict() +# create an instance of GetItemResponseData from a dict +get_item_response_data_from_dict = GetItemResponseData.from_dict(get_item_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md b/cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md new file mode 100644 index 0000000..efe2d6d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md @@ -0,0 +1,30 @@ +# GetItemResponseDataFeesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fee_name** | **str** | <sup>2</sup> Name of the fee | [optional] +**fee_value** | **float** | <sup>2</sup> Value of the fee | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemResponseDataFeesInner from a JSON string +get_item_response_data_fees_inner_instance = GetItemResponseDataFeesInner.from_json(json) +# print the JSON string representation of the object +print(GetItemResponseDataFeesInner.to_json()) + +# convert the object into a dict +get_item_response_data_fees_inner_dict = get_item_response_data_fees_inner_instance.to_dict() +# create an instance of GetItemResponseDataFeesInner from a dict +get_item_response_data_fees_inner_from_dict = GetItemResponseDataFeesInner.from_dict(get_item_response_data_fees_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md b/cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md new file mode 100644 index 0000000..0c4960d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md @@ -0,0 +1,30 @@ +# GetItemResponseDataTaxesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tax_name** | **str** | <sup>2</sup> Name of the tax | [optional] +**tax_value** | **float** | <sup>2</sup> Value of the tax | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemResponseDataTaxesInner from a JSON string +get_item_response_data_taxes_inner_instance = GetItemResponseDataTaxesInner.from_json(json) +# print the JSON string representation of the object +print(GetItemResponseDataTaxesInner.to_json()) + +# convert the object into a dict +get_item_response_data_taxes_inner_dict = get_item_response_data_taxes_inner_instance.to_dict() +# create an instance of GetItemResponseDataTaxesInner from a dict +get_item_response_data_taxes_inner_from_dict = GetItemResponseDataTaxesInner.from_dict(get_item_response_data_taxes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemsResponse.md b/cloudbeds_pms_v1_2/docs/GetItemsResponse.md new file mode 100644 index 0000000..a736628 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemsResponse.md @@ -0,0 +1,31 @@ +# GetItemsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetItemsResponseDataInner]**](GetItemsResponseDataInner.md) | Item details | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemsResponse from a JSON string +get_items_response_instance = GetItemsResponse.from_json(json) +# print the JSON string representation of the object +print(GetItemsResponse.to_json()) + +# convert the object into a dict +get_items_response_dict = get_items_response_instance.to_dict() +# create an instance of GetItemsResponse from a dict +get_items_response_from_dict = GetItemsResponse.from_dict(get_items_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md new file mode 100644 index 0000000..79d9c40 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md @@ -0,0 +1,49 @@ +# GetItemsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item_id** | **str** | Item unique identifier | [optional] +**item_type** | **str** | Item type | [optional] +**sku** | **str** | Item SKU | [optional] +**item_code** | **str** | Item code | [optional] +**name** | **str** | Item name | [optional] +**category_id** | **str** | Item category identifier. Null if unset | [optional] +**category_name** | **str** | Item category name. Empty if unset | [optional] +**description** | **str** | Item description | [optional] +**price** | **float** | Item price | [optional] +**stock_inventory** | **bool** | Track stock inventory for this item | [optional] +**item_quantity** | **int** | <sup>1</sup> Current amount of item available | [optional] +**reorder_threshold** | **int** | <sup>1</sup> Quantity at which to reorder item | [optional] +**reorder_needed** | **bool** | <sup>1</sup> true - Whether item is at or below value set for reorder threshold. | [optional] +**stop_sell** | **int** | <sup>1</sup> Quantity at which to stop selling product. | [optional] +**stop_sell_met** | **bool** | <sup>1</sup> true - Whether item is at or below value set for stop-sell threshold. | [optional] +**taxes** | [**List[GetItemResponseDataTaxesInner]**](GetItemResponseDataTaxesInner.md) | <sup>2</sup> Details of the taxes applicable | [optional] +**total_taxes** | **float** | <sup>2</sup> Total value of the taxes | [optional] +**fees** | [**List[GetItemResponseDataFeesInner]**](GetItemResponseDataFeesInner.md) | <sup>2</sup> Details of the fees applicable | [optional] +**total_fees** | **float** | <sup>2</sup> Total value of the fees | [optional] +**price_without_fees_and_taxes** | **float** | <sup>2</sup> item price subtracting the included taxes | [optional] +**grand_total** | **float** | <sup>2</sup> item price with fees and taxes | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetItemsResponseDataInner from a JSON string +get_items_response_data_inner_instance = GetItemsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetItemsResponseDataInner.to_json()) + +# convert the object into a dict +get_items_response_data_inner_dict = get_items_response_data_inner_instance.to_dict() +# create an instance of GetItemsResponseDataInner from a dict +get_items_response_data_inner_from_dict = GetItemsResponseDataInner.from_dict(get_items_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md b/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md new file mode 100644 index 0000000..2d854ae --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md @@ -0,0 +1,33 @@ +# GetListAllotmentBlockNotesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetListAllotmentBlockNotesResponseDataInner]**](GetListAllotmentBlockNotesResponseDataInner.md) | List of notes | [optional] +**page_size** | **int** | Number of Notes per Page | [optional] +**page_number** | **int** | Current page | [optional] +**total** | **int** | Total number of Notes | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetListAllotmentBlockNotesResponse from a JSON string +get_list_allotment_block_notes_response_instance = GetListAllotmentBlockNotesResponse.from_json(json) +# print the JSON string representation of the object +print(GetListAllotmentBlockNotesResponse.to_json()) + +# convert the object into a dict +get_list_allotment_block_notes_response_dict = get_list_allotment_block_notes_response_instance.to_dict() +# create an instance of GetListAllotmentBlockNotesResponse from a dict +get_list_allotment_block_notes_response_from_dict = GetListAllotmentBlockNotesResponse.from_dict(get_list_allotment_block_notes_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md new file mode 100644 index 0000000..219ccd6 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md @@ -0,0 +1,35 @@ +# GetListAllotmentBlockNotesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Note ID | [optional] +**message** | **str** | Note contents | [optional] +**created_by** | **str** | User Name | [optional] +**created_at** | **datetime** | Creation datetime (format: Y-m-d H:i:s) | [optional] +**updated_at** | **datetime** | Last modification datetime (format: Y-m-d H:i:s) | [optional] +**archived_at** | **datetime** | Archival datetime (format: Y-m-d H:i:s) | [optional] +**status** | **str** | Note status | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetListAllotmentBlockNotesResponseDataInner from a JSON string +get_list_allotment_block_notes_response_data_inner_instance = GetListAllotmentBlockNotesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetListAllotmentBlockNotesResponseDataInner.to_json()) + +# convert the object into a dict +get_list_allotment_block_notes_response_data_inner_dict = get_list_allotment_block_notes_response_data_inner_instance.to_dict() +# create an instance of GetListAllotmentBlockNotesResponseDataInner from a dict +get_list_allotment_block_notes_response_data_inner_from_dict = GetListAllotmentBlockNotesResponseDataInner.from_dict(get_list_allotment_block_notes_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetMetadataResponse.md b/cloudbeds_pms_v1_2/docs/GetMetadataResponse.md new file mode 100644 index 0000000..53384c1 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetMetadataResponse.md @@ -0,0 +1,31 @@ +# GetMetadataResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **str** | True if property can be found | [optional] +**data** | [**GetMetadataResponseData**](GetMetadataResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetMetadataResponse from a JSON string +get_metadata_response_instance = GetMetadataResponse.from_json(json) +# print the JSON string representation of the object +print(GetMetadataResponse.to_json()) + +# convert the object into a dict +get_metadata_response_dict = get_metadata_response_instance.to_dict() +# create an instance of GetMetadataResponse from a dict +get_metadata_response_from_dict = GetMetadataResponse.from_dict(get_metadata_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md b/cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md new file mode 100644 index 0000000..cbba1c6 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md @@ -0,0 +1,30 @@ +# GetMetadataResponseData + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api** | [**GetMetadataResponseDataApi**](GetMetadataResponseDataApi.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetMetadataResponseData from a JSON string +get_metadata_response_data_instance = GetMetadataResponseData.from_json(json) +# print the JSON string representation of the object +print(GetMetadataResponseData.to_json()) + +# convert the object into a dict +get_metadata_response_data_dict = get_metadata_response_data_instance.to_dict() +# create an instance of GetMetadataResponseData from a dict +get_metadata_response_data_from_dict = GetMetadataResponseData.from_dict(get_metadata_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md b/cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md new file mode 100644 index 0000000..eef4c15 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md @@ -0,0 +1,30 @@ +# GetMetadataResponseDataApi + +The api details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | The API URL for the given property | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi + +# TODO update the JSON string below +json = "{}" +# create an instance of GetMetadataResponseDataApi from a JSON string +get_metadata_response_data_api_instance = GetMetadataResponseDataApi.from_json(json) +# print the JSON string representation of the object +print(GetMetadataResponseDataApi.to_json()) + +# convert the object into a dict +get_metadata_response_data_api_dict = get_metadata_response_data_api_instance.to_dict() +# create an instance of GetMetadataResponseDataApi from a dict +get_metadata_response_data_api_from_dict = GetMetadataResponseDataApi.from_dict(get_metadata_response_data_api_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPackagesResponse.md b/cloudbeds_pms_v1_2/docs/GetPackagesResponse.md new file mode 100644 index 0000000..4969440 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPackagesResponse.md @@ -0,0 +1,31 @@ +# GetPackagesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetPackagesResponseData**](GetPackagesResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPackagesResponse from a JSON string +get_packages_response_instance = GetPackagesResponse.from_json(json) +# print the JSON string representation of the object +print(GetPackagesResponse.to_json()) + +# convert the object into a dict +get_packages_response_dict = get_packages_response_instance.to_dict() +# create an instance of GetPackagesResponse from a dict +get_packages_response_from_dict = GetPackagesResponse.from_dict(get_packages_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md b/cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md new file mode 100644 index 0000000..d0897ac --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md @@ -0,0 +1,30 @@ +# GetPackagesResponseData + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**package_names** | **List[str]** | Array of package names | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPackagesResponseData from a JSON string +get_packages_response_data_instance = GetPackagesResponseData.from_json(json) +# print the JSON string representation of the object +print(GetPackagesResponseData.to_json()) + +# convert the object into a dict +get_packages_response_data_dict = get_packages_response_data_instance.to_dict() +# create an instance of GetPackagesResponseData from a dict +get_packages_response_data_from_dict = GetPackagesResponseData.from_dict(get_packages_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md new file mode 100644 index 0000000..855deab --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md @@ -0,0 +1,30 @@ +# GetPaymentMethodsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetPaymentMethodsResponseData**](GetPaymentMethodsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentMethodsResponse from a JSON string +get_payment_methods_response_instance = GetPaymentMethodsResponse.from_json(json) +# print the JSON string representation of the object +print(GetPaymentMethodsResponse.to_json()) + +# convert the object into a dict +get_payment_methods_response_dict = get_payment_methods_response_instance.to_dict() +# create an instance of GetPaymentMethodsResponse from a dict +get_payment_methods_response_from_dict = GetPaymentMethodsResponse.from_dict(get_payment_methods_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md new file mode 100644 index 0000000..a5837ab --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md @@ -0,0 +1,32 @@ +# GetPaymentMethodsResponseData + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**methods** | [**List[GetPaymentMethodsResponseDataMethodsInner]**](GetPaymentMethodsResponseDataMethodsInner.md) | List of active methods enabled | [optional] +**gateway** | [**List[GetPaymentMethodsResponseDataGatewayInner]**](GetPaymentMethodsResponseDataGatewayInner.md) | Payment Gateway used by property | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentMethodsResponseData from a JSON string +get_payment_methods_response_data_instance = GetPaymentMethodsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetPaymentMethodsResponseData.to_json()) + +# convert the object into a dict +get_payment_methods_response_data_dict = get_payment_methods_response_data_instance.to_dict() +# create an instance of GetPaymentMethodsResponseData from a dict +get_payment_methods_response_data_from_dict = GetPaymentMethodsResponseData.from_dict(get_payment_methods_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md new file mode 100644 index 0000000..f72b80c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md @@ -0,0 +1,30 @@ +# GetPaymentMethodsResponseDataGatewayInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Gateway name | [optional] +**currency** | **str** | 3 letters iso code | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentMethodsResponseDataGatewayInner from a JSON string +get_payment_methods_response_data_gateway_inner_instance = GetPaymentMethodsResponseDataGatewayInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentMethodsResponseDataGatewayInner.to_json()) + +# convert the object into a dict +get_payment_methods_response_data_gateway_inner_dict = get_payment_methods_response_data_gateway_inner_instance.to_dict() +# create an instance of GetPaymentMethodsResponseDataGatewayInner from a dict +get_payment_methods_response_data_gateway_inner_from_dict = GetPaymentMethodsResponseDataGatewayInner.from_dict(get_payment_methods_response_data_gateway_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md new file mode 100644 index 0000000..17dbefa --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md @@ -0,0 +1,31 @@ +# GetPaymentMethodsResponseDataMethodsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Payment Type | [optional] +**name** | **str** | Payment Name (in given lang) | [optional] +**card_types** | [**List[GetPaymentMethodsResponseDataMethodsInnerCardTypesInner]**](GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) | IF type = 'credit' the enabled card types. Having the array's keys as its type and the value as its name. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentMethodsResponseDataMethodsInner from a JSON string +get_payment_methods_response_data_methods_inner_instance = GetPaymentMethodsResponseDataMethodsInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentMethodsResponseDataMethodsInner.to_json()) + +# convert the object into a dict +get_payment_methods_response_data_methods_inner_dict = get_payment_methods_response_data_methods_inner_instance.to_dict() +# create an instance of GetPaymentMethodsResponseDataMethodsInner from a dict +get_payment_methods_response_data_methods_inner_from_dict = GetPaymentMethodsResponseDataMethodsInner.from_dict(get_payment_methods_response_data_methods_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md new file mode 100644 index 0000000..13ecb76 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md @@ -0,0 +1,30 @@ +# GetPaymentMethodsResponseDataMethodsInnerCardTypesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card_code** | **str** | | [optional] +**card_name** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from a JSON string +get_payment_methods_response_data_methods_inner_card_types_inner_instance = GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.to_json()) + +# convert the object into a dict +get_payment_methods_response_data_methods_inner_card_types_inner_dict = get_payment_methods_response_data_methods_inner_card_types_inner_instance.to_dict() +# create an instance of GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from a dict +get_payment_methods_response_data_methods_inner_card_types_inner_from_dict = GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.from_dict(get_payment_methods_response_data_methods_inner_card_types_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md b/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md new file mode 100644 index 0000000..403f5d0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md @@ -0,0 +1,30 @@ +# GetPaymentsCapabilitiesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetPaymentsCapabilitiesResponseDataInner]**](GetPaymentsCapabilitiesResponseDataInner.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsCapabilitiesResponse from a JSON string +get_payments_capabilities_response_instance = GetPaymentsCapabilitiesResponse.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsCapabilitiesResponse.to_json()) + +# convert the object into a dict +get_payments_capabilities_response_dict = get_payments_capabilities_response_instance.to_dict() +# create an instance of GetPaymentsCapabilitiesResponse from a dict +get_payments_capabilities_response_from_dict = GetPaymentsCapabilitiesResponse.from_dict(get_payments_capabilities_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md new file mode 100644 index 0000000..0ca2d89 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md @@ -0,0 +1,33 @@ +# GetPaymentsCapabilitiesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cloudbeds_payments** | **bool** | If Cloudbeds Payments is enabled for this property | [optional] +**terminal** | **bool** | If the property has an active terminal | [optional] +**tap_to_pay** | **bool** | If tap-to-pay is enabled for the property in the backend gateway | [optional] +**gateway** | **str** | The backend gateway in use for this property | [optional] +**pay_by_link** | **bool** | If Pay-by-Link is enabled for the property | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsCapabilitiesResponseDataInner from a JSON string +get_payments_capabilities_response_data_inner_instance = GetPaymentsCapabilitiesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsCapabilitiesResponseDataInner.to_json()) + +# convert the object into a dict +get_payments_capabilities_response_data_inner_dict = get_payments_capabilities_response_data_inner_instance.to_dict() +# create an instance of GetPaymentsCapabilitiesResponseDataInner from a dict +get_payments_capabilities_response_data_inner_from_dict = GetPaymentsCapabilitiesResponseDataInner.from_dict(get_payments_capabilities_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md b/cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md new file mode 100644 index 0000000..a8e0dea --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md @@ -0,0 +1,33 @@ +# GetPaymentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetPaymentsResponseDataInner]**](GetPaymentsResponseDataInner.md) | Transaction list | [optional] +**count** | **int** | Number of results returned, based on pagination | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsResponse from a JSON string +get_payments_response_instance = GetPaymentsResponse.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsResponse.to_json()) + +# convert the object into a dict +get_payments_response_dict = get_payments_response_instance.to_dict() +# create an instance of GetPaymentsResponse from a dict +get_payments_response_from_dict = GetPaymentsResponse.from_dict(get_payments_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md new file mode 100644 index 0000000..187c263 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md @@ -0,0 +1,59 @@ +# GetPaymentsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_id** | **str** | Transaction identifier | [optional] +**payment_id** | **str** | Payment ID | [optional] +**property_id** | **str** | Property ID | [optional] +**transaction_date_time** | **datetime** | Transaction DateTime | [optional] +**transaction_date_time_utc** | **datetime** | Transaction DateTime on UTC timezone | [optional] +**user_id** | **str** | User ID that generated payment | [optional] +**user_name** | **str** | User name that generated payment | [optional] +**room_id** | **str** | ID of room. Only available when reservationID is sent. | [optional] +**room_name** | **str** | Name/Number of room. Only available when reservationID is sent. | [optional] +**guest_id** | **str** | Guest ID. Only available when reservationID or guestID is sent. | [optional] +**guest_name** | **str** | Guest Name. Only available when reservationID or guestID is sent. | [optional] +**guest_check_in** | **date** | Guest Check-In date. Only available when reservationID is sent. | [optional] +**guest_check_out** | **date** | Guest Check-Out date. Only available when reservationID is sent. | [optional] +**reservation_id** | **str** | Reservation ID. Only available when reservationID is sent. | [optional] +**sub_reservation_id** | **str** | Sub reservation ID. Only available when reservationID is sent. | [optional] +**reservation_status** | **str** | Current reservation status. Only available when reservationID is sent. | [optional] +**house_account_id** | **str** | House Account ID, Only available when houseAccountID is sent. | [optional] +**house_account_name** | **str** | House Account Name, Only available when houseAccountID is sent. | [optional] +**description** | **str** | Description of the transaction | [optional] +**payment_method** | **str** | Payment Method of the transaction | [optional] +**quantity** | **int** | | [optional] +**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] +**currency** | **str** | Currency of the transaction | [optional] +**is_posted** | **bool** | | [optional] +**is_voided** | **bool** | | [optional] +**is_deleted** | **bool** | | [optional] +**state** | **str** | | [optional] +**is_allocated** | **bool** | only if includePaymentAllocation=true | [optional] +**total_allocated** | **float** | ² Amount of allocated payment | [optional] +**total_unallocated** | **float** | ² Amount of unallocated payment | [optional] +**payment_allocation** | [**List[GetPaymentsResponseDataInnerPaymentAllocationInner]**](GetPaymentsResponseDataInnerPaymentAllocationInner.md) | ² | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsResponseDataInner from a JSON string +get_payments_response_data_inner_instance = GetPaymentsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsResponseDataInner.to_json()) + +# convert the object into a dict +get_payments_response_data_inner_dict = get_payments_response_data_inner_instance.to_dict() +# create an instance of GetPaymentsResponseDataInner from a dict +get_payments_response_data_inner_from_dict = GetPaymentsResponseDataInner.from_dict(get_payments_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md new file mode 100644 index 0000000..883b5d0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md @@ -0,0 +1,34 @@ +# GetPaymentsResponseDataInnerPaymentAllocationInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | ² Type of item described in allocation | [optional] +**reference** | **str** | ² Reference of item described in allocation | [optional] +**name** | **str** | ² Name of item described in allocation | [optional] +**amount** | **float** | ² Amount of allocated of payment total | [optional] +**taxes** | **List[str]** | ² Taxes of allocated payment. Values are an array numeric of taxes IDs | [optional] +**fees** | **List[str]** | ² Fees of allocated payment. Values are an array numeric of fees IDs | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string +get_payments_response_data_inner_payment_allocation_inner_instance = GetPaymentsResponseDataInnerPaymentAllocationInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsResponseDataInnerPaymentAllocationInner.to_json()) + +# convert the object into a dict +get_payments_response_data_inner_payment_allocation_inner_dict = get_payments_response_data_inner_payment_allocation_inner_instance.to_dict() +# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict +get_payments_response_data_inner_payment_allocation_inner_from_dict = GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(get_payments_response_data_inner_payment_allocation_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md b/cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md new file mode 100644 index 0000000..e73a704 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md @@ -0,0 +1,32 @@ +# GetRateJobsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**has_next_page** | **bool** | Returns true if there is another page of results after this one | [optional] +**next_page** | **str** | The URL of the next page of results if there is one | [optional] +**data** | [**List[GetRateJobsResponseDataInner]**](GetRateJobsResponseDataInner.md) | Job details | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRateJobsResponse from a JSON string +get_rate_jobs_response_instance = GetRateJobsResponse.from_json(json) +# print the JSON string representation of the object +print(GetRateJobsResponse.to_json()) + +# convert the object into a dict +get_rate_jobs_response_dict = get_rate_jobs_response_instance.to_dict() +# create an instance of GetRateJobsResponse from a dict +get_rate_jobs_response_from_dict = GetRateJobsResponse.from_dict(get_rate_jobs_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md new file mode 100644 index 0000000..393507a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md @@ -0,0 +1,32 @@ +# GetRateJobsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_reference_id** | **str** | Reference ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the rate:batch_job | [optional] +**date_created** | **date** | Rate Job creation datetime | [optional] +**status** | **str** | Status of the Rate Job. in_progress - job is processing. completed - job has completed successfully. error - there was an error with 1 or more updates requested in this job. Allowed values: in_progressgu, completed, error | [optional] +**updates** | [**List[GetRateJobsResponseDataInnerUpdatesInner]**](GetRateJobsResponseDataInnerUpdatesInner.md) | Array of actions produced from this job | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRateJobsResponseDataInner from a JSON string +get_rate_jobs_response_data_inner_instance = GetRateJobsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetRateJobsResponseDataInner.to_json()) + +# convert the object into a dict +get_rate_jobs_response_data_inner_dict = get_rate_jobs_response_data_inner_instance.to_dict() +# create an instance of GetRateJobsResponseDataInner from a dict +get_rate_jobs_response_data_inner_from_dict = GetRateJobsResponseDataInner.from_dict(get_rate_jobs_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md b/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md new file mode 100644 index 0000000..d44a984 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md @@ -0,0 +1,40 @@ +# GetRateJobsResponseDataInnerUpdatesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_id** | **str** | Rate ID for which action was taken | [optional] +**action** | **str** | Action taken for this interval as part of this job. in_progress - interval wait for it turn. updated - interval was updated. created - new interval was created with the new date range. error - there was an error when attempting this update. Allowed values: in_progress, updated, created, error | [optional] +**start_date** | **date** | Interval start date | [optional] +**end_date** | **date** | Interval end date | [optional] +**rate** | **float** | Value of rate which was updated | [optional] +**max_los** | **int** | Maximum length of stay for this rate | [optional] +**min_los** | **int** | Minimum length of stay for this rate | [optional] +**closed_to_arrival** | **bool** | If this rate is closed to arrival | [optional] +**closed_to_departure** | **bool** | If this rate is closed to departure | [optional] +**cut_off** | **int** | Cutoff for this rate | [optional] +**last_minute_booking** | **int** | Last minute booking for this rate | [optional] +**message** | **str** | Error message | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRateJobsResponseDataInnerUpdatesInner from a JSON string +get_rate_jobs_response_data_inner_updates_inner_instance = GetRateJobsResponseDataInnerUpdatesInner.from_json(json) +# print the JSON string representation of the object +print(GetRateJobsResponseDataInnerUpdatesInner.to_json()) + +# convert the object into a dict +get_rate_jobs_response_data_inner_updates_inner_dict = get_rate_jobs_response_data_inner_updates_inner_instance.to_dict() +# create an instance of GetRateJobsResponseDataInnerUpdatesInner from a dict +get_rate_jobs_response_data_inner_updates_inner_from_dict = GetRateJobsResponseDataInnerUpdatesInner.from_dict(get_rate_jobs_response_data_inner_updates_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md b/cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md new file mode 100644 index 0000000..37fe9ba --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md @@ -0,0 +1,31 @@ +# GetRatePlansResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetRatePlansResponseDataInner]**](GetRatePlansResponseDataInner.md) | Rates details | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRatePlansResponse from a JSON string +get_rate_plans_response_instance = GetRatePlansResponse.from_json(json) +# print the JSON string representation of the object +print(GetRatePlansResponse.to_json()) + +# convert the object into a dict +get_rate_plans_response_dict = get_rate_plans_response_instance.to_dict() +# create an instance of GetRatePlansResponse from a dict +get_rate_plans_response_from_dict = GetRatePlansResponse.from_dict(get_rate_plans_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md new file mode 100644 index 0000000..d3f0f56 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md @@ -0,0 +1,46 @@ +# GetRatePlansResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_id** | **str** | Rate ID | [optional] +**is_derived** | **bool** | True if this rate is derived from another rate | [optional] +**room_rate** | **float** | Rate for the room, based on the parameters provided | [optional] +**total_rate** | **float** | Total rate for the room, based on the parameters provided. Calculated using base rates and additional costs from extra guests. | [optional] +**rooms_available** | **int** | Number of rooms available for the selected date | [optional] +**room_type_id** | **str** | ] room type ID (if not specified in request) | [optional] +**room_type_name** | **int** | ] room type name (if not specified in request) | [optional] +**property_id** | **str** | Property ID, used if multiple properties are included in request | [optional] +**rate_plan_id** | **str** | ratePlanID (If rate depends on plan) | [optional] +**rate_plan_name_public** | **str** | ratePlanNamePublic | [optional] +**rate_plan_name_private** | **str** | ratePlanNamePrivate | [optional] +**promo_code** | **str** | Promotional code when rate plan has has it | [optional] +**derived_type** | **str** | type of deriving (only if current rate was derived from other one). | [optional] +**derived_value** | **float** | Can be positive or negative (only if current rate was derived from other one). | [optional] +**base_rate** | **float** | Base rate on given period | [optional] +**days_of_week** | **List[str]** | Returns when there is a difference between range given with startDate/endDate and days of week which rate plan applies. | [optional] +**add_ons** | [**List[GetRatePlansResponseDataInnerAddOnsInner]**](GetRatePlansResponseDataInnerAddOnsInner.md) | addOns information on the rates | [optional] +**room_rate_detailed** | [**List[GetRatePlansResponseDataInnerRoomRateDetailedInner]**](GetRatePlansResponseDataInnerRoomRateDetailedInner.md) | Detailed information on the rates, if requested | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRatePlansResponseDataInner from a JSON string +get_rate_plans_response_data_inner_instance = GetRatePlansResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetRatePlansResponseDataInner.to_json()) + +# convert the object into a dict +get_rate_plans_response_data_inner_dict = get_rate_plans_response_data_inner_instance.to_dict() +# create an instance of GetRatePlansResponseDataInner from a dict +get_rate_plans_response_data_inner_from_dict = GetRatePlansResponseDataInner.from_dict(get_rate_plans_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md b/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md new file mode 100644 index 0000000..2854983 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md @@ -0,0 +1,32 @@ +# GetRatePlansResponseDataInnerAddOnsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**add_on_id** | **str** | addOnID | [optional] +**add_on_name** | **str** | addOnName | [optional] +**item_id** | **str** | itemID | [optional] +**item_name** | **str** | itemName | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRatePlansResponseDataInnerAddOnsInner from a JSON string +get_rate_plans_response_data_inner_add_ons_inner_instance = GetRatePlansResponseDataInnerAddOnsInner.from_json(json) +# print the JSON string representation of the object +print(GetRatePlansResponseDataInnerAddOnsInner.to_json()) + +# convert the object into a dict +get_rate_plans_response_data_inner_add_ons_inner_dict = get_rate_plans_response_data_inner_add_ons_inner_instance.to_dict() +# create an instance of GetRatePlansResponseDataInnerAddOnsInner from a dict +get_rate_plans_response_data_inner_add_ons_inner_from_dict = GetRatePlansResponseDataInnerAddOnsInner.from_dict(get_rate_plans_response_data_inner_add_ons_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md b/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md new file mode 100644 index 0000000..76d4244 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md @@ -0,0 +1,38 @@ +# GetRatePlansResponseDataInnerRoomRateDetailedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | | [optional] +**rate_base** | **float** | rate for the selected date | [optional] +**total_rate** | **float** | Total rate for the selected date | [optional] +**rooms_available** | **int** | Number of rooms available for the selected date | [optional] +**closed_to_arrival** | **bool** | true if day closed to arrival | [optional] +**closed_to_departure** | **bool** | true if day closed to departure | [optional] +**min_los** | **int** | Minimum Length Of Stay | [optional] +**max_los** | **int** | Maximum Length Of Stay | [optional] +**cut_off** | **int** | | [optional] +**last_minute_booking** | **int** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRatePlansResponseDataInnerRoomRateDetailedInner from a JSON string +get_rate_plans_response_data_inner_room_rate_detailed_inner_instance = GetRatePlansResponseDataInnerRoomRateDetailedInner.from_json(json) +# print the JSON string representation of the object +print(GetRatePlansResponseDataInnerRoomRateDetailedInner.to_json()) + +# convert the object into a dict +get_rate_plans_response_data_inner_room_rate_detailed_inner_dict = get_rate_plans_response_data_inner_room_rate_detailed_inner_instance.to_dict() +# create an instance of GetRatePlansResponseDataInnerRoomRateDetailedInner from a dict +get_rate_plans_response_data_inner_room_rate_detailed_inner_from_dict = GetRatePlansResponseDataInnerRoomRateDetailedInner.from_dict(get_rate_plans_response_data_inner_room_rate_detailed_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRateResponse.md b/cloudbeds_pms_v1_2/docs/GetRateResponse.md new file mode 100644 index 0000000..612b8ae --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRateResponse.md @@ -0,0 +1,30 @@ +# GetRateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetRateResponseData**](GetRateResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRateResponse from a JSON string +get_rate_response_instance = GetRateResponse.from_json(json) +# print the JSON string representation of the object +print(GetRateResponse.to_json()) + +# convert the object into a dict +get_rate_response_dict = get_rate_response_instance.to_dict() +# create an instance of GetRateResponse from a dict +get_rate_response_from_dict = GetRateResponse.from_dict(get_rate_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRateResponseData.md b/cloudbeds_pms_v1_2/docs/GetRateResponseData.md new file mode 100644 index 0000000..3e0761e --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRateResponseData.md @@ -0,0 +1,36 @@ +# GetRateResponseData + +Rates details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_id** | **str** | Rate ID | [optional] +**is_derived** | **bool** | This rate has been derived from another rate | [optional] +**room_rate** | **float** | Base rate for the room, based on the parameters provided | [optional] +**total_rate** | **float** | Total rate for the room, based on the parameters provided. Calculated using base rates and additional costs from extra guests. | [optional] +**rooms_available** | **int** | Number of rooms available, based on the parameters provided | [optional] +**days_of_week** | **List[str]** | | [optional] +**room_rate_detailed** | [**List[GetRateResponseDataRoomRateDetailedInner]**](GetRateResponseDataRoomRateDetailedInner.md) | Detailed information on the rates, if requested | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRateResponseData from a JSON string +get_rate_response_data_instance = GetRateResponseData.from_json(json) +# print the JSON string representation of the object +print(GetRateResponseData.to_json()) + +# convert the object into a dict +get_rate_response_data_dict = get_rate_response_data_instance.to_dict() +# create an instance of GetRateResponseData from a dict +get_rate_response_data_from_dict = GetRateResponseData.from_dict(get_rate_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md b/cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md new file mode 100644 index 0000000..0d17412 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md @@ -0,0 +1,36 @@ +# GetRateResponseDataRoomRateDetailedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | | [optional] +**rate** | **float** | Base rate for the selected date | [optional] +**total_rate** | **float** | Total rate for the selected date | [optional] +**rooms_available** | **int** | Number of rooms available for the selected date | [optional] +**closed_to_arrival** | **bool** | | [optional] +**closed_to_departure** | **bool** | | [optional] +**min_los** | **int** | Minimum Length Of Stay | [optional] +**max_los** | **int** | Maximum Length Of Stay | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRateResponseDataRoomRateDetailedInner from a JSON string +get_rate_response_data_room_rate_detailed_inner_instance = GetRateResponseDataRoomRateDetailedInner.from_json(json) +# print the JSON string representation of the object +print(GetRateResponseDataRoomRateDetailedInner.to_json()) + +# convert the object into a dict +get_rate_response_data_room_rate_detailed_inner_dict = get_rate_response_data_room_rate_detailed_inner_instance.to_dict() +# create an instance of GetRateResponseDataRoomRateDetailedInner from a dict +get_rate_response_data_room_rate_detailed_inner_from_dict = GetRateResponseDataRoomRateDetailedInner.from_dict(get_rate_response_data_room_rate_detailed_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md b/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md new file mode 100644 index 0000000..916b1fe --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md @@ -0,0 +1,31 @@ +# GetReservationAssignmentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationAssignmentsResponseDataInner]**](GetReservationAssignmentsResponseDataInner.md) | Details for the rooms assigned on the selected date | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationAssignmentsResponse from a JSON string +get_reservation_assignments_response_instance = GetReservationAssignmentsResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationAssignmentsResponse.to_json()) + +# convert the object into a dict +get_reservation_assignments_response_dict = get_reservation_assignments_response_instance.to_dict() +# create an instance of GetReservationAssignmentsResponse from a dict +get_reservation_assignments_response_from_dict = GetReservationAssignmentsResponse.from_dict(get_reservation_assignments_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md new file mode 100644 index 0000000..cb84c94 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md @@ -0,0 +1,32 @@ +# GetReservationAssignmentsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_name** | **str** | Guest Name | [optional] +**reservation_id** | **str** | Reservation identifier, used for all query operations | [optional] +**unassigned** | **int** | Number of rooms unassigned | [optional] +**assigned** | [**List[GetReservationAssignmentsResponseDataInnerAssignedInner]**](GetReservationAssignmentsResponseDataInnerAssignedInner.md) | Assigned Rooms information. May not exist if no room is assigned. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationAssignmentsResponseDataInner from a JSON string +get_reservation_assignments_response_data_inner_instance = GetReservationAssignmentsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationAssignmentsResponseDataInner.to_json()) + +# convert the object into a dict +get_reservation_assignments_response_data_inner_dict = get_reservation_assignments_response_data_inner_instance.to_dict() +# create an instance of GetReservationAssignmentsResponseDataInner from a dict +get_reservation_assignments_response_data_inner_from_dict = GetReservationAssignmentsResponseDataInner.from_dict(get_reservation_assignments_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md b/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md new file mode 100644 index 0000000..b4e5021 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md @@ -0,0 +1,35 @@ +# GetReservationAssignmentsResponseDataInnerAssignedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | ID of the room type assigned | [optional] +**room_type_name** | **str** | Name of the room type assigned | [optional] +**room_type_name_short** | **str** | Short name of the room type assigned | [optional] +**dorm_room_name** | **str** | Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type | [optional] +**room_name** | **str** | Name of the specific room assigned | [optional] +**room_id** | **str** | ID of the specific room assigned | [optional] +**sub_reservation_id** | **str** | Associated subReservation ID (specific to room) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationAssignmentsResponseDataInnerAssignedInner from a JSON string +get_reservation_assignments_response_data_inner_assigned_inner_instance = GetReservationAssignmentsResponseDataInnerAssignedInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationAssignmentsResponseDataInnerAssignedInner.to_json()) + +# convert the object into a dict +get_reservation_assignments_response_data_inner_assigned_inner_dict = get_reservation_assignments_response_data_inner_assigned_inner_instance.to_dict() +# create an instance of GetReservationAssignmentsResponseDataInnerAssignedInner from a dict +get_reservation_assignments_response_data_inner_assigned_inner_from_dict = GetReservationAssignmentsResponseDataInnerAssignedInner.from_dict(get_reservation_assignments_response_data_inner_assigned_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md new file mode 100644 index 0000000..c85836f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md @@ -0,0 +1,31 @@ +# GetReservationInvoiceInformationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationInvoiceInformationResponseDataInner]**](GetReservationInvoiceInformationResponseDataInner.md) | Details for the rooms assigned on the selected date | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponse from a JSON string +get_reservation_invoice_information_response_instance = GetReservationInvoiceInformationResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponse.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_dict = get_reservation_invoice_information_response_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponse from a dict +get_reservation_invoice_information_response_from_dict = GetReservationInvoiceInformationResponse.from_dict(get_reservation_invoice_information_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md new file mode 100644 index 0000000..1f5e8d6 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md @@ -0,0 +1,46 @@ +# GetReservationInvoiceInformationResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | Reservation status<br /> 'not_confirmed' - Reservation is pending confirmation<br /> 'confirmed' - Reservation is confirmed<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] +**custom_fields** | [**List[GetReservationResponseDataGuestListValueCustomFieldsInner]**](GetReservationResponseDataGuestListValueCustomFieldsInner.md) | Custom Fields related to the reservation | [optional] +**main_guest_details** | [**List[GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner]**](GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md) | Details for the main guest of the reservation | [optional] +**reservation_rooms** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md) | Booked rooms information | [optional] +**reservation_rooms_total** | **float** | Total rates for all rooms | [optional] +**reservation_adjustments** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md) | Adjustments applied to the reservation | [optional] +**reservation_adjustments_total** | **float** | Total sum of adjustments | [optional] +**reservation_payments** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md) | Payments made for this reservation | [optional] +**reservation_additional_products** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md) | Additional items (products or services) | [optional] +**reservation_additional_products_total** | **float** | Total sum for additional items | [optional] +**reservation_add_on_products** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md) | Addons | [optional] +**reservation_add_on_products_total** | **float** | Total sum for addons | [optional] +**reservation_taxes** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]**](GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) | Taxes | [optional] +**reservation_taxes_total** | **float** | Total sum for taxes | [optional] +**reservation_fees** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]**](GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) | Fees | [optional] +**reservation_fees_total** | **float** | Total sum for fees | [optional] +**balance** | **float** | Balance currently owed | [optional] +**balance_detailed** | [**List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]**](GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) | Reservation balance detailed with the information available on PC app, describing the financial items calculated | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInner from a JSON string +get_reservation_invoice_information_response_data_inner_instance = GetReservationInvoiceInformationResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_dict = get_reservation_invoice_information_response_data_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInner from a dict +get_reservation_invoice_information_response_data_inner_from_dict = GetReservationInvoiceInformationResponseDataInner.from_dict(get_reservation_invoice_information_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md new file mode 100644 index 0000000..47dccad --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md @@ -0,0 +1,36 @@ +# GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggested_deposit** | **str** | Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid | [optional] +**sub_total** | **float** | Sum of the room prices on the reservation | [optional] +**additional_items** | **float** | Sum of the additional items recorded on the reservation | [optional] +**taxes_fees** | **float** | Sum of taxes and fees on the reservation | [optional] +**grand_total** | **float** | Sum of sub.Total + additionalItems + taxesFees | [optional] +**paid** | **float** | Amount paid (reservation deposit + any other extra payment) | [optional] +**original_currency_code** | **str** | The currency the booking was originally made in. Included only if different from property currency | [optional] +**original_currency_rate** | **float** | The currency conversion rate used at the time of booking. Included only if originalCurrencyCode is different from property currency. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a JSON string +get_reservation_invoice_information_response_data_inner_balance_detailed_inner_instance = GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_balance_detailed_inner_dict = get_reservation_invoice_information_response_data_inner_balance_detailed_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a dict +get_reservation_invoice_information_response_data_inner_balance_detailed_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_dict(get_reservation_invoice_information_response_data_inner_balance_detailed_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md new file mode 100644 index 0000000..87a388a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md @@ -0,0 +1,44 @@ +# GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_first_name** | **str** | First Name | [optional] +**guest_last_name** | **str** | Last Name | [optional] +**guest_gender** | **str** | Gender | [optional] +**guest_email** | **str** | Email Address | [optional] +**guest_phone** | **str** | Phone Number | [optional] +**guest_cell_phone** | **str** | Cell Phone Number | [optional] +**guest_address** | **str** | Adress | [optional] +**guest_address2** | **str** | Address Line 2 (Complement) | [optional] +**guest_city** | **str** | City | [optional] +**guest_country** | **str** | Country | [optional] +**tax_id** | **str** | Guest Tax Identifier Number | [optional] +**company_tax_id** | **str** | Company Tax Identifier Number | [optional] +**company_name** | **str** | Company Name | [optional] +**guest_state** | **str** | State | [optional] +**guest_zip** | **str** | Zip code | [optional] +**is_anonymyzed** | **bool** | Flag indicating the guest data was removed upon request | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a JSON string +get_reservation_invoice_information_response_data_inner_main_guest_details_inner_instance = GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_main_guest_details_inner_dict = get_reservation_invoice_information_response_data_inner_main_guest_details_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a dict +get_reservation_invoice_information_response_data_inner_main_guest_details_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.from_dict(get_reservation_invoice_information_response_data_inner_main_guest_details_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md new file mode 100644 index 0000000..f0adcc7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md @@ -0,0 +1,37 @@ +# GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sold_product_id** | **str** | ID of the sold product | [optional] +**product_name** | **str** | Name | [optional] +**product_price** | **float** | Price | [optional] +**product_quantity** | **int** | Quantity sold | [optional] +**product_sub_total** | **float** | Gross amount | [optional] +**product_fees** | **float** | Fees charged for this addon | [optional] +**product_taxes** | **float** | Taxes charged for this addon | [optional] +**product_total** | **float** | Net amount | [optional] +**transaction_date_time** | **datetime** | Date and time of the sale | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a JSON string +get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a dict +get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md new file mode 100644 index 0000000..7c5ba78 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md @@ -0,0 +1,40 @@ +# GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product_id** | **str** | Internal product ID | [optional] +**sold_product_id** | **str** | ID of the sold product | [optional] +**item_code** | **str** | Code of the item | [optional] +**product_name** | **str** | Name | [optional] +**product_price** | **float** | Price | [optional] +**product_quantity** | **int** | Quantity sold | [optional] +**product_sub_total** | **float** | Gross amount | [optional] +**product_fees** | **float** | Fees charged for this item | [optional] +**product_taxes** | **float** | Taxes charged for this item | [optional] +**product_total** | **float** | Net amount | [optional] +**product_note** | **float** | Product note | [optional] +**transaction_date_time** | **datetime** | Date and time of the sale | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a JSON string +get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a dict +get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md new file mode 100644 index 0000000..3c0fd67 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md @@ -0,0 +1,33 @@ +# GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustment_description** | **str** | Description | [optional] +**adjustment_room_name** | **str** | Room name | [optional] +**adjustment_date_time** | **datetime** | Date and time of the adjustment | [optional] +**adjustment_date_time_utc** | **datetime** | Date and time of the adjustment (UTC) | [optional] +**adjustment_amount** | **float** | Amount | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a JSON string +get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a dict +get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md new file mode 100644 index 0000000..95c8359 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md @@ -0,0 +1,34 @@ +# GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_type** | **str** | Type | [optional] +**payment_description** | **str** | Description | [optional] +**payment_date_time** | **datetime** | Date and time of the payment | [optional] +**payment_date_time_utc** | **datetime** | Date and time of the payment (UTC) | [optional] +**payment_amount** | **float** | Amount | [optional] +**reservation_payments_total** | **float** | Total sum of payments | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a JSON string +get_reservation_invoice_information_response_data_inner_reservation_payments_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_reservation_payments_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_payments_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a dict +get_reservation_invoice_information_response_data_inner_reservation_payments_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_payments_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md new file mode 100644 index 0000000..b898b3c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md @@ -0,0 +1,39 @@ +# GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_name** | **str** | Room type name | [optional] +**guest_name** | **str** | Assigned guest name | [optional] +**start_date** | **date** | Check-in date | [optional] +**end_date** | **date** | Check-out date | [optional] +**adults** | **int** | Number of adults for the room | [optional] +**children** | **int** | Number of children for the room | [optional] +**nights** | **int** | Number of nights | [optional] +**room_total** | **float** | Total rate for the room | [optional] +**room_id** | **str** | Unique ID of the room | [optional] +**room_name** | **str** | Name of the room | [optional] +**room_type_id** | **str** | ID of the room type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a JSON string +get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a dict +get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md new file mode 100644 index 0000000..98aa305 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md @@ -0,0 +1,30 @@ +# GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tax_name** | **str** | Name | [optional] +**tax_amount** | **float** | Amount | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a JSON string +get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.to_json()) + +# convert the object into a dict +get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_instance.to_dict() +# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a dict +get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md b/cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md new file mode 100644 index 0000000..8d15625 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md @@ -0,0 +1,31 @@ +# GetReservationNotesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationNotesResponseDataInner]**](GetReservationNotesResponseDataInner.md) | Details for the notes on that reservation | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationNotesResponse from a JSON string +get_reservation_notes_response_instance = GetReservationNotesResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationNotesResponse.to_json()) + +# convert the object into a dict +get_reservation_notes_response_dict = get_reservation_notes_response_instance.to_dict() +# create an instance of GetReservationNotesResponse from a dict +get_reservation_notes_response_from_dict = GetReservationNotesResponse.from_dict(get_reservation_notes_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md new file mode 100644 index 0000000..d91b7b8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md @@ -0,0 +1,33 @@ +# GetReservationNotesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservation_note_id** | **str** | Reservation note ID | [optional] +**user_name** | **str** | User Name | [optional] +**date_created** | **datetime** | Creation datetime | [optional] +**date_modified** | **datetime** | Last modification datetime | [optional] +**reservation_note** | **str** | Note content | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationNotesResponseDataInner from a JSON string +get_reservation_notes_response_data_inner_instance = GetReservationNotesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationNotesResponseDataInner.to_json()) + +# convert the object into a dict +get_reservation_notes_response_data_inner_dict = get_reservation_notes_response_data_inner_instance.to_dict() +# create an instance of GetReservationNotesResponseDataInner from a dict +get_reservation_notes_response_data_inner_from_dict = GetReservationNotesResponseDataInner.from_dict(get_reservation_notes_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponse.md b/cloudbeds_pms_v1_2/docs/GetReservationResponse.md new file mode 100644 index 0000000..06e54a0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponse.md @@ -0,0 +1,31 @@ +# GetReservationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetReservationResponseData**](GetReservationResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponse from a JSON string +get_reservation_response_instance = GetReservationResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponse.to_json()) + +# convert the object into a dict +get_reservation_response_dict = get_reservation_response_instance.to_dict() +# create an instance of GetReservationResponse from a dict +get_reservation_response_from_dict = GetReservationResponse.from_dict(get_reservation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md new file mode 100644 index 0000000..0d505f5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md @@ -0,0 +1,53 @@ +# GetReservationResponseData + +Details for the reservation queried + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**guest_name** | **str** | Main Guest Name | [optional] +**guest_email** | **str** | Main Guest Email | [optional] +**is_anonymized** | **bool** | Flag indicating the main guest data was removed upon request | [optional] +**guest_list** | [**Dict[str, GetReservationResponseDataGuestListValue]**](GetReservationResponseDataGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. | [optional] +**reservation_id** | **str** | Reservation identifier | [optional] +**date_created** | **datetime** | | [optional] +**date_modified** | **datetime** | | [optional] +**estimated_arrival_time** | **str** | Estimated arrival time, 24-hour format. | [optional] +**source** | **str** | Booking source (e.g. Website, Facebook Widget, Booking.com, etc) | [optional] +**source_id** | **str** | Booking source unique id | [optional] +**third_party_identifier** | **str** | If it was received from a booking channel, it displays its identifier. If not, it will be empty | [optional] +**status** | **str** | Reservation status<br /> 'not_confirmed' - Reservation is pending confirmation<br /> 'confirmed' - Reservation is confirmed<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] +**total** | **float** | Total price of the booking | [optional] +**balance** | **float** | Balance currently owed | [optional] +**balance_detailed** | [**List[GetReservationResponseDataBalanceDetailedInner]**](GetReservationResponseDataBalanceDetailedInner.md) | Reservation balance detailed with the information available on PC app, describing the financial items calculated | [optional] +**assigned** | [**List[GetReservationResponseDataAssignedInner]**](GetReservationResponseDataAssignedInner.md) | Assigned Rooms information | [optional] +**unassigned** | [**List[GetReservationResponseDataUnassignedInner]**](GetReservationResponseDataUnassignedInner.md) | Unassigned Rooms information | [optional] +**cards_on_file** | [**List[GetReservationResponseDataCardsOnFileInner]**](GetReservationResponseDataCardsOnFileInner.md) | Credit Cards stored for the reservation | [optional] +**custom_fields** | [**List[GetReservationResponseDataGuestListValueCustomFieldsInner]**](GetReservationResponseDataGuestListValueCustomFieldsInner.md) | Custom Fields related to the reservation | [optional] +**start_date** | **date** | First reservation check-in date | [optional] +**end_date** | **date** | Last reservation check-out date | [optional] +**allotment_block_code** | **str** | Allotment block code | [optional] +**channel_provided_credit_card** | **bool** | Whether a credit card was provided by the channel. Only included for reservations originating from OTAs. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseData from a JSON string +get_reservation_response_data_instance = GetReservationResponseData.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseData.to_json()) + +# convert the object into a dict +get_reservation_response_data_dict = get_reservation_response_data_instance.to_dict() +# create an instance of GetReservationResponseData from a dict +get_reservation_response_data_from_dict = GetReservationResponseData.from_dict(get_reservation_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md new file mode 100644 index 0000000..91ba4eb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md @@ -0,0 +1,42 @@ +# GetReservationResponseDataAssignedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_name** | **str** | Name of the assigned room type | [optional] +**room_type_name_short** | **str** | Short name of the assigned room type | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**dorm_room_name** | **str** | Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type | [optional] +**room_type_id** | **str** | ID of the assigned room type | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID of the specific assigned room | [optional] +**room_name** | **str** | Name of the specific assigned room | [optional] +**room_id** | **str** | ID of the specific assigned room | [optional] +**start_date** | **date** | Check-In date of the room | [optional] +**end_date** | **date** | Check-Out date of the room | [optional] +**adults** | **str** | Number of adult staying in the room | [optional] +**children** | **str** | Number of children staying in the room | [optional] +**daily_rates** | [**List[GetReservationResponseDataAssignedInnerDailyRatesInner]**](GetReservationResponseDataAssignedInnerDailyRatesInner.md) | Array with rates detailed by day | [optional] +**room_total** | **float** | Room total rate | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataAssignedInner from a JSON string +get_reservation_response_data_assigned_inner_instance = GetReservationResponseDataAssignedInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataAssignedInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_assigned_inner_dict = get_reservation_response_data_assigned_inner_instance.to_dict() +# create an instance of GetReservationResponseDataAssignedInner from a dict +get_reservation_response_data_assigned_inner_from_dict = GetReservationResponseDataAssignedInner.from_dict(get_reservation_response_data_assigned_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md new file mode 100644 index 0000000..0bcaa3d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md @@ -0,0 +1,30 @@ +# GetReservationResponseDataAssignedInnerDailyRatesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | | [optional] +**rate** | **float** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataAssignedInnerDailyRatesInner from a JSON string +get_reservation_response_data_assigned_inner_daily_rates_inner_instance = GetReservationResponseDataAssignedInnerDailyRatesInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataAssignedInnerDailyRatesInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_assigned_inner_daily_rates_inner_dict = get_reservation_response_data_assigned_inner_daily_rates_inner_instance.to_dict() +# create an instance of GetReservationResponseDataAssignedInnerDailyRatesInner from a dict +get_reservation_response_data_assigned_inner_daily_rates_inner_from_dict = GetReservationResponseDataAssignedInnerDailyRatesInner.from_dict(get_reservation_response_data_assigned_inner_daily_rates_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md new file mode 100644 index 0000000..98bcee0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md @@ -0,0 +1,34 @@ +# GetReservationResponseDataBalanceDetailedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggested_deposit** | **str** | Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid | [optional] +**sub_total** | **float** | Sum of the room prices on the reservation | [optional] +**additional_items** | **float** | Sum of the additional items recorded on the reservation | [optional] +**taxes_fees** | **float** | Sum of the taxes and fees calculated on the reservation | [optional] +**grand_total** | **float** | Sum of sub.Total + additionalItems + taxesFees | [optional] +**paid** | **float** | Amount paid (reservation deposit + any other extra payment) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataBalanceDetailedInner from a JSON string +get_reservation_response_data_balance_detailed_inner_instance = GetReservationResponseDataBalanceDetailedInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataBalanceDetailedInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_balance_detailed_inner_dict = get_reservation_response_data_balance_detailed_inner_instance.to_dict() +# create an instance of GetReservationResponseDataBalanceDetailedInner from a dict +get_reservation_response_data_balance_detailed_inner_from_dict = GetReservationResponseDataBalanceDetailedInner.from_dict(get_reservation_response_data_balance_detailed_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md new file mode 100644 index 0000000..831aa2a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md @@ -0,0 +1,31 @@ +# GetReservationResponseDataCardsOnFileInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card_id** | **str** | Credit Card ID, used for card operations | [optional] +**card_number** | **str** | Ending digits of the credit card | [optional] +**card_type** | **str** | Abbreviated name of credit card type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataCardsOnFileInner from a JSON string +get_reservation_response_data_cards_on_file_inner_instance = GetReservationResponseDataCardsOnFileInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataCardsOnFileInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_cards_on_file_inner_dict = get_reservation_response_data_cards_on_file_inner_instance.to_dict() +# create an instance of GetReservationResponseDataCardsOnFileInner from a dict +get_reservation_response_data_cards_on_file_inner_from_dict = GetReservationResponseDataCardsOnFileInner.from_dict(get_reservation_response_data_cards_on_file_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md new file mode 100644 index 0000000..856f8b0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md @@ -0,0 +1,61 @@ +# GetReservationResponseDataGuestListValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | ID of the guest | [optional] +**guest_first_name** | **str** | First Name | [optional] +**guest_last_name** | **str** | Last Name | [optional] +**guest_gender** | **str** | Gender | [optional] +**guest_email** | **str** | Email Address | [optional] +**guest_phone** | **str** | Phone Number | [optional] +**guest_cell_phone** | **str** | Cell Phone Number | [optional] +**guest_address** | **str** | | [optional] +**guest_address2** | **str** | | [optional] +**guest_city** | **str** | | [optional] +**guest_state** | **str** | | [optional] +**guest_country** | **str** | | [optional] +**guest_zip** | **str** | | [optional] +**guest_status** | **str** | | [optional] +**guest_birthdate** | **date** | | [optional] +**guest_document_type** | **str** | | [optional] +**guest_document_number** | **str** | | [optional] +**guest_document_issue_date** | **date** | | [optional] +**guest_document_issuing_country** | **str** | | [optional] +**guest_document_expiration_date** | **date** | | [optional] +**tax_id** | **str** | | [optional] +**company_tax_id** | **str** | | [optional] +**company_name** | **str** | | [optional] +**assigned_room** | **str** | Returns true if guest has roomed assigned, false if not | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**room_id** | **str** | Room ID where guest is assigned | [optional] +**room_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_name** | **str** | Room Type Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**is_main_guest** | **bool** | If the guest is the main guest of the reservation or not | [optional] +**custom_fields** | [**List[GetReservationResponseDataGuestListValueCustomFieldsInner]**](GetReservationResponseDataGuestListValueCustomFieldsInner.md) | List of custom fields | [optional] +**rooms** | [**List[GetReservationResponseDataGuestListValueRoomsInner]**](GetReservationResponseDataGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] +**unassigned_rooms** | [**List[GetReservationResponseDataGuestListValueUnassignedRoomsInner]**](GetReservationResponseDataGuestListValueUnassignedRoomsInner.md) | List of unassigned rooms | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataGuestListValue from a JSON string +get_reservation_response_data_guest_list_value_instance = GetReservationResponseDataGuestListValue.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataGuestListValue.to_json()) + +# convert the object into a dict +get_reservation_response_data_guest_list_value_dict = get_reservation_response_data_guest_list_value_instance.to_dict() +# create an instance of GetReservationResponseDataGuestListValue from a dict +get_reservation_response_data_guest_list_value_from_dict = GetReservationResponseDataGuestListValue.from_dict(get_reservation_response_data_guest_list_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md new file mode 100644 index 0000000..f651485 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md @@ -0,0 +1,30 @@ +# GetReservationResponseDataGuestListValueCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_field_name** | **str** | Custom Field Name | [optional] +**custom_field_value** | **str** | Custom Field Value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataGuestListValueCustomFieldsInner from a JSON string +get_reservation_response_data_guest_list_value_custom_fields_inner_instance = GetReservationResponseDataGuestListValueCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataGuestListValueCustomFieldsInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_guest_list_value_custom_fields_inner_dict = get_reservation_response_data_guest_list_value_custom_fields_inner_instance.to_dict() +# create an instance of GetReservationResponseDataGuestListValueCustomFieldsInner from a dict +get_reservation_response_data_guest_list_value_custom_fields_inner_from_dict = GetReservationResponseDataGuestListValueCustomFieldsInner.from_dict(get_reservation_response_data_guest_list_value_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md new file mode 100644 index 0000000..229dedb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md @@ -0,0 +1,33 @@ +# GetReservationResponseDataGuestListValueRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | Room ID where guest is assigned | [optional] +**room_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_name** | **str** | Room Type Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID of the specific assigned room | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataGuestListValueRoomsInner from a JSON string +get_reservation_response_data_guest_list_value_rooms_inner_instance = GetReservationResponseDataGuestListValueRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataGuestListValueRoomsInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_guest_list_value_rooms_inner_dict = get_reservation_response_data_guest_list_value_rooms_inner_instance.to_dict() +# create an instance of GetReservationResponseDataGuestListValueRoomsInner from a dict +get_reservation_response_data_guest_list_value_rooms_inner_from_dict = GetReservationResponseDataGuestListValueRoomsInner.from_dict(get_reservation_response_data_guest_list_value_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md new file mode 100644 index 0000000..c714fa8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md @@ -0,0 +1,32 @@ +# GetReservationResponseDataGuestListValueUnassignedRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | ID of the assigned room type | [optional] +**room_type_name** | **str** | Room Type Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID of the specific assigned room | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataGuestListValueUnassignedRoomsInner from a JSON string +get_reservation_response_data_guest_list_value_unassigned_rooms_inner_instance = GetReservationResponseDataGuestListValueUnassignedRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataGuestListValueUnassignedRoomsInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_guest_list_value_unassigned_rooms_inner_dict = get_reservation_response_data_guest_list_value_unassigned_rooms_inner_instance.to_dict() +# create an instance of GetReservationResponseDataGuestListValueUnassignedRoomsInner from a dict +get_reservation_response_data_guest_list_value_unassigned_rooms_inner_from_dict = GetReservationResponseDataGuestListValueUnassignedRoomsInner.from_dict(get_reservation_response_data_guest_list_value_unassigned_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md new file mode 100644 index 0000000..e5433da --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md @@ -0,0 +1,38 @@ +# GetReservationResponseDataUnassignedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_name** | **str** | Name of the room type to be assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**room_type_id** | **str** | ID of the room type to be assigned | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID of the specific assigned room | [optional] +**start_date** | **date** | Check-In date of the room | [optional] +**end_date** | **date** | Check-Out date of the room | [optional] +**adults** | **str** | Number of adult staying in the room | [optional] +**children** | **str** | Number of children staying in the room | [optional] +**daily_rates** | [**List[GetReservationResponseDataAssignedInnerDailyRatesInner]**](GetReservationResponseDataAssignedInnerDailyRatesInner.md) | Array with rates detailed by day | [optional] +**room_total** | **float** | Room total rate | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataUnassignedInner from a JSON string +get_reservation_response_data_unassigned_inner_instance = GetReservationResponseDataUnassignedInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataUnassignedInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_unassigned_inner_dict = get_reservation_response_data_unassigned_inner_instance.to_dict() +# create an instance of GetReservationResponseDataUnassignedInner from a dict +get_reservation_response_data_unassigned_inner_from_dict = GetReservationResponseDataUnassignedInner.from_dict(get_reservation_response_data_unassigned_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md b/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md new file mode 100644 index 0000000..8116e48 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md @@ -0,0 +1,31 @@ +# GetReservationRoomDetailsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] +**data** | [**GetReservationRoomDetailsResponseData**](GetReservationRoomDetailsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationRoomDetailsResponse from a JSON string +get_reservation_room_details_response_instance = GetReservationRoomDetailsResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationRoomDetailsResponse.to_json()) + +# convert the object into a dict +get_reservation_room_details_response_dict = get_reservation_room_details_response_instance.to_dict() +# create an instance of GetReservationRoomDetailsResponse from a dict +get_reservation_room_details_response_from_dict = GetReservationRoomDetailsResponse.from_dict(get_reservation_room_details_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md b/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md new file mode 100644 index 0000000..1815d6c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md @@ -0,0 +1,44 @@ +# GetReservationRoomDetailsResponseData + +Details for the rooms assigned on the selected date + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservation_id** | **str** | Reservation Unique Identifier. | [optional] +**sub_reservation_id** | **str** | Subreservation Unique Identifier | [optional] +**room_id** | **str** | ID of room assigned | [optional] +**room_name** | **str** | Name of room assigned | [optional] +**dorm_room_name** | **str** | Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type. | [optional] +**guest_id** | **str** | Guest Identifier | [optional] +**guest_name** | **str** | Guest Name | [optional] +**room_status** | **str** | Room status<br /> 'cancelled' - Reservation with this room was canceled<br /> 'checked_out' - Guest already left the room<br /> 'in_house' - Guest is in the room<br /> 'not_checked_in' - Guest isn't checked-in yet | [optional] +**room_type_id** | **str** | ID of room type assigned | [optional] +**room_type_name** | **str** | Name of room type assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**max_guests** | **int** | Maximum number of guests that room type permits | [optional] +**adults** | **int** | Number of adults registered to room (this does not mean there will be this number of guests in guests array) | [optional] +**children** | **int** | Number of children registered to room (this does not mean there will be this number of guests in guests array) | [optional] +**guests** | [**List[GetReservationRoomDetailsResponseDataGuestsInner]**](GetReservationRoomDetailsResponseDataGuestsInner.md) | Array with all guests assigned to room | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationRoomDetailsResponseData from a JSON string +get_reservation_room_details_response_data_instance = GetReservationRoomDetailsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetReservationRoomDetailsResponseData.to_json()) + +# convert the object into a dict +get_reservation_room_details_response_data_dict = get_reservation_room_details_response_data_instance.to_dict() +# create an instance of GetReservationRoomDetailsResponseData from a dict +get_reservation_room_details_response_data_from_dict = GetReservationRoomDetailsResponseData.from_dict(get_reservation_room_details_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md new file mode 100644 index 0000000..6baeabf --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md @@ -0,0 +1,32 @@ +# GetReservationRoomDetailsResponseDataGuestsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | ID of assigned guest | [optional] +**guest_first_name** | **str** | First name of assigned guest | [optional] +**guest_last_name** | **str** | Last of assigned guest | [optional] +**is_main_guest** | **bool** | If guest is reservation's main guest | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationRoomDetailsResponseDataGuestsInner from a JSON string +get_reservation_room_details_response_data_guests_inner_instance = GetReservationRoomDetailsResponseDataGuestsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationRoomDetailsResponseDataGuestsInner.to_json()) + +# convert the object into a dict +get_reservation_room_details_response_data_guests_inner_dict = get_reservation_room_details_response_data_guests_inner_instance.to_dict() +# create an instance of GetReservationRoomDetailsResponseDataGuestsInner from a dict +get_reservation_room_details_response_data_guests_inner_from_dict = GetReservationRoomDetailsResponseDataGuestsInner.from_dict(get_reservation_room_details_response_data_guests_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponse.md b/cloudbeds_pms_v1_2/docs/GetReservationsResponse.md new file mode 100644 index 0000000..a8b0a47 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsResponse.md @@ -0,0 +1,32 @@ +# GetReservationsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationsResponseDataInner]**](GetReservationsResponseDataInner.md) | Details for the reservation queried | [optional] +**count** | **int** | Number of results returned | [optional] +**total** | **int** | Total number of results | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsResponse from a JSON string +get_reservations_response_instance = GetReservationsResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationsResponse.to_json()) + +# convert the object into a dict +get_reservations_response_dict = get_reservations_response_instance.to_dict() +# create an instance of GetReservationsResponse from a dict +get_reservations_response_from_dict = GetReservationsResponse.from_dict(get_reservations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md new file mode 100644 index 0000000..fffa5be --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md @@ -0,0 +1,49 @@ +# GetReservationsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Properties identifier | [optional] +**reservation_id** | **str** | Reservation's unique identifier | [optional] +**date_created** | **datetime** | | [optional] +**date_modified** | **datetime** | | [optional] +**status** | **str** | | [optional] +**guest_id** | **str** | | [optional] +**profile_id** | **str** | | [optional] +**guest_name** | **str** | | [optional] +**start_date** | **date** | | [optional] +**end_date** | **date** | | [optional] +**allotment_block_code** | **str** | Allotment block code | [optional] +**adults** | **int** | | [optional] +**children** | **int** | | [optional] +**balance** | **float** | | [optional] +**source_name** | **str** | Source of reservation | [optional] +**source_id** | **str** | Booking source unique id | [optional] +**third_party_identifier** | **str** | | [optional] +**sub_reservation_id** | **str** | If roomID or roomName are given, the respective subReservationID (to that room) is informed. | [optional] +**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of reservation custom fields. Only returned if \"includeCustomFields\" is true | [optional] +**rooms** | [**List[GetReservationsResponseDataInnerRoomsInner]**](GetReservationsResponseDataInnerRoomsInner.md) | Array with rooms information. Only returned if \"includeAllRooms\" is true | [optional] +**guest_list** | [**Dict[str, GetReservationsResponseDataInnerGuestListValue]**](GetReservationsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsResponseDataInner from a JSON string +get_reservations_response_data_inner_instance = GetReservationsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationsResponseDataInner.to_json()) + +# convert the object into a dict +get_reservations_response_data_inner_dict = get_reservations_response_data_inner_instance.to_dict() +# create an instance of GetReservationsResponseDataInner from a dict +get_reservations_response_data_inner_from_dict = GetReservationsResponseDataInner.from_dict(get_reservations_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md new file mode 100644 index 0000000..1cc4c71 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md @@ -0,0 +1,64 @@ +# GetReservationsResponseDataInnerGuestListValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | ID of the guest | [optional] +**guest_name** | **str** | | [optional] +**guest_first_name** | **str** | | [optional] +**guest_last_name** | **str** | | [optional] +**guest_gender** | **str** | | [optional] +**guest_email** | **str** | | [optional] +**guest_phone** | **str** | | [optional] +**guest_cell_phone** | **str** | | [optional] +**guest_address** | **str** | | [optional] +**guest_address2** | **str** | | [optional] +**guest_city** | **str** | | [optional] +**guest_state** | **str** | | [optional] +**guest_country** | **str** | | [optional] +**guest_zip** | **str** | | [optional] +**guest_birthdate** | **date** | | [optional] +**guest_document_type** | **str** | | [optional] +**guest_document_number** | **str** | | [optional] +**guest_document_issue_date** | **date** | | [optional] +**guest_document_issuing_country** | **str** | | [optional] +**guest_document_expiration_date** | **date** | | [optional] +**tax_id** | **str** | Guest's tax ID | [optional] +**company_tax_id** | **str** | Guest's company tax ID | [optional] +**company_name** | **str** | Guest's company name | [optional] +**sub_reservation_id** | **str** | | [optional] +**start_date** | **date** | | [optional] +**end_date** | **date** | | [optional] +**assigned_room** | **str** | Returns true if guest has roomed assigned, false if not | [optional] +**room_id** | **str** | Room ID where guest is assigned | [optional] +**room_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**rooms** | [**List[GetReservationsResponseDataInnerGuestListValueRoomsInner]**](GetReservationsResponseDataInnerGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] +**unassigned_rooms** | [**List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]**](GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) | List of all unassigned rooms | [optional] +**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of guest custom fields | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**is_main_guest** | **bool** | Flag indicating the guest is the main guest on the reservation | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsResponseDataInnerGuestListValue from a JSON string +get_reservations_response_data_inner_guest_list_value_instance = GetReservationsResponseDataInnerGuestListValue.from_json(json) +# print the JSON string representation of the object +print(GetReservationsResponseDataInnerGuestListValue.to_json()) + +# convert the object into a dict +get_reservations_response_data_inner_guest_list_value_dict = get_reservations_response_data_inner_guest_list_value_instance.to_dict() +# create an instance of GetReservationsResponseDataInnerGuestListValue from a dict +get_reservations_response_data_inner_guest_list_value_from_dict = GetReservationsResponseDataInnerGuestListValue.from_dict(get_reservations_response_data_inner_guest_list_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md new file mode 100644 index 0000000..420ffe7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md @@ -0,0 +1,38 @@ +# GetReservationsResponseDataInnerGuestListValueRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | Room ID where guest is assigned | [optional] +**room_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_name** | **str** | Room Type Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**room_type_id** | **str** | Room Type ID | [optional] +**room_type_name_short** | **str** | Room Type Short Name | [optional] +**rate_id** | **str** | Rate ID | [optional] +**rate_plan_name** | **str** | Rate plan name | [optional] +**room_status** | **str** | | [optional] +**sub_reservation_id** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsResponseDataInnerGuestListValueRoomsInner from a JSON string +get_reservations_response_data_inner_guest_list_value_rooms_inner_instance = GetReservationsResponseDataInnerGuestListValueRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationsResponseDataInnerGuestListValueRoomsInner.to_json()) + +# convert the object into a dict +get_reservations_response_data_inner_guest_list_value_rooms_inner_dict = get_reservations_response_data_inner_guest_list_value_rooms_inner_instance.to_dict() +# create an instance of GetReservationsResponseDataInnerGuestListValueRoomsInner from a dict +get_reservations_response_data_inner_guest_list_value_rooms_inner_from_dict = GetReservationsResponseDataInnerGuestListValueRoomsInner.from_dict(get_reservations_response_data_inner_guest_list_value_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md new file mode 100644 index 0000000..73ac01f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md @@ -0,0 +1,35 @@ +# GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | ID of the assigned room type | [optional] +**room_type_name** | **str** | Room Type Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**room_type_name_short** | **str** | Room Type Short Name | [optional] +**rate_id** | **str** | Rate ID | [optional] +**rate_plan_name** | **str** | Rate plan name | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID of the specific assigned room | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner from a JSON string +get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner_instance = GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.to_json()) + +# convert the object into a dict +get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner_dict = get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner_instance.to_dict() +# create an instance of GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner from a dict +get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner_from_dict = GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.from_dict(get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md new file mode 100644 index 0000000..201a74f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md @@ -0,0 +1,41 @@ +# GetReservationsResponseDataInnerRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room Type ID | [optional] +**room_type_name** | **str** | Room Type Name | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**sub_reservation_id** | **str** | sub Reservation ID (specific to each room) | [optional] +**guest_id** | **str** | ID of the main guest assigned to the room | [optional] +**guest_name** | **str** | Name of the main guest assigned to the room | [optional] +**adults** | **str** | Number of adults in the room | [optional] +**children** | **str** | Number of children in the room | [optional] +**room_id** | **str** | Room ID (null if the reservation has not been assigned a specific room yet). | [optional] +**room_name** | **str** | Name of the room, if roomID=null it does not exist. | [optional] +**room_check_in** | **str** | Check-in date for the room | [optional] +**room_check_out** | **str** | Check-out date for the room | [optional] +**room_status** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsResponseDataInnerRoomsInner from a JSON string +get_reservations_response_data_inner_rooms_inner_instance = GetReservationsResponseDataInnerRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationsResponseDataInnerRoomsInner.to_json()) + +# convert the object into a dict +get_reservations_response_data_inner_rooms_inner_dict = get_reservations_response_data_inner_rooms_inner_instance.to_dict() +# create an instance of GetReservationsResponseDataInnerRoomsInner from a dict +get_reservations_response_data_inner_rooms_inner_from_dict = GetReservationsResponseDataInnerRoomsInner.from_dict(get_reservations_response_data_inner_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md new file mode 100644 index 0000000..c510de7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md @@ -0,0 +1,32 @@ +# GetReservationsWithRateDetailsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationsWithRateDetailsResponseDataInner]**](GetReservationsWithRateDetailsResponseDataInner.md) | Details for the reservations returned | [optional] +**count** | **int** | Number of results returned | [optional] +**total** | **int** | Total number of results | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponse from a JSON string +get_reservations_with_rate_details_response_instance = GetReservationsWithRateDetailsResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponse.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_dict = get_reservations_with_rate_details_response_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponse from a dict +get_reservations_with_rate_details_response_from_dict = GetReservationsWithRateDetailsResponse.from_dict(get_reservations_with_rate_details_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md new file mode 100644 index 0000000..02f3950 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md @@ -0,0 +1,50 @@ +# GetReservationsWithRateDetailsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservation_id** | **str** | Reservation's unique identifier | [optional] +**is_deleted** | **bool** | | [optional] +**date_created** | **datetime** | | [optional] +**date_created_utc** | **datetime** | | [optional] +**date_modified** | **datetime** | | [optional] +**date_modified_utc** | **datetime** | | [optional] +**date_cancelled** | **datetime** | Will be displayed only if \"status = 'canceled'\" | [optional] +**date_cancelled_utc** | **datetime** | Will be displayed only if \"status = 'canceled'\" | [optional] +**status** | **str** | Reservation status<br /> 'not_confirmed' - Reservation is pending confirmation<br /> 'confirmed' - Reservation is confirmed<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] +**reservation_check_in** | **datetime** | | [optional] +**reservation_check_out** | **datetime** | | [optional] +**guest_id** | **str** | Main guest ID | [optional] +**profile_id** | **str** | Main guest profile ID | [optional] +**guest_country** | **int** | Main guest Country | [optional] +**source_name** | **str** | Reservation source | [optional] +**source** | [**List[GetReservationsWithRateDetailsResponseDataInnerSourceInner]**](GetReservationsWithRateDetailsResponseDataInnerSourceInner.md) | | [optional] +**source_category** | **int** | Reservation source category | [optional] +**source_reservation_id** | **int** | Reservation ID on the source | [optional] +**property_currency** | **int** | Property currency ISO-formatted (3 characters) | [optional] +**balance_detailed** | [**List[GetReservationResponseDataBalanceDetailedInner]**](GetReservationResponseDataBalanceDetailedInner.md) | Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated | [optional] +**detailed_rates** | **List[object]** | Associative object, where key is the date, and value is the total rate for that date. | [optional] +**rooms** | [**List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]**](GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) | Array with rooms information | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponseDataInner from a JSON string +get_reservations_with_rate_details_response_data_inner_instance = GetReservationsWithRateDetailsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponseDataInner.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_data_inner_dict = get_reservations_with_rate_details_response_data_inner_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponseDataInner from a dict +get_reservations_with_rate_details_response_data_inner_from_dict = GetReservationsWithRateDetailsResponseDataInner.from_dict(get_reservations_with_rate_details_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md new file mode 100644 index 0000000..14dab99 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md @@ -0,0 +1,44 @@ +# GetReservationsWithRateDetailsResponseDataInnerRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room Type ID | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**room_type_name** | **str** | Room Type Name | [optional] +**sub_reservation_id** | **str** | sub Reservation ID (specific to each room) | [optional] +**guest_id** | **str** | ID of the main guest assigned to the room | [optional] +**guest_name** | **str** | Name of the main guest assigned to the room | [optional] +**rate_id** | **str** | ID of the rate used for the booking room | [optional] +**rate_name** | **str** | Name of the rate used for the booking room | [optional] +**adults** | **str** | Number of adults in the room | [optional] +**children** | **str** | Number of children in the room | [optional] +**room_id** | **str** | Room ID (null if the reservation has not been assigned a specific room yet). | [optional] +**room_name** | **str** | Name of the room, if roomID=null it does not exist. | [optional] +**room_check_in** | **str** | Check-in date for the room | [optional] +**room_check_out** | **str** | Check-out date for the room | [optional] +**room_status** | **str** | | [optional] +**detailed_room_rates** | **List[object]** | Associative object, with dates as indexes, and rates as values | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponseDataInnerRoomsInner from a JSON string +get_reservations_with_rate_details_response_data_inner_rooms_inner_instance = GetReservationsWithRateDetailsResponseDataInnerRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponseDataInnerRoomsInner.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_data_inner_rooms_inner_dict = get_reservations_with_rate_details_response_data_inner_rooms_inner_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponseDataInnerRoomsInner from a dict +get_reservations_with_rate_details_response_data_inner_rooms_inner_from_dict = GetReservationsWithRateDetailsResponseDataInnerRoomsInner.from_dict(get_reservations_with_rate_details_response_data_inner_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md new file mode 100644 index 0000000..15a4cb2 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md @@ -0,0 +1,32 @@ +# GetReservationsWithRateDetailsResponseDataInnerSourceInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Reservation source | [optional] +**payment_collect** | **str** | Reservation payment collect source | [optional] +**source_id** | **str** | Booking source unique id | [optional] +**category** | **str** | Reservation source category | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a JSON string +get_reservations_with_rate_details_response_data_inner_source_inner_instance = GetReservationsWithRateDetailsResponseDataInnerSourceInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponseDataInnerSourceInner.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_data_inner_source_inner_dict = get_reservations_with_rate_details_response_data_inner_source_inner_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a dict +get_reservations_with_rate_details_response_data_inner_source_inner_from_dict = GetReservationsWithRateDetailsResponseDataInnerSourceInner.from_dict(get_reservations_with_rate_details_response_data_inner_source_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md b/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md new file mode 100644 index 0000000..263cefb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md @@ -0,0 +1,31 @@ +# GetRoomBlocksResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetRoomBlocksResponseDataInner]**](GetRoomBlocksResponseDataInner.md) | Room block details | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomBlocksResponse from a JSON string +get_room_blocks_response_instance = GetRoomBlocksResponse.from_json(json) +# print the JSON string representation of the object +print(GetRoomBlocksResponse.to_json()) + +# convert the object into a dict +get_room_blocks_response_dict = get_room_blocks_response_instance.to_dict() +# create an instance of GetRoomBlocksResponse from a dict +get_room_blocks_response_from_dict = GetRoomBlocksResponse.from_dict(get_room_blocks_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md new file mode 100644 index 0000000..05e6d76 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md @@ -0,0 +1,35 @@ +# GetRoomBlocksResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_block_id** | **str** | Room block ID | [optional] +**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] +**room_block_reason** | **str** | Room block reason | [optional] +**start_date** | **date** | Room block start date | [optional] +**end_date** | **date** | Room block end date | [optional] +**rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md) | All rooms for Block ID | [optional] +**count** | **int** | Number of results (properties) returned. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomBlocksResponseDataInner from a JSON string +get_room_blocks_response_data_inner_instance = GetRoomBlocksResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomBlocksResponseDataInner.to_json()) + +# convert the object into a dict +get_room_blocks_response_data_inner_dict = get_room_blocks_response_data_inner_instance.to_dict() +# create an instance of GetRoomBlocksResponseDataInner from a dict +get_room_blocks_response_data_inner_from_dict = GetRoomBlocksResponseDataInner.from_dict(get_room_blocks_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md new file mode 100644 index 0000000..2499b1c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md @@ -0,0 +1,33 @@ +# GetRoomTypesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetRoomTypesResponseDataInner]**](GetRoomTypesResponseDataInner.md) | Room Types details | [optional] +**count** | **int** | Number of results in this page | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomTypesResponse from a JSON string +get_room_types_response_instance = GetRoomTypesResponse.from_json(json) +# print the JSON string representation of the object +print(GetRoomTypesResponse.to_json()) + +# convert the object into a dict +get_room_types_response_dict = get_room_types_response_instance.to_dict() +# create an instance of GetRoomTypesResponse from a dict +get_room_types_response_from_dict = GetRoomTypesResponse.from_dict(get_room_types_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md new file mode 100644 index 0000000..50a1df8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md @@ -0,0 +1,43 @@ +# GetRoomTypesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room Type ID | [optional] +**property_id** | **str** | Property ID | [optional] +**room_type_name** | **str** | Room Type Name | [optional] +**room_type_name_short** | **str** | Room Type Short Name | [optional] +**room_type_description** | **str** | Room Type Description | [optional] +**is_private** | **bool** | Whether room is private or shared | [optional] +**max_guests** | **int** | Max number of guests allowed in the room type | [optional] +**adults_included** | **int** | Number of adults included on the basic room rate | [optional] +**children_included** | **int** | Number of children included on the basic room rate | [optional] +**room_type_photos** | **List[str]** | List of photos for the room type | [optional] +**room_type_features** | **List[str]** | List of features for the room type | [optional] +**rooms_available** | **int** | Number of rooms available, based on the parameters provided. | [optional] +**room_rate** | **float** | Basic rate for the room, based on the parameters provided. Does not return if roomsAvailable = 0. | [optional] +**room_type_units** | **int** | Number of rooms of a particular type | [optional] +**room_type_unit_dorm_beds** | **int** | Number of beds per Shared Dorm Room type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomTypesResponseDataInner from a JSON string +get_room_types_response_data_inner_instance = GetRoomTypesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomTypesResponseDataInner.to_json()) + +# convert the object into a dict +get_room_types_response_data_inner_dict = get_room_types_response_data_inner_instance.to_dict() +# create an instance of GetRoomTypesResponseDataInner from a dict +get_room_types_response_data_inner_from_dict = GetRoomTypesResponseDataInner.from_dict(get_room_types_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md new file mode 100644 index 0000000..ea346d1 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md @@ -0,0 +1,31 @@ +# GetRoomsFeesAndTaxesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetRoomsFeesAndTaxesResponseData**](GetRoomsFeesAndTaxesResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsFeesAndTaxesResponse from a JSON string +get_rooms_fees_and_taxes_response_instance = GetRoomsFeesAndTaxesResponse.from_json(json) +# print the JSON string representation of the object +print(GetRoomsFeesAndTaxesResponse.to_json()) + +# convert the object into a dict +get_rooms_fees_and_taxes_response_dict = get_rooms_fees_and_taxes_response_instance.to_dict() +# create an instance of GetRoomsFeesAndTaxesResponse from a dict +get_rooms_fees_and_taxes_response_from_dict = GetRoomsFeesAndTaxesResponse.from_dict(get_rooms_fees_and_taxes_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md new file mode 100644 index 0000000..ad4ace8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md @@ -0,0 +1,33 @@ +# GetRoomsFeesAndTaxesResponseData + +Details of the fees and taxes applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fees** | [**List[GetRoomsFeesAndTaxesResponseDataFeesInner]**](GetRoomsFeesAndTaxesResponseDataFeesInner.md) | Details of the fees applicable | [optional] +**taxes** | [**List[GetRoomsFeesAndTaxesResponseDataTaxesInner]**](GetRoomsFeesAndTaxesResponseDataTaxesInner.md) | Details of the taxes applicable | [optional] +**rooms_total_without_taxes** | **float** | \"roomsTotal\" parameter subtracting the included taxes | [optional] +**grand_total** | **float** | Total with fees and taxes | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsFeesAndTaxesResponseData from a JSON string +get_rooms_fees_and_taxes_response_data_instance = GetRoomsFeesAndTaxesResponseData.from_json(json) +# print the JSON string representation of the object +print(GetRoomsFeesAndTaxesResponseData.to_json()) + +# convert the object into a dict +get_rooms_fees_and_taxes_response_data_dict = get_rooms_fees_and_taxes_response_data_instance.to_dict() +# create an instance of GetRoomsFeesAndTaxesResponseData from a dict +get_rooms_fees_and_taxes_response_data_from_dict = GetRoomsFeesAndTaxesResponseData.from_dict(get_rooms_fees_and_taxes_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md new file mode 100644 index 0000000..e2f00fb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md @@ -0,0 +1,31 @@ +# GetRoomsFeesAndTaxesResponseDataFeesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fee_name** | **str** | Name of the fee | [optional] +**fee_value** | **float** | Value of the fee for the selected parameters | [optional] +**total_fees** | **float** | Total value of the fees | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsFeesAndTaxesResponseDataFeesInner from a JSON string +get_rooms_fees_and_taxes_response_data_fees_inner_instance = GetRoomsFeesAndTaxesResponseDataFeesInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomsFeesAndTaxesResponseDataFeesInner.to_json()) + +# convert the object into a dict +get_rooms_fees_and_taxes_response_data_fees_inner_dict = get_rooms_fees_and_taxes_response_data_fees_inner_instance.to_dict() +# create an instance of GetRoomsFeesAndTaxesResponseDataFeesInner from a dict +get_rooms_fees_and_taxes_response_data_fees_inner_from_dict = GetRoomsFeesAndTaxesResponseDataFeesInner.from_dict(get_rooms_fees_and_taxes_response_data_fees_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md new file mode 100644 index 0000000..94421e6 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md @@ -0,0 +1,31 @@ +# GetRoomsFeesAndTaxesResponseDataTaxesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fee_name** | **str** | Name of the tax | [optional] +**fee_value** | **str** | Value of the tax for the selected parameters | [optional] +**total_taxes** | **float** | Total value of the taxes | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsFeesAndTaxesResponseDataTaxesInner from a JSON string +get_rooms_fees_and_taxes_response_data_taxes_inner_instance = GetRoomsFeesAndTaxesResponseDataTaxesInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomsFeesAndTaxesResponseDataTaxesInner.to_json()) + +# convert the object into a dict +get_rooms_fees_and_taxes_response_data_taxes_inner_dict = get_rooms_fees_and_taxes_response_data_taxes_inner_instance.to_dict() +# create an instance of GetRoomsFeesAndTaxesResponseDataTaxesInner from a dict +get_rooms_fees_and_taxes_response_data_taxes_inner_from_dict = GetRoomsFeesAndTaxesResponseDataTaxesInner.from_dict(get_rooms_fees_and_taxes_response_data_taxes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponse.md b/cloudbeds_pms_v1_2/docs/GetRoomsResponse.md new file mode 100644 index 0000000..201e2e7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsResponse.md @@ -0,0 +1,33 @@ +# GetRoomsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetRoomsResponseDataInner]**](GetRoomsResponseDataInner.md) | Room Types details | [optional] +**count** | **int** | Number of results (properties) returned | [optional] +**total** | **int** | Total number of results, can be more than what was returned | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsResponse from a JSON string +get_rooms_response_instance = GetRoomsResponse.from_json(json) +# print the JSON string representation of the object +print(GetRoomsResponse.to_json()) + +# convert the object into a dict +get_rooms_response_dict = get_rooms_response_instance.to_dict() +# create an instance of GetRoomsResponse from a dict +get_rooms_response_from_dict = GetRoomsResponse.from_dict(get_rooms_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md new file mode 100644 index 0000000..ee36cea --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md @@ -0,0 +1,30 @@ +# GetRoomsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**rooms** | [**List[GetRoomsResponseDataInnerRoomsInner]**](GetRoomsResponseDataInnerRoomsInner.md) | All rooms for property ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsResponseDataInner from a JSON string +get_rooms_response_data_inner_instance = GetRoomsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomsResponseDataInner.to_json()) + +# convert the object into a dict +get_rooms_response_data_inner_dict = get_rooms_response_data_inner_instance.to_dict() +# create an instance of GetRoomsResponseDataInner from a dict +get_rooms_response_data_inner_from_dict = GetRoomsResponseDataInner.from_dict(get_rooms_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md new file mode 100644 index 0000000..b960c78 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md @@ -0,0 +1,42 @@ +# GetRoomsResponseDataInnerRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | Room ID | [optional] +**room_name** | **str** | Room Name | [optional] +**dorm_room_name** | **str** | Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type | [optional] +**room_description** | **str** | Room Description | [optional] +**max_guests** | **int** | Number of guests that room allows | [optional] +**is_private** | **bool** | If room is private (true) or shared (false) | [optional] +**is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**room_blocked** | **bool** | If room is blocked on calendar during the period selected. If no check-in/out dates are sent, it returns the status for the current day. | [optional] +**room_type_id** | **str** | Room type ID | [optional] +**room_type_name** | **str** | Room type Name | [optional] +**room_type_name_short** | **str** | Room type Short Name | [optional] +**linked_room_ids** | **List[str]** | List of linked room IDs for this room (including nested relations). Only returned if includeRoomRelations is set to true | [optional] +**linked_room_type_ids** | **List[str]** | List of linked room type IDs. Only returned if includeRoomRelations is set to true | [optional] +**linked_room_type_qty** | [**List[GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner]**](GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md) | Data about linked rooms count, grouped by room type. Only returned if includeRoomRelations is set to true | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsResponseDataInnerRoomsInner from a JSON string +get_rooms_response_data_inner_rooms_inner_instance = GetRoomsResponseDataInnerRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomsResponseDataInnerRoomsInner.to_json()) + +# convert the object into a dict +get_rooms_response_data_inner_rooms_inner_dict = get_rooms_response_data_inner_rooms_inner_instance.to_dict() +# create an instance of GetRoomsResponseDataInnerRoomsInner from a dict +get_rooms_response_data_inner_rooms_inner_from_dict = GetRoomsResponseDataInnerRoomsInner.from_dict(get_rooms_response_data_inner_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md new file mode 100644 index 0000000..3042204 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md @@ -0,0 +1,30 @@ +# GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type ID | [optional] +**room_qty** | **int** | Related rooms count | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner from a JSON string +get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner_instance = GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.to_json()) + +# convert the object into a dict +get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner_dict = get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner_instance.to_dict() +# create an instance of GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner from a dict +get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner_from_dict = GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.from_dict(get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md b/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md new file mode 100644 index 0000000..350fb40 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md @@ -0,0 +1,33 @@ +# GetRoomsUnassignedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetRoomsUnassignedResponseDataInner]**](GetRoomsUnassignedResponseDataInner.md) | Room Types details | [optional] +**count** | **int** | Number of results (properties) returned | [optional] +**total** | **int** | Total number of results, can be more than what was returned | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsUnassignedResponse from a JSON string +get_rooms_unassigned_response_instance = GetRoomsUnassignedResponse.from_json(json) +# print the JSON string representation of the object +print(GetRoomsUnassignedResponse.to_json()) + +# convert the object into a dict +get_rooms_unassigned_response_dict = get_rooms_unassigned_response_instance.to_dict() +# create an instance of GetRoomsUnassignedResponse from a dict +get_rooms_unassigned_response_from_dict = GetRoomsUnassignedResponse.from_dict(get_rooms_unassigned_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md new file mode 100644 index 0000000..2b67372 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md @@ -0,0 +1,30 @@ +# GetRoomsUnassignedResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**rooms** | [**List[GetRoomsUnassignedResponseDataInnerRoomsInner]**](GetRoomsUnassignedResponseDataInnerRoomsInner.md) | All rooms for property ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsUnassignedResponseDataInner from a JSON string +get_rooms_unassigned_response_data_inner_instance = GetRoomsUnassignedResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomsUnassignedResponseDataInner.to_json()) + +# convert the object into a dict +get_rooms_unassigned_response_data_inner_dict = get_rooms_unassigned_response_data_inner_instance.to_dict() +# create an instance of GetRoomsUnassignedResponseDataInner from a dict +get_rooms_unassigned_response_data_inner_from_dict = GetRoomsUnassignedResponseDataInner.from_dict(get_rooms_unassigned_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md new file mode 100644 index 0000000..9437cd8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md @@ -0,0 +1,39 @@ +# GetRoomsUnassignedResponseDataInnerRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | Room ID | [optional] +**room_name** | **str** | Room Name | [optional] +**dorm_room_name** | **str** | Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type | [optional] +**room_description** | **str** | Room Description | [optional] +**max_guests** | **int** | Number of guests that room allows | [optional] +**is_private** | **bool** | If room is private (true) or shared (false) | [optional] +**is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**room_blocked** | **bool** | If room is blocked on calendar during the period selected. If no check-in/out dates are sent, it returns the status for the current day. | [optional] +**room_type_id** | **str** | Room type ID | [optional] +**room_type_name** | **str** | Room type Name | [optional] +**room_type_name_short** | **str** | Room type Short Name | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomsUnassignedResponseDataInnerRoomsInner from a JSON string +get_rooms_unassigned_response_data_inner_rooms_inner_instance = GetRoomsUnassignedResponseDataInnerRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomsUnassignedResponseDataInnerRoomsInner.to_json()) + +# convert the object into a dict +get_rooms_unassigned_response_data_inner_rooms_inner_dict = get_rooms_unassigned_response_data_inner_rooms_inner_instance.to_dict() +# create an instance of GetRoomsUnassignedResponseDataInnerRoomsInner from a dict +get_rooms_unassigned_response_data_inner_rooms_inner_from_dict = GetRoomsUnassignedResponseDataInnerRoomsInner.from_dict(get_rooms_unassigned_response_data_inner_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponse.md b/cloudbeds_pms_v1_2/docs/GetSourcesResponse.md new file mode 100644 index 0000000..48cbd39 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetSourcesResponse.md @@ -0,0 +1,31 @@ +# GetSourcesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetSourcesResponseDataInner]**](GetSourcesResponseDataInner.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetSourcesResponse from a JSON string +get_sources_response_instance = GetSourcesResponse.from_json(json) +# print the JSON string representation of the object +print(GetSourcesResponse.to_json()) + +# convert the object into a dict +get_sources_response_dict = get_sources_response_instance.to_dict() +# create an instance of GetSourcesResponse from a dict +get_sources_response_from_dict = GetSourcesResponse.from_dict(get_sources_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md new file mode 100644 index 0000000..35e36b0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md @@ -0,0 +1,37 @@ +# GetSourcesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property Id | [optional] +**source_id** | **str** | Source Identifier | [optional] +**source_name** | **str** | Source Name | [optional] +**is_third_party** | **bool** | true if source is from third party | [optional] +**status** | **bool** | true if source is active | [optional] +**commission** | **float** | How much commission charged by source (in %) | [optional] +**payment_collect** | **str** | Type of payment collect practiced by source | [optional] +**taxes** | [**List[GetSourcesResponseDataInnerTaxesInner]**](GetSourcesResponseDataInnerTaxesInner.md) | | [optional] +**fees** | [**List[GetSourcesResponseDataInnerFeesInner]**](GetSourcesResponseDataInnerFeesInner.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetSourcesResponseDataInner from a JSON string +get_sources_response_data_inner_instance = GetSourcesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetSourcesResponseDataInner.to_json()) + +# convert the object into a dict +get_sources_response_data_inner_dict = get_sources_response_data_inner_instance.to_dict() +# create an instance of GetSourcesResponseDataInner from a dict +get_sources_response_data_inner_from_dict = GetSourcesResponseDataInner.from_dict(get_sources_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md b/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md new file mode 100644 index 0000000..8c1eb16 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md @@ -0,0 +1,33 @@ +# GetSourcesResponseDataInnerFeesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fee_id** | **int** | ID of fee | [optional] +**name** | **str** | Name of fee | [optional] +**amount** | **float** | Value of fee | [optional] +**amount_type** | **str** | If fee is percentage of amount or fixed | [optional] +**type** | **str** | If fee is included or not in final price | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetSourcesResponseDataInnerFeesInner from a JSON string +get_sources_response_data_inner_fees_inner_instance = GetSourcesResponseDataInnerFeesInner.from_json(json) +# print the JSON string representation of the object +print(GetSourcesResponseDataInnerFeesInner.to_json()) + +# convert the object into a dict +get_sources_response_data_inner_fees_inner_dict = get_sources_response_data_inner_fees_inner_instance.to_dict() +# create an instance of GetSourcesResponseDataInnerFeesInner from a dict +get_sources_response_data_inner_fees_inner_from_dict = GetSourcesResponseDataInnerFeesInner.from_dict(get_sources_response_data_inner_fees_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md b/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md new file mode 100644 index 0000000..a042b03 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md @@ -0,0 +1,33 @@ +# GetSourcesResponseDataInnerTaxesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tax_id** | **str** | ID of tax | [optional] +**name** | **str** | Name of tax | [optional] +**amount** | **float** | Value of tax | [optional] +**amount_type** | **str** | If tax is percentage of amount or fixed | [optional] +**type** | **str** | If tax is included or not in final price | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetSourcesResponseDataInnerTaxesInner from a JSON string +get_sources_response_data_inner_taxes_inner_instance = GetSourcesResponseDataInnerTaxesInner.from_json(json) +# print the JSON string representation of the object +print(GetSourcesResponseDataInnerTaxesInner.to_json()) + +# convert the object into a dict +get_sources_response_data_inner_taxes_inner_dict = get_sources_response_data_inner_taxes_inner_instance.to_dict() +# create an instance of GetSourcesResponseDataInnerTaxesInner from a dict +get_sources_response_data_inner_taxes_inner_from_dict = GetSourcesResponseDataInnerTaxesInner.from_dict(get_sources_response_data_inner_taxes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md new file mode 100644 index 0000000..42f6c8b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md @@ -0,0 +1,32 @@ +# GetTaxesAndFeesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] +**data** | [**List[GetTaxesAndFeesResponseDataInner]**](GetTaxesAndFeesResponseDataInner.md) | Details for the taxes and fees. If success = false, it may not exist. | [optional] +**total** | **int** | Total number of results | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponse from a JSON string +get_taxes_and_fees_response_instance = GetTaxesAndFeesResponse.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponse.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_dict = get_taxes_and_fees_response_instance.to_dict() +# create an instance of GetTaxesAndFeesResponse from a dict +get_taxes_and_fees_response_from_dict = GetTaxesAndFeesResponse.from_dict(get_taxes_and_fees_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md new file mode 100644 index 0000000..a79be03 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md @@ -0,0 +1,45 @@ +# GetTaxesAndFeesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type. Fee or tax. | [optional] +**fee_id** | **int** | Fee's unique identifier. Only exists if type = fee. | [optional] +**tax_id** | **int** | Tax's unique identifier. Only exists if type = tax. | [optional] +**name** | **str** | Name | [optional] +**code** | **str** | Code | [optional] +**amount** | **float** | Amount | [optional] +**amount_adult** | **float** | Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount_child** | **float** | Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) | Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based) | [optional] +**amount_type** | **str** | Amount type. They mean:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>percentage</td><td>Percentage of Total Amount</td></tr> <tr><td>fixed</td><td>Fixed per Room Night / Item</td></tr> <tr><td>fixed_per_person</td><td>Fixed per Person per Night</td></tr> <tr><td>fixed_per_accomodation</td><td>Fixed per Accomodation</td></tr> <tr><td>fixed_per_reservation</td><td>Fixed per Reservation</td></tr> <tr><td>percentage_rate_based</td><td>Rate-based</td></tr> </table> | [optional] +**available_for** | **List[str]** | Where this tax/fee is available?<br/>They mean:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>product</td><td>Items</td></tr> <tr><td>rate</td><td>Reservations</td></tr> <tr><td>fee</td><td>Fees -- this tax is charged on top of some fees</td></tr> </table> | [optional] +**fees_charged** | **List[int]** | List of Fee IDs charged by the current tax. Only exists if type = tax. | [optional] +**inclusive_or_exclusive** | **str** | If this tax/fee is inclusive or exclusive | [optional] +**is_deleted** | **bool** | Flag indicating if tax was deleted from the system | [optional] +**child_id** | **str** | ID of the tax or fee that replaced current one | [optional] +**created_at** | **str** | Date when tax or fee was created in the system | [optional] +**expired_at** | **str** | Date when tax or fee was expired | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInner from a JSON string +get_taxes_and_fees_response_data_inner_instance = GetTaxesAndFeesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_dict = get_taxes_and_fees_response_data_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInner from a dict +get_taxes_and_fees_response_data_inner_from_dict = GetTaxesAndFeesResponseDataInner.from_dict(get_taxes_and_fees_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md new file mode 100644 index 0000000..4a103e3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md @@ -0,0 +1,30 @@ +# GetTaxesAndFeesResponseDataInnerAmountRateBasedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate** | **float** | Maximum rate for which this amount is valid | [optional] +**percentage** | **float** | Percentage applied for the rate | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from a JSON string +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_instance = GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_dict = get_taxes_and_fees_response_data_inner_amount_rate_based_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from a dict +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_from_dict = GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(get_taxes_and_fees_response_data_inner_amount_rate_based_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md b/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md new file mode 100644 index 0000000..4569488 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md @@ -0,0 +1,33 @@ +# GetTransactionsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetTransactionsResponseDataInner]**](GetTransactionsResponseDataInner.md) | Transaction list covering the date range specified | [optional] +**count** | **int** | Number of results returned, based on pagination and filter parameters | [optional] +**total** | **int** | Total count of results, based on filter parameters | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTransactionsResponse from a JSON string +get_transactions_response_instance = GetTransactionsResponse.from_json(json) +# print the JSON string representation of the object +print(GetTransactionsResponse.to_json()) + +# convert the object into a dict +get_transactions_response_dict = get_transactions_response_instance.to_dict() +# create an instance of GetTransactionsResponse from a dict +get_transactions_response_from_dict = GetTransactionsResponse.from_dict(get_transactions_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md new file mode 100644 index 0000000..e9214f7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md @@ -0,0 +1,60 @@ +# GetTransactionsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**reservation_id** | **str** | Reservation ID | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID | [optional] +**house_account_id** | **str** | House Account ID | [optional] +**house_account_name** | **str** | House Account Name | [optional] +**guest_id** | **str** | Guest ID | [optional] +**property_name** | **str** | Property Name | [optional] +**transaction_date_time** | **datetime** | DateTime that the transaction was stored | [optional] +**transaction_date_time_utc** | **datetime** | DateTime that the transaction was stored, in UTC timezone | [optional] +**transaction_modified_date_time** | **datetime** | DateTime that the transaction was last modified | [optional] +**transaction_modified_date_time_utc** | **datetime** | DateTime that the transaction was last modified, in UTC timezone | [optional] +**guest_check_in** | **date** | Reservation Check-in date | [optional] +**guest_check_out** | **date** | Reservation Check-out date | [optional] +**room_type_id** | **str** | ID of the room type | [optional] +**room_type_name** | **str** | Name of the room type | [optional] +**room_name** | **str** | Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room. | [optional] +**guest_name** | **str** | Name of the first guest of the reservation | [optional] +**description** | **str** | Description of the transaction | [optional] +**category** | **str** | Category of the transaction | [optional] +**transaction_code** | **str** | Transaction identifier that can be used, or left blank | [optional] +**notes** | **str** | If any special information needs to be added to the transaction, it will be in this field | [optional] +**quantity** | **int** | | [optional] +**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] +**currency** | **str** | Currency of the transaction | [optional] +**user_name** | **str** | User responsible for creating the transaction | [optional] +**transaction_type** | **str** | Consolidated transaction type | [optional] +**transaction_category** | **str** | Transaction category | [optional] +**item_category_name** | **str** | Item category name | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] +**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] +**card_type** | **str** | Abbreviated name of credit card type | [optional] +**is_deleted** | **bool** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTransactionsResponseDataInner from a JSON string +get_transactions_response_data_inner_instance = GetTransactionsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetTransactionsResponseDataInner.to_json()) + +# convert the object into a dict +get_transactions_response_data_inner_dict = get_transactions_response_data_inner_instance.to_dict() +# create an instance of GetTransactionsResponseDataInner from a dict +get_transactions_response_data_inner_from_dict = GetTransactionsResponseDataInner.from_dict(get_transactions_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md b/cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md new file mode 100644 index 0000000..3c1242c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md @@ -0,0 +1,34 @@ +# GetUserinfoResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | ID of user | [optional] +**first_name** | **str** | Authorized users' first name. | [optional] +**last_name** | **str** | Authorized users' last name. | [optional] +**email** | **str** | Authorized users' email. | [optional] +**acl** | **List[str]** | Authorized users' access control list. | [optional] +**roles** | [**List[GetUserinfoResponseRolesInner]**](GetUserinfoResponseRolesInner.md) | Authorized users' role information. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUserinfoResponse from a JSON string +get_userinfo_response_instance = GetUserinfoResponse.from_json(json) +# print the JSON string representation of the object +print(GetUserinfoResponse.to_json()) + +# convert the object into a dict +get_userinfo_response_dict = get_userinfo_response_instance.to_dict() +# create an instance of GetUserinfoResponse from a dict +get_userinfo_response_from_dict = GetUserinfoResponse.from_dict(get_userinfo_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md b/cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md new file mode 100644 index 0000000..78ffdf8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md @@ -0,0 +1,31 @@ +# GetUserinfoResponseRolesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID of the role. | [optional] +**name** | **str** | Name of the role. | [optional] +**description** | **str** | Description of the role. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUserinfoResponseRolesInner from a JSON string +get_userinfo_response_roles_inner_instance = GetUserinfoResponseRolesInner.from_json(json) +# print the JSON string representation of the object +print(GetUserinfoResponseRolesInner.to_json()) + +# convert the object into a dict +get_userinfo_response_roles_inner_dict = get_userinfo_response_roles_inner_instance.to_dict() +# create an instance of GetUserinfoResponseRolesInner from a dict +get_userinfo_response_roles_inner_from_dict = GetUserinfoResponseRolesInner.from_dict(get_userinfo_response_roles_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetUsersResponse.md b/cloudbeds_pms_v1_2/docs/GetUsersResponse.md new file mode 100644 index 0000000..dedbe1a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetUsersResponse.md @@ -0,0 +1,30 @@ +# GetUsersResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetUsersResponseDataInner]**](GetUsersResponseDataInner.md) | Details for the users | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUsersResponse from a JSON string +get_users_response_instance = GetUsersResponse.from_json(json) +# print the JSON string representation of the object +print(GetUsersResponse.to_json()) + +# convert the object into a dict +get_users_response_dict = get_users_response_instance.to_dict() +# create an instance of GetUsersResponse from a dict +get_users_response_from_dict = GetUsersResponse.from_dict(get_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md new file mode 100644 index 0000000..f2f5c74 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md @@ -0,0 +1,38 @@ +# GetUsersResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | User ID | [optional] +**first_name** | **str** | First Name | [optional] +**last_name** | **str** | Last Name | [optional] +**email** | **str** | Email | [optional] +**language** | **str** | User Language|Property Default Language. See the full list of available language parameters <a target=\"_blank\" href=\"https://integrations.cloudbeds.com/hc/en-us/articles/360007144993-FAQ#methods-and-parameters\">here</a> | [optional] +**user_role** | [**GetUsersResponseDataInnerUserRole**](GetUsersResponseDataInnerUserRole.md) | | [optional] +**active** | **str** | | [optional] +**last_login** | **date** | Date and time of the last login event | [optional] +**property_id** | **str** | Property numeric identifier | [optional] +**organization_id** | **str** | Organization ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUsersResponseDataInner from a JSON string +get_users_response_data_inner_instance = GetUsersResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetUsersResponseDataInner.to_json()) + +# convert the object into a dict +get_users_response_data_inner_dict = get_users_response_data_inner_instance.to_dict() +# create an instance of GetUsersResponseDataInner from a dict +get_users_response_data_inner_from_dict = GetUsersResponseDataInner.from_dict(get_users_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md b/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md new file mode 100644 index 0000000..72b5060 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md @@ -0,0 +1,31 @@ +# GetUsersResponseDataInnerUserRole + +Details for the role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Role's name | [optional] +**description** | **str** | Role's description | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUsersResponseDataInnerUserRole from a JSON string +get_users_response_data_inner_user_role_instance = GetUsersResponseDataInnerUserRole.from_json(json) +# print the JSON string representation of the object +print(GetUsersResponseDataInnerUserRole.to_json()) + +# convert the object into a dict +get_users_response_data_inner_user_role_dict = get_users_response_data_inner_user_role_instance.to_dict() +# create an instance of GetUsersResponseDataInnerUserRole from a dict +get_users_response_data_inner_user_role_from_dict = GetUsersResponseDataInnerUserRole.from_dict(get_users_response_data_inner_user_role_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md b/cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md new file mode 100644 index 0000000..d0f9144 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md @@ -0,0 +1,30 @@ +# GetWebhooksResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetWebhooksResponseDataInner]**](GetWebhooksResponseDataInner.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWebhooksResponse from a JSON string +get_webhooks_response_instance = GetWebhooksResponse.from_json(json) +# print the JSON string representation of the object +print(GetWebhooksResponse.to_json()) + +# convert the object into a dict +get_webhooks_response_dict = get_webhooks_response_instance.to_dict() +# create an instance of GetWebhooksResponse from a dict +get_webhooks_response_from_dict = GetWebhooksResponse.from_dict(get_webhooks_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md new file mode 100644 index 0000000..0e1e301 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md @@ -0,0 +1,34 @@ +# GetWebhooksResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Subscription ID | [optional] +**key** | [**GetWebhooksResponseDataInnerKey**](GetWebhooksResponseDataInnerKey.md) | | [optional] +**event** | [**GetWebhooksResponseDataInnerEvent**](GetWebhooksResponseDataInnerEvent.md) | | [optional] +**owner** | [**GetWebhooksResponseDataInnerOwner**](GetWebhooksResponseDataInnerOwner.md) | | [optional] +**subscription_type** | **str** | Subscription Type (Webhook) | [optional] +**subscription_data** | [**GetWebhooksResponseDataInnerSubscriptionData**](GetWebhooksResponseDataInnerSubscriptionData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWebhooksResponseDataInner from a JSON string +get_webhooks_response_data_inner_instance = GetWebhooksResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetWebhooksResponseDataInner.to_json()) + +# convert the object into a dict +get_webhooks_response_data_inner_dict = get_webhooks_response_data_inner_instance.to_dict() +# create an instance of GetWebhooksResponseDataInner from a dict +get_webhooks_response_data_inner_from_dict = GetWebhooksResponseDataInner.from_dict(get_webhooks_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md new file mode 100644 index 0000000..a85f401 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md @@ -0,0 +1,31 @@ +# GetWebhooksResponseDataInnerEvent + +Event for which the subscription was created + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entity** | **str** | Entity which the event belongs to | [optional] +**action** | **str** | Action which the event represents | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWebhooksResponseDataInnerEvent from a JSON string +get_webhooks_response_data_inner_event_instance = GetWebhooksResponseDataInnerEvent.from_json(json) +# print the JSON string representation of the object +print(GetWebhooksResponseDataInnerEvent.to_json()) + +# convert the object into a dict +get_webhooks_response_data_inner_event_dict = get_webhooks_response_data_inner_event_instance.to_dict() +# create an instance of GetWebhooksResponseDataInnerEvent from a dict +get_webhooks_response_data_inner_event_from_dict = GetWebhooksResponseDataInnerEvent.from_dict(get_webhooks_response_data_inner_event_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md new file mode 100644 index 0000000..8c538fc --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md @@ -0,0 +1,31 @@ +# GetWebhooksResponseDataInnerKey + +Subscription Key object (User, Property or Association and it's ID) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Subscription Key type | [optional] +**id** | **str** | Subscription Key ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWebhooksResponseDataInnerKey from a JSON string +get_webhooks_response_data_inner_key_instance = GetWebhooksResponseDataInnerKey.from_json(json) +# print the JSON string representation of the object +print(GetWebhooksResponseDataInnerKey.to_json()) + +# convert the object into a dict +get_webhooks_response_data_inner_key_dict = get_webhooks_response_data_inner_key_instance.to_dict() +# create an instance of GetWebhooksResponseDataInnerKey from a dict +get_webhooks_response_data_inner_key_from_dict = GetWebhooksResponseDataInnerKey.from_dict(get_webhooks_response_data_inner_key_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md new file mode 100644 index 0000000..192db64 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md @@ -0,0 +1,31 @@ +# GetWebhooksResponseDataInnerOwner + +Subscription Owner object (User, API Client, etc, and it's ID) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Subscription Owner type | [optional] +**id** | **str** | Subscription Owner ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWebhooksResponseDataInnerOwner from a JSON string +get_webhooks_response_data_inner_owner_instance = GetWebhooksResponseDataInnerOwner.from_json(json) +# print the JSON string representation of the object +print(GetWebhooksResponseDataInnerOwner.to_json()) + +# convert the object into a dict +get_webhooks_response_data_inner_owner_dict = get_webhooks_response_data_inner_owner_instance.to_dict() +# create an instance of GetWebhooksResponseDataInnerOwner from a dict +get_webhooks_response_data_inner_owner_from_dict = GetWebhooksResponseDataInnerOwner.from_dict(get_webhooks_response_data_inner_owner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md new file mode 100644 index 0000000..cd2f096 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md @@ -0,0 +1,30 @@ +# GetWebhooksResponseDataInnerSubscriptionData + +Data used on the subscription. For webhooks, just the endpoint URL. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | The endpoint | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetWebhooksResponseDataInnerSubscriptionData from a JSON string +get_webhooks_response_data_inner_subscription_data_instance = GetWebhooksResponseDataInnerSubscriptionData.from_json(json) +# print the JSON string representation of the object +print(GetWebhooksResponseDataInnerSubscriptionData.to_json()) + +# convert the object into a dict +get_webhooks_response_data_inner_subscription_data_dict = get_webhooks_response_data_inner_subscription_data_instance.to_dict() +# create an instance of GetWebhooksResponseDataInnerSubscriptionData from a dict +get_webhooks_response_data_inner_subscription_data_from_dict = GetWebhooksResponseDataInnerSubscriptionData.from_dict(get_webhooks_response_data_inner_subscription_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GroupsApi.md b/cloudbeds_pms_v1_2/docs/GroupsApi.md new file mode 100644 index 0000000..fa61fb3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GroupsApi.md @@ -0,0 +1,487 @@ +# cloudbeds_pms_v1_2.GroupsApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_group_notes_get**](GroupsApi.md#get_group_notes_get) | **GET** /getGroupNotes | getGroupNotes +[**get_groups_get**](GroupsApi.md#get_groups_get) | **GET** /getGroups | getGroups +[**patch_group_post**](GroupsApi.md#patch_group_post) | **POST** /patchGroup | patchGroup +[**post_group_note_post**](GroupsApi.md#post_group_note_post) | **POST** /postGroupNote | postGroupNote +[**put_group_post**](GroupsApi.md#put_group_post) | **POST** /putGroup | putGroup + + +# **get_group_notes_get** +> GetGroupNotesResponse get_group_notes_get(property_id, group_code, page_size, page_number) + +getGroupNotes + +Returns group notes + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + property_id = 'property_id_example' # str | Property ID + group_code = 'group_code_example' # str | Group code + page_size = 56 # int | Number of groups notes to return per page (min: 1, max: 100) + page_number = 56 # int | Which page in the results to access + + try: + # getGroupNotes + api_response = api_instance.get_group_notes_get(property_id, group_code, page_size, page_number) + print("The response of GroupsApi->get_group_notes_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupsApi->get_group_notes_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | + **group_code** | **str**| Group code | + **page_size** | **int**| Number of groups notes to return per page (min: 1, max: 100) | + **page_number** | **int**| Which page in the results to access | + +### Return type + +[**GetGroupNotesResponse**](GetGroupNotesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_groups_get** +> GetGroupsResponse get_groups_get(property_id, group_code, type, status, created_from, created_to, page_size, page_number) + +getGroups + +Returns groups of allotment block + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + property_id = 'property_id_example' # str | Property ID + group_code = 'group_code_example' # str | Unique ID for a group + type = 'type_example' # str | The type of group + status = 'status_example' # str | Group status + created_from = '2013-10-20T19:20:30+01:00' # datetime | Datetime (lower limit) to be queried + created_to = '2013-10-20T19:20:30+01:00' # datetime | Datetime (upper limit) to be queried + page_size = 56 # int | Number of groups to return per page (min: 1, max: 100) + page_number = 56 # int | Which page in the results to access + + try: + # getGroups + api_response = api_instance.get_groups_get(property_id, group_code, type, status, created_from, created_to, page_size, page_number) + print("The response of GroupsApi->get_groups_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupsApi->get_groups_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | + **group_code** | **str**| Unique ID for a group | + **type** | **str**| The type of group | + **status** | **str**| Group status | + **created_from** | **datetime**| Datetime (lower limit) to be queried | + **created_to** | **datetime**| Datetime (upper limit) to be queried | + **page_size** | **int**| Number of groups to return per page (min: 1, max: 100) | + **page_number** | **int**| Which page in the results to access | + +### Return type + +[**GetGroupsResponse**](GetGroupsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_group_post** +> PostPatchGroupResponse patch_group_post(group_code=group_code, property_id=property_id, name=name, type=type, status=status, source_id=source_id, address1=address1, address2=address2, city=city, zip=zip, state=state) + +patchGroup + +Updates an existing group with information provided. At least one information field is required for this call. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + group_code = 'group_code_example' # str | code for a group (optional) + property_id = 'property_id_example' # str | Property ID (optional) + name = 'name_example' # str | Name for a group (optional) + type = 'type_example' # str | The type of group (optional) + status = 'status_example' # str | Group status (optional) + source_id = 'source_id_example' # str | Source ID for a group (optional) + address1 = 'address1_example' # str | Address line 1 for a group (optional) + address2 = 'address2_example' # str | Address line 2 for a group (optional) + city = 'city_example' # str | City for a group (optional) + zip = 'zip_example' # str | Zip for a group (optional) + state = 'state_example' # str | State for a group (optional) + + try: + # patchGroup + api_response = api_instance.patch_group_post(group_code=group_code, property_id=property_id, name=name, type=type, status=status, source_id=source_id, address1=address1, address2=address2, city=city, zip=zip, state=state) + print("The response of GroupsApi->patch_group_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupsApi->patch_group_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_code** | **str**| code for a group | [optional] + **property_id** | **str**| Property ID | [optional] + **name** | **str**| Name for a group | [optional] + **type** | **str**| The type of group | [optional] + **status** | **str**| Group status | [optional] + **source_id** | **str**| Source ID for a group | [optional] + **address1** | **str**| Address line 1 for a group | [optional] + **address2** | **str**| Address line 2 for a group | [optional] + **city** | **str**| City for a group | [optional] + **zip** | **str**| Zip for a group | [optional] + **state** | **str**| State for a group | [optional] + +### Return type + +[**PostPatchGroupResponse**](PostPatchGroupResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_group_note_post** +> PostGroupNoteResponse post_group_note_post(property_id=property_id, group_code=group_code, group_note=group_note) + +postGroupNote + +Adds a group note + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + group_code = 'group_code_example' # str | Group code (optional) + group_note = 'group_note_example' # str | Group note (optional) + + try: + # postGroupNote + api_response = api_instance.post_group_note_post(property_id=property_id, group_code=group_code, group_note=group_note) + print("The response of GroupsApi->post_group_note_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupsApi->post_group_note_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **group_code** | **str**| Group code | [optional] + **group_note** | **str**| Group note | [optional] + +### Return type + +[**PostGroupNoteResponse**](PostGroupNoteResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_group_post** +> PostPutGroupResponse put_group_post(property_id=property_id, name=name, type=type, status=status, commission_type=commission_type, source_id=source_id, address1=address1, address2=address2, city=city, zip=zip, state=state) + +putGroup + +Adds a group to the property. Please note that the default setting for 'Route to Group Folio' will be 'No,' and the 'Reservation Folio Configuration' will be set as the default folio configuration. You can edit these settings through the user interface (UI). + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + name = 'name_example' # str | Name for a group (optional) + type = 'type_example' # str | The type of group (optional) + status = 'status_example' # str | Group status (optional) + commission_type = 'commission_type_example' # str | Commission Type (optional) + source_id = 'source_id_example' # str | Source ID for a group (optional) + address1 = 'address1_example' # str | Address line 1 for a group (optional) + address2 = 'address2_example' # str | Address line 2 for a group (optional) + city = 'city_example' # str | City for a group (optional) + zip = 'zip_example' # str | Zip for a group (optional) + state = 'state_example' # str | State for a group (optional) + + try: + # putGroup + api_response = api_instance.put_group_post(property_id=property_id, name=name, type=type, status=status, commission_type=commission_type, source_id=source_id, address1=address1, address2=address2, city=city, zip=zip, state=state) + print("The response of GroupsApi->put_group_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupsApi->put_group_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **name** | **str**| Name for a group | [optional] + **type** | **str**| The type of group | [optional] + **status** | **str**| Group status | [optional] + **commission_type** | **str**| Commission Type | [optional] + **source_id** | **str**| Source ID for a group | [optional] + **address1** | **str**| Address line 1 for a group | [optional] + **address2** | **str**| Address line 2 for a group | [optional] + **city** | **str**| City for a group | [optional] + **zip** | **str**| Zip for a group | [optional] + **state** | **str**| State for a group | [optional] + +### Return type + +[**PostPutGroupResponse**](PostPutGroupResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/GuestApi.md b/cloudbeds_pms_v1_2/docs/GuestApi.md new file mode 100644 index 0000000..a16f158 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GuestApi.md @@ -0,0 +1,1374 @@ +# cloudbeds_pms_v1_2.GuestApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_guest_note_delete**](GuestApi.md#delete_guest_note_delete) | **DELETE** /deleteGuestNote | deleteGuestNote +[**get_guest_get**](GuestApi.md#get_guest_get) | **GET** /getGuest | getGuest +[**get_guest_list_get**](GuestApi.md#get_guest_list_get) | **GET** /getGuestList | getGuestList +[**get_guest_notes_get**](GuestApi.md#get_guest_notes_get) | **GET** /getGuestNotes | getGuestNotes +[**get_guests_by_filter_get**](GuestApi.md#get_guests_by_filter_get) | **GET** /getGuestsByFilter | getGuestsByFilter +[**get_guests_by_status_get**](GuestApi.md#get_guests_by_status_get) | **GET** /getGuestsByStatus | getGuestsByStatus +[**get_guests_modified_get**](GuestApi.md#get_guests_modified_get) | **GET** /getGuestsModified | getGuestsModified +[**post_guest_document_post**](GuestApi.md#post_guest_document_post) | **POST** /postGuestDocument | postGuestDocument +[**post_guest_note_post**](GuestApi.md#post_guest_note_post) | **POST** /postGuestNote | postGuestNote +[**post_guest_photo_post**](GuestApi.md#post_guest_photo_post) | **POST** /postGuestPhoto | postGuestPhoto +[**post_guest_post**](GuestApi.md#post_guest_post) | **POST** /postGuest | postGuest +[**post_guests_to_room_post**](GuestApi.md#post_guests_to_room_post) | **POST** /postGuestsToRoom | postGuestsToRoom +[**put_guest_note_put**](GuestApi.md#put_guest_note_put) | **PUT** /putGuestNote | putGuestNote +[**put_guest_put**](GuestApi.md#put_guest_put) | **PUT** /putGuest | putGuest + + +# **delete_guest_note_delete** +> DeleteGuestNoteResponse delete_guest_note_delete(guest_id, note_id, property_id=property_id) + +deleteGuestNote + +Archives an existing guest note. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + guest_id = 'guest_id_example' # str | Guest ID + note_id = 'note_id_example' # str | Note ID + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # deleteGuestNote + api_response = api_instance.delete_guest_note_delete(guest_id, note_id, property_id=property_id) + print("The response of GuestApi->delete_guest_note_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->delete_guest_note_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guest_id** | **str**| Guest ID | + **note_id** | **str**| Note ID | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**DeleteGuestNoteResponse**](DeleteGuestNoteResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_guest_get** +> GetGuestResponse get_guest_get(property_id=property_id, reservation_id=reservation_id, guest_id=guest_id) + +getGuest + +Returns information on a guest specified by the Reservation ID parameter + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. Required if no guestID is provided. (optional) + guest_id = 'guest_id_example' # str | Guest ID. Required if no reservationID is provided. (optional) + + try: + # getGuest + api_response = api_instance.get_guest_get(property_id=property_id, reservation_id=reservation_id, guest_id=guest_id) + print("The response of GuestApi->get_guest_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->get_guest_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation Unique Identifier. Required if no guestID is provided. | [optional] + **guest_id** | **str**| Guest ID. Required if no reservationID is provided. | [optional] + +### Return type + +[**GetGuestResponse**](GetGuestResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_guest_list_get** +> GetGuestListResponse get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) + +getGuestList + +Returns a list of guests, ordered by modification date ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) + results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter guests result, based on latest creation/modification date (optional) + results_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter guests result, based on latest creation/modification date (optional) + check_in_from = '2013-10-20' # date | Filters guests result to return only guests with check-in date range starting on this date (optional) + check_in_to = '2013-10-20' # date | Filters guests result to return only guests with check-in date range ending on this date (optional) + check_out_from = '2013-10-20' # date | Filters guests result to return only guests with check-out date range starting on this date (optional) + check_out_to = '2013-10-20' # date | Filters guests result to return only guests with check-out date range ending on this date (optional) + status = 'status_example' # str | Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed (optional) + sort_by = modification # str | Sort By parameter (optional) (default to modification) + include_guest_info = False # bool | If API response should return with more of Guest's information (optional) (default to False) + exclude_secondary_guests = False # bool | If true, response only returns main guest's (optional) (default to False) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + + try: + # getGuestList + api_response = api_instance.get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) + print("The response of GuestApi->get_guest_list_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->get_guest_list_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| List of property IDs, comma-separated, i.e. 37,345,89 | [optional] + **results_from** | **datetime**| Inferior limit datetime, used to filter guests result, based on latest creation/modification date | [optional] + **results_to** | **datetime**| Superior limit datetime, used to filter guests result, based on latest creation/modification date | [optional] + **check_in_from** | **date**| Filters guests result to return only guests with check-in date range starting on this date | [optional] + **check_in_to** | **date**| Filters guests result to return only guests with check-in date range ending on this date | [optional] + **check_out_from** | **date**| Filters guests result to return only guests with check-out date range starting on this date | [optional] + **check_out_to** | **date**| Filters guests result to return only guests with check-out date range ending on this date | [optional] + **status** | **str**| Reservation status <br /> If more than one, send as comma-separated values. i.e. in_progress,confirmed | [optional] + **sort_by** | **str**| Sort By parameter | [optional] [default to modification] + **include_guest_info** | **bool**| If API response should return with more of Guest's information | [optional] [default to False] + **exclude_secondary_guests** | **bool**| If true, response only returns main guest's | [optional] [default to False] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + +### Return type + +[**GetGuestListResponse**](GetGuestListResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_guest_notes_get** +> GetGuestNotesResponse get_guest_notes_get(guest_id, property_id=property_id) + +getGuestNotes + +Retrieves a guest notes + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + guest_id = 'guest_id_example' # str | Guest ID + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getGuestNotes + api_response = api_instance.get_guest_notes_get(guest_id, property_id=property_id) + print("The response of GuestApi->get_guest_notes_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->get_guest_notes_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guest_id** | **str**| Guest ID | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetGuestNotesResponse**](GetGuestNotesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_guests_by_filter_get** +> GetGuestsByFilterResponse get_guests_by_filter_get(status, property_ids=property_ids, reservation_id=reservation_id, room_id=room_id, guest_name=guest_name, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to) + +getGuestsByFilter + +Returns a list of guests matching the selected parameters ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + status = 'status_example' # str | Current guest status + property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) + reservation_id = 'reservation_id_example' # str | (optional) + room_id = 'room_id_example' # str | (optional) + guest_name = 'guest_name_example' # str | (optional) + check_in_from = '2013-10-20' # date | Filters guests result to return only guests with check-in date range starting on this date (optional) + check_in_to = '2013-10-20' # date | Filters guests result to return only guests with check-in date range ending on this date (optional) + check_out_from = '2013-10-20' # date | Filters guests result to return only guests with check-out date range starting on this date (optional) + check_out_to = '2013-10-20' # date | Filters guests result to return only guests with check-out date range ending on this date (optional) + + try: + # getGuestsByFilter + api_response = api_instance.get_guests_by_filter_get(status, property_ids=property_ids, reservation_id=reservation_id, room_id=room_id, guest_name=guest_name, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to) + print("The response of GuestApi->get_guests_by_filter_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->get_guests_by_filter_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **str**| Current guest status | + **property_ids** | **str**| List of property IDs, comma-separated, i.e. 37,345,89 | [optional] + **reservation_id** | **str**| | [optional] + **room_id** | **str**| | [optional] + **guest_name** | **str**| | [optional] + **check_in_from** | **date**| Filters guests result to return only guests with check-in date range starting on this date | [optional] + **check_in_to** | **date**| Filters guests result to return only guests with check-in date range ending on this date | [optional] + **check_out_from** | **date**| Filters guests result to return only guests with check-out date range starting on this date | [optional] + **check_out_to** | **date**| Filters guests result to return only guests with check-out date range ending on this date | [optional] + +### Return type + +[**GetGuestsByFilterResponse**](GetGuestsByFilterResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_guests_by_status_get** +> GetGuestsByStatusResponse get_guests_by_status_get(status, property_id=property_id, results_from=results_from, results_to=results_to, page_number=page_number, page_size=page_size) + +getGuestsByStatus + +Returns a list of guests in the current status (Not Checked In, In House, Checked Out or Cancelled), sorted by modification date. If no date range is passed, it returns all guests with the selected status. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + status = 'status_example' # str | Guest status during the period + property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) + results_from = '2013-10-20T19:20:30+01:00' # datetime | Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value (optional) + results_to = '2013-10-20T19:20:30+01:00' # datetime | Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 20 # int | Results page size. Max = 100 (optional) (default to 20) + + try: + # getGuestsByStatus + api_response = api_instance.get_guests_by_status_get(status, property_id=property_id, results_from=results_from, results_to=results_to, page_number=page_number, page_size=page_size) + print("The response of GuestApi->get_guests_by_status_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->get_guests_by_status_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **str**| Guest status during the period | + **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] + **results_from** | **datetime**| Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value | [optional] + **results_to** | **datetime**| Used to filter guests result, and returns only the guests that were last modified ending on \"resultsTo\" value | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 20] + +### Return type + +[**GetGuestsByStatusResponse**](GetGuestsByStatusResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_guests_modified_get** +> GetGuestsModifiedResponse get_guests_modified_get(property_ids=property_ids, in_house=in_house, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, page_number=page_number, page_size=page_size) + +getGuestsModified + +Returns a list of guests based on their modification date. Note that when a guest checks in or checks out of a room, their record is modified at that time. If no date range is passed, only the records for the current day are returned. Also note that if the guest is assigned to multiple rooms, it will result in multiple records. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) + in_house = False # bool | When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results. (optional) (default to False) + results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter guests result, based on latest creation/modification date (optional) + results_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter guests result, based on latest creation/modification date (optional) + check_in_from = '2013-10-20' # date | Filters guests result to return only guests with check-in date range starting on this date (optional) + check_in_to = '2013-10-20' # date | Filters guests result to return only guests with check-in date range ending on this date (optional) + check_out_from = '2013-10-20' # date | Filters guests result to return only guests with check-out date range starting on this date (optional) + check_out_to = '2013-10-20' # date | Filters guests result to return only guests with check-out date range ending on this date (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + + try: + # getGuestsModified + api_response = api_instance.get_guests_modified_get(property_ids=property_ids, in_house=in_house, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, page_number=page_number, page_size=page_size) + print("The response of GuestApi->get_guests_modified_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->get_guests_modified_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| List of property IDs, comma-separated, i.e. 37,345,89 | [optional] + **in_house** | **bool**| When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results. | [optional] [default to False] + **results_from** | **datetime**| Inferior limit datetime, used to filter guests result, based on latest creation/modification date | [optional] + **results_to** | **datetime**| Superior limit datetime, used to filter guests result, based on latest creation/modification date | [optional] + **check_in_from** | **date**| Filters guests result to return only guests with check-in date range starting on this date | [optional] + **check_in_to** | **date**| Filters guests result to return only guests with check-in date range ending on this date | [optional] + **check_out_from** | **date**| Filters guests result to return only guests with check-out date range starting on this date | [optional] + **check_out_to** | **date**| Filters guests result to return only guests with check-out date range ending on this date | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + +### Return type + +[**GetGuestsModifiedResponse**](GetGuestsModifiedResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_guest_document_post** +> PostGuestDocumentResponse post_guest_document_post(property_id=property_id, guest_id=guest_id, file=file) + +postGuestDocument + +Attaches a document to a guest + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + guest_id = 'guest_id_example' # str | Guest Unique Identifier (optional) + file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) + + try: + # postGuestDocument + api_response = api_instance.post_guest_document_post(property_id=property_id, guest_id=guest_id, file=file) + print("The response of GuestApi->post_guest_document_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->post_guest_document_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **guest_id** | **str**| Guest Unique Identifier | [optional] + **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 100MB | [optional] + +### Return type + +[**PostGuestDocumentResponse**](PostGuestDocumentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_guest_note_post** +> PostGuestNoteResponse post_guest_note_post(property_id=property_id, guest_id=guest_id, guest_note=guest_note, user_id=user_id) + +postGuestNote + +Adds a guest note + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + guest_id = 'guest_id_example' # str | Guest ID (optional) + guest_note = 'guest_note_example' # str | Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. (optional) + user_id = 'user_id_example' # str | User ID Identify the actual user that is posting the note (optional) + + try: + # postGuestNote + api_response = api_instance.post_guest_note_post(property_id=property_id, guest_id=guest_id, guest_note=guest_note, user_id=user_id) + print("The response of GuestApi->post_guest_note_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->post_guest_note_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **guest_id** | **str**| Guest ID | [optional] + **guest_note** | **str**| Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] + **user_id** | **str**| User ID Identify the actual user that is posting the note | [optional] + +### Return type + +[**PostGuestNoteResponse**](PostGuestNoteResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_guest_photo_post** +> PostGuestPhotoResponse post_guest_photo_post(guest_id=guest_id, file=file) + +postGuestPhoto + +Attaches a photo to a guest + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + guest_id = 'guest_id_example' # str | Guest Unique Identifier (optional) + file = None # bytearray | Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB (optional) + + try: + # postGuestPhoto + api_response = api_instance.post_guest_photo_post(guest_id=guest_id, file=file) + print("The response of GuestApi->post_guest_photo_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->post_guest_photo_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guest_id** | **str**| Guest Unique Identifier | [optional] + **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.jpg, *.jpeg, *.png, *.gif</code><br/> Allowed max file size: 15MB | [optional] + +### Return type + +[**PostGuestPhotoResponse**](PostGuestPhotoResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_guest_post** +> PostGuestResponse post_guest_post(property_id=property_id, reservation_id=reservation_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) + +postGuest + +Adds a guest to reservation as an additional guest. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation ID (optional) + guest_first_name = 'guest_first_name_example' # str | (optional) + guest_last_name = 'guest_last_name_example' # str | (optional) + guest_gender = 'guest_gender_example' # str | (optional) + guest_email = 'guest_email_example' # str | (optional) + guest_phone = 'guest_phone_example' # str | (optional) + guest_cell_phone = 'guest_cell_phone_example' # str | (optional) + guest_address1 = 'guest_address1_example' # str | (optional) + guest_address2 = 'guest_address2_example' # str | (optional) + guest_city = 'guest_city_example' # str | (optional) + guest_country = 'guest_country_example' # str | ISO-Code for Country (2 characters) (optional) + guest_state = 'guest_state_example' # str | (optional) + guest_zip = 'guest_zip_example' # str | (optional) + guest_birth_date = '2013-10-20' # date | (optional) + guest_document_type = 'guest_document_type_example' # str | Document Type
dni - Identity card
nie - Residence permit
na - non selection
(optional) + guest_document_number = 'guest_document_number_example' # str | (mandatory when guestDocumentType is sent) (optional) + guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + guest_document_issuing_country = 'guest_document_issuing_country_example' # str | Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) + guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + custom_fields = [cloudbeds_pms_v1_2.PostGuestRequestCustomFieldsInner()] # List[PostGuestRequestCustomFieldsInner] | Only guest custom fields are allowed. (optional) + guest_note = 'guest_note_example' # str | Note to be added to the Guest (optional) + reservation_note = 'reservation_note_example' # str | Note to be added only to the Reservation. (optional) + guest_company_name = 'guest_company_name_example' # str | Guest company name (optional) + guest_company_tax_id = 'guest_company_tax_id_example' # str | Guest company tax ID (optional) + guest_tax_id = 'guest_tax_id_example' # str | Guest tax ID (optional) + + try: + # postGuest + api_response = api_instance.post_guest_post(property_id=property_id, reservation_id=reservation_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) + print("The response of GuestApi->post_guest_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->post_guest_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation ID | [optional] + **guest_first_name** | **str**| | [optional] + **guest_last_name** | **str**| | [optional] + **guest_gender** | **str**| | [optional] + **guest_email** | **str**| | [optional] + **guest_phone** | **str**| | [optional] + **guest_cell_phone** | **str**| | [optional] + **guest_address1** | **str**| | [optional] + **guest_address2** | **str**| | [optional] + **guest_city** | **str**| | [optional] + **guest_country** | **str**| ISO-Code for Country (2 characters) | [optional] + **guest_state** | **str**| | [optional] + **guest_zip** | **str**| | [optional] + **guest_birth_date** | **date**| | [optional] + **guest_document_type** | **str**| Document Type<br /> dni - Identity card<br /> nie - Residence permit<br /> na - non selection<br /> | [optional] + **guest_document_number** | **str**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_issuing_country** | **str**| Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] + **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **custom_fields** | [**List[PostGuestRequestCustomFieldsInner]**](PostGuestRequestCustomFieldsInner.md)| Only guest custom fields are allowed. | [optional] + **guest_note** | **str**| Note to be added to the Guest | [optional] + **reservation_note** | **str**| Note to be added only to the Reservation. | [optional] + **guest_company_name** | **str**| Guest company name | [optional] + **guest_company_tax_id** | **str**| Guest company tax ID | [optional] + **guest_tax_id** | **str**| Guest tax ID | [optional] + +### Return type + +[**PostGuestResponse**](PostGuestResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_guests_to_room_post** +> PostGuestsToRoomResponse post_guests_to_room_post(property_id=property_id, reservation_id=reservation_id, room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, remove_all=remove_all) + +postGuestsToRoom + +Assigns guest(s) to a room in a reservation and adds these guests as additional guests. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation ID (optional) + room_id = 56 # int | Room ID already assigned to Reservation (optional) + guest_ids = 'guest_ids_example' # str | Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89 (optional) + remove_guest_ids = 'remove_guest_ids_example' # str | If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. (optional) + remove_all = True # bool | If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. (optional) + + try: + # postGuestsToRoom + api_response = api_instance.post_guests_to_room_post(property_id=property_id, reservation_id=reservation_id, room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, remove_all=remove_all) + print("The response of GuestApi->post_guests_to_room_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->post_guests_to_room_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation ID | [optional] + **room_id** | **int**| Room ID already assigned to Reservation | [optional] + **guest_ids** | **str**| Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89 | [optional] + **remove_guest_ids** | **str**| If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. | [optional] + **remove_all** | **bool**| If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. | [optional] + +### Return type + +[**PostGuestsToRoomResponse**](PostGuestsToRoomResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_guest_note_put** +> PutGuestNoteResponse put_guest_note_put(property_id=property_id, guest_id=guest_id, note_id=note_id, guest_note=guest_note) + +putGuestNote + +Updates an existing guest note. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + guest_id = 'guest_id_example' # str | Guest ID (optional) + note_id = 'note_id_example' # str | Note ID (optional) + guest_note = 'guest_note_example' # str | Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. (optional) + + try: + # putGuestNote + api_response = api_instance.put_guest_note_put(property_id=property_id, guest_id=guest_id, note_id=note_id, guest_note=guest_note) + print("The response of GuestApi->put_guest_note_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->put_guest_note_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **guest_id** | **str**| Guest ID | [optional] + **note_id** | **str**| Note ID | [optional] + **guest_note** | **str**| Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] + +### Return type + +[**PutGuestNoteResponse**](PutGuestNoteResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_guest_put** +> PutGuestResponse put_guest_put(property_id=property_id, guest_id=guest_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) + +putGuest + +Updates an existing guest with information provided. At least one information field is required for this call. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + guest_id = 'guest_id_example' # str | Valid Guest ID (optional) + guest_first_name = 'guest_first_name_example' # str | (optional) + guest_last_name = 'guest_last_name_example' # str | (optional) + guest_gender = 'guest_gender_example' # str | (optional) + guest_email = 'guest_email_example' # str | (optional) + guest_phone = 'guest_phone_example' # str | (optional) + guest_cell_phone = 'guest_cell_phone_example' # str | (optional) + guest_address1 = 'guest_address1_example' # str | (optional) + guest_address2 = 'guest_address2_example' # str | (optional) + guest_city = 'guest_city_example' # str | (optional) + guest_country = 'guest_country_example' # str | ISO-Code for Country (2 characters) (optional) + guest_state = 'guest_state_example' # str | (optional) + guest_zip = 'guest_zip_example' # str | (optional) + guest_birth_date = '2013-10-20' # date | (optional) + guest_document_type = 'guest_document_type_example' # str | It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
(optional) + guest_document_number = 'guest_document_number_example' # str | (mandatory when guestDocumentType is sent) (optional) + guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + guest_document_issuing_country = 'guest_document_issuing_country_example' # str | ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) + guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + guest_custom_fields = [cloudbeds_pms_v1_2.PutGuestRequestGuestCustomFieldsInner()] # List[PutGuestRequestGuestCustomFieldsInner] | (optional) + guest_company_name = 'guest_company_name_example' # str | Guest company name (optional) + guest_company_tax_id = 'guest_company_tax_id_example' # str | Guest company tax ID (optional) + guest_tax_id = 'guest_tax_id_example' # str | Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. (optional) + + try: + # putGuest + api_response = api_instance.put_guest_put(property_id=property_id, guest_id=guest_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) + print("The response of GuestApi->put_guest_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->put_guest_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **guest_id** | **str**| Valid Guest ID | [optional] + **guest_first_name** | **str**| | [optional] + **guest_last_name** | **str**| | [optional] + **guest_gender** | **str**| | [optional] + **guest_email** | **str**| | [optional] + **guest_phone** | **str**| | [optional] + **guest_cell_phone** | **str**| | [optional] + **guest_address1** | **str**| | [optional] + **guest_address2** | **str**| | [optional] + **guest_city** | **str**| | [optional] + **guest_country** | **str**| ISO-Code for Country (2 characters) | [optional] + **guest_state** | **str**| | [optional] + **guest_zip** | **str**| | [optional] + **guest_birth_date** | **date**| | [optional] + **guest_document_type** | **str**| It is mandatory to send all document information<br /> na - non selection<br /> dni - Identity card<br /> nie - Residence permit<br /> | [optional] + **guest_document_number** | **str**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_issuing_country** | **str**| ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] + **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **guest_custom_fields** | [**List[PutGuestRequestGuestCustomFieldsInner]**](PutGuestRequestGuestCustomFieldsInner.md)| | [optional] + **guest_company_name** | **str**| Guest company name | [optional] + **guest_company_tax_id** | **str**| Guest company tax ID | [optional] + **guest_tax_id** | **str**| Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] + +### Return type + +[**PutGuestResponse**](PutGuestResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/HotelApi.md b/cloudbeds_pms_v1_2/docs/HotelApi.md new file mode 100644 index 0000000..8ff8d7c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/HotelApi.md @@ -0,0 +1,360 @@ +# cloudbeds_pms_v1_2.HotelApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_files_get**](HotelApi.md#get_files_get) | **GET** /getFiles | getFiles +[**get_hotel_details_get**](HotelApi.md#get_hotel_details_get) | **GET** /getHotelDetails | getHotelDetails +[**get_hotels_get**](HotelApi.md#get_hotels_get) | **GET** /getHotels | getHotels +[**post_file_post**](HotelApi.md#post_file_post) | **POST** /postFile | postFile + + +# **get_files_get** +> GetFilesResponse get_files_get(property_id=property_id, sort_by=sort_by, order_by=order_by, name=name, page_number=page_number, page_size=page_size) + +getFiles + +Returns a list of files attached to a hotel, ordered by creation date + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + sort_by = date # str | Sort By parameter (optional) (default to date) + order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) + name = 'name_example' # str | Filter filess by name. Include only with names containing specified string (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + + try: + # getFiles + api_response = api_instance.get_files_get(property_id=property_id, sort_by=sort_by, order_by=order_by, name=name, page_number=page_number, page_size=page_size) + print("The response of HotelApi->get_files_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HotelApi->get_files_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **sort_by** | **str**| Sort By parameter | [optional] [default to date] + **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] + **name** | **str**| Filter filess by name. Include only with names containing specified string | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + +### Return type + +[**GetFilesResponse**](GetFilesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hotel_details_get** +> GetHotelDetailsResponse get_hotel_details_get(property_id=property_id) + +getHotelDetails + +Returns the details of a specific hotel, identified by \"propertyID\" + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getHotelDetails + api_response = api_instance.get_hotel_details_get(property_id=property_id) + print("The response of HotelApi->get_hotel_details_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HotelApi->get_hotel_details_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetHotelDetailsResponse**](GetHotelDetailsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hotels_get** +> GetHotelsResponse get_hotels_get(property_ids=property_ids, property_name=property_name, property_city=property_city, page_number=page_number, page_size=page_size) + +getHotels + +Returns a list of hotels, filtered by the parameters passed ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) + property_name = 'property_name_example' # str | Property name, or part of it (optional) + property_city = 'property_city_example' # str | Property city, or part of it (optional) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 20 # int | Page size (optional) (default to 20) + + try: + # getHotels + api_response = api_instance.get_hotels_get(property_ids=property_ids, property_name=property_name, property_city=property_city, page_number=page_number, page_size=page_size) + print("The response of HotelApi->get_hotels_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HotelApi->get_hotels_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| List of property IDs, comma-separated, i.e. 37,345,89 | [optional] + **property_name** | **str**| Property name, or part of it | [optional] + **property_city** | **str**| Property city, or part of it | [optional] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 20] + +### Return type + +[**GetHotelsResponse**](GetHotelsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_file_post** +> PostFileResponse post_file_post(property_id=property_id, file=file) + +postFile + +Attaches a file to a hotel + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) + + try: + # postFile + api_response = api_instance.post_file_post(property_id=property_id, file=file) + print("The response of HotelApi->post_file_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HotelApi->post_file_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 100MB | [optional] + +### Return type + +[**PostFileResponse**](PostFileResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/HouseAccountApi.md b/cloudbeds_pms_v1_2/docs/HouseAccountApi.md new file mode 100644 index 0000000..51e6974 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/HouseAccountApi.md @@ -0,0 +1,354 @@ +# cloudbeds_pms_v1_2.HouseAccountApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_house_account_details_get**](HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails +[**get_house_account_list_get**](HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList +[**post_new_house_account_post**](HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount +[**put_house_account_status_put**](HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus + + +# **get_house_account_details_get** +> GetHouseAccountDetailsResponse get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) + +getHouseAccountDetails + +Pulls details of specific house account + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) + house_account_id = 'house_account_id_example' # str | House Account ID to get details for + property_id = 'property_id_example' # str | Property ID (optional) + results_from = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) + results_to = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) + + try: + # getHouseAccountDetails + api_response = api_instance.get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) + print("The response of HouseAccountApi->get_house_account_details_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HouseAccountApi->get_house_account_details_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **house_account_id** | **str**| House Account ID to get details for | + **property_id** | **str**| Property ID | [optional] + **results_from** | **date**| date\"] Inferior limit date, used to filter result records | [optional] + **results_to** | **date**| date\"] Inferior limit date, used to filter result records | [optional] + +### Return type + +[**GetHouseAccountDetailsResponse**](GetHouseAccountDetailsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_house_account_list_get** +> GetHouseAccountListResponse get_house_account_list_get(property_id=property_id) + +getHouseAccountList + +Pulls list of active house accounts + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getHouseAccountList + api_response = api_instance.get_house_account_list_get(property_id=property_id) + print("The response of HouseAccountApi->get_house_account_list_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HouseAccountApi->get_house_account_list_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetHouseAccountListResponse**](GetHouseAccountListResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_new_house_account_post** +> PostNewHouseAccountResponse post_new_house_account_post(property_id=property_id, account_name=account_name, is_private=is_private) + +postNewHouseAccount + +Add a new House Account + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + account_name = 'account_name_example' # str | House Account name (optional) + is_private = False # bool | Whether House Account is available only to user (optional) (default to False) + + try: + # postNewHouseAccount + api_response = api_instance.post_new_house_account_post(property_id=property_id, account_name=account_name, is_private=is_private) + print("The response of HouseAccountApi->post_new_house_account_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HouseAccountApi->post_new_house_account_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **account_name** | **str**| House Account name | [optional] + **is_private** | **bool**| Whether House Account is available only to user | [optional] [default to False] + +### Return type + +[**PostNewHouseAccountResponse**](PostNewHouseAccountResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_house_account_status_put** +> PutHouseAccountStatusResponse put_house_account_status_put(property_id=property_id, house_account_id=house_account_id, status=status) + +putHouseAccountStatus + +Change specific house account to either open or closed. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + house_account_id = 'house_account_id_example' # str | House Account ID (optional) + status = 'status_example' # str | House Account status (optional) + + try: + # putHouseAccountStatus + api_response = api_instance.put_house_account_status_put(property_id=property_id, house_account_id=house_account_id, status=status) + print("The response of HouseAccountApi->put_house_account_status_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HouseAccountApi->put_house_account_status_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **house_account_id** | **str**| House Account ID | [optional] + **status** | **str**| House Account status | [optional] + +### Return type + +[**PutHouseAccountStatusResponse**](PutHouseAccountStatusResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/HousekeepingApi.md b/cloudbeds_pms_v1_2/docs/HousekeepingApi.md new file mode 100644 index 0000000..6b46ad1 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/HousekeepingApi.md @@ -0,0 +1,544 @@ +# cloudbeds_pms_v1_2.HousekeepingApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_housekeepers_get**](HousekeepingApi.md#get_housekeepers_get) | **GET** /getHousekeepers | getHousekeepers +[**get_housekeeping_status_get**](HousekeepingApi.md#get_housekeeping_status_get) | **GET** /getHousekeepingStatus | getHousekeepingStatus +[**post_housekeeper_post**](HousekeepingApi.md#post_housekeeper_post) | **POST** /postHousekeeper | postHousekeeper +[**post_housekeeping_assignment_post**](HousekeepingApi.md#post_housekeeping_assignment_post) | **POST** /postHousekeepingAssignment | postHousekeepingAssignment +[**post_housekeeping_status_post**](HousekeepingApi.md#post_housekeeping_status_post) | **POST** /postHousekeepingStatus | postHousekeepingStatus +[**put_housekeeper_put**](HousekeepingApi.md#put_housekeeper_put) | **PUT** /putHousekeeper | putHousekeeper + + +# **get_housekeepers_get** +> GetHousekeepersResponse get_housekeepers_get(property_id=property_id, page_number=page_number, page_size=page_size) + +getHousekeepers + +Returns a list of housekeepers ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 1000 (optional) (default to 100) + + try: + # getHousekeepers + api_response = api_instance.get_housekeepers_get(property_id=property_id, page_number=page_number, page_size=page_size) + print("The response of HousekeepingApi->get_housekeepers_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HousekeepingApi->get_housekeepers_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 1000 | [optional] [default to 100] + +### Return type + +[**GetHousekeepersResponse**](GetHousekeepersResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_housekeeping_status_get** +> GetHousekeepingStatusResponse get_housekeeping_status_get(property_id=property_id, room_type_ids=room_type_ids, housekeeper_ids=housekeeper_ids, room_condition=room_condition, room_occupied=room_occupied, page_number=page_number, page_size=page_size) + +getHousekeepingStatus + +Returns the current date's housekeeping information The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + room_type_ids = 'room_type_ids_example' # str | Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89 (optional) + housekeeper_ids = 'housekeeper_ids_example' # str | Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0. (optional) + room_condition = 'room_condition_example' # str | Condition of room (optional) + room_occupied = True # bool | Flag for current room occupation status (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 5000 (optional) (default to 100) + + try: + # getHousekeepingStatus + api_response = api_instance.get_housekeeping_status_get(property_id=property_id, room_type_ids=room_type_ids, housekeeper_ids=housekeeper_ids, room_condition=room_condition, room_occupied=room_occupied, page_number=page_number, page_size=page_size) + print("The response of HousekeepingApi->get_housekeeping_status_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HousekeepingApi->get_housekeeping_status_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **room_type_ids** | **str**| Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89 | [optional] + **housekeeper_ids** | **str**| Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0. | [optional] + **room_condition** | **str**| Condition of room | [optional] + **room_occupied** | **bool**| Flag for current room occupation status | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 5000 | [optional] [default to 100] + +### Return type + +[**GetHousekeepingStatusResponse**](GetHousekeepingStatusResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_housekeeper_post** +> PostHousekeeperResponse post_housekeeper_post(property_id=property_id, name=name) + +postHousekeeper + +Add New Housekeeper + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + name = 'name_example' # str | Housekeeper name (optional) + + try: + # postHousekeeper + api_response = api_instance.post_housekeeper_post(property_id=property_id, name=name) + print("The response of HousekeepingApi->post_housekeeper_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HousekeepingApi->post_housekeeper_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **name** | **str**| Housekeeper name | [optional] + +### Return type + +[**PostHousekeeperResponse**](PostHousekeeperResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_housekeeping_assignment_post** +> PostHousekeepingAssignmentResponse post_housekeeping_assignment_post(property_id=property_id, room_ids=room_ids, housekeeper_id=housekeeper_id) + +postHousekeepingAssignment + +Assign rooms (single or multiple) to an existing housekeeper + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + room_ids = 'room_ids_example' # str | List of room IDs comma-separated, i.e. 37,345,89 (optional) + housekeeper_id = 'housekeeper_id_example' # str | Housekeeper ID. To designate a room as unassigned, simply set the value to 0. (optional) + + try: + # postHousekeepingAssignment + api_response = api_instance.post_housekeeping_assignment_post(property_id=property_id, room_ids=room_ids, housekeeper_id=housekeeper_id) + print("The response of HousekeepingApi->post_housekeeping_assignment_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HousekeepingApi->post_housekeeping_assignment_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **room_ids** | **str**| List of room IDs comma-separated, i.e. 37,345,89 | [optional] + **housekeeper_id** | **str**| Housekeeper ID. To designate a room as unassigned, simply set the value to 0. | [optional] + +### Return type + +[**PostHousekeepingAssignmentResponse**](PostHousekeepingAssignmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_housekeeping_status_post** +> PostHousekeepingStatusResponse post_housekeeping_status_post(property_id=property_id, room_id=room_id, room_condition=room_condition, do_not_disturb=do_not_disturb, room_comments=room_comments, refused_service=refused_service, vacant_pickup=vacant_pickup) + +postHousekeepingStatus + +Switches the current date's housekeeping status for a specific room ID to either clean or dirty The housekeeping status is calculated basing on the set of fields roomOccupied | roomCondition | roomBlocked | vacantPickup | roomBlocked | refusedService The available statuses are: - Vacant and Dirty (VD): false | “dirty” | false | false | false | false - Occupied and Dirty (OD): true | “dirty” | false | false | false | false - Vacant and Clean (VC): false | “clean” | false | false | false | false - Occupied and Clean (OC): true | “clean” | false | false | false | false - Occupied and Clean Inspected (OCI): true | “inspected” | false | false | false | false - Vacant and Clean Inspected (VCI): false | “inspected” | false | false | false | false - Do Not Disturb (DND): if doNotDisturb is true - Refused Service (RS): if refusedService is true - Out of Order (OOO): if roomBlocked is true - Vacant and Pickup (VP): if vacantPickup is true + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + room_id = 'room_id_example' # str | Room ID (optional) + room_condition = 'room_condition_example' # str | New room condition. If no optional parameters are sent, will switch from current room condition (optional) + do_not_disturb = True # bool | New \\\"do not disturb\\\" status (optional) + room_comments = 'room_comments_example' # str | New room comments. (optional) + refused_service = True # bool | New \\\"refused service\\\" status (optional) + vacant_pickup = True # bool | New \\\"vacant_pickup\\\" status (optional) + + try: + # postHousekeepingStatus + api_response = api_instance.post_housekeeping_status_post(property_id=property_id, room_id=room_id, room_condition=room_condition, do_not_disturb=do_not_disturb, room_comments=room_comments, refused_service=refused_service, vacant_pickup=vacant_pickup) + print("The response of HousekeepingApi->post_housekeeping_status_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HousekeepingApi->post_housekeeping_status_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **room_id** | **str**| Room ID | [optional] + **room_condition** | **str**| New room condition. If no optional parameters are sent, will switch from current room condition | [optional] + **do_not_disturb** | **bool**| New \\\"do not disturb\\\" status | [optional] + **room_comments** | **str**| New room comments. | [optional] + **refused_service** | **bool**| New \\\"refused service\\\" status | [optional] + **vacant_pickup** | **bool**| New \\\"vacant_pickup\\\" status | [optional] + +### Return type + +[**PostHousekeepingStatusResponse**](PostHousekeepingStatusResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_housekeeper_put** +> PutHousekeeperResponse put_housekeeper_put(property_id=property_id, name=name, housekeeper_id=housekeeper_id) + +putHousekeeper + +Edit Housekeeper Details + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + name = 'name_example' # str | Housekeeper name (optional) + housekeeper_id = 'housekeeper_id_example' # str | Housekeeper ID (optional) + + try: + # putHousekeeper + api_response = api_instance.put_housekeeper_put(property_id=property_id, name=name, housekeeper_id=housekeeper_id) + print("The response of HousekeepingApi->put_housekeeper_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HousekeepingApi->put_housekeeper_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **name** | **str**| Housekeeper name | [optional] + **housekeeper_id** | **str**| Housekeeper ID | [optional] + +### Return type + +[**PutHousekeeperResponse**](PutHousekeeperResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/IntegrationApi.md b/cloudbeds_pms_v1_2/docs/IntegrationApi.md new file mode 100644 index 0000000..2c390bc --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/IntegrationApi.md @@ -0,0 +1,614 @@ +# cloudbeds_pms_v1_2.IntegrationApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_webhook_delete**](IntegrationApi.md#delete_webhook_delete) | **DELETE** /deleteWebhook | deleteWebhook +[**get_app_settings_get**](IntegrationApi.md#get_app_settings_get) | **GET** /getAppSettings | getAppSettings +[**get_app_state_get**](IntegrationApi.md#get_app_state_get) | **GET** /getAppState | getAppState +[**get_webhooks_get**](IntegrationApi.md#get_webhooks_get) | **GET** /getWebhooks | getWebhooks +[**post_app_error_post**](IntegrationApi.md#post_app_error_post) | **POST** /postAppError | postAppError +[**post_app_state_post**](IntegrationApi.md#post_app_state_post) | **POST** /postAppState | postAppState +[**post_government_receipt_post**](IntegrationApi.md#post_government_receipt_post) | **POST** /postGovernmentReceipt | postGovernmentReceipt +[**post_webhook_post**](IntegrationApi.md#post_webhook_post) | **POST** /postWebhook | postWebhook + + +# **delete_webhook_delete** +> DeleteWebhookResponse delete_webhook_delete(subscription_id, property_ids=property_ids) + +deleteWebhook + +Remove subscription for webhook. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. ### Group account support + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + subscription_id = 'subscription_id_example' # str | Subscription ID + property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) + + try: + # deleteWebhook + api_response = api_instance.delete_webhook_delete(subscription_id, property_ids=property_ids) + print("The response of IntegrationApi->delete_webhook_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->delete_webhook_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subscription_id** | **str**| Subscription ID | + **property_ids** | **str**| List of property IDs, comma-separated, i.e. 37,345,89 | [optional] + +### Return type + +[**DeleteWebhookResponse**](DeleteWebhookResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_app_settings_get** +> GetAppSettingsResponse get_app_settings_get(property_id=property_id) + +getAppSettings + +Get the current app settings for a property.
+ +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property identifier to be queried (optional) + + try: + # getAppSettings + api_response = api_instance.get_app_settings_get(property_id=property_id) + print("The response of IntegrationApi->get_app_settings_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->get_app_settings_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property identifier to be queried | [optional] + +### Return type + +[**GetAppSettingsResponse**](GetAppSettingsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_app_state_get** +> GetAppStateResponse get_app_state_get(property_id=property_id) + +getAppState + +Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property identifier to be queried (optional) + + try: + # getAppState + api_response = api_instance.get_app_state_get(property_id=property_id) + print("The response of IntegrationApi->get_app_state_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->get_app_state_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property identifier to be queried | [optional] + +### Return type + +[**GetAppStateResponse**](GetAppStateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_webhooks_get** +> GetWebhooksResponse get_webhooks_get(property_id=property_id) + +getWebhooks + +List webhooks for which the API client is subscribed to. + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getWebhooks + api_response = api_instance.get_webhooks_get(property_id=property_id) + print("The response of IntegrationApi->get_webhooks_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->get_webhooks_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetWebhooksResponse**](GetWebhooksResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_app_error_post** +> PostAppErrorResponse post_app_error_post(property_id=property_id, timestamp=timestamp, event_type=event_type, status_code=status_code, description=description, error_message=error_message, entity_type=entity_type, entity_id=entity_id, user_id=user_id) + +postAppError + +Submit the error received by the hybrid integration from the partner to the MFD + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property identifier to be queried (optional) + timestamp = '2013-10-20T19:20:30+01:00' # datetime | Date/time that the error was received by the middleware (optional) + event_type = 'event_type_example' # str | Description for the type of event that caused the error (optional) + status_code = 'status_code_example' # str | HTTP error status code or other error code ID (optional) + description = 'description_example' # str | Description of the error (optional) + error_message = 'error_message_example' # str | Detailed message for error (optional) + entity_type = 'entity_type_example' # str | Type of the entity related to the error (optional) + entity_id = 'entity_id_example' # str | Unique ID for the entity related to the error (optional) + user_id = 'user_id_example' # str | User ID for the user that triggered event that caused the error (optional) + + try: + # postAppError + api_response = api_instance.post_app_error_post(property_id=property_id, timestamp=timestamp, event_type=event_type, status_code=status_code, description=description, error_message=error_message, entity_type=entity_type, entity_id=entity_id, user_id=user_id) + print("The response of IntegrationApi->post_app_error_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->post_app_error_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property identifier to be queried | [optional] + **timestamp** | **datetime**| Date/time that the error was received by the middleware | [optional] + **event_type** | **str**| Description for the type of event that caused the error | [optional] + **status_code** | **str**| HTTP error status code or other error code ID | [optional] + **description** | **str**| Description of the error | [optional] + **error_message** | **str**| Detailed message for error | [optional] + **entity_type** | **str**| Type of the entity related to the error | [optional] + **entity_id** | **str**| Unique ID for the entity related to the error | [optional] + **user_id** | **str**| User ID for the user that triggered event that caused the error | [optional] + +### Return type + +[**PostAppErrorResponse**](PostAppErrorResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_app_state_post** +> PostAppStateResponse post_app_state_post(property_id=property_id, app_state=app_state) + +postAppState + +Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property identifier to be updated (optional) + app_state = 'app_state_example' # str | Current integration state between third-party and property. (optional) + + try: + # postAppState + api_response = api_instance.post_app_state_post(property_id=property_id, app_state=app_state) + print("The response of IntegrationApi->post_app_state_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->post_app_state_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property identifier to be updated | [optional] + **app_state** | **str**| Current integration state between third-party and property. | [optional] + +### Return type + +[**PostAppStateResponse**](PostAppStateResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_government_receipt_post** +> PostGovernmentReceiptResponse post_government_receipt_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, name=name, url=url, amount=amount, identifier=identifier, issue_date=issue_date) + +postGovernmentReceipt + +Add a Government Receipt to a Reservation or House Account + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property identifier to be updated (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier. It, or houseAccountID, is necessary. (optional) + house_account_id = 'house_account_id_example' # str | House Account identifier. It, or reservationID, is necessary. (optional) + name = 'name_example' # str | Name of the document. Will be used to describe document in MFD. (optional) + url = 'url_example' # str | URL for user to download document. (optional) + amount = 3.4 # float | Value of posted document (optional) + identifier = 'identifier_example' # str | Receipt Identifier of document. If not sent, a random identifier will be generated. (optional) + issue_date = '2013-10-20T19:20:30+01:00' # datetime | Datetime of document emission, if not sent, current datetime will be assumed. (optional) + + try: + # postGovernmentReceipt + api_response = api_instance.post_government_receipt_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, name=name, url=url, amount=amount, identifier=identifier, issue_date=issue_date) + print("The response of IntegrationApi->post_government_receipt_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->post_government_receipt_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property identifier to be updated | [optional] + **reservation_id** | **str**| Reservation identifier. It, or houseAccountID, is necessary. | [optional] + **house_account_id** | **str**| House Account identifier. It, or reservationID, is necessary. | [optional] + **name** | **str**| Name of the document. Will be used to describe document in MFD. | [optional] + **url** | **str**| URL for user to download document. | [optional] + **amount** | **float**| Value of posted document | [optional] + **identifier** | **str**| Receipt Identifier of document. If not sent, a random identifier will be generated. | [optional] + **issue_date** | **datetime**| Datetime of document emission, if not sent, current datetime will be assumed. | [optional] + +### Return type + +[**PostGovernmentReceiptResponse**](PostGovernmentReceiptResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_webhook_post** +> PostWebhookResponse post_webhook_post(property_id=property_id, object=object, action=action, endpoint_url=endpoint_url) + +postWebhook + +Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. + +### Example + + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + object = 'object_example' # str | Event object (optional) + action = 'action_example' # str | Event action (optional) + endpoint_url = 'endpoint_url_example' # str | Endpoint URL (optional) + + try: + # postWebhook + api_response = api_instance.post_webhook_post(property_id=property_id, object=object, action=action, endpoint_url=endpoint_url) + print("The response of IntegrationApi->post_webhook_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->post_webhook_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **object** | **str**| Event object | [optional] + **action** | **str**| Event action | [optional] + **endpoint_url** | **str**| Endpoint URL | [optional] + +### Return type + +[**PostWebhookResponse**](PostWebhookResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/InvoicesApi.md b/cloudbeds_pms_v1_2/docs/InvoicesApi.md new file mode 100644 index 0000000..4397ae1 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/InvoicesApi.md @@ -0,0 +1,182 @@ +# cloudbeds_pms_v1_2.InvoicesApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_invoice_get**](InvoicesApi.md#get_invoice_get) | **GET** /getInvoice | getInvoice +[**patch_invoice_post**](InvoicesApi.md#patch_invoice_post) | **POST** /patchInvoice | patchInvoice + + +# **get_invoice_get** +> GetInvoiceResponse get_invoice_get(invoice_id, property_id=property_id) + +getInvoice + +Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.InvoicesApi(api_client) + invoice_id = 'invoice_id_example' # str | Invoice ID + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getInvoice + api_response = api_instance.get_invoice_get(invoice_id, property_id=property_id) + print("The response of InvoicesApi->get_invoice_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InvoicesApi->get_invoice_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **invoice_id** | **str**| Invoice ID | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetInvoiceResponse**](GetInvoiceResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_invoice_post** +> PostPatchInvoiceResponse patch_invoice_post(property_id=property_id, invoice_id=invoice_id, status=status, file=file) + +patchInvoice + +Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.InvoicesApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + invoice_id = 'invoice_id_example' # str | Invoice unique ID (optional) + status = 'status_example' # str | Desired new invoice status (optional) + file = None # bytearray | Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status (optional) + + try: + # patchInvoice + api_response = api_instance.patch_invoice_post(property_id=property_id, invoice_id=invoice_id, status=status, file=file) + print("The response of InvoicesApi->patch_invoice_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InvoicesApi->patch_invoice_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **invoice_id** | **str**| Invoice unique ID | [optional] + **status** | **str**| Desired new invoice status | [optional] + **file** | **bytearray**| Form-based Credit Notes PDF File.<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 10MB<br/> <i>Not required for `failed` status</i> | [optional] + +### Return type + +[**PostPatchInvoiceResponse**](PostPatchInvoiceResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/ItemApi.md b/cloudbeds_pms_v1_2/docs/ItemApi.md new file mode 100644 index 0000000..90b4249 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/ItemApi.md @@ -0,0 +1,952 @@ +# cloudbeds_pms_v1_2.ItemApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**append_custom_item_post**](ItemApi.md#append_custom_item_post) | **POST** /appendCustomItem | appendCustomItem +[**get_item_categories_get**](ItemApi.md#get_item_categories_get) | **GET** /getItemCategories | getItemCategories +[**get_item_get**](ItemApi.md#get_item_get) | **GET** /getItem | getItem +[**get_items_get**](ItemApi.md#get_items_get) | **GET** /getItems | getItems +[**post_custom_item_post**](ItemApi.md#post_custom_item_post) | **POST** /postCustomItem | postCustomItem +[**post_item_category_post**](ItemApi.md#post_item_category_post) | **POST** /postItemCategory | postItemCategory +[**post_item_post**](ItemApi.md#post_item_post) | **POST** /postItem | postItem +[**post_items_to_inventory_post**](ItemApi.md#post_items_to_inventory_post) | **POST** /postItemsToInventory | postItemsToInventory +[**post_void_item_post**](ItemApi.md#post_void_item_post) | **POST** /postVoidItem | postVoidItem +[**put_item_to_inventory_put**](ItemApi.md#put_item_to_inventory_put) | **PUT** /putItemToInventory | putItemToInventory + + +# **append_custom_item_post** +> PostAppendCustomItemResponse append_custom_item_post(property_id=property_id, reservation_id=reservation_id, reference_id=reference_id, sub_reservation_id=sub_reservation_id, room_id=room_id, items=items, sale_date=sale_date, guest_id=guest_id, guest_name=guest_name, payments=payments, item_paid=item_paid) + +appendCustomItem + +Append single, or multiple, custom items and their associated payments to a existing one in a Reservation. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier. Required if no houseAccountID is provided. (optional) + reference_id = 'reference_id_example' # str | partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier (optional) + room_id = 'room_id_example' # str | Room identifier (Ignored if subReservationID exist) (optional) + items = [cloudbeds_pms_v1_2.PostCustomItemRequestItemsInner()] # List[PostCustomItemRequestItemsInner] | list of items will be posted (optional) + sale_date = '2013-10-20T19:20:30+01:00' # datetime | posting date (optional) + guest_id = 'guest_id_example' # str | Guest identifier (optional) + guest_name = 'guest_name_example' # str | (Ignored if guestID exist) (optional) + payments = [cloudbeds_pms_v1_2.PostCustomItemRequestPaymentsInner()] # List[PostCustomItemRequestPaymentsInner] | list of payments If the item is already paid (optional) + item_paid = False # bool | If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) (optional) (default to False) + + try: + # appendCustomItem + api_response = api_instance.append_custom_item_post(property_id=property_id, reservation_id=reservation_id, reference_id=reference_id, sub_reservation_id=sub_reservation_id, room_id=room_id, items=items, sale_date=sale_date, guest_id=guest_id, guest_name=guest_name, payments=payments, item_paid=item_paid) + print("The response of ItemApi->append_custom_item_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->append_custom_item_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier. Required if no houseAccountID is provided. | [optional] + **reference_id** | **str**| partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates | [optional] + **sub_reservation_id** | **str**| Sub Reservation identifier | [optional] + **room_id** | **str**| Room identifier (Ignored if subReservationID exist) | [optional] + **items** | [**List[PostCustomItemRequestItemsInner]**](PostCustomItemRequestItemsInner.md)| list of items will be posted | [optional] + **sale_date** | **datetime**| posting date | [optional] + **guest_id** | **str**| Guest identifier | [optional] + **guest_name** | **str**| (Ignored if guestID exist) | [optional] + **payments** | [**List[PostCustomItemRequestPaymentsInner]**](PostCustomItemRequestPaymentsInner.md)| list of payments If the item is already paid | [optional] + **item_paid** | **bool**| If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) | [optional] [default to False] + +### Return type + +[**PostAppendCustomItemResponse**](PostAppendCustomItemResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_item_categories_get** +> GetItemCategoriesResponse get_item_categories_get(property_id=property_id) + +getItemCategories + +Gets the item category list + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getItemCategories + api_response = api_instance.get_item_categories_get(property_id=property_id) + print("The response of ItemApi->get_item_categories_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->get_item_categories_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetItemCategoriesResponse**](GetItemCategoriesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_item_get** +> GetItemResponse get_item_get(item_id, property_id=property_id) + +getItem + +Gets the details for the one itemID
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + item_id = 'item_id_example' # str | Item identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getItem + api_response = api_instance.get_item_get(item_id, property_id=property_id) + print("The response of ItemApi->get_item_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->get_item_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **item_id** | **str**| Item identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetItemResponse**](GetItemResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_items_get** +> GetItemsResponse get_items_get(property_id=property_id, item_category_id=item_category_id) + +getItems + +Gets all the items and their prices the hotel has created in myfrontdesk
1 only if data.stockInventory = true
2 Taxes, fees and totals will show up only if an item has assigned tax or fee.
+ +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + item_category_id = 'item_category_id_example' # str | Category identifier (optional) + + try: + # getItems + api_response = api_instance.get_items_get(property_id=property_id, item_category_id=item_category_id) + print("The response of ItemApi->get_items_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->get_items_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **item_category_id** | **str**| Category identifier | [optional] + +### Return type + +[**GetItemsResponse**](GetItemsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_custom_item_post** +> PostCustomItemResponse post_custom_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, reference_id=reference_id, sub_reservation_id=sub_reservation_id, room_id=room_id, items=items, sale_date=sale_date, guest_id=guest_id, guest_name=guest_name, payments=payments, item_paid=item_paid) + +postCustomItem + +Adds single, or multiple, custom items and their associated payments to a Reservation or House Account as a single transaction. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier. Required if no houseAccountID or groupCode is provided. (optional) + house_account_id = 'house_account_id_example' # str | House account identifier. Required if no reservationID or groupCode is provided. (optional) + group_code = 'group_code_example' # str | Group identifier. Required if no reservationID or houseAccountID is provided. (optional) + reference_id = 'reference_id_example' # str | partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier (optional) + room_id = 'room_id_example' # str | Room identifier (Ignored if subReservationID exist) (optional) + items = [cloudbeds_pms_v1_2.PostCustomItemRequestItemsInner()] # List[PostCustomItemRequestItemsInner] | list of items will be posted (optional) + sale_date = '2013-10-20T19:20:30+01:00' # datetime | posting date (optional) + guest_id = 'guest_id_example' # str | Guest identifier (optional) + guest_name = 'guest_name_example' # str | (Ignored if guestID exist) (optional) + payments = [cloudbeds_pms_v1_2.PostCustomItemRequestPaymentsInner()] # List[PostCustomItemRequestPaymentsInner] | list of payments If the item is already paid (optional) + item_paid = False # bool | If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) (optional) (default to False) + + try: + # postCustomItem + api_response = api_instance.post_custom_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, reference_id=reference_id, sub_reservation_id=sub_reservation_id, room_id=room_id, items=items, sale_date=sale_date, guest_id=guest_id, guest_name=guest_name, payments=payments, item_paid=item_paid) + print("The response of ItemApi->post_custom_item_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->post_custom_item_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier. Required if no houseAccountID or groupCode is provided. | [optional] + **house_account_id** | **str**| House account identifier. Required if no reservationID or groupCode is provided. | [optional] + **group_code** | **str**| Group identifier. Required if no reservationID or houseAccountID is provided. | [optional] + **reference_id** | **str**| partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates | [optional] + **sub_reservation_id** | **str**| Sub Reservation identifier | [optional] + **room_id** | **str**| Room identifier (Ignored if subReservationID exist) | [optional] + **items** | [**List[PostCustomItemRequestItemsInner]**](PostCustomItemRequestItemsInner.md)| list of items will be posted | [optional] + **sale_date** | **datetime**| posting date | [optional] + **guest_id** | **str**| Guest identifier | [optional] + **guest_name** | **str**| (Ignored if guestID exist) | [optional] + **payments** | [**List[PostCustomItemRequestPaymentsInner]**](PostCustomItemRequestPaymentsInner.md)| list of payments If the item is already paid | [optional] + **item_paid** | **bool**| If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) | [optional] [default to False] + +### Return type + +[**PostCustomItemResponse**](PostCustomItemResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_item_category_post** +> PostItemCategoryResponse post_item_category_post(property_id=property_id, category_name=category_name, category_code=category_code, item_id=item_id, category_color=category_color) + +postItemCategory + +Adds new items category + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + category_name = 'category_name_example' # str | Category name (optional) + category_code = 'category_code_example' # str | Category code (optional) + item_id = [56] # List[int] | Existing ItemIDs to reassign to new category (optional) + category_color = '#ccc' # str | Category color (like #3b7be7) (optional) (default to '#ccc') + + try: + # postItemCategory + api_response = api_instance.post_item_category_post(property_id=property_id, category_name=category_name, category_code=category_code, item_id=item_id, category_color=category_color) + print("The response of ItemApi->post_item_category_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->post_item_category_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **category_name** | **str**| Category name | [optional] + **category_code** | **str**| Category code | [optional] + **item_id** | [**List[int]**](int.md)| Existing ItemIDs to reassign to new category | [optional] + **category_color** | **str**| Category color (like #3b7be7) | [optional] [default to '#ccc'] + +### Return type + +[**PostItemCategoryResponse**](PostItemCategoryResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_item_post** +> PostItemResponse post_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, item_id=item_id, item_quantity=item_quantity, item_price=item_price, item_note=item_note, item_paid=item_paid, sale_date=sale_date, payments=payments) + +postItem + +Adds an item either to a reservation or to a house account. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier. Required if no houseAccountID or groupCode is provided. (optional) + house_account_id = 'house_account_id_example' # str | House account identifier. Required if no reservationID or groupCode is provided. (optional) + group_code = 'group_code_example' # str | Group identifier. Required if no reservationID or houseAccountID is provided. (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier. (optional) + item_id = 'item_id_example' # str | Item identifier (optional) + item_quantity = 56 # int | Items quantity (optional) + item_price = 'item_price_example' # str | Item price, if not sent, items registered price will be used (optional) + item_note = 'item_note_example' # str | Item note (optional) + item_paid = False # bool | If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. (optional) (default to False) + sale_date = '2013-10-20T19:20:30+01:00' # datetime | posting date (optional) + payments = [cloudbeds_pms_v1_2.PostItemRequestPaymentsInner()] # List[PostItemRequestPaymentsInner] | list of payments If the item is already paid (optional) + + try: + # postItem + api_response = api_instance.post_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, item_id=item_id, item_quantity=item_quantity, item_price=item_price, item_note=item_note, item_paid=item_paid, sale_date=sale_date, payments=payments) + print("The response of ItemApi->post_item_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->post_item_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier. Required if no houseAccountID or groupCode is provided. | [optional] + **house_account_id** | **str**| House account identifier. Required if no reservationID or groupCode is provided. | [optional] + **group_code** | **str**| Group identifier. Required if no reservationID or houseAccountID is provided. | [optional] + **sub_reservation_id** | **str**| Sub Reservation identifier. | [optional] + **item_id** | **str**| Item identifier | [optional] + **item_quantity** | **int**| Items quantity | [optional] + **item_price** | **str**| Item price, if not sent, items registered price will be used | [optional] + **item_note** | **str**| Item note | [optional] + **item_paid** | **bool**| If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. | [optional] [default to False] + **sale_date** | **datetime**| posting date | [optional] + **payments** | [**List[PostItemRequestPaymentsInner]**](PostItemRequestPaymentsInner.md)| list of payments If the item is already paid | [optional] + +### Return type + +[**PostItemResponse**](PostItemResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_items_to_inventory_post** +> PostItemsToInventoryResponse post_items_to_inventory_post(item=item) + +postItemsToInventory + +Adds new items batch
¹ only if item.stockInventory = true
+ +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + item = cloudbeds_pms_v1_2.PostItemsToInventoryRequestItem() # PostItemsToInventoryRequestItem | (optional) + + try: + # postItemsToInventory + api_response = api_instance.post_items_to_inventory_post(item=item) + print("The response of ItemApi->post_items_to_inventory_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->post_items_to_inventory_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **item** | [**PostItemsToInventoryRequestItem**](PostItemsToInventoryRequestItem.md)| | [optional] + +### Return type + +[**PostItemsToInventoryResponse**](PostItemsToInventoryResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_void_item_post** +> PostVoidItemResponse post_void_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sold_product_id=sold_product_id) + +postVoidItem + +Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier. reservationID or houseAccountID are necessary. (optional) + house_account_id = 'house_account_id_example' # str | House Account identifier. reservationID or houseAccountID are necessary. (optional) + sold_product_id = 'sold_product_id_example' # str | Item identifier (optional) + + try: + # postVoidItem + api_response = api_instance.post_void_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sold_product_id=sold_product_id) + print("The response of ItemApi->post_void_item_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->post_void_item_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier. reservationID or houseAccountID are necessary. | [optional] + **house_account_id** | **str**| House Account identifier. reservationID or houseAccountID are necessary. | [optional] + **sold_product_id** | **str**| Item identifier | [optional] + +### Return type + +[**PostVoidItemResponse**](PostVoidItemResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_item_to_inventory_put** +> PutItemToInventoryResponse put_item_to_inventory_put(property_id=property_id, item_id=item_id, item_name=item_name, item_type=item_type, item_sku=item_sku, item_code=item_code, item_description=item_description, item_price=item_price, stock_inventory=stock_inventory, item_quantity=item_quantity, reorder_threshold=reorder_threshold, stop_sell_met=stop_sell_met, stop_sell=stop_sell) + +putItemToInventory + +Updates an item with information provided
¹ only if item.stockInventory = true
+ +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + item_id = 'item_id_example' # str | Item identifier (optional) + item_name = 'item_name_example' # str | Item name (optional) + item_type = 'item_type_example' # str | Item type (optional) + item_sku = 'item_sku_example' # str | Item SKU. Will be generated if not set (optional) + item_code = 'item_code_example' # str | Item code (optional) + item_description = 'item_description_example' # str | Item description (optional) + item_price = 3.4 # float | Item price (optional) + stock_inventory = True # bool | Track stock inventory for this item (optional) + item_quantity = 56 # int | ¹ Current amount of item available (optional) + reorder_threshold = 56 # int | ¹ Quantity at which to reorder item (optional) + stop_sell_met = True # bool | ¹ true - Whether item is at or below value set for stop-sell threshold. (optional) + stop_sell = 56 # int | ¹ Quantity at which to stop selling product. (optional) + + try: + # putItemToInventory + api_response = api_instance.put_item_to_inventory_put(property_id=property_id, item_id=item_id, item_name=item_name, item_type=item_type, item_sku=item_sku, item_code=item_code, item_description=item_description, item_price=item_price, stock_inventory=stock_inventory, item_quantity=item_quantity, reorder_threshold=reorder_threshold, stop_sell_met=stop_sell_met, stop_sell=stop_sell) + print("The response of ItemApi->put_item_to_inventory_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->put_item_to_inventory_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **item_id** | **str**| Item identifier | [optional] + **item_name** | **str**| Item name | [optional] + **item_type** | **str**| Item type | [optional] + **item_sku** | **str**| Item SKU. Will be generated if not set | [optional] + **item_code** | **str**| Item code | [optional] + **item_description** | **str**| Item description | [optional] + **item_price** | **float**| Item price | [optional] + **stock_inventory** | **bool**| Track stock inventory for this item | [optional] + **item_quantity** | **int**| ¹ Current amount of item available | [optional] + **reorder_threshold** | **int**| ¹ Quantity at which to reorder item | [optional] + **stop_sell_met** | **bool**| ¹ true - Whether item is at or below value set for stop-sell threshold. | [optional] + **stop_sell** | **int**| ¹ Quantity at which to stop selling product. | [optional] + +### Return type + +[**PutItemToInventoryResponse**](PutItemToInventoryResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/PackageApi.md b/cloudbeds_pms_v1_2/docs/PackageApi.md new file mode 100644 index 0000000..7f66869 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PackageApi.md @@ -0,0 +1,174 @@ +# cloudbeds_pms_v1_2.PackageApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_package_names_get**](PackageApi.md#get_package_names_get) | **GET** /getPackageNames | getPackageNames +[**get_packages_get**](PackageApi.md#get_packages_get) | **GET** /getPackages | getPackages + + +# **get_package_names_get** +> GetPackagesResponse get_package_names_get(property_id=property_id) + +getPackageNames + +Return a list of billing package names for a property + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PackageApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getPackageNames + api_response = api_instance.get_package_names_get(property_id=property_id) + print("The response of PackageApi->get_package_names_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PackageApi->get_package_names_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetPackagesResponse**](GetPackagesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_packages_get** +> GetPackagesResponse get_packages_get(property_id=property_id) + +getPackages + +This efficient method allows you to retrieve the collection of packages associated with a property. Packages here define a group of features that a property has the ability to utilize or access. By invoking this API method, developers will get a comprehensive view of the feature sets that are available and active for a specific property. The getPackages method boasts a seamless execution that offers essential information, vital in enhancing property management, understanding available functionalities and ultimately, optimizing user experience. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PackageApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getPackages + api_response = api_instance.get_packages_get(property_id=property_id) + print("The response of PackageApi->get_packages_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PackageApi->get_packages_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetPackagesResponse**](GetPackagesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/PaymentApi.md b/cloudbeds_pms_v1_2/docs/PaymentApi.md new file mode 100644 index 0000000..5bdadb9 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PaymentApi.md @@ -0,0 +1,869 @@ +# cloudbeds_pms_v1_2.PaymentApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_payment_methods_get**](PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods +[**get_payments_capabilities_get**](PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities +[**get_payments_get**](PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments +[**get_transactions_get**](PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions +[**post_charge_post**](PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge +[**post_credit_card_post**](PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard +[**post_custom_payment_method_post**](PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod +[**post_payment_post**](PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment +[**post_void_payment_post**](PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment + + +# **get_payment_methods_get** +> GetPaymentMethodsResponse get_payment_methods_get(property_id=property_id, lang=lang) + +getPaymentMethods + +Get a list of active methods for a property, or list of properties + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | ID for the property to be queried (optional) + lang = en # str | Language that payment methods name should return (if available). (optional) (default to en) + + try: + # getPaymentMethods + api_response = api_instance.get_payment_methods_get(property_id=property_id, lang=lang) + print("The response of PaymentApi->get_payment_methods_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_payment_methods_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the property to be queried | [optional] + **lang** | **str**| Language that payment methods name should return (if available). | [optional] [default to en] + +### Return type + +[**GetPaymentMethodsResponse**](GetPaymentMethodsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_payments_capabilities_get** +> GetPaymentsCapabilitiesResponse get_payments_capabilities_get(property_id=property_id) + +getPaymentsCapabilities + +Lists the payment capabilities of a given property + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | ID for the property to be queried (optional) + + try: + # getPaymentsCapabilities + api_response = api_instance.get_payments_capabilities_get(property_id=property_id) + print("The response of PaymentApi->get_payments_capabilities_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_payments_capabilities_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the property to be queried | [optional] + +### Return type + +[**GetPaymentsCapabilitiesResponse**](GetPaymentsCapabilitiesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_payments_get** +> GetPaymentsResponse get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) + +getPayments + +Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + reservation_id = 'reservation_id_example' # str | ¹ ID for the reservation to be queried. + house_account_id = 'house_account_id_example' # str | ¹ ID for the house account to be queried. + guest_id = 'guest_id_example' # str | ¹ ID for the guest to be queried. + property_id = 'property_id_example' # str | Property ID (optional) + created_from = '2013-10-20T19:20:30+01:00' # datetime | Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. (optional) + created_to = '2013-10-20T19:20:30+01:00' # datetime | Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. (optional) + include_payment_allocation = False # bool | Adds payment allocation to response, when available. (optional) (default to False) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 100 # int | Page size (optional) (default to 100) + + try: + # getPayments + api_response = api_instance.get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) + print("The response of PaymentApi->get_payments_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_payments_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| ¹ ID for the reservation to be queried. | + **house_account_id** | **str**| ¹ ID for the house account to be queried. | + **guest_id** | **str**| ¹ ID for the guest to be queried. | + **property_id** | **str**| Property ID | [optional] + **created_from** | **datetime**| Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. | [optional] + **created_to** | **datetime**| Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. | [optional] + **include_payment_allocation** | **bool**| Adds payment allocation to response, when available. | [optional] [default to False] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 100] + +### Return type + +[**GetPaymentsResponse**](GetPaymentsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_transactions_get** +> GetTransactionsResponse get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) + +getTransactions + +Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) + include_debit = True # bool | If the response should include debit transactions (optional) (default to True) + include_credit = True # bool | If the response should include credit transactions (optional) (default to True) + include_deleted = False # bool | If the response should include deleted transactions (optional) (default to False) + include_children = False # bool | If the response should include children transactions (requires the parameter transactionIDs) (optional) (default to False) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation Identifier, used to filter transactions result (optional) + room_id = 'room_id_example' # str | Room ID, used to filter transactions result (optional) + guest_id = 'guest_id_example' # str | Guest ID, used to filter transactions result (optional) + house_account_id = 'house_account_id_example' # str | House Account ID, used to filter transactions result (optional) + transaction_ids = 'transaction_ids_example' # str | List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. (optional) + results_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (posted transaction date) (optional) + results_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (posted transaction date) (optional) + modified_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (optional) + modified_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (optional) + created_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. (optional) + created_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. (optional) + transaction_filter = 'simple_transactions,adjustments,adjustments_voids,voids,refunds' # str | Transaction filter is used to filter transactions result (optional) (default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds') + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + sort_by = 'sort_by_example' # str | Sort response results by field (optional) + order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) + + try: + # getTransactions + api_response = api_instance.get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) + print("The response of PaymentApi->get_transactions_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_transactions_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] + **include_debit** | **bool**| If the response should include debit transactions | [optional] [default to True] + **include_credit** | **bool**| If the response should include credit transactions | [optional] [default to True] + **include_deleted** | **bool**| If the response should include deleted transactions | [optional] [default to False] + **include_children** | **bool**| If the response should include children transactions (requires the parameter transactionIDs) | [optional] [default to False] + **reservation_id** | **str**| Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. | [optional] + **sub_reservation_id** | **str**| Sub Reservation Identifier, used to filter transactions result | [optional] + **room_id** | **str**| Room ID, used to filter transactions result | [optional] + **guest_id** | **str**| Guest ID, used to filter transactions result | [optional] + **house_account_id** | **str**| House Account ID, used to filter transactions result | [optional] + **transaction_ids** | **str**| List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. | [optional] + **results_from** | **date**| Inferior limit date, used to filter transactions result (posted transaction date) | [optional] + **results_to** | **date**| Superior limit date, used to filter transactions result (posted transaction date) | [optional] + **modified_from** | **date**| Inferior limit date, used to filter transactions result | [optional] + **modified_to** | **date**| Superior limit date, used to filter transactions result | [optional] + **created_from** | **datetime**| Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. | [optional] + **created_to** | **datetime**| Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. | [optional] + **transaction_filter** | **str**| Transaction filter is used to filter transactions result | [optional] [default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds'] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + **sort_by** | **str**| Sort response results by field | [optional] + **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] + +### Return type + +[**GetTransactionsResponse**](GetTransactionsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_charge_post** +> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) + +postCharge + +Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | (optional) + reservation_id = 'reservation_id_example' # str | Reservation ID (optional) + house_account_id = 'house_account_id_example' # str | House Account ID (optional) + group_id = 'group_id_example' # str | Group ID (optional) + accounts_receivable_ledger_id = 'accounts_receivable_ledger_id_example' # str | Accounts Receivable Ledger ID (optional) + amount = 'amount_example' # str | Amount to charge (optional) + currency = 'currency_example' # str | Currency to charge (optional) + description = 'description_example' # str | Description of the payment to display on folio (optional) + payment_method_id = 'payment_method_id_example' # str | Payment method UUID (optional) + is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) + redirect_url = 'redirect_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) + + try: + # postCharge + api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) + print("The response of PaymentApi->post_charge_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_charge_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| | [optional] + **reservation_id** | **str**| Reservation ID | [optional] + **house_account_id** | **str**| House Account ID | [optional] + **group_id** | **str**| Group ID | [optional] + **accounts_receivable_ledger_id** | **str**| Accounts Receivable Ledger ID | [optional] + **amount** | **str**| Amount to charge | [optional] + **currency** | **str**| Currency to charge | [optional] + **description** | **str**| Description of the payment to display on folio | [optional] + **payment_method_id** | **str**| Payment method UUID | [optional] + **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] + **redirect_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] + +### Return type + +[**PostChargeResponse**](PostChargeResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_credit_card_post** +> PostCardResponse post_credit_card_post(property_id=property_id, reservation_id=reservation_id, card_token=card_token, payment_method_id=payment_method_id, return_url=return_url) + +postCreditCard + +Returns the rate of the room type selected, based on the provided parameters + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | (optional) + reservation_id = 'reservation_id_example' # str | (optional) + card_token = 'card_token_example' # str | cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided (optional) + payment_method_id = 'payment_method_id_example' # str | Payment Method ID provided by the payments SDK (optional) + return_url = 'return_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) + + try: + # postCreditCard + api_response = api_instance.post_credit_card_post(property_id=property_id, reservation_id=reservation_id, card_token=card_token, payment_method_id=payment_method_id, return_url=return_url) + print("The response of PaymentApi->post_credit_card_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_credit_card_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| | [optional] + **reservation_id** | **str**| | [optional] + **card_token** | **str**| cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided | [optional] + **payment_method_id** | **str**| Payment Method ID provided by the payments SDK | [optional] + **return_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] + +### Return type + +[**PostCardResponse**](PostCardResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_custom_payment_method_post** +> PostCustomPaymentMethodResponse post_custom_payment_method_post(property_id=property_id, method=method, method_name=method_name) + +postCustomPaymentMethod + +Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | Property ID, if not sent will retrieve property ID from credentials, only one property ID call. (optional) + method = 'method_example' # str | Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. (optional) + method_name = 'method_name_example' # str | Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. (optional) + + try: + # postCustomPaymentMethod + api_response = api_instance.post_custom_payment_method_post(property_id=property_id, method=method, method_name=method_name) + print("The response of PaymentApi->post_custom_payment_method_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_custom_payment_method_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID, if not sent will retrieve property ID from credentials, only one property ID call. | [optional] + **method** | **str**| Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. | [optional] + **method_name** | **str**| Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. | [optional] + +### Return type + +[**PostCustomPaymentMethodResponse**](PostCustomPaymentMethodResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_payment_post** +> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) + +postPayment + +Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. (optional) + type = 'type_example' # str | Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. (optional) + amount = 3.4 # float | Amount paid on this transaction (optional) + card_type = 'card_type_example' # str | If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" (optional) + description = 'description_example' # str | Note to be added to payment (optional) + is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) + + try: + # postPayment + api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) + print("The response of PaymentApi->post_payment_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_payment_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] + **sub_reservation_id** | **str**| The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. | [optional] + **type** | **str**| Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] + **amount** | **float**| Amount paid on this transaction | [optional] + **card_type** | **str**| If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" | [optional] + **description** | **str**| Note to be added to payment | [optional] + **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] + +### Return type + +[**PostPaymentResponse**](PostPaymentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_void_payment_post** +> PostVoidPaymentResponse post_void_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, payment_id=payment_id) + +postVoidPayment + +Voids a payment (using paymentID) to a specified reservation or house account. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) + payment_id = 'payment_id_example' # str | paymentID of transaction that should be voided. (optional) + + try: + # postVoidPayment + api_response = api_instance.post_void_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, payment_id=payment_id) + print("The response of PaymentApi->post_void_payment_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_void_payment_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] + **payment_id** | **str**| paymentID of transaction that should be voided. | [optional] + +### Return type + +[**PostVoidPaymentResponse**](PostVoidPaymentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md b/cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md new file mode 100644 index 0000000..4629cfb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md @@ -0,0 +1,33 @@ +# PostAccessTokenResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | **str** | Authenticated access token. | [optional] +**token_type** | **str** | The type of the access token authenticated. | [optional] +**expires_in** | **int** | The expiration time of the access token in seconds. | [optional] +**refresh_token** | **str** | A token to refresh your access token without performing the full auth flow. | [optional] +**resources** | [**List[PostAccessTokenResponseResourcesInner]**](PostAccessTokenResponseResourcesInner.md) | List of resources associated with the token during consent | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAccessTokenResponse from a JSON string +post_access_token_response_instance = PostAccessTokenResponse.from_json(json) +# print the JSON string representation of the object +print(PostAccessTokenResponse.to_json()) + +# convert the object into a dict +post_access_token_response_dict = post_access_token_response_instance.to_dict() +# create an instance of PostAccessTokenResponse from a dict +post_access_token_response_from_dict = PostAccessTokenResponse.from_dict(post_access_token_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md b/cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md new file mode 100644 index 0000000..82be470 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md @@ -0,0 +1,30 @@ +# PostAccessTokenResponseResourcesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | A type of associated resource | [optional] +**id** | **str** | Unique ID of associated resource | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAccessTokenResponseResourcesInner from a JSON string +post_access_token_response_resources_inner_instance = PostAccessTokenResponseResourcesInner.from_json(json) +# print the JSON string representation of the object +print(PostAccessTokenResponseResourcesInner.to_json()) + +# convert the object into a dict +post_access_token_response_resources_inner_dict = post_access_token_response_resources_inner_instance.to_dict() +# create an instance of PostAccessTokenResponseResourcesInner from a dict +post_access_token_response_resources_inner_from_dict = PostAccessTokenResponseResourcesInner.from_dict(post_access_token_response_resources_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md b/cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md new file mode 100644 index 0000000..12294c2 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md @@ -0,0 +1,31 @@ +# PostAdjustmentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostAdjustmentResponseData**](PostAdjustmentResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAdjustmentResponse from a JSON string +post_adjustment_response_instance = PostAdjustmentResponse.from_json(json) +# print the JSON string representation of the object +print(PostAdjustmentResponse.to_json()) + +# convert the object into a dict +post_adjustment_response_dict = post_adjustment_response_instance.to_dict() +# create an instance of PostAdjustmentResponse from a dict +post_adjustment_response_from_dict = PostAdjustmentResponse.from_dict(post_adjustment_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md b/cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md new file mode 100644 index 0000000..7a89384 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md @@ -0,0 +1,30 @@ +# PostAdjustmentResponseData + +post Adjustment details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustment_id** | **str** | Adjustment transaction identifier | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAdjustmentResponseData from a JSON string +post_adjustment_response_data_instance = PostAdjustmentResponseData.from_json(json) +# print the JSON string representation of the object +print(PostAdjustmentResponseData.to_json()) + +# convert the object into a dict +post_adjustment_response_data_dict = post_adjustment_response_data_instance.to_dict() +# create an instance of PostAdjustmentResponseData from a dict +post_adjustment_response_data_from_dict = PostAdjustmentResponseData.from_dict(post_adjustment_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md b/cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md new file mode 100644 index 0000000..b21df3a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md @@ -0,0 +1,30 @@ +# PostAppErrorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostAppErrorResponseData**](PostAppErrorResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppErrorResponse from a JSON string +post_app_error_response_instance = PostAppErrorResponse.from_json(json) +# print the JSON string representation of the object +print(PostAppErrorResponse.to_json()) + +# convert the object into a dict +post_app_error_response_dict = post_app_error_response_instance.to_dict() +# create an instance of PostAppErrorResponse from a dict +post_app_error_response_from_dict = PostAppErrorResponse.from_dict(post_app_error_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md b/cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md new file mode 100644 index 0000000..1658d55 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md @@ -0,0 +1,30 @@ +# PostAppErrorResponseData + +Integration state details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_id** | **str** | Unique ID of error recorded in Cloudbeds | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppErrorResponseData from a JSON string +post_app_error_response_data_instance = PostAppErrorResponseData.from_json(json) +# print the JSON string representation of the object +print(PostAppErrorResponseData.to_json()) + +# convert the object into a dict +post_app_error_response_data_dict = post_app_error_response_data_instance.to_dict() +# create an instance of PostAppErrorResponseData from a dict +post_app_error_response_data_from_dict = PostAppErrorResponseData.from_dict(post_app_error_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md b/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md new file mode 100644 index 0000000..e6cce5c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md @@ -0,0 +1,30 @@ +# PostAppPropertySettingResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**data** | [**PostAppPropertySettingResponseData**](PostAppPropertySettingResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppPropertySettingResponse from a JSON string +post_app_property_setting_response_instance = PostAppPropertySettingResponse.from_json(json) +# print the JSON string representation of the object +print(PostAppPropertySettingResponse.to_json()) + +# convert the object into a dict +post_app_property_setting_response_dict = post_app_property_setting_response_instance.to_dict() +# create an instance of PostAppPropertySettingResponse from a dict +post_app_property_setting_response_from_dict = PostAppPropertySettingResponse.from_dict(post_app_property_setting_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md b/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md new file mode 100644 index 0000000..1c827c6 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md @@ -0,0 +1,32 @@ +# PostAppPropertySettingResponseData + +Data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID | [optional] +**key** | **str** | Key | [optional] +**value** | **str** | Value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppPropertySettingResponseData from a JSON string +post_app_property_setting_response_data_instance = PostAppPropertySettingResponseData.from_json(json) +# print the JSON string representation of the object +print(PostAppPropertySettingResponseData.to_json()) + +# convert the object into a dict +post_app_property_setting_response_data_dict = post_app_property_setting_response_data_instance.to_dict() +# create an instance of PostAppPropertySettingResponseData from a dict +post_app_property_setting_response_data_from_dict = PostAppPropertySettingResponseData.from_dict(post_app_property_setting_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppStateResponse.md b/cloudbeds_pms_v1_2/docs/PostAppStateResponse.md new file mode 100644 index 0000000..ce4a013 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAppStateResponse.md @@ -0,0 +1,29 @@ +# PostAppStateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppStateResponse from a JSON string +post_app_state_response_instance = PostAppStateResponse.from_json(json) +# print the JSON string representation of the object +print(PostAppStateResponse.to_json()) + +# convert the object into a dict +post_app_state_response_dict = post_app_state_response_instance.to_dict() +# create an instance of PostAppStateResponse from a dict +post_app_state_response_from_dict = PostAppStateResponse.from_dict(post_app_state_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md b/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md new file mode 100644 index 0000000..f71b4bb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md @@ -0,0 +1,30 @@ +# PostAppendCustomItemResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostAppendCustomItemResponseData**](PostAppendCustomItemResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppendCustomItemResponse from a JSON string +post_append_custom_item_response_instance = PostAppendCustomItemResponse.from_json(json) +# print the JSON string representation of the object +print(PostAppendCustomItemResponse.to_json()) + +# convert the object into a dict +post_append_custom_item_response_dict = post_append_custom_item_response_instance.to_dict() +# create an instance of PostAppendCustomItemResponse from a dict +post_append_custom_item_response_from_dict = PostAppendCustomItemResponse.from_dict(post_append_custom_item_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md b/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md new file mode 100644 index 0000000..d6ff77c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md @@ -0,0 +1,31 @@ +# PostAppendCustomItemResponseData + +Sold product details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppendCustomItemResponseData from a JSON string +post_append_custom_item_response_data_instance = PostAppendCustomItemResponseData.from_json(json) +# print the JSON string representation of the object +print(PostAppendCustomItemResponseData.to_json()) + +# convert the object into a dict +post_append_custom_item_response_data_dict = post_append_custom_item_response_data_instance.to_dict() +# create an instance of PostAppendCustomItemResponseData from a dict +post_append_custom_item_response_data_from_dict = PostAppendCustomItemResponseData.from_dict(post_append_custom_item_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCardResponse.md b/cloudbeds_pms_v1_2/docs/PostCardResponse.md new file mode 100644 index 0000000..fab7577 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCardResponse.md @@ -0,0 +1,30 @@ +# PostCardResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostCardResponseData**](PostCardResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCardResponse from a JSON string +post_card_response_instance = PostCardResponse.from_json(json) +# print the JSON string representation of the object +print(PostCardResponse.to_json()) + +# convert the object into a dict +post_card_response_dict = post_card_response_instance.to_dict() +# create an instance of PostCardResponse from a dict +post_card_response_from_dict = PostCardResponse.from_dict(post_card_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCardResponseData.md b/cloudbeds_pms_v1_2/docs/PostCardResponseData.md new file mode 100644 index 0000000..7ffff7f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCardResponseData.md @@ -0,0 +1,33 @@ +# PostCardResponseData + +Rates details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card_id** | **str** | Card ID | [optional] +**card_number** | **str** | Ending digits of the credit card | [optional] +**card_type** | **str** | Abbreviated name of credit card type | [optional] +**redirect_url** | **str** | null if no 3ds required | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCardResponseData from a JSON string +post_card_response_data_instance = PostCardResponseData.from_json(json) +# print the JSON string representation of the object +print(PostCardResponseData.to_json()) + +# convert the object into a dict +post_card_response_data_dict = post_card_response_data_instance.to_dict() +# create an instance of PostCardResponseData from a dict +post_card_response_data_from_dict = PostCardResponseData.from_dict(post_card_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponse.md b/cloudbeds_pms_v1_2/docs/PostChargeResponse.md new file mode 100644 index 0000000..b822c16 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostChargeResponse.md @@ -0,0 +1,30 @@ +# PostChargeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request was completed | [optional] +**data** | [**PostChargeResponseData**](PostChargeResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostChargeResponse from a JSON string +post_charge_response_instance = PostChargeResponse.from_json(json) +# print the JSON string representation of the object +print(PostChargeResponse.to_json()) + +# convert the object into a dict +post_charge_response_dict = post_charge_response_instance.to_dict() +# create an instance of PostChargeResponse from a dict +post_charge_response_from_dict = PostChargeResponse.from_dict(post_charge_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponseData.md b/cloudbeds_pms_v1_2/docs/PostChargeResponseData.md new file mode 100644 index 0000000..6e60941 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostChargeResponseData.md @@ -0,0 +1,34 @@ +# PostChargeResponseData + +Payment details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_id** | **str** | Payment ID | [optional] +**transaction_id** | **str** | Transaction ID | [optional] +**payment_status** | **str** | the status of the payment, could be 'pending' if the payment requires a next action | [optional] +**payment_type** | **str** | detected payment type. Ex: 'cards', 'oxxo' | [optional] +**next_action** | [**PostChargeResponseDataNextAction**](PostChargeResponseDataNextAction.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostChargeResponseData from a JSON string +post_charge_response_data_instance = PostChargeResponseData.from_json(json) +# print the JSON string representation of the object +print(PostChargeResponseData.to_json()) + +# convert the object into a dict +post_charge_response_data_dict = post_charge_response_data_instance.to_dict() +# create an instance of PostChargeResponseData from a dict +post_charge_response_data_from_dict = PostChargeResponseData.from_dict(post_charge_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md b/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md new file mode 100644 index 0000000..62fc7df --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md @@ -0,0 +1,31 @@ +# PostChargeResponseDataNextAction + +not set if no next action is required + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | The type of next action required. Ex: 'redirect' | [optional] +**details** | [**PostChargeResponseDataNextActionDetails**](PostChargeResponseDataNextActionDetails.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction + +# TODO update the JSON string below +json = "{}" +# create an instance of PostChargeResponseDataNextAction from a JSON string +post_charge_response_data_next_action_instance = PostChargeResponseDataNextAction.from_json(json) +# print the JSON string representation of the object +print(PostChargeResponseDataNextAction.to_json()) + +# convert the object into a dict +post_charge_response_data_next_action_dict = post_charge_response_data_next_action_instance.to_dict() +# create an instance of PostChargeResponseDataNextAction from a dict +post_charge_response_data_next_action_from_dict = PostChargeResponseDataNextAction.from_dict(post_charge_response_data_next_action_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md b/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md new file mode 100644 index 0000000..9c1faa7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md @@ -0,0 +1,31 @@ +# PostChargeResponseDataNextActionDetails + +The details of the next action + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | The URL to redirect the user to | [optional] +**method** | **str** | The HTTP method to use when redirecting the user | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails + +# TODO update the JSON string below +json = "{}" +# create an instance of PostChargeResponseDataNextActionDetails from a JSON string +post_charge_response_data_next_action_details_instance = PostChargeResponseDataNextActionDetails.from_json(json) +# print the JSON string representation of the object +print(PostChargeResponseDataNextActionDetails.to_json()) + +# convert the object into a dict +post_charge_response_data_next_action_details_dict = post_charge_response_data_next_action_details_instance.to_dict() +# create an instance of PostChargeResponseDataNextActionDetails from a dict +post_charge_response_data_next_action_details_from_dict = PostChargeResponseDataNextActionDetails.from_dict(post_charge_response_data_next_action_details_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md new file mode 100644 index 0000000..a3a8c3d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md @@ -0,0 +1,30 @@ +# PostCreateAllotmentBlockNotesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostCreateAllotmentBlockNotesResponseData**](PostCreateAllotmentBlockNotesResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockNotesResponse from a JSON string +post_create_allotment_block_notes_response_instance = PostCreateAllotmentBlockNotesResponse.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockNotesResponse.to_json()) + +# convert the object into a dict +post_create_allotment_block_notes_response_dict = post_create_allotment_block_notes_response_instance.to_dict() +# create an instance of PostCreateAllotmentBlockNotesResponse from a dict +post_create_allotment_block_notes_response_from_dict = PostCreateAllotmentBlockNotesResponse.from_dict(post_create_allotment_block_notes_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md new file mode 100644 index 0000000..bcf8a20 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md @@ -0,0 +1,36 @@ +# PostCreateAllotmentBlockNotesResponseData + +The created note + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Note ID | [optional] +**text** | **str** | Note contents | [optional] +**created_by** | **str** | User Name | [optional] +**created_at** | **datetime** | Creation datetime (format: Y-m-d H:i:s) | [optional] +**updated_at** | **datetime** | Last modification datetime (format: Y-m-d H:i:s) | [optional] +**archived_at** | **datetime** | Archival datetime (format: Y-m-d H:i:s) | [optional] +**status** | **str** | Note status | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockNotesResponseData from a JSON string +post_create_allotment_block_notes_response_data_instance = PostCreateAllotmentBlockNotesResponseData.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockNotesResponseData.to_json()) + +# convert the object into a dict +post_create_allotment_block_notes_response_data_dict = post_create_allotment_block_notes_response_data_instance.to_dict() +# create an instance of PostCreateAllotmentBlockNotesResponseData from a dict +post_create_allotment_block_notes_response_data_from_dict = PostCreateAllotmentBlockNotesResponseData.from_dict(post_create_allotment_block_notes_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md new file mode 100644 index 0000000..0a409e5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md @@ -0,0 +1,29 @@ +# PostCreateAllotmentBlockRequestAllotmentIntervalsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**availability** | [**List[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInner from a JSON string +post_create_allotment_block_request_allotment_intervals_inner_instance = PostCreateAllotmentBlockRequestAllotmentIntervalsInner.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockRequestAllotmentIntervalsInner.to_json()) + +# convert the object into a dict +post_create_allotment_block_request_allotment_intervals_inner_dict = post_create_allotment_block_request_allotment_intervals_inner_instance.to_dict() +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInner from a dict +post_create_allotment_block_request_allotment_intervals_inner_from_dict = PostCreateAllotmentBlockRequestAllotmentIntervalsInner.from_dict(post_create_allotment_block_request_allotment_intervals_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md new file mode 100644 index 0000000..6cb0820 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md @@ -0,0 +1,33 @@ +# PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | the day within the interval (YYYY-MM-DD) | [optional] +**block_allotted** | **int** | Total number of units available for the | [optional] +**rate** | **str** | the price if applicable | [optional] +**guest_pricing** | [**PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) | | [optional] +**restrictions** | [**PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a JSON string +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_instance = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.to_json()) + +# convert the object into a dict +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_dict = post_create_allotment_block_request_allotment_intervals_inner_availability_inner_instance.to_dict() +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a dict +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_from_dict = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_dict(post_create_allotment_block_request_allotment_intervals_inner_availability_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md new file mode 100644 index 0000000..23ce4cf --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md @@ -0,0 +1,35 @@ +# PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + +Guest pricing data if applicable. Note: the number of applicable keys varies here based on the occupancy settings for the room type. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adult1** | **str** | Price for adult 1 | [optional] +**adult2** | **str** | Price for adult 2 | [optional] +**adult3** | **str** | Price for adult 3 | [optional] +**child1** | **str** | Price for child 1 | [optional] +**child2** | **str** | Price for child 2 | [optional] +**child3** | **str** | Price for child 3 | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a JSON string +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_instance = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.to_json()) + +# convert the object into a dict +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_dict = post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_instance.to_dict() +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a dict +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_from_dict = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md new file mode 100644 index 0000000..684c90a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md @@ -0,0 +1,35 @@ +# PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + +Interval restrictions if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_los** | **int** | Minimum length of stay requirement | [optional] +**max_los** | **int** | Maximum length of stay requirement | [optional] +**cut_off_days** | **int** | How many days before arrival should guests be required to book | [optional] +**last_minute_booking_days** | **int** | How many days before the arrival guests are allowed to book | [optional] +**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] +**closed_to_departure** | **int** | If the interval dates are closed for departure | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a JSON string +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_instance = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.to_json()) + +# convert the object into a dict +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_dict = post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_instance.to_dict() +# create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a dict +post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_from_dict = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md new file mode 100644 index 0000000..34b0aed --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md @@ -0,0 +1,32 @@ +# PostCreateAllotmentBlockRequestAutoRelease + +Optional auto-release configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**release_type** | **str** | The type of auto-release | [optional] +**days** | **int** | The number of days prior to the end of the allotment block to begin releasing dates from the allotment block | [optional] +**release_time** | **str** | The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'... | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockRequestAutoRelease from a JSON string +post_create_allotment_block_request_auto_release_instance = PostCreateAllotmentBlockRequestAutoRelease.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockRequestAutoRelease.to_json()) + +# convert the object into a dict +post_create_allotment_block_request_auto_release_dict = post_create_allotment_block_request_auto_release_instance.to_dict() +# create an instance of PostCreateAllotmentBlockRequestAutoRelease from a dict +post_create_allotment_block_request_auto_release_from_dict = PostCreateAllotmentBlockRequestAutoRelease.from_dict(post_create_allotment_block_request_auto_release_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md new file mode 100644 index 0000000..73220f8 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md @@ -0,0 +1,32 @@ +# PostCreateAllotmentBlockResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **date** | Date on or after which each returned allotmentBlock applies | [optional] +**end_date** | **date** | Date on or before which each returned allotmentBlock applies | [optional] +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[PostCreateAllotmentBlockResponseDataInner]**](PostCreateAllotmentBlockResponseDataInner.md) | Allotment Blocks | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockResponse from a JSON string +post_create_allotment_block_response_instance = PostCreateAllotmentBlockResponse.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockResponse.to_json()) + +# convert the object into a dict +post_create_allotment_block_response_dict = post_create_allotment_block_response_instance.to_dict() +# create an instance of PostCreateAllotmentBlockResponse from a dict +post_create_allotment_block_response_from_dict = PostCreateAllotmentBlockResponse.from_dict(post_create_allotment_block_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md new file mode 100644 index 0000000..0de5d40 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md @@ -0,0 +1,41 @@ +# PostCreateAllotmentBlockResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID associated to the allotment block | [optional] +**allotment_block_code** | **str** | Allotment block code | [optional] +**allotment_block_status** | **str** | Allotment block status | [optional] +**allotment_block_name** | **str** | Allotment block name | [optional] +**allotment_block_id** | **str** | Allotment block ID | [optional] +**rate_type** | **str** | Rate type for the allotment block | [optional] +**rate_plan_id** | **str** | Rate plan ID if applicable | [optional] +**allotment_type** | **str** | the type of allotment block | [optional] +**group_id** | **str** | Group profile ID associated to the allotment block | [optional] +**group_code** | **str** | Group profile code associated to the allotment block | [optional] +**is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] +**auto_release** | [**PostCreateAllotmentBlockResponseDataInnerAutoRelease**](PostCreateAllotmentBlockResponseDataInnerAutoRelease.md) | | [optional] +**allotment_intervals** | [**List[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockResponseDataInner from a JSON string +post_create_allotment_block_response_data_inner_instance = PostCreateAllotmentBlockResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockResponseDataInner.to_json()) + +# convert the object into a dict +post_create_allotment_block_response_data_inner_dict = post_create_allotment_block_response_data_inner_instance.to_dict() +# create an instance of PostCreateAllotmentBlockResponseDataInner from a dict +post_create_allotment_block_response_data_inner_from_dict = PostCreateAllotmentBlockResponseDataInner.from_dict(post_create_allotment_block_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md new file mode 100644 index 0000000..a249fab --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md @@ -0,0 +1,33 @@ +# PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type ID | [optional] +**start_date** | **date** | Interval start date | [optional] +**end_date** | **date** | Interval end date | [optional] +**availability** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md) | | [optional] +**restrictions** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a JSON string +post_create_allotment_block_response_data_inner_allotment_intervals_inner_instance = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.to_json()) + +# convert the object into a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_dict = post_create_allotment_block_response_data_inner_allotment_intervals_inner_instance.to_dict() +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_from_dict = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_dict(post_create_allotment_block_response_data_inner_allotment_intervals_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md new file mode 100644 index 0000000..54dc045 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md @@ -0,0 +1,35 @@ +# PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability + +Interval availability data by day in interval + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | Day within interval | [optional] +**block_remaining** | **int** | Number of units remaining for the room type for this day | [optional] +**block_allotted** | **int** | Total number of units available for the room type for this day | [optional] +**block_confirmed** | **int** | Number of units booked for the room type for this day | [optional] +**rate** | **str** | the price | [optional] +**guest_pricing** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability from a JSON string +post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_instance = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.to_json()) + +# convert the object into a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_dict = post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_instance.to_dict() +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability from a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_from_dict = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.from_dict(post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md new file mode 100644 index 0000000..193b786 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md @@ -0,0 +1,35 @@ +# PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing + +Guest pricing data if applicable. Note: the number of results varies here based on the occupancy settings and custom guest pricing for the room type. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adult1** | **str** | Price for adult 1 | [optional] +**adult2** | **str** | Price for adult 2 | [optional] +**adult3** | **str** | Price for adult 3 | [optional] +**child1** | **str** | Price for child 1 | [optional] +**child2** | **str** | Price for child 2 | [optional] +**child3** | **str** | Price for child 3 | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a JSON string +post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing_instance = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.to_json()) + +# convert the object into a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing_dict = post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing_instance.to_dict() +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing_from_dict = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md new file mode 100644 index 0000000..4ee8627 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md @@ -0,0 +1,35 @@ +# PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + +Interval restrictions if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_los** | **int** | Minimum length of stay requirement | [optional] +**max_los** | **int** | Maximum length of stay requirement | [optional] +**cut_off_days** | **int** | How many days before arrival should the guests be required to book | [optional] +**last_minute_booking_days** | **int** | Hoe many days before the arrival guests are allowed to book | [optional] +**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] +**closed_to_departure** | **int** | If the interval dates are closed for departure | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a JSON string +post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_instance = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.to_json()) + +# convert the object into a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_dict = post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_instance.to_dict() +# create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a dict +post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_from_dict = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.from_dict(post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md new file mode 100644 index 0000000..a29b8f4 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md @@ -0,0 +1,32 @@ +# PostCreateAllotmentBlockResponseDataInnerAutoRelease + +auto-release data if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**release_type** | **str** | The type of auto-release | [optional] +**days** | **int** | The number of days prior to the end of the allotment block to begin releasing dates from the allotment block | [optional] +**release_time** | **str** | The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'... | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCreateAllotmentBlockResponseDataInnerAutoRelease from a JSON string +post_create_allotment_block_response_data_inner_auto_release_instance = PostCreateAllotmentBlockResponseDataInnerAutoRelease.from_json(json) +# print the JSON string representation of the object +print(PostCreateAllotmentBlockResponseDataInnerAutoRelease.to_json()) + +# convert the object into a dict +post_create_allotment_block_response_data_inner_auto_release_dict = post_create_allotment_block_response_data_inner_auto_release_instance.to_dict() +# create an instance of PostCreateAllotmentBlockResponseDataInnerAutoRelease from a dict +post_create_allotment_block_response_data_inner_auto_release_from_dict = PostCreateAllotmentBlockResponseDataInnerAutoRelease.from_dict(post_create_allotment_block_response_data_inner_auto_release_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md b/cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md new file mode 100644 index 0000000..dbb0976 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md @@ -0,0 +1,31 @@ +# PostCustomFieldResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostCustomFieldResponseData**](PostCustomFieldResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomFieldResponse from a JSON string +post_custom_field_response_instance = PostCustomFieldResponse.from_json(json) +# print the JSON string representation of the object +print(PostCustomFieldResponse.to_json()) + +# convert the object into a dict +post_custom_field_response_dict = post_custom_field_response_instance.to_dict() +# create an instance of PostCustomFieldResponse from a dict +post_custom_field_response_from_dict = PostCustomFieldResponse.from_dict(post_custom_field_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md b/cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md new file mode 100644 index 0000000..d0909bf --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md @@ -0,0 +1,32 @@ +# PostCustomFieldResponseData + +Field details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field_id** | **str** | Field name | [optional] +**name** | **str** | Field name | [optional] +**shortcode** | **str** | Internal reference and is used for integration purposes such as custom links and the API | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomFieldResponseData from a JSON string +post_custom_field_response_data_instance = PostCustomFieldResponseData.from_json(json) +# print the JSON string representation of the object +print(PostCustomFieldResponseData.to_json()) + +# convert the object into a dict +post_custom_field_response_data_dict = post_custom_field_response_data_instance.to_dict() +# create an instance of PostCustomFieldResponseData from a dict +post_custom_field_response_data_from_dict = PostCustomFieldResponseData.from_dict(post_custom_field_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md new file mode 100644 index 0000000..b765c76 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md @@ -0,0 +1,37 @@ +# PostCustomItemRequestItemsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_item_id** | **str** | Identifier of item. Future calls using the same ID will use previously sent item name and description. Item name/description sent in new request will be ignored. | [optional] +**item_sku** | **str** | Item SKU identifier | [optional] +**item_quantity** | **int** | Items quantity | [optional] +**item_price** | **float** | Item price | [optional] +**item_name** | **str** | Item name | [optional] +**item_category_name** | **str** | Item category name | [optional] +**item_note** | **str** | Item note | [optional] +**item_taxes** | [**List[PostCustomItemRequestItemsInnerItemTaxesInner]**](PostCustomItemRequestItemsInnerItemTaxesInner.md) | list of taxes applied to item | [optional] +**item_fees** | [**List[PostCustomItemRequestItemsInnerItemFeesInner]**](PostCustomItemRequestItemsInnerItemFeesInner.md) | list of fees applied to item | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomItemRequestItemsInner from a JSON string +post_custom_item_request_items_inner_instance = PostCustomItemRequestItemsInner.from_json(json) +# print the JSON string representation of the object +print(PostCustomItemRequestItemsInner.to_json()) + +# convert the object into a dict +post_custom_item_request_items_inner_dict = post_custom_item_request_items_inner_instance.to_dict() +# create an instance of PostCustomItemRequestItemsInner from a dict +post_custom_item_request_items_inner_from_dict = PostCustomItemRequestItemsInner.from_dict(post_custom_item_request_items_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md new file mode 100644 index 0000000..e40b1c0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md @@ -0,0 +1,30 @@ +# PostCustomItemRequestItemsInnerItemFeesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fee_name** | **str** | fee name | [optional] +**fee_value** | **float** | fee value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomItemRequestItemsInnerItemFeesInner from a JSON string +post_custom_item_request_items_inner_item_fees_inner_instance = PostCustomItemRequestItemsInnerItemFeesInner.from_json(json) +# print the JSON string representation of the object +print(PostCustomItemRequestItemsInnerItemFeesInner.to_json()) + +# convert the object into a dict +post_custom_item_request_items_inner_item_fees_inner_dict = post_custom_item_request_items_inner_item_fees_inner_instance.to_dict() +# create an instance of PostCustomItemRequestItemsInnerItemFeesInner from a dict +post_custom_item_request_items_inner_item_fees_inner_from_dict = PostCustomItemRequestItemsInnerItemFeesInner.from_dict(post_custom_item_request_items_inner_item_fees_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md new file mode 100644 index 0000000..a4554a3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md @@ -0,0 +1,30 @@ +# PostCustomItemRequestItemsInnerItemTaxesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tax_name** | **str** | tax name | [optional] +**tax_value** | **float** | tax value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomItemRequestItemsInnerItemTaxesInner from a JSON string +post_custom_item_request_items_inner_item_taxes_inner_instance = PostCustomItemRequestItemsInnerItemTaxesInner.from_json(json) +# print the JSON string representation of the object +print(PostCustomItemRequestItemsInnerItemTaxesInner.to_json()) + +# convert the object into a dict +post_custom_item_request_items_inner_item_taxes_inner_dict = post_custom_item_request_items_inner_item_taxes_inner_instance.to_dict() +# create an instance of PostCustomItemRequestItemsInnerItemTaxesInner from a dict +post_custom_item_request_items_inner_item_taxes_inner_from_dict = PostCustomItemRequestItemsInnerItemTaxesInner.from_dict(post_custom_item_request_items_inner_item_taxes_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md new file mode 100644 index 0000000..bd29c63 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md @@ -0,0 +1,32 @@ +# PostCustomItemRequestPaymentsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_type** | **str** | Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] +**card_type** | **str** | When paymentType is cards or credit, the cardType could be specified (visa, master etc.). The list of types can be found with [getPaymentMethods](#api-Payment-getPaymentMethods) (cardCode inside cardTypes). If omitted, payment is treated as Credit Card Without Details. | [optional] +**amount** | **float** | payment amount | [optional] +**notes** | **str** | payment note | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomItemRequestPaymentsInner from a JSON string +post_custom_item_request_payments_inner_instance = PostCustomItemRequestPaymentsInner.from_json(json) +# print the JSON string representation of the object +print(PostCustomItemRequestPaymentsInner.to_json()) + +# convert the object into a dict +post_custom_item_request_payments_inner_dict = post_custom_item_request_payments_inner_instance.to_dict() +# create an instance of PostCustomItemRequestPaymentsInner from a dict +post_custom_item_request_payments_inner_from_dict = PostCustomItemRequestPaymentsInner.from_dict(post_custom_item_request_payments_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md b/cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md new file mode 100644 index 0000000..72525a4 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md @@ -0,0 +1,30 @@ +# PostCustomItemResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostCustomItemResponseData**](PostCustomItemResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomItemResponse from a JSON string +post_custom_item_response_instance = PostCustomItemResponse.from_json(json) +# print the JSON string representation of the object +print(PostCustomItemResponse.to_json()) + +# convert the object into a dict +post_custom_item_response_dict = post_custom_item_response_instance.to_dict() +# create an instance of PostCustomItemResponse from a dict +post_custom_item_response_from_dict = PostCustomItemResponse.from_dict(post_custom_item_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md b/cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md new file mode 100644 index 0000000..8ca134a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md @@ -0,0 +1,32 @@ +# PostCustomItemResponseData + +Sold product details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] +**notice** | **str** | In case that a referenceID was sent, for second time, this field will alert that nothing was created or updated. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomItemResponseData from a JSON string +post_custom_item_response_data_instance = PostCustomItemResponseData.from_json(json) +# print the JSON string representation of the object +print(PostCustomItemResponseData.to_json()) + +# convert the object into a dict +post_custom_item_response_data_dict = post_custom_item_response_data_instance.to_dict() +# create an instance of PostCustomItemResponseData from a dict +post_custom_item_response_data_from_dict = PostCustomItemResponseData.from_dict(post_custom_item_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md b/cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md new file mode 100644 index 0000000..46fd2b9 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md @@ -0,0 +1,30 @@ +# PostCustomPaymentMethodResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCustomPaymentMethodResponse from a JSON string +post_custom_payment_method_response_instance = PostCustomPaymentMethodResponse.from_json(json) +# print the JSON string representation of the object +print(PostCustomPaymentMethodResponse.to_json()) + +# convert the object into a dict +post_custom_payment_method_response_dict = post_custom_payment_method_response_instance.to_dict() +# create an instance of PostCustomPaymentMethodResponse from a dict +post_custom_payment_method_response_from_dict = PostCustomPaymentMethodResponse.from_dict(post_custom_payment_method_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md b/cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md new file mode 100644 index 0000000..5ea248b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md @@ -0,0 +1,29 @@ +# PostDeleteAllotmentBlockResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostDeleteAllotmentBlockResponse from a JSON string +post_delete_allotment_block_response_instance = PostDeleteAllotmentBlockResponse.from_json(json) +# print the JSON string representation of the object +print(PostDeleteAllotmentBlockResponse.to_json()) + +# convert the object into a dict +post_delete_allotment_block_response_dict = post_delete_allotment_block_response_instance.to_dict() +# create an instance of PostDeleteAllotmentBlockResponse from a dict +post_delete_allotment_block_response_from_dict = PostDeleteAllotmentBlockResponse.from_dict(post_delete_allotment_block_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md b/cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md new file mode 100644 index 0000000..eabe682 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md @@ -0,0 +1,30 @@ +# PostDeleteAppPropertySettingsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**message** | **str** | Response message | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostDeleteAppPropertySettingsResponse from a JSON string +post_delete_app_property_settings_response_instance = PostDeleteAppPropertySettingsResponse.from_json(json) +# print the JSON string representation of the object +print(PostDeleteAppPropertySettingsResponse.to_json()) + +# convert the object into a dict +post_delete_app_property_settings_response_dict = post_delete_app_property_settings_response_instance.to_dict() +# create an instance of PostDeleteAppPropertySettingsResponse from a dict +post_delete_app_property_settings_response_from_dict = PostDeleteAppPropertySettingsResponse.from_dict(post_delete_app_property_settings_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md b/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md new file mode 100644 index 0000000..ab09407 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md @@ -0,0 +1,31 @@ +# PostEmailScheduleRequestSchedule + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reservation_status_change** | [**PostEmailScheduleRequestScheduleReservationStatusChange**](PostEmailScheduleRequestScheduleReservationStatusChange.md) | | [optional] +**reservation_event** | [**PostEmailScheduleRequestScheduleReservationEvent**](PostEmailScheduleRequestScheduleReservationEvent.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule + +# TODO update the JSON string below +json = "{}" +# create an instance of PostEmailScheduleRequestSchedule from a JSON string +post_email_schedule_request_schedule_instance = PostEmailScheduleRequestSchedule.from_json(json) +# print the JSON string representation of the object +print(PostEmailScheduleRequestSchedule.to_json()) + +# convert the object into a dict +post_email_schedule_request_schedule_dict = post_email_schedule_request_schedule_instance.to_dict() +# create an instance of PostEmailScheduleRequestSchedule from a dict +post_email_schedule_request_schedule_from_dict = PostEmailScheduleRequestSchedule.from_dict(post_email_schedule_request_schedule_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md b/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md new file mode 100644 index 0000000..8ae1212 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md @@ -0,0 +1,32 @@ +# PostEmailScheduleRequestScheduleReservationEvent + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**event** | **str** | Specify event that triggers email sending | [optional] +**days** | **int** | Number of days prior to or after the event | [optional] +**time** | **str** | Time of the day | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent + +# TODO update the JSON string below +json = "{}" +# create an instance of PostEmailScheduleRequestScheduleReservationEvent from a JSON string +post_email_schedule_request_schedule_reservation_event_instance = PostEmailScheduleRequestScheduleReservationEvent.from_json(json) +# print the JSON string representation of the object +print(PostEmailScheduleRequestScheduleReservationEvent.to_json()) + +# convert the object into a dict +post_email_schedule_request_schedule_reservation_event_dict = post_email_schedule_request_schedule_reservation_event_instance.to_dict() +# create an instance of PostEmailScheduleRequestScheduleReservationEvent from a dict +post_email_schedule_request_schedule_reservation_event_from_dict = PostEmailScheduleRequestScheduleReservationEvent.from_dict(post_email_schedule_request_schedule_reservation_event_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md b/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md new file mode 100644 index 0000000..3d5746a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md @@ -0,0 +1,30 @@ +# PostEmailScheduleRequestScheduleReservationStatusChange + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | Specify which reservation status change triggers sending the email | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange + +# TODO update the JSON string below +json = "{}" +# create an instance of PostEmailScheduleRequestScheduleReservationStatusChange from a JSON string +post_email_schedule_request_schedule_reservation_status_change_instance = PostEmailScheduleRequestScheduleReservationStatusChange.from_json(json) +# print the JSON string representation of the object +print(PostEmailScheduleRequestScheduleReservationStatusChange.to_json()) + +# convert the object into a dict +post_email_schedule_request_schedule_reservation_status_change_dict = post_email_schedule_request_schedule_reservation_status_change_instance.to_dict() +# create an instance of PostEmailScheduleRequestScheduleReservationStatusChange from a dict +post_email_schedule_request_schedule_reservation_status_change_from_dict = PostEmailScheduleRequestScheduleReservationStatusChange.from_dict(post_email_schedule_request_schedule_reservation_status_change_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md b/cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md new file mode 100644 index 0000000..420c42c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md @@ -0,0 +1,31 @@ +# PostEmailScheduleResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**email_schedule_id** | **str** | The ID of the created email schedule. Only present if success = true | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostEmailScheduleResponse from a JSON string +post_email_schedule_response_instance = PostEmailScheduleResponse.from_json(json) +# print the JSON string representation of the object +print(PostEmailScheduleResponse.to_json()) + +# convert the object into a dict +post_email_schedule_response_dict = post_email_schedule_response_instance.to_dict() +# create an instance of PostEmailScheduleResponse from a dict +post_email_schedule_response_from_dict = PostEmailScheduleResponse.from_dict(post_email_schedule_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md b/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md new file mode 100644 index 0000000..b942eeb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md @@ -0,0 +1,33 @@ +# PostEmailTemplateRequestBody + +Email message body. The body key should be a language code (IETF). A few examples are listed below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**en** | **str** | Email message body in English | [optional] +**es** | **str** | Email message body in Spanish | [optional] +**ru** | **str** | Email message body in Russian | [optional] +**pt_br** | **str** | Email message body in Portuguese | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of PostEmailTemplateRequestBody from a JSON string +post_email_template_request_body_instance = PostEmailTemplateRequestBody.from_json(json) +# print the JSON string representation of the object +print(PostEmailTemplateRequestBody.to_json()) + +# convert the object into a dict +post_email_template_request_body_dict = post_email_template_request_body_instance.to_dict() +# create an instance of PostEmailTemplateRequestBody from a dict +post_email_template_request_body_from_dict = PostEmailTemplateRequestBody.from_dict(post_email_template_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md b/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md new file mode 100644 index 0000000..e8670c5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md @@ -0,0 +1,33 @@ +# PostEmailTemplateRequestSubject + +Email message subject. The subject key should be a language code (IETF). A few examples are listed below. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**en** | **str** | Email message subject in English | [optional] +**es** | **str** | Email message subject in Spanish | [optional] +**ru** | **str** | Email message subject in Russian | [optional] +**pt_br** | **str** | Email message subject in Portuguese | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject + +# TODO update the JSON string below +json = "{}" +# create an instance of PostEmailTemplateRequestSubject from a JSON string +post_email_template_request_subject_instance = PostEmailTemplateRequestSubject.from_json(json) +# print the JSON string representation of the object +print(PostEmailTemplateRequestSubject.to_json()) + +# convert the object into a dict +post_email_template_request_subject_dict = post_email_template_request_subject_instance.to_dict() +# create an instance of PostEmailTemplateRequestSubject from a dict +post_email_template_request_subject_from_dict = PostEmailTemplateRequestSubject.from_dict(post_email_template_request_subject_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md b/cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md new file mode 100644 index 0000000..24e5416 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md @@ -0,0 +1,31 @@ +# PostEmailTemplateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**email_template_id** | **str** | The ID of the created email template. Only present if success = true | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostEmailTemplateResponse from a JSON string +post_email_template_response_instance = PostEmailTemplateResponse.from_json(json) +# print the JSON string representation of the object +print(PostEmailTemplateResponse.to_json()) + +# convert the object into a dict +post_email_template_response_dict = post_email_template_response_instance.to_dict() +# create an instance of PostEmailTemplateResponse from a dict +post_email_template_response_from_dict = PostEmailTemplateResponse.from_dict(post_email_template_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostFileResponse.md b/cloudbeds_pms_v1_2/docs/PostFileResponse.md new file mode 100644 index 0000000..d7e690e --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostFileResponse.md @@ -0,0 +1,31 @@ +# PostFileResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] +**data** | [**PostGuestDocumentResponseData**](PostGuestDocumentResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostFileResponse from a JSON string +post_file_response_instance = PostFileResponse.from_json(json) +# print the JSON string representation of the object +print(PostFileResponse.to_json()) + +# convert the object into a dict +post_file_response_dict = post_file_response_instance.to_dict() +# create an instance of PostFileResponse from a dict +post_file_response_from_dict = PostFileResponse.from_dict(post_file_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md b/cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md new file mode 100644 index 0000000..88a97fd --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md @@ -0,0 +1,30 @@ +# PostGovernmentReceiptResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGovernmentReceiptResponse from a JSON string +post_government_receipt_response_instance = PostGovernmentReceiptResponse.from_json(json) +# print the JSON string representation of the object +print(PostGovernmentReceiptResponse.to_json()) + +# convert the object into a dict +post_government_receipt_response_dict = post_government_receipt_response_instance.to_dict() +# create an instance of PostGovernmentReceiptResponse from a dict +post_government_receipt_response_from_dict = PostGovernmentReceiptResponse.from_dict(post_government_receipt_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md b/cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md new file mode 100644 index 0000000..ce2ac96 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md @@ -0,0 +1,31 @@ +# PostGroupNoteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**code** | **int** | code HTTP status code | [optional] +**data** | [**List[PostGroupNoteResponseDataInner]**](PostGroupNoteResponseDataInner.md) | Data | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGroupNoteResponse from a JSON string +post_group_note_response_instance = PostGroupNoteResponse.from_json(json) +# print the JSON string representation of the object +print(PostGroupNoteResponse.to_json()) + +# convert the object into a dict +post_group_note_response_dict = post_group_note_response_instance.to_dict() +# create an instance of PostGroupNoteResponse from a dict +post_group_note_response_from_dict = PostGroupNoteResponse.from_dict(post_group_note_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md b/cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md new file mode 100644 index 0000000..2286d1e --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md @@ -0,0 +1,36 @@ +# PostGroupNoteResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID for the note | [optional] +**group_profile_id** | **str** | Group profile ID | [optional] +**text** | **str** | Note text | [optional] +**created_by** | **str** | Created by | [optional] +**created_at** | **str** | Created at | [optional] +**updated_at** | **str** | Updated at | [optional] +**archived** | **str** | Note archived | [optional] +**archived_at** | **str** | Note archived at | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGroupNoteResponseDataInner from a JSON string +post_group_note_response_data_inner_instance = PostGroupNoteResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(PostGroupNoteResponseDataInner.to_json()) + +# convert the object into a dict +post_group_note_response_data_inner_dict = post_group_note_response_data_inner_instance.to_dict() +# create an instance of PostGroupNoteResponseDataInner from a dict +post_group_note_response_data_inner_from_dict = PostGroupNoteResponseDataInner.from_dict(post_group_note_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md b/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md new file mode 100644 index 0000000..a990c70 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md @@ -0,0 +1,31 @@ +# PostGuestDocumentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] +**data** | [**PostGuestDocumentResponseData**](PostGuestDocumentResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestDocumentResponse from a JSON string +post_guest_document_response_instance = PostGuestDocumentResponse.from_json(json) +# print the JSON string representation of the object +print(PostGuestDocumentResponse.to_json()) + +# convert the object into a dict +post_guest_document_response_dict = post_guest_document_response_instance.to_dict() +# create an instance of PostGuestDocumentResponse from a dict +post_guest_document_response_from_dict = PostGuestDocumentResponse.from_dict(post_guest_document_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md b/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md new file mode 100644 index 0000000..bd1c255 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md @@ -0,0 +1,30 @@ +# PostGuestDocumentResponseData + +Details for the uploaded file + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **str** | uploaded file identifier | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestDocumentResponseData from a JSON string +post_guest_document_response_data_instance = PostGuestDocumentResponseData.from_json(json) +# print the JSON string representation of the object +print(PostGuestDocumentResponseData.to_json()) + +# convert the object into a dict +post_guest_document_response_data_dict = post_guest_document_response_data_instance.to_dict() +# create an instance of PostGuestDocumentResponseData from a dict +post_guest_document_response_data_from_dict = PostGuestDocumentResponseData.from_dict(post_guest_document_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md b/cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md new file mode 100644 index 0000000..0c874b7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md @@ -0,0 +1,31 @@ +# PostGuestNoteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**guest_note_id** | **str** | Guest note ID | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestNoteResponse from a JSON string +post_guest_note_response_instance = PostGuestNoteResponse.from_json(json) +# print the JSON string representation of the object +print(PostGuestNoteResponse.to_json()) + +# convert the object into a dict +post_guest_note_response_dict = post_guest_note_response_instance.to_dict() +# create an instance of PostGuestNoteResponse from a dict +post_guest_note_response_from_dict = PostGuestNoteResponse.from_dict(post_guest_note_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md b/cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md new file mode 100644 index 0000000..9a72a87 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md @@ -0,0 +1,31 @@ +# PostGuestPhotoResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] +**data** | [**PostGuestDocumentResponseData**](PostGuestDocumentResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestPhotoResponse from a JSON string +post_guest_photo_response_instance = PostGuestPhotoResponse.from_json(json) +# print the JSON string representation of the object +print(PostGuestPhotoResponse.to_json()) + +# convert the object into a dict +post_guest_photo_response_dict = post_guest_photo_response_instance.to_dict() +# create an instance of PostGuestPhotoResponse from a dict +post_guest_photo_response_from_dict = PostGuestPhotoResponse.from_dict(post_guest_photo_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md new file mode 100644 index 0000000..f2de80e --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md @@ -0,0 +1,30 @@ +# PostGuestRequestCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_field_name** | **str** | Custom Field shortcode. | [optional] +**custom_field_value** | **str** | Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestRequestCustomFieldsInner from a JSON string +post_guest_request_custom_fields_inner_instance = PostGuestRequestCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(PostGuestRequestCustomFieldsInner.to_json()) + +# convert the object into a dict +post_guest_request_custom_fields_inner_dict = post_guest_request_custom_fields_inner_instance.to_dict() +# create an instance of PostGuestRequestCustomFieldsInner from a dict +post_guest_request_custom_fields_inner_from_dict = PostGuestRequestCustomFieldsInner.from_dict(post_guest_request_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestResponse.md b/cloudbeds_pms_v1_2/docs/PostGuestResponse.md new file mode 100644 index 0000000..bfa889c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGuestResponse.md @@ -0,0 +1,31 @@ +# PostGuestResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**guest_id** | **str** | Returns the Guest ID if the request could be completed successfully | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestResponse from a JSON string +post_guest_response_instance = PostGuestResponse.from_json(json) +# print the JSON string representation of the object +print(PostGuestResponse.to_json()) + +# convert the object into a dict +post_guest_response_dict = post_guest_response_instance.to_dict() +# create an instance of PostGuestResponse from a dict +post_guest_response_from_dict = PostGuestResponse.from_dict(post_guest_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md b/cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md new file mode 100644 index 0000000..97bee65 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md @@ -0,0 +1,30 @@ +# PostGuestsToRoomResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestsToRoomResponse from a JSON string +post_guests_to_room_response_instance = PostGuestsToRoomResponse.from_json(json) +# print the JSON string representation of the object +print(PostGuestsToRoomResponse.to_json()) + +# convert the object into a dict +post_guests_to_room_response_dict = post_guests_to_room_response_instance.to_dict() +# create an instance of PostGuestsToRoomResponse from a dict +post_guests_to_room_response_from_dict = PostGuestsToRoomResponse.from_dict(post_guests_to_room_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md b/cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md new file mode 100644 index 0000000..3d98d11 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md @@ -0,0 +1,31 @@ +# PostHousekeeperResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**housekeeper_id** | **str** | Housekeeper ID. Returned if success = true. | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostHousekeeperResponse from a JSON string +post_housekeeper_response_instance = PostHousekeeperResponse.from_json(json) +# print the JSON string representation of the object +print(PostHousekeeperResponse.to_json()) + +# convert the object into a dict +post_housekeeper_response_dict = post_housekeeper_response_instance.to_dict() +# create an instance of PostHousekeeperResponse from a dict +post_housekeeper_response_from_dict = PostHousekeeperResponse.from_dict(post_housekeeper_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md b/cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md new file mode 100644 index 0000000..27ae859 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md @@ -0,0 +1,30 @@ +# PostHousekeepingAssignmentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostHousekeepingAssignmentResponse from a JSON string +post_housekeeping_assignment_response_instance = PostHousekeepingAssignmentResponse.from_json(json) +# print the JSON string representation of the object +print(PostHousekeepingAssignmentResponse.to_json()) + +# convert the object into a dict +post_housekeeping_assignment_response_dict = post_housekeeping_assignment_response_instance.to_dict() +# create an instance of PostHousekeepingAssignmentResponse from a dict +post_housekeeping_assignment_response_from_dict = PostHousekeepingAssignmentResponse.from_dict(post_housekeeping_assignment_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md b/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md new file mode 100644 index 0000000..48937eb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md @@ -0,0 +1,31 @@ +# PostHousekeepingStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostHousekeepingStatusResponseData**](PostHousekeepingStatusResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostHousekeepingStatusResponse from a JSON string +post_housekeeping_status_response_instance = PostHousekeepingStatusResponse.from_json(json) +# print the JSON string representation of the object +print(PostHousekeepingStatusResponse.to_json()) + +# convert the object into a dict +post_housekeeping_status_response_dict = post_housekeeping_status_response_instance.to_dict() +# create an instance of PostHousekeepingStatusResponse from a dict +post_housekeeping_status_response_from_dict = PostHousekeepingStatusResponse.from_dict(post_housekeeping_status_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md b/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md new file mode 100644 index 0000000..3a452eb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md @@ -0,0 +1,36 @@ +# PostHousekeepingStatusResponseData + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | Date for last date/time that the room condition changed | [optional] +**room_id** | **str** | ID of room | [optional] +**room_condition** | **str** | New room condition | [optional] +**room_comments** | **str** | New room comments. | [optional] +**do_not_disturb** | **bool** | New \"do not disturb\" status | [optional] +**refused_service** | **bool** | New \"refused service\" status | [optional] +**vacant_pickup** | **bool** | New \"vacant_pickup\" status | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostHousekeepingStatusResponseData from a JSON string +post_housekeeping_status_response_data_instance = PostHousekeepingStatusResponseData.from_json(json) +# print the JSON string representation of the object +print(PostHousekeepingStatusResponseData.to_json()) + +# convert the object into a dict +post_housekeeping_status_response_data_dict = post_housekeeping_status_response_data_instance.to_dict() +# create an instance of PostHousekeepingStatusResponseData from a dict +post_housekeeping_status_response_data_from_dict = PostHousekeepingStatusResponseData.from_dict(post_housekeeping_status_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md b/cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md new file mode 100644 index 0000000..e9d90cd --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md @@ -0,0 +1,31 @@ +# PostItemCategoryResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**category_id** | **str** | Category unique identifier (if success = true) | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemCategoryResponse from a JSON string +post_item_category_response_instance = PostItemCategoryResponse.from_json(json) +# print the JSON string representation of the object +print(PostItemCategoryResponse.to_json()) + +# convert the object into a dict +post_item_category_response_dict = post_item_category_response_instance.to_dict() +# create an instance of PostItemCategoryResponse from a dict +post_item_category_response_from_dict = PostItemCategoryResponse.from_dict(post_item_category_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md b/cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md new file mode 100644 index 0000000..5dfcd79 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md @@ -0,0 +1,31 @@ +# PostItemRequestPaymentsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_type** | **str** | Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] +**amount** | **float** | payment amount | [optional] +**notes** | **str** | payment note | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemRequestPaymentsInner from a JSON string +post_item_request_payments_inner_instance = PostItemRequestPaymentsInner.from_json(json) +# print the JSON string representation of the object +print(PostItemRequestPaymentsInner.to_json()) + +# convert the object into a dict +post_item_request_payments_inner_dict = post_item_request_payments_inner_instance.to_dict() +# create an instance of PostItemRequestPaymentsInner from a dict +post_item_request_payments_inner_from_dict = PostItemRequestPaymentsInner.from_dict(post_item_request_payments_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemResponse.md b/cloudbeds_pms_v1_2/docs/PostItemResponse.md new file mode 100644 index 0000000..c1789e5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostItemResponse.md @@ -0,0 +1,31 @@ +# PostItemResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostItemResponseData**](PostItemResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemResponse from a JSON string +post_item_response_instance = PostItemResponse.from_json(json) +# print the JSON string representation of the object +print(PostItemResponse.to_json()) + +# convert the object into a dict +post_item_response_dict = post_item_response_instance.to_dict() +# create an instance of PostItemResponse from a dict +post_item_response_from_dict = PostItemResponse.from_dict(post_item_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemResponseData.md b/cloudbeds_pms_v1_2/docs/PostItemResponseData.md new file mode 100644 index 0000000..64b8a4b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostItemResponseData.md @@ -0,0 +1,35 @@ +# PostItemResponseData + +Sold product details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] +**transaction_status** | **str** | Transaction Status is returned \"Pending\" when sale date is in the future. | [optional] +**remaining_item_quantity** | **int** | Remaining number of items in stock (if applicable) | [optional] +**reorder_needed** | **bool** | true - Whether item is at or below value set for reorder threshold. | [optional] +**stop_sell_met** | **bool** | true - Whether item is at or below value set for stop-sell threshold. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemResponseData from a JSON string +post_item_response_data_instance = PostItemResponseData.from_json(json) +# print the JSON string representation of the object +print(PostItemResponseData.to_json()) + +# convert the object into a dict +post_item_response_data_dict = post_item_response_data_instance.to_dict() +# create an instance of PostItemResponseData from a dict +post_item_response_data_from_dict = PostItemResponseData.from_dict(post_item_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md b/cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md new file mode 100644 index 0000000..197d5c3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md @@ -0,0 +1,42 @@ +# PostItemsToInventoryRequestItem + +Items + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**item_name** | **str** | Item name | [optional] +**category_id** | **str** | Item category identifier | [optional] +**item_type** | **str** | Item type | [optional] +**item_sku** | **str** | Item SKU. Will be generated if not set | [optional] +**item_code** | **str** | Item code | [optional] +**item_description** | **str** | Item description | [optional] +**item_price** | **float** | Item price<br />When ItemPrice is blank the item will be created as Free / Complimentaty item without price | [optional] +**stock_inventory** | **bool** | Track stock inventory for this item | [optional] [default to False] +**item_quantity** | **int** | ¹ Current amount of item available | [optional] +**reorder_threshold** | **int** | ¹ Quantity at which to reorder item | [optional] +**stop_sell_met** | **bool** | ¹ true - Whether item is at or below value set for stop-sell threshold. | [optional] [default to False] +**stop_sell** | **int** | ¹ Quantity at which to stop selling product. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemsToInventoryRequestItem from a JSON string +post_items_to_inventory_request_item_instance = PostItemsToInventoryRequestItem.from_json(json) +# print the JSON string representation of the object +print(PostItemsToInventoryRequestItem.to_json()) + +# convert the object into a dict +post_items_to_inventory_request_item_dict = post_items_to_inventory_request_item_instance.to_dict() +# create an instance of PostItemsToInventoryRequestItem from a dict +post_items_to_inventory_request_item_from_dict = PostItemsToInventoryRequestItem.from_dict(post_items_to_inventory_request_item_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md b/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md new file mode 100644 index 0000000..089351c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md @@ -0,0 +1,31 @@ +# PostItemsToInventoryResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[PostItemsToInventoryResponseDataInner]**](PostItemsToInventoryResponseDataInner.md) | Sold product details | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemsToInventoryResponse from a JSON string +post_items_to_inventory_response_instance = PostItemsToInventoryResponse.from_json(json) +# print the JSON string representation of the object +print(PostItemsToInventoryResponse.to_json()) + +# convert the object into a dict +post_items_to_inventory_response_dict = post_items_to_inventory_response_instance.to_dict() +# create an instance of PostItemsToInventoryResponse from a dict +post_items_to_inventory_response_from_dict = PostItemsToInventoryResponse.from_dict(post_items_to_inventory_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md b/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md new file mode 100644 index 0000000..f50154f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md @@ -0,0 +1,31 @@ +# PostItemsToInventoryResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item_id** | **str** | Item identifier | [optional] +**item_sku** | **str** | Item SKU | [optional] +**item_name** | **str** | Item name | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemsToInventoryResponseDataInner from a JSON string +post_items_to_inventory_response_data_inner_instance = PostItemsToInventoryResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(PostItemsToInventoryResponseDataInner.to_json()) + +# convert the object into a dict +post_items_to_inventory_response_data_inner_dict = post_items_to_inventory_response_data_inner_instance.to_dict() +# create an instance of PostItemsToInventoryResponseDataInner from a dict +post_items_to_inventory_response_data_inner_from_dict = PostItemsToInventoryResponseDataInner.from_dict(post_items_to_inventory_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md b/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md new file mode 100644 index 0000000..1dff8cf --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md @@ -0,0 +1,31 @@ +# PostNewHouseAccountResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostNewHouseAccountResponseData**](PostNewHouseAccountResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostNewHouseAccountResponse from a JSON string +post_new_house_account_response_instance = PostNewHouseAccountResponse.from_json(json) +# print the JSON string representation of the object +print(PostNewHouseAccountResponse.to_json()) + +# convert the object into a dict +post_new_house_account_response_dict = post_new_house_account_response_instance.to_dict() +# create an instance of PostNewHouseAccountResponse from a dict +post_new_house_account_response_from_dict = PostNewHouseAccountResponse.from_dict(post_new_house_account_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md b/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md new file mode 100644 index 0000000..692be91 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md @@ -0,0 +1,30 @@ +# PostNewHouseAccountResponseData + +House Account details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**house_account_id** | **str** | Unique identifier of created House Account | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostNewHouseAccountResponseData from a JSON string +post_new_house_account_response_data_instance = PostNewHouseAccountResponseData.from_json(json) +# print the JSON string representation of the object +print(PostNewHouseAccountResponseData.to_json()) + +# convert the object into a dict +post_new_house_account_response_data_dict = post_new_house_account_response_data_instance.to_dict() +# create an instance of PostNewHouseAccountResponseData from a dict +post_new_house_account_response_data_from_dict = PostNewHouseAccountResponseData.from_dict(post_new_house_account_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md b/cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md new file mode 100644 index 0000000..0284abb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md @@ -0,0 +1,30 @@ +# PostPatchGroupResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**data** | [**List[PostPatchGroupResponseDataInner]**](PostPatchGroupResponseDataInner.md) | Data | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPatchGroupResponse from a JSON string +post_patch_group_response_instance = PostPatchGroupResponse.from_json(json) +# print the JSON string representation of the object +print(PostPatchGroupResponse.to_json()) + +# convert the object into a dict +post_patch_group_response_dict = post_patch_group_response_instance.to_dict() +# create an instance of PostPatchGroupResponse from a dict +post_patch_group_response_from_dict = PostPatchGroupResponse.from_dict(post_patch_group_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md b/cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md new file mode 100644 index 0000000..ca798a0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md @@ -0,0 +1,41 @@ +# PostPatchGroupResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_code** | **str** | Unique ID for a group | [optional] +**name** | **str** | The name of the group | [optional] +**type** | **str** | The type of the group | [optional] +**status** | **str** | Group status | [optional] +**created** | **datetime** | Group created time | [optional] +**source_id** | **str** | The third-party source ID for this group, can be null | [optional] +**address1** | **str** | Address | [optional] +**address2** | **str** | Address2 | [optional] +**city** | **str** | City | [optional] +**zip** | **str** | Zip | [optional] +**state** | **str** | State | [optional] +**id** | **str** | ID | [optional] +**property_id** | **str** | Property Id | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPatchGroupResponseDataInner from a JSON string +post_patch_group_response_data_inner_instance = PostPatchGroupResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(PostPatchGroupResponseDataInner.to_json()) + +# convert the object into a dict +post_patch_group_response_data_inner_dict = post_patch_group_response_data_inner_instance.to_dict() +# create an instance of PostPatchGroupResponseDataInner from a dict +post_patch_group_response_data_inner_from_dict = PostPatchGroupResponseDataInner.from_dict(post_patch_group_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md b/cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md new file mode 100644 index 0000000..d0bbe83 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md @@ -0,0 +1,30 @@ +# PostPatchInvoiceResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPatchInvoiceResponse from a JSON string +post_patch_invoice_response_instance = PostPatchInvoiceResponse.from_json(json) +# print the JSON string representation of the object +print(PostPatchInvoiceResponse.to_json()) + +# convert the object into a dict +post_patch_invoice_response_dict = post_patch_invoice_response_instance.to_dict() +# create an instance of PostPatchInvoiceResponse from a dict +post_patch_invoice_response_from_dict = PostPatchInvoiceResponse.from_dict(post_patch_invoice_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md new file mode 100644 index 0000000..ff48422 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md @@ -0,0 +1,30 @@ +# PostPatchRateRequestRatesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_id** | **str** | Rate ID | [optional] +**interval** | [**PostPatchRateRequestRatesInnerInterval**](PostPatchRateRequestRatesInnerInterval.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPatchRateRequestRatesInner from a JSON string +post_patch_rate_request_rates_inner_instance = PostPatchRateRequestRatesInner.from_json(json) +# print the JSON string representation of the object +print(PostPatchRateRequestRatesInner.to_json()) + +# convert the object into a dict +post_patch_rate_request_rates_inner_dict = post_patch_rate_request_rates_inner_instance.to_dict() +# create an instance of PostPatchRateRequestRatesInner from a dict +post_patch_rate_request_rates_inner_from_dict = PostPatchRateRequestRatesInner.from_dict(post_patch_rate_request_rates_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md new file mode 100644 index 0000000..a43471d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md @@ -0,0 +1,38 @@ +# PostPatchRateRequestRatesInnerInterval + +Rate update details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **date** | Interval Start date. Format: YYYY-MM-DD | [optional] +**end_date** | **date** | Interval End date. Format: YYYY-MM-DD | [optional] +**rate** | **float** | Base rate for the selected date | [optional] +**max_los** | **int** | Maximum length of stay for the selected date. | [optional] +**min_los** | **int** | Minimum length of stay for the selected date. | [optional] +**closed_to_arrival** | **bool** | Whether it is closed to arrival. | [optional] +**closed_to_departure** | **bool** | Whether it is closed to departure. | [optional] +**cut_off** | **int** | Cut off time for the selected date. | [optional] +**last_minute_booking** | **int** | Last minute bookings. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPatchRateRequestRatesInnerInterval from a JSON string +post_patch_rate_request_rates_inner_interval_instance = PostPatchRateRequestRatesInnerInterval.from_json(json) +# print the JSON string representation of the object +print(PostPatchRateRequestRatesInnerInterval.to_json()) + +# convert the object into a dict +post_patch_rate_request_rates_inner_interval_dict = post_patch_rate_request_rates_inner_interval_instance.to_dict() +# create an instance of PostPatchRateRequestRatesInnerInterval from a dict +post_patch_rate_request_rates_inner_interval_from_dict = PostPatchRateRequestRatesInnerInterval.from_dict(post_patch_rate_request_rates_inner_interval_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md b/cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md new file mode 100644 index 0000000..35531d3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md @@ -0,0 +1,31 @@ +# PostPatchRateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns true if the request could be completed | [optional] +**job_reference_id** | **str** | ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPatchRateResponse from a JSON string +post_patch_rate_response_instance = PostPatchRateResponse.from_json(json) +# print the JSON string representation of the object +print(PostPatchRateResponse.to_json()) + +# convert the object into a dict +post_patch_rate_response_dict = post_patch_rate_response_instance.to_dict() +# create an instance of PostPatchRateResponse from a dict +post_patch_rate_response_from_dict = PostPatchRateResponse.from_dict(post_patch_rate_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPaymentResponse.md b/cloudbeds_pms_v1_2/docs/PostPaymentResponse.md new file mode 100644 index 0000000..fa5f330 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPaymentResponse.md @@ -0,0 +1,32 @@ +# PostPaymentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**payment_id** | **str** | Returns paymentID of transaction | [optional] +**transaction_id** | **str** | Returns transactionID | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPaymentResponse from a JSON string +post_payment_response_instance = PostPaymentResponse.from_json(json) +# print the JSON string representation of the object +print(PostPaymentResponse.to_json()) + +# convert the object into a dict +post_payment_response_dict = post_payment_response_instance.to_dict() +# create an instance of PostPaymentResponse from a dict +post_payment_response_from_dict = PostPaymentResponse.from_dict(post_payment_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md b/cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md new file mode 100644 index 0000000..946b189 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md @@ -0,0 +1,30 @@ +# PostPutAppPropertySettingsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**data** | [**PostAppPropertySettingResponseData**](PostAppPropertySettingResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPutAppPropertySettingsResponse from a JSON string +post_put_app_property_settings_response_instance = PostPutAppPropertySettingsResponse.from_json(json) +# print the JSON string representation of the object +print(PostPutAppPropertySettingsResponse.to_json()) + +# convert the object into a dict +post_put_app_property_settings_response_dict = post_put_app_property_settings_response_instance.to_dict() +# create an instance of PostPutAppPropertySettingsResponse from a dict +post_put_app_property_settings_response_from_dict = PostPutAppPropertySettingsResponse.from_dict(post_put_app_property_settings_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md b/cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md new file mode 100644 index 0000000..18a8316 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md @@ -0,0 +1,30 @@ +# PostPutGroupResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] +**data** | [**List[PostPatchGroupResponseDataInner]**](PostPatchGroupResponseDataInner.md) | Data | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPutGroupResponse from a JSON string +post_put_group_response_instance = PostPutGroupResponse.from_json(json) +# print the JSON string representation of the object +print(PostPutGroupResponse.to_json()) + +# convert the object into a dict +post_put_group_response_dict = post_put_group_response_instance.to_dict() +# create an instance of PostPutGroupResponse from a dict +post_put_group_response_from_dict = PostPutGroupResponse.from_dict(post_put_group_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md b/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md new file mode 100644 index 0000000..85c467a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md @@ -0,0 +1,30 @@ +# PostPutRateRequestRatesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_id** | **str** | Rate ID | [optional] +**interval** | [**List[PostPutRateRequestRatesInnerIntervalInner]**](PostPutRateRequestRatesInnerIntervalInner.md) | Rate update details | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPutRateRequestRatesInner from a JSON string +post_put_rate_request_rates_inner_instance = PostPutRateRequestRatesInner.from_json(json) +# print the JSON string representation of the object +print(PostPutRateRequestRatesInner.to_json()) + +# convert the object into a dict +post_put_rate_request_rates_inner_dict = post_put_rate_request_rates_inner_instance.to_dict() +# create an instance of PostPutRateRequestRatesInner from a dict +post_put_rate_request_rates_inner_from_dict = PostPutRateRequestRatesInner.from_dict(post_put_rate_request_rates_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md b/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md new file mode 100644 index 0000000..d7461e5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md @@ -0,0 +1,31 @@ +# PostPutRateRequestRatesInnerIntervalInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **date** | Interval Start date. Format: YYYY-MM-DD | [optional] +**end_date** | **date** | Interval End date. Format: YYYY-MM-DD | [optional] +**rate** | **float** | Base rate for the selected date | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPutRateRequestRatesInnerIntervalInner from a JSON string +post_put_rate_request_rates_inner_interval_inner_instance = PostPutRateRequestRatesInnerIntervalInner.from_json(json) +# print the JSON string representation of the object +print(PostPutRateRequestRatesInnerIntervalInner.to_json()) + +# convert the object into a dict +post_put_rate_request_rates_inner_interval_inner_dict = post_put_rate_request_rates_inner_interval_inner_instance.to_dict() +# create an instance of PostPutRateRequestRatesInnerIntervalInner from a dict +post_put_rate_request_rates_inner_interval_inner_from_dict = PostPutRateRequestRatesInnerIntervalInner.from_dict(post_put_rate_request_rates_inner_interval_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPutRateResponse.md b/cloudbeds_pms_v1_2/docs/PostPutRateResponse.md new file mode 100644 index 0000000..08fae04 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostPutRateResponse.md @@ -0,0 +1,31 @@ +# PostPutRateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns true if the request could be completed | [optional] +**job_reference_id** | **str** | ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPutRateResponse from a JSON string +post_put_rate_response_instance = PostPutRateResponse.from_json(json) +# print the JSON string representation of the object +print(PostPutRateResponse.to_json()) + +# convert the object into a dict +post_put_rate_response_dict = post_put_rate_response_instance.to_dict() +# create an instance of PostPutRateResponse from a dict +post_put_rate_response_from_dict = PostPutRateResponse.from_dict(post_put_rate_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md b/cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md new file mode 100644 index 0000000..cd54abd --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md @@ -0,0 +1,31 @@ +# PostReservationDocumentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] +**data** | [**PostGuestDocumentResponseData**](PostGuestDocumentResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationDocumentResponse from a JSON string +post_reservation_document_response_instance = PostReservationDocumentResponse.from_json(json) +# print the JSON string representation of the object +print(PostReservationDocumentResponse.to_json()) + +# convert the object into a dict +post_reservation_document_response_dict = post_reservation_document_response_instance.to_dict() +# create an instance of PostReservationDocumentResponse from a dict +post_reservation_document_response_from_dict = PostReservationDocumentResponse.from_dict(post_reservation_document_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md b/cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md new file mode 100644 index 0000000..03c3b28 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md @@ -0,0 +1,31 @@ +# PostReservationNoteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**reservation_note_id** | **str** | Reservation note ID | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationNoteResponse from a JSON string +post_reservation_note_response_instance = PostReservationNoteResponse.from_json(json) +# print the JSON string representation of the object +print(PostReservationNoteResponse.to_json()) + +# convert the object into a dict +post_reservation_note_response_dict = post_reservation_note_response_instance.to_dict() +# create an instance of PostReservationNoteResponse from a dict +post_reservation_note_response_from_dict = PostReservationNoteResponse.from_dict(post_reservation_note_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md b/cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md new file mode 100644 index 0000000..0673424 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md @@ -0,0 +1,31 @@ +# PostReservationRequestAdultsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room Type ID | [optional] +**quantity** | **int** | Quantity of adults for the room type ID | [optional] +**room_id** | **str** | ID of the individual room | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationRequestAdultsInner from a JSON string +post_reservation_request_adults_inner_instance = PostReservationRequestAdultsInner.from_json(json) +# print the JSON string representation of the object +print(PostReservationRequestAdultsInner.to_json()) + +# convert the object into a dict +post_reservation_request_adults_inner_dict = post_reservation_request_adults_inner_instance.to_dict() +# create an instance of PostReservationRequestAdultsInner from a dict +post_reservation_request_adults_inner_from_dict = PostReservationRequestAdultsInner.from_dict(post_reservation_request_adults_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md b/cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md new file mode 100644 index 0000000..24b98b5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md @@ -0,0 +1,31 @@ +# PostReservationRequestChildrenInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room Type ID | [optional] +**quantity** | **int** | Number of children for the room type ID | [optional] +**room_id** | **str** | ID of the individual room | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationRequestChildrenInner from a JSON string +post_reservation_request_children_inner_instance = PostReservationRequestChildrenInner.from_json(json) +# print the JSON string representation of the object +print(PostReservationRequestChildrenInner.to_json()) + +# convert the object into a dict +post_reservation_request_children_inner_dict = post_reservation_request_children_inner_instance.to_dict() +# create an instance of PostReservationRequestChildrenInner from a dict +post_reservation_request_children_inner_from_dict = PostReservationRequestChildrenInner.from_dict(post_reservation_request_children_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md new file mode 100644 index 0000000..dafac77 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md @@ -0,0 +1,30 @@ +# PostReservationRequestCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field_name** | **str** | Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention | [optional] +**field_value** | **str** | Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationRequestCustomFieldsInner from a JSON string +post_reservation_request_custom_fields_inner_instance = PostReservationRequestCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(PostReservationRequestCustomFieldsInner.to_json()) + +# convert the object into a dict +post_reservation_request_custom_fields_inner_dict = post_reservation_request_custom_fields_inner_instance.to_dict() +# create an instance of PostReservationRequestCustomFieldsInner from a dict +post_reservation_request_custom_fields_inner_from_dict = PostReservationRequestCustomFieldsInner.from_dict(post_reservation_request_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md b/cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md new file mode 100644 index 0000000..87fbf96 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md @@ -0,0 +1,32 @@ +# PostReservationRequestRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room Type ID | [optional] +**quantity** | **int** | Quantity of rooms for the room type ID | [optional] +**room_id** | **str** | ID of the individual room to be booked. This feature must be enabled on \"MyBookings\" settings, and the room should be available at the time of the booking or else it will result in an unassigned room. It will automatically override \"quantity\" value to 1 and roomTypeID when used. | [optional] +**room_rate_id** | **str** | Specific Rate ID used for the room type ID. Can be ommitted. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationRequestRoomsInner from a JSON string +post_reservation_request_rooms_inner_instance = PostReservationRequestRoomsInner.from_json(json) +# print the JSON string representation of the object +print(PostReservationRequestRoomsInner.to_json()) + +# convert the object into a dict +post_reservation_request_rooms_inner_dict = post_reservation_request_rooms_inner_instance.to_dict() +# create an instance of PostReservationRequestRoomsInner from a dict +post_reservation_request_rooms_inner_from_dict = PostReservationRequestRoomsInner.from_dict(post_reservation_request_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationResponse.md b/cloudbeds_pms_v1_2/docs/PostReservationResponse.md new file mode 100644 index 0000000..68aa737 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationResponse.md @@ -0,0 +1,42 @@ +# PostReservationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**reservation_id** | **str** | Reservation identifier | [optional] +**status** | **str** | Reservation status<br /> 'not_confirmed' - Reservation is pending confirmation<br /> 'confirmed' - Reservation is confirmed<br /> | [optional] +**guest_id** | **str** | Guest ID | [optional] +**guest_first_name** | **str** | Guest First Name | [optional] +**guest_last_name** | **str** | Guest Last Name | [optional] +**guest_gender** | **str** | Guest Gender | [optional] +**guest_email** | **str** | Guest Email | [optional] +**start_date** | **date** | Reservation CheckIn date | [optional] +**end_date** | **date** | Reservation CheckOut date | [optional] +**date_created** | **datetime** | Reservation creation datetime | [optional] +**grand_total** | **float** | Grand Total | [optional] +**unassigned** | [**List[PostReservationResponseUnassignedInner]**](PostReservationResponseUnassignedInner.md) | unassigned rooms array | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationResponse from a JSON string +post_reservation_response_instance = PostReservationResponse.from_json(json) +# print the JSON string representation of the object +print(PostReservationResponse.to_json()) + +# convert the object into a dict +post_reservation_response_dict = post_reservation_response_instance.to_dict() +# create an instance of PostReservationResponse from a dict +post_reservation_response_from_dict = PostReservationResponse.from_dict(post_reservation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md b/cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md new file mode 100644 index 0000000..2dd4a1e --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md @@ -0,0 +1,35 @@ +# PostReservationResponseUnassignedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sub_reservation_id** | **str** | | [optional] +**room_type_name** | **str** | | [optional] +**room_type_id** | **str** | | [optional] +**adults** | **int** | Adults included in rate | [optional] +**children** | **int** | Children included in rate | [optional] +**daily_rates** | [**List[GetReservationResponseDataAssignedInnerDailyRatesInner]**](GetReservationResponseDataAssignedInnerDailyRatesInner.md) | rates for room | [optional] +**room_total** | **float** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationResponseUnassignedInner from a JSON string +post_reservation_response_unassigned_inner_instance = PostReservationResponseUnassignedInner.from_json(json) +# print the JSON string representation of the object +print(PostReservationResponseUnassignedInner.to_json()) + +# convert the object into a dict +post_reservation_response_unassigned_inner_dict = post_reservation_response_unassigned_inner_instance.to_dict() +# create an instance of PostReservationResponseUnassignedInner from a dict +post_reservation_response_unassigned_inner_from_dict = PostReservationResponseUnassignedInner.from_dict(post_reservation_response_unassigned_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md b/cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md new file mode 100644 index 0000000..1a57ded --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md @@ -0,0 +1,30 @@ +# PostRoomAssignResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomAssignResponse from a JSON string +post_room_assign_response_instance = PostRoomAssignResponse.from_json(json) +# print the JSON string representation of the object +print(PostRoomAssignResponse.to_json()) + +# convert the object into a dict +post_room_assign_response_dict = post_room_assign_response_instance.to_dict() +# create an instance of PostRoomAssignResponse from a dict +post_room_assign_response_from_dict = PostRoomAssignResponse.from_dict(post_room_assign_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md b/cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md new file mode 100644 index 0000000..a43e0a5 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md @@ -0,0 +1,30 @@ +# PostRoomBlockRequestRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | Room ID | [optional] +**room_type_id** | **str** | Room type ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomBlockRequestRoomsInner from a JSON string +post_room_block_request_rooms_inner_instance = PostRoomBlockRequestRoomsInner.from_json(json) +# print the JSON string representation of the object +print(PostRoomBlockRequestRoomsInner.to_json()) + +# convert the object into a dict +post_room_block_request_rooms_inner_dict = post_room_block_request_rooms_inner_instance.to_dict() +# create an instance of PostRoomBlockRequestRoomsInner from a dict +post_room_block_request_rooms_inner_from_dict = PostRoomBlockRequestRoomsInner.from_dict(post_room_block_request_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md b/cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md new file mode 100644 index 0000000..30f29bb --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md @@ -0,0 +1,37 @@ +# PostRoomBlockResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**property_id** | **str** | Property ID | [optional] +**room_block_id** | **str** | Room block ID | [optional] +**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] +**room_block_reason** | **str** | Room block reason | [optional] +**start_date** | **date** | Room block start date | [optional] +**end_date** | **date** | Room block end date | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomBlockResponse from a JSON string +post_room_block_response_instance = PostRoomBlockResponse.from_json(json) +# print the JSON string representation of the object +print(PostRoomBlockResponse.to_json()) + +# convert the object into a dict +post_room_block_response_dict = post_room_block_response_instance.to_dict() +# create an instance of PostRoomBlockResponse from a dict +post_room_block_response_from_dict = PostRoomBlockResponse.from_dict(post_room_block_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md b/cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md new file mode 100644 index 0000000..4ad7a05 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md @@ -0,0 +1,30 @@ +# PostRoomBlockResponseRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | Room ID | [optional] +**room_type_id** | **str** | Room Type ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomBlockResponseRoomsInner from a JSON string +post_room_block_response_rooms_inner_instance = PostRoomBlockResponseRoomsInner.from_json(json) +# print the JSON string representation of the object +print(PostRoomBlockResponseRoomsInner.to_json()) + +# convert the object into a dict +post_room_block_response_rooms_inner_dict = post_room_block_response_rooms_inner_instance.to_dict() +# create an instance of PostRoomBlockResponseRoomsInner from a dict +post_room_block_response_rooms_inner_from_dict = PostRoomBlockResponseRoomsInner.from_dict(post_room_block_response_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md b/cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md new file mode 100644 index 0000000..a5adcc3 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md @@ -0,0 +1,30 @@ +# PostRoomCheckInResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomCheckInResponse from a JSON string +post_room_check_in_response_instance = PostRoomCheckInResponse.from_json(json) +# print the JSON string representation of the object +print(PostRoomCheckInResponse.to_json()) + +# convert the object into a dict +post_room_check_in_response_dict = post_room_check_in_response_instance.to_dict() +# create an instance of PostRoomCheckInResponse from a dict +post_room_check_in_response_from_dict = PostRoomCheckInResponse.from_dict(post_room_check_in_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md b/cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md new file mode 100644 index 0000000..f2b54ad --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md @@ -0,0 +1,30 @@ +# PostRoomCheckOutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomCheckOutResponse from a JSON string +post_room_check_out_response_instance = PostRoomCheckOutResponse.from_json(json) +# print the JSON string representation of the object +print(PostRoomCheckOutResponse.to_json()) + +# convert the object into a dict +post_room_check_out_response_dict = post_room_check_out_response_instance.to_dict() +# create an instance of PostRoomCheckOutResponse from a dict +post_room_check_out_response_from_dict = PostRoomCheckOutResponse.from_dict(post_room_check_out_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md new file mode 100644 index 0000000..7ec0060 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md @@ -0,0 +1,30 @@ +# PostUpdateAllotmentBlockNotesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostUpdateAllotmentBlockNotesResponseData**](PostUpdateAllotmentBlockNotesResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockNotesResponse from a JSON string +post_update_allotment_block_notes_response_instance = PostUpdateAllotmentBlockNotesResponse.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockNotesResponse.to_json()) + +# convert the object into a dict +post_update_allotment_block_notes_response_dict = post_update_allotment_block_notes_response_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockNotesResponse from a dict +post_update_allotment_block_notes_response_from_dict = PostUpdateAllotmentBlockNotesResponse.from_dict(post_update_allotment_block_notes_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md new file mode 100644 index 0000000..4447d1a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md @@ -0,0 +1,36 @@ +# PostUpdateAllotmentBlockNotesResponseData + +The created note + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Note ID | [optional] +**text** | **str** | Note contents | [optional] +**created_by** | **str** | User Name | [optional] +**created_at** | **datetime** | Creation datetime (format: Y-m-d H:i:s) | [optional] +**updated_at** | **datetime** | Last modification datetime (format: Y-m-d H:i:s) | [optional] +**archived_at** | **datetime** | Archival datetime (format: Y-m-d H:i:s) | [optional] +**status** | **bool** | Note status | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockNotesResponseData from a JSON string +post_update_allotment_block_notes_response_data_instance = PostUpdateAllotmentBlockNotesResponseData.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockNotesResponseData.to_json()) + +# convert the object into a dict +post_update_allotment_block_notes_response_data_dict = post_update_allotment_block_notes_response_data_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockNotesResponseData from a dict +post_update_allotment_block_notes_response_data_from_dict = PostUpdateAllotmentBlockNotesResponseData.from_dict(post_update_allotment_block_notes_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md new file mode 100644 index 0000000..485af57 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md @@ -0,0 +1,30 @@ +# PostUpdateAllotmentBlockRequestAllotmentIntervalsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type id | [optional] +**availability** | [**List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]**](PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) | Interval availability data by day in interval | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInner from a JSON string +post_update_allotment_block_request_allotment_intervals_inner_instance = PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.to_json()) + +# convert the object into a dict +post_update_allotment_block_request_allotment_intervals_inner_dict = post_update_allotment_block_request_allotment_intervals_inner_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInner from a dict +post_update_allotment_block_request_allotment_intervals_inner_from_dict = PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.from_dict(post_update_allotment_block_request_allotment_intervals_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md new file mode 100644 index 0000000..e4c15e0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md @@ -0,0 +1,33 @@ +# PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_allotted** | **int** | Total number of units available for the room type for this day | [optional] +**var_date** | **date** | the day within the interval (YYYY-MM-DD) | [optional] +**rate** | **str** | the price if applicable | [optional] +**guest_pricing** | [**PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing**](PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) | | [optional] +**restrictions** | [**PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions**](PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a JSON string +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_instance = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.to_json()) + +# convert the object into a dict +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_dict = post_update_allotment_block_request_allotment_intervals_inner_availability_inner_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a dict +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_from_dict = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_dict(post_update_allotment_block_request_allotment_intervals_inner_availability_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md new file mode 100644 index 0000000..bfdfa6c --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md @@ -0,0 +1,35 @@ +# PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + +Guest pricing data if applicable. Note: + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adult1** | **str** | Price for adult 1 | [optional] +**adult2** | **str** | Price for adult 2 | [optional] +**adult3** | **str** | Price for adult 3 | [optional] +**child1** | **str** | Price for child 1 | [optional] +**child2** | **str** | Price for child 2 | [optional] +**child3** | **str** | Price for child 3 | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a JSON string +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_instance = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.to_json()) + +# convert the object into a dict +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_dict = post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a dict +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_from_dict = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md new file mode 100644 index 0000000..eb90543 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md @@ -0,0 +1,35 @@ +# PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + +Interval restrictions if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_los** | **int** | Minimum length of stay requirement | [optional] +**max_los** | **int** | Maximum length of stay requirement | [optional] +**cut_off_days** | **int** | How many days before arrival should guests be required to book | [optional] +**last_minute_booking_days** | **int** | How many days before the arrival guests are allowed to book | [optional] +**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] +**closed_to_departure** | **int** | If the interval dates are closed for departure the number of applicable keys varies here based on the occupancy settings for the room type. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a JSON string +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_instance = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.to_json()) + +# convert the object into a dict +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_dict = post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a dict +post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_from_dict = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md new file mode 100644 index 0000000..0f54279 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md @@ -0,0 +1,32 @@ +# PostUpdateAllotmentBlockRequestAutoRelease + +Optional auto-release configuration NOTE: pass empty object to remove auto-release configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**release_type** | **str** | The type of auto-release | [optional] +**days** | **int** | The number of days prior to the end of the allotment block to begin releasing dates from the allotment block | [optional] +**release_time** | **str** | The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'... | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockRequestAutoRelease from a JSON string +post_update_allotment_block_request_auto_release_instance = PostUpdateAllotmentBlockRequestAutoRelease.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockRequestAutoRelease.to_json()) + +# convert the object into a dict +post_update_allotment_block_request_auto_release_dict = post_update_allotment_block_request_auto_release_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockRequestAutoRelease from a dict +post_update_allotment_block_request_auto_release_from_dict = PostUpdateAllotmentBlockRequestAutoRelease.from_dict(post_update_allotment_block_request_auto_release_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md new file mode 100644 index 0000000..b19d84b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md @@ -0,0 +1,30 @@ +# PostUpdateAllotmentBlockResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[PostUpdateAllotmentBlockResponseDataInner]**](PostUpdateAllotmentBlockResponseDataInner.md) | Allotment Blocks | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockResponse from a JSON string +post_update_allotment_block_response_instance = PostUpdateAllotmentBlockResponse.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockResponse.to_json()) + +# convert the object into a dict +post_update_allotment_block_response_dict = post_update_allotment_block_response_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockResponse from a dict +post_update_allotment_block_response_from_dict = PostUpdateAllotmentBlockResponse.from_dict(post_update_allotment_block_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md new file mode 100644 index 0000000..91e5fe0 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md @@ -0,0 +1,41 @@ +# PostUpdateAllotmentBlockResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID associated to the allotment block | [optional] +**allotment_block_code** | **str** | Allotment block code | [optional] +**allotment_block_status** | **str** | Allotment block status | [optional] +**allotment_block_name** | **str** | Allotment block name | [optional] +**allotment_block_id** | **str** | Allotment block ID | [optional] +**rate_type** | **str** | Rate type for the allotment block | [optional] +**rate_plan_id** | **str** | Rate plan ID if applicable | [optional] +**allotment_type** | **str** | the type of allotment block | [optional] +**group_id** | **str** | Group profile ID associated to the allotment block | [optional] +**group_code** | **str** | Group profile code associated to the allotment block | [optional] +**is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] +**auto_release** | [**PostCreateAllotmentBlockResponseDataInnerAutoRelease**](PostCreateAllotmentBlockResponseDataInnerAutoRelease.md) | | [optional] +**allotment_intervals** | [**List[PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]**](PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockResponseDataInner from a JSON string +post_update_allotment_block_response_data_inner_instance = PostUpdateAllotmentBlockResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockResponseDataInner.to_json()) + +# convert the object into a dict +post_update_allotment_block_response_data_inner_dict = post_update_allotment_block_response_data_inner_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockResponseDataInner from a dict +post_update_allotment_block_response_data_inner_from_dict = PostUpdateAllotmentBlockResponseDataInner.from_dict(post_update_allotment_block_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md new file mode 100644 index 0000000..ffccae2 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md @@ -0,0 +1,31 @@ +# PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type ID | [optional] +**availability** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md) | | [optional] +**restrictions** | [**PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions**](PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a JSON string +post_update_allotment_block_response_data_inner_allotment_intervals_inner_instance = PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.to_json()) + +# convert the object into a dict +post_update_allotment_block_response_data_inner_allotment_intervals_inner_dict = post_update_allotment_block_response_data_inner_allotment_intervals_inner_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a dict +post_update_allotment_block_response_data_inner_allotment_intervals_inner_from_dict = PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_dict(post_update_allotment_block_response_data_inner_allotment_intervals_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md new file mode 100644 index 0000000..323006b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md @@ -0,0 +1,35 @@ +# PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + +Interval restrictions if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_los** | **int** | Minimum length of stay requirement | [optional] +**max_los** | **int** | Maximum length of stay requirement | [optional] +**cut_off_days** | **int** | How many days before arrival should guests be required to book | [optional] +**last_minute_booking_days** | **int** | Hoe many days before the arrival guests are allowed to book | [optional] +**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] +**closed_to_departure** | **int** | If the interval dates are closed for departure | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + +# TODO update the JSON string below +json = "{}" +# create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a JSON string +post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_instance = PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.from_json(json) +# print the JSON string representation of the object +print(PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.to_json()) + +# convert the object into a dict +post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_dict = post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_instance.to_dict() +# create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a dict +post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_from_dict = PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.from_dict(post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md b/cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md new file mode 100644 index 0000000..c572ef4 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md @@ -0,0 +1,30 @@ +# PostVoidItemResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostVoidItemResponse from a JSON string +post_void_item_response_instance = PostVoidItemResponse.from_json(json) +# print the JSON string representation of the object +print(PostVoidItemResponse.to_json()) + +# convert the object into a dict +post_void_item_response_dict = post_void_item_response_instance.to_dict() +# create an instance of PostVoidItemResponse from a dict +post_void_item_response_from_dict = PostVoidItemResponse.from_dict(post_void_item_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md b/cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md new file mode 100644 index 0000000..d0dbf88 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md @@ -0,0 +1,30 @@ +# PostVoidPaymentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostVoidPaymentResponse from a JSON string +post_void_payment_response_instance = PostVoidPaymentResponse.from_json(json) +# print the JSON string representation of the object +print(PostVoidPaymentResponse.to_json()) + +# convert the object into a dict +post_void_payment_response_dict = post_void_payment_response_instance.to_dict() +# create an instance of PostVoidPaymentResponse from a dict +post_void_payment_response_from_dict = PostVoidPaymentResponse.from_dict(post_void_payment_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostWebhookResponse.md b/cloudbeds_pms_v1_2/docs/PostWebhookResponse.md new file mode 100644 index 0000000..bbec14f --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostWebhookResponse.md @@ -0,0 +1,30 @@ +# PostWebhookResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostWebhookResponseData**](PostWebhookResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostWebhookResponse from a JSON string +post_webhook_response_instance = PostWebhookResponse.from_json(json) +# print the JSON string representation of the object +print(PostWebhookResponse.to_json()) + +# convert the object into a dict +post_webhook_response_dict = post_webhook_response_instance.to_dict() +# create an instance of PostWebhookResponse from a dict +post_webhook_response_from_dict = PostWebhookResponse.from_dict(post_webhook_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md b/cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md new file mode 100644 index 0000000..d47cac4 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md @@ -0,0 +1,30 @@ +# PostWebhookResponseData + +Subscription details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription_id** | **str** | Subscription ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostWebhookResponseData from a JSON string +post_webhook_response_data_instance = PostWebhookResponseData.from_json(json) +# print the JSON string representation of the object +print(PostWebhookResponseData.to_json()) + +# convert the object into a dict +post_webhook_response_data_dict = post_webhook_response_data_instance.to_dict() +# create an instance of PostWebhookResponseData from a dict +post_webhook_response_data_from_dict = PostWebhookResponseData.from_dict(post_webhook_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md b/cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md new file mode 100644 index 0000000..dc6175d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md @@ -0,0 +1,30 @@ +# PutGuestNoteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutGuestNoteResponse from a JSON string +put_guest_note_response_instance = PutGuestNoteResponse.from_json(json) +# print the JSON string representation of the object +print(PutGuestNoteResponse.to_json()) + +# convert the object into a dict +put_guest_note_response_dict = put_guest_note_response_instance.to_dict() +# create an instance of PutGuestNoteResponse from a dict +put_guest_note_response_from_dict = PutGuestNoteResponse.from_dict(put_guest_note_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md new file mode 100644 index 0000000..c91aaad --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md @@ -0,0 +1,30 @@ +# PutGuestRequestGuestCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_field_name** | **str** | | [optional] +**custom_field_value** | **str** | Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PutGuestRequestGuestCustomFieldsInner from a JSON string +put_guest_request_guest_custom_fields_inner_instance = PutGuestRequestGuestCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(PutGuestRequestGuestCustomFieldsInner.to_json()) + +# convert the object into a dict +put_guest_request_guest_custom_fields_inner_dict = put_guest_request_guest_custom_fields_inner_instance.to_dict() +# create an instance of PutGuestRequestGuestCustomFieldsInner from a dict +put_guest_request_guest_custom_fields_inner_from_dict = PutGuestRequestGuestCustomFieldsInner.from_dict(put_guest_request_guest_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutGuestResponse.md b/cloudbeds_pms_v1_2/docs/PutGuestResponse.md new file mode 100644 index 0000000..953ba70 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutGuestResponse.md @@ -0,0 +1,30 @@ +# PutGuestResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false), or in case any warning message is needed. If success = true, it usually does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutGuestResponse from a JSON string +put_guest_response_instance = PutGuestResponse.from_json(json) +# print the JSON string representation of the object +print(PutGuestResponse.to_json()) + +# convert the object into a dict +put_guest_response_dict = put_guest_response_instance.to_dict() +# create an instance of PutGuestResponse from a dict +put_guest_response_from_dict = PutGuestResponse.from_dict(put_guest_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md b/cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md new file mode 100644 index 0000000..3704c1b --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md @@ -0,0 +1,30 @@ +# PutHouseAccountStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutHouseAccountStatusResponse from a JSON string +put_house_account_status_response_instance = PutHouseAccountStatusResponse.from_json(json) +# print the JSON string representation of the object +print(PutHouseAccountStatusResponse.to_json()) + +# convert the object into a dict +put_house_account_status_response_dict = put_house_account_status_response_instance.to_dict() +# create an instance of PutHouseAccountStatusResponse from a dict +put_house_account_status_response_from_dict = PutHouseAccountStatusResponse.from_dict(put_house_account_status_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md b/cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md new file mode 100644 index 0000000..c5f6224 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md @@ -0,0 +1,30 @@ +# PutHousekeeperResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutHousekeeperResponse from a JSON string +put_housekeeper_response_instance = PutHousekeeperResponse.from_json(json) +# print the JSON string representation of the object +print(PutHousekeeperResponse.to_json()) + +# convert the object into a dict +put_housekeeper_response_dict = put_housekeeper_response_instance.to_dict() +# create an instance of PutHousekeeperResponse from a dict +put_housekeeper_response_from_dict = PutHousekeeperResponse.from_dict(put_housekeeper_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md b/cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md new file mode 100644 index 0000000..c0d8e07 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md @@ -0,0 +1,30 @@ +# PutItemToInventoryResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutItemToInventoryResponse from a JSON string +put_item_to_inventory_response_instance = PutItemToInventoryResponse.from_json(json) +# print the JSON string representation of the object +print(PutItemToInventoryResponse.to_json()) + +# convert the object into a dict +put_item_to_inventory_response_dict = put_item_to_inventory_response_instance.to_dict() +# create an instance of PutItemToInventoryResponse from a dict +put_item_to_inventory_response_from_dict = PutItemToInventoryResponse.from_dict(put_item_to_inventory_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md b/cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md new file mode 100644 index 0000000..303b819 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md @@ -0,0 +1,30 @@ +# PutReservationNoteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutReservationNoteResponse from a JSON string +put_reservation_note_response_instance = PutReservationNoteResponse.from_json(json) +# print the JSON string representation of the object +print(PutReservationNoteResponse.to_json()) + +# convert the object into a dict +put_reservation_note_response_dict = put_reservation_note_response_instance.to_dict() +# create an instance of PutReservationNoteResponse from a dict +put_reservation_note_response_from_dict = PutReservationNoteResponse.from_dict(put_reservation_note_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md new file mode 100644 index 0000000..3ee5a05 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md @@ -0,0 +1,30 @@ +# PutReservationRequestCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_field_name** | **str** | Internal custom field reference. Must match the registered name in backend. Pay Attention | [optional] +**custom_field_value** | **str** | Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PutReservationRequestCustomFieldsInner from a JSON string +put_reservation_request_custom_fields_inner_instance = PutReservationRequestCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(PutReservationRequestCustomFieldsInner.to_json()) + +# convert the object into a dict +put_reservation_request_custom_fields_inner_dict = put_reservation_request_custom_fields_inner_instance.to_dict() +# create an instance of PutReservationRequestCustomFieldsInner from a dict +put_reservation_request_custom_fields_inner_from_dict = PutReservationRequestCustomFieldsInner.from_dict(put_reservation_request_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md b/cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md new file mode 100644 index 0000000..015cd13 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md @@ -0,0 +1,35 @@ +# PutReservationRequestRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sub_reservation_id** | **str** | Sub Reservation ID of the specific assigned room. Optional. | [optional] +**room_type_id** | **str** | Room Type ID. Mandatory if rooms are sent. | [optional] +**checkin_date** | **date** | Check-in date for this specific room. Mandatory if rooms are sent. | [optional] +**checkout_date** | **date** | Check-out date for this specific room. Mandatory if rooms are sent. | [optional] +**adults** | **int** | Quantity of adults for the room. Mandatory if rooms are sent. | [optional] +**children** | **int** | Number of children for the room. Mandatory if rooms are sent. | [optional] +**rate_id** | **str** | Rate ID for the room. Optional. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PutReservationRequestRoomsInner from a JSON string +put_reservation_request_rooms_inner_instance = PutReservationRequestRoomsInner.from_json(json) +# print the JSON string representation of the object +print(PutReservationRequestRoomsInner.to_json()) + +# convert the object into a dict +put_reservation_request_rooms_inner_dict = put_reservation_request_rooms_inner_instance.to_dict() +# create an instance of PutReservationRequestRoomsInner from a dict +put_reservation_request_rooms_inner_from_dict = PutReservationRequestRoomsInner.from_dict(put_reservation_request_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutReservationResponse.md b/cloudbeds_pms_v1_2/docs/PutReservationResponse.md new file mode 100644 index 0000000..133b427 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutReservationResponse.md @@ -0,0 +1,31 @@ +# PutReservationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs. | [optional] +**data** | **object** | Returns the reservation data as defined by getReservation call. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutReservationResponse from a JSON string +put_reservation_response_instance = PutReservationResponse.from_json(json) +# print the JSON string representation of the object +print(PutReservationResponse.to_json()) + +# convert the object into a dict +put_reservation_response_dict = put_reservation_response_instance.to_dict() +# create an instance of PutReservationResponse from a dict +put_reservation_response_from_dict = PutReservationResponse.from_dict(put_reservation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md b/cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md new file mode 100644 index 0000000..80fc3af --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md @@ -0,0 +1,30 @@ +# PutRoomBlockRequestRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_id** | **str** | Room ID | [optional] +**room_type_id** | **str** | Room type ID | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PutRoomBlockRequestRoomsInner from a JSON string +put_room_block_request_rooms_inner_instance = PutRoomBlockRequestRoomsInner.from_json(json) +# print the JSON string representation of the object +print(PutRoomBlockRequestRoomsInner.to_json()) + +# convert the object into a dict +put_room_block_request_rooms_inner_dict = put_room_block_request_rooms_inner_instance.to_dict() +# create an instance of PutRoomBlockRequestRoomsInner from a dict +put_room_block_request_rooms_inner_from_dict = PutRoomBlockRequestRoomsInner.from_dict(put_room_block_request_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md b/cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md new file mode 100644 index 0000000..a3ead1a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md @@ -0,0 +1,37 @@ +# PutRoomBlockResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**property_id** | **str** | Property ID | [optional] +**room_block_id** | **str** | Room block ID | [optional] +**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] +**room_block_reason** | **str** | Room block reason | [optional] +**start_date** | **date** | Room block start date | [optional] +**end_date** | **date** | Room block end date | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutRoomBlockResponse from a JSON string +put_room_block_response_instance = PutRoomBlockResponse.from_json(json) +# print the JSON string representation of the object +print(PutRoomBlockResponse.to_json()) + +# convert the object into a dict +put_room_block_response_dict = put_room_block_response_instance.to_dict() +# create an instance of PutRoomBlockResponse from a dict +put_room_block_response_from_dict = PutRoomBlockResponse.from_dict(put_room_block_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/RateApi.md b/cloudbeds_pms_v1_2/docs/RateApi.md new file mode 100644 index 0000000..7989786 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/RateApi.md @@ -0,0 +1,457 @@ +# cloudbeds_pms_v1_2.RateApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_rate_get**](RateApi.md#get_rate_get) | **GET** /getRate | getRate +[**get_rate_jobs_get**](RateApi.md#get_rate_jobs_get) | **GET** /getRateJobs | getRateJobs +[**get_rate_plans_get**](RateApi.md#get_rate_plans_get) | **GET** /getRatePlans | getRatePlans +[**patch_rate_post**](RateApi.md#patch_rate_post) | **POST** /patchRate | patchRate +[**put_rate_post**](RateApi.md#put_rate_post) | **POST** /putRate | putRate + + +# **get_rate_get** +> GetRateResponse get_rate_get(room_type_id, start_date, end_date, adults=adults, children=children, detailed_rates=detailed_rates, promo_code=promo_code) + +getRate + +Returns the rate of the room type selected, based on the provided parameters + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + room_type_id = 'room_type_id_example' # str | Room Type ID + start_date = '2013-10-20' # date | Check-in date + end_date = '2013-10-20' # date | Check-out date + adults = 56 # int | Number of adults (optional) + children = 56 # int | Number of children (optional) + detailed_rates = False # bool | If the rates need detailed information (optional) (default to False) + promo_code = False # bool | Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead (optional) (default to False) + + try: + # getRate + api_response = api_instance.get_rate_get(room_type_id, start_date, end_date, adults=adults, children=children, detailed_rates=detailed_rates, promo_code=promo_code) + print("The response of RateApi->get_rate_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RateApi->get_rate_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **room_type_id** | **str**| Room Type ID | + **start_date** | **date**| Check-in date | + **end_date** | **date**| Check-out date | + **adults** | **int**| Number of adults | [optional] + **children** | **int**| Number of children | [optional] + **detailed_rates** | **bool**| If the rates need detailed information | [optional] [default to False] + **promo_code** | **bool**| Return information for one or more specific rate plans by promo code. This parameter is DEPRECATED and not recommended for usage. Use method getRatePlans instead | [optional] [default to False] + +### Return type + +[**GetRateResponse**](GetRateResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_rate_jobs_get** +> GetRateJobsResponse get_rate_jobs_get(job_reference_id=job_reference_id, status=status) + +getRateJobs + +Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + job_reference_id = 'job_reference_id_example' # str | Filter Rate Jobs by jobReferenceID (optional) + status = 'status_example' # str | Filter Rate Jobs based on status (optional) + + try: + # getRateJobs + api_response = api_instance.get_rate_jobs_get(job_reference_id=job_reference_id, status=status) + print("The response of RateApi->get_rate_jobs_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RateApi->get_rate_jobs_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_reference_id** | **str**| Filter Rate Jobs by jobReferenceID | [optional] + **status** | **str**| Filter Rate Jobs based on status | [optional] + +### Return type + +[**GetRateJobsResponse**](GetRateJobsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_rate_plans_get** +> GetRatePlansResponse get_rate_plans_get(start_date, end_date, property_ids=property_ids, rate_ids=rate_ids, room_type_id=room_type_id, promo_code=promo_code, include_promo_code=include_promo_code, adults=adults, children=children, detailed_rates=detailed_rates) + +getRatePlans + +Returns the rates of the room type or promo code selected, based on the provided parameters. If no parameters are provided, then the method will return all publicly available rate plans. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + start_date = '2013-10-20' # date | Check-in date + end_date = '2013-10-20' # date | Check-out date + property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) + rate_ids = 'rate_ids_example' # str | List of Rate IDs, comma-separated, i.e. 37,345,89 (optional) + room_type_id = 'room_type_id_example' # str | List of Room Type IDs, comma-separated, i.e. 37,345,89 (optional) + promo_code = 'promo_code_example' # str | List of Promo Codes, comma-separated, i.e. 37,345,89 (optional) + include_promo_code = True # bool | Include rate plans with promo code (optional) (default to True) + adults = 56 # int | Number of adults (optional) + children = 56 # int | Number of children (optional) + detailed_rates = False # bool | If the rates need detailed information (optional) (default to False) + + try: + # getRatePlans + api_response = api_instance.get_rate_plans_get(start_date, end_date, property_ids=property_ids, rate_ids=rate_ids, room_type_id=room_type_id, promo_code=promo_code, include_promo_code=include_promo_code, adults=adults, children=children, detailed_rates=detailed_rates) + print("The response of RateApi->get_rate_plans_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RateApi->get_rate_plans_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_date** | **date**| Check-in date | + **end_date** | **date**| Check-out date | + **property_ids** | **str**| List of property IDs, comma-separated, i.e. 37,345,89 | [optional] + **rate_ids** | **str**| List of Rate IDs, comma-separated, i.e. 37,345,89 | [optional] + **room_type_id** | **str**| List of Room Type IDs, comma-separated, i.e. 37,345,89 | [optional] + **promo_code** | **str**| List of Promo Codes, comma-separated, i.e. 37,345,89 | [optional] + **include_promo_code** | **bool**| Include rate plans with promo code | [optional] [default to True] + **adults** | **int**| Number of adults | [optional] + **children** | **int**| Number of children | [optional] + **detailed_rates** | **bool**| If the rates need detailed information | [optional] [default to False] + +### Return type + +[**GetRatePlansResponse**](GetRatePlansResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_rate_post** +> PostPatchRateResponse patch_rate_post(rates=rates) + +patchRate + +Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + rates = [cloudbeds_pms_v1_2.PostPatchRateRequestRatesInner()] # List[PostPatchRateRequestRatesInner] | Array of rates to update (optional) + + try: + # patchRate + api_response = api_instance.patch_rate_post(rates=rates) + print("The response of RateApi->patch_rate_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RateApi->patch_rate_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rates** | [**List[PostPatchRateRequestRatesInner]**](PostPatchRateRequestRatesInner.md)| Array of rates to update | [optional] + +### Return type + +[**PostPatchRateResponse**](PostPatchRateResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_rate_post** +> PostPutRateResponse put_rate_post(rates=rates) + +putRate + +Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + rates = [cloudbeds_pms_v1_2.PostPutRateRequestRatesInner()] # List[PostPutRateRequestRatesInner] | Array of rates to update (optional) + + try: + # putRate + api_response = api_instance.put_rate_post(rates=rates) + print("The response of RateApi->put_rate_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RateApi->put_rate_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rates** | [**List[PostPutRateRequestRatesInner]**](PostPutRateRequestRatesInner.md)| Array of rates to update | [optional] + +### Return type + +[**PostPutRateResponse**](PostPutRateResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/ReservationApi.md b/cloudbeds_pms_v1_2/docs/ReservationApi.md new file mode 100644 index 0000000..8fe8357 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/ReservationApi.md @@ -0,0 +1,1251 @@ +# cloudbeds_pms_v1_2.ReservationApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_reservation_note_delete**](ReservationApi.md#delete_reservation_note_delete) | **DELETE** /deleteReservationNote | deleteReservationNote +[**get_reservation_assignments_get**](ReservationApi.md#get_reservation_assignments_get) | **GET** /getReservationAssignments | getReservationAssignments +[**get_reservation_get**](ReservationApi.md#get_reservation_get) | **GET** /getReservation | getReservation +[**get_reservation_invoice_information_get**](ReservationApi.md#get_reservation_invoice_information_get) | **GET** /getReservationInvoiceInformation | getReservationInvoiceInformation +[**get_reservation_notes_get**](ReservationApi.md#get_reservation_notes_get) | **GET** /getReservationNotes | getReservationNotes +[**get_reservations_get**](ReservationApi.md#get_reservations_get) | **GET** /getReservations | getReservations +[**get_reservations_with_rate_details_get**](ReservationApi.md#get_reservations_with_rate_details_get) | **GET** /getReservationsWithRateDetails | getReservationsWithRateDetails +[**get_sources_get**](ReservationApi.md#get_sources_get) | **GET** /getSources | getSources +[**post_reservation_document_post**](ReservationApi.md#post_reservation_document_post) | **POST** /postReservationDocument | postReservationDocument +[**post_reservation_note_post**](ReservationApi.md#post_reservation_note_post) | **POST** /postReservationNote | postReservationNote +[**post_reservation_post**](ReservationApi.md#post_reservation_post) | **POST** /postReservation | postReservation +[**put_reservation_note_put**](ReservationApi.md#put_reservation_note_put) | **PUT** /putReservationNote | putReservationNote +[**put_reservation_put**](ReservationApi.md#put_reservation_put) | **PUT** /putReservation | putReservation + + +# **delete_reservation_note_delete** +> DeleteReservationNoteResponse delete_reservation_note_delete(reservation_id, reservation_note_id, property_id=property_id) + +deleteReservationNote + +Archives an existing reservation note. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier + reservation_note_id = 'reservation_note_id_example' # str | Reservation Note ID + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # deleteReservationNote + api_response = api_instance.delete_reservation_note_delete(reservation_id, reservation_note_id, property_id=property_id) + print("The response of ReservationApi->delete_reservation_note_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->delete_reservation_note_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation Unique Identifier | + **reservation_note_id** | **str**| Reservation Note ID | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**DeleteReservationNoteResponse**](DeleteReservationNoteResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reservation_assignments_get** +> GetReservationAssignmentsResponse get_reservation_assignments_get(property_id=property_id, var_date=var_date) + +getReservationAssignments + +Returns a list of rooms/reservations assigned for a selected date. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + var_date = '2013-10-20' # date | Date selected to get the assignments. If no date is passed, it will return the results for the current day. (optional) + + try: + # getReservationAssignments + api_response = api_instance.get_reservation_assignments_get(property_id=property_id, var_date=var_date) + print("The response of ReservationApi->get_reservation_assignments_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservation_assignments_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **var_date** | **date**| Date selected to get the assignments. If no date is passed, it will return the results for the current day. | [optional] + +### Return type + +[**GetReservationAssignmentsResponse**](GetReservationAssignmentsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reservation_get** +> GetReservationResponse get_reservation_get(reservation_id, property_id=property_id) + +getReservation + +Returns information on a booking specified by the reservationID parameter + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getReservation + api_response = api_instance.get_reservation_get(reservation_id, property_id=property_id) + print("The response of ReservationApi->get_reservation_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservation_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetReservationResponse**](GetReservationResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reservation_invoice_information_get** +> GetReservationInvoiceInformationResponse get_reservation_invoice_information_get(reservation_id, property_id=property_id) + +getReservationInvoiceInformation + +Returns information that can be used to create an invoice for the selected reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getReservationInvoiceInformation + api_response = api_instance.get_reservation_invoice_information_get(reservation_id, property_id=property_id) + print("The response of ReservationApi->get_reservation_invoice_information_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservation_invoice_information_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation Unique Identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetReservationInvoiceInformationResponse**](GetReservationInvoiceInformationResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reservation_notes_get** +> GetReservationNotesResponse get_reservation_notes_get(reservation_id, property_id=property_id) + +getReservationNotes + +Retrieves reservation notes based on parameters + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getReservationNotes + api_response = api_instance.get_reservation_notes_get(reservation_id, property_id=property_id) + print("The response of ReservationApi->get_reservation_notes_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservation_notes_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation Unique Identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetReservationNotesResponse**](GetReservationNotesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reservations_get** +> GetReservationsResponse get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) + +getReservations + +Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) + status = 'status_example' # str | Filter by current reservation status (optional) + results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter reservations, based on booking date (optional) + results_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on booking date (optional) + modified_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter reservations, based on booking modification date (optional) + modified_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on booking modification date (optional) + check_in_from = '2013-10-20' # date | Filters reservations result to return only reservations with check-in date range starting on this date (optional) + check_in_to = '2013-10-20' # date | Filters reservations result to return only reservations with check-in date range ending on this date (optional) + check_out_from = '2013-10-20' # date | Filters reservations result to return only reservations with check-out date range starting on this date (optional) + check_out_to = '2013-10-20' # date | Filters reservations result to return only reservations with check-out date range ending on this date (optional) + room_id = 'room_id_example' # str | Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. (optional) + room_name = 'room_name_example' # str | Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. (optional) + include_guests_details = False # bool | If guests details should be included or not (optional) (default to False) + include_custom_fields = False # bool | If reservation custom fields should be included or not (optional) (default to False) + include_all_rooms = False # bool | When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. (optional) (default to False) + source_id = 'source_id_example' # str | Filters reservation with the supplied source ID. (optional) + source_reservation_id = 'source_reservation_id_example' # str | Filters reservation with the supplied reservation source ID. (optional) + rate_plan_id = 'rate_plan_id_example' # str | Filters reservation with the supplied rate plan ID. (optional) + first_name = 'first_name_example' # str | Filters reservation with the supplied primary guest first name. (optional) + last_name = 'last_name_example' # str | Filters reservation with the supplied primary guest last name. (optional) + sort_by_recent = True # bool | Sort response results by most recent action (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + + try: + # getReservations + api_response = api_instance.get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) + print("The response of ReservationApi->get_reservations_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservations_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] + **status** | **str**| Filter by current reservation status | [optional] + **results_from** | **datetime**| Inferior limit datetime, used to filter reservations, based on booking date | [optional] + **results_to** | **datetime**| Superior limit datetime, used to filter reservations, based on booking date | [optional] + **modified_from** | **datetime**| Inferior limit datetime, used to filter reservations, based on booking modification date | [optional] + **modified_to** | **datetime**| Superior limit datetime, used to filter reservations, based on booking modification date | [optional] + **check_in_from** | **date**| Filters reservations result to return only reservations with check-in date range starting on this date | [optional] + **check_in_to** | **date**| Filters reservations result to return only reservations with check-in date range ending on this date | [optional] + **check_out_from** | **date**| Filters reservations result to return only reservations with check-out date range starting on this date | [optional] + **check_out_to** | **date**| Filters reservations result to return only reservations with check-out date range ending on this date | [optional] + **room_id** | **str**| Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. | [optional] + **room_name** | **str**| Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. | [optional] + **include_guests_details** | **bool**| If guests details should be included or not | [optional] [default to False] + **include_custom_fields** | **bool**| If reservation custom fields should be included or not | [optional] [default to False] + **include_all_rooms** | **bool**| When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. | [optional] [default to False] + **source_id** | **str**| Filters reservation with the supplied source ID. | [optional] + **source_reservation_id** | **str**| Filters reservation with the supplied reservation source ID. | [optional] + **rate_plan_id** | **str**| Filters reservation with the supplied rate plan ID. | [optional] + **first_name** | **str**| Filters reservation with the supplied primary guest first name. | [optional] + **last_name** | **str**| Filters reservation with the supplied primary guest last name. | [optional] + **sort_by_recent** | **bool**| Sort response results by most recent action | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + +### Return type + +[**GetReservationsResponse**](GetReservationsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reservations_with_rate_details_get** +> GetReservationsWithRateDetailsResponse get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, page_number=page_number, page_size=page_size) + +getReservationsWithRateDetails + +Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago (optional) + results_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date (optional) + modified_from = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on modification date. (optional) + modified_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on modification date. (optional) + sort_by_recent = True # bool | Sort response results by most recent action (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. (optional) + reservation_check_out_from = '2013-10-20' # date | Superior limit datetime, used to filter reservations, based on reservation check-out date. (optional) + reservation_check_out_to = '2013-10-20' # date | Superior limit datetime, used to filter reservations, based on reservation check-out date. (optional) + include_deleted = False # bool | Include deleted reservations (optional) (default to False) + exclude_statuses = 'exclude_statuses_example' # str | List of statuses (separated by comma) to be excluded from search (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + + try: + # getReservationsWithRateDetails + api_response = api_instance.get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, page_number=page_number, page_size=page_size) + print("The response of ReservationApi->get_reservations_with_rate_details_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservations_with_rate_details_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **results_from** | **datetime**| Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago | [optional] + **results_to** | **datetime**| Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date | [optional] + **modified_from** | **datetime**| Superior limit datetime, used to filter reservations, based on modification date. | [optional] + **modified_to** | **datetime**| Superior limit datetime, used to filter reservations, based on modification date. | [optional] + **sort_by_recent** | **bool**| Sort response results by most recent action | [optional] + **reservation_id** | **str**| Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. | [optional] + **reservation_check_out_from** | **date**| Superior limit datetime, used to filter reservations, based on reservation check-out date. | [optional] + **reservation_check_out_to** | **date**| Superior limit datetime, used to filter reservations, based on reservation check-out date. | [optional] + **include_deleted** | **bool**| Include deleted reservations | [optional] [default to False] + **exclude_statuses** | **str**| List of statuses (separated by comma) to be excluded from search | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + +### Return type + +[**GetReservationsWithRateDetailsResponse**](GetReservationsWithRateDetailsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sources_get** +> GetSourcesResponse get_sources_get(property_ids=property_ids) + +getSources + +Gets available property sources + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_ids = 'property_ids_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
(optional) + + try: + # getSources + api_response = api_instance.get_sources_get(property_ids=property_ids) + print("The response of ReservationApi->get_sources_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_sources_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> | [optional] + +### Return type + +[**GetSourcesResponse**](GetSourcesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_reservation_document_post** +> PostReservationDocumentResponse post_reservation_document_post(property_id=property_id, reservation_id=reservation_id, file=file) + +postReservationDocument + +Attaches a document to a reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) + file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) + + try: + # postReservationDocument + api_response = api_instance.post_reservation_document_post(property_id=property_id, reservation_id=reservation_id, file=file) + print("The response of ReservationApi->post_reservation_document_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->post_reservation_document_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation Unique Identifier | [optional] + **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 100MB | [optional] + +### Return type + +[**PostReservationDocumentResponse**](PostReservationDocumentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_reservation_note_post** +> PostReservationNoteResponse post_reservation_note_post(property_id=property_id, reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id) + +postReservationNote + +Adds a reservation note + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) + reservation_note = 'reservation_note_example' # str | Note to be added to reservation (optional) + user_id = 'user_id_example' # str | User ID Identify the actual user that is posting the note (optional) + + try: + # postReservationNote + api_response = api_instance.post_reservation_note_post(property_id=property_id, reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id) + print("The response of ReservationApi->post_reservation_note_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->post_reservation_note_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation Unique Identifier | [optional] + **reservation_note** | **str**| Note to be added to reservation | [optional] + **user_id** | **str**| User ID Identify the actual user that is posting the note | [optional] + +### Return type + +[**PostReservationNoteResponse**](PostReservationNoteResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_reservation_post** +> PostReservationResponse post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, date_created=date_created, send_email_confirmation=send_email_confirmation) + +postReservation + +Adds a reservation to the selected property + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + source_id = 'source_id_example' # str | The third-party source ID for this reservation. (optional) + third_party_identifier = 'third_party_identifier_example' # str | If it was received from a booking channel, this can be an identifier from that channel. (optional) + start_date = '2013-10-20' # date | Check-In date. (optional) + end_date = '2013-10-20' # date | Check-Out date. (optional) + guest_first_name = 'guest_first_name_example' # str | First name of the guest (optional) + guest_last_name = 'guest_last_name_example' # str | Last name of the guest (optional) + guest_gender = 'guest_gender_example' # str | (optional) + guest_country = 'guest_country_example' # str | Valid ISO-Code for Country (2 characters) (optional) + guest_zip = 'guest_zip_example' # str | ZIP Code (optional) + guest_email = 'guest_email_example' # str | Guest email (optional) + guest_phone = 'guest_phone_example' # str | Guest main phone number (optional) + estimated_arrival_time = 'estimated_arrival_time_example' # str | Estimated Arrival Time, 24-hour format. (optional) + rooms = [cloudbeds_pms_v1_2.PostReservationRequestRoomsInner()] # List[PostReservationRequestRoomsInner] | Array with quantity of rooms (optional) + adults = [cloudbeds_pms_v1_2.PostReservationRequestAdultsInner()] # List[PostReservationRequestAdultsInner] | Array with number of adults (optional) + children = [cloudbeds_pms_v1_2.PostReservationRequestChildrenInner()] # List[PostReservationRequestChildrenInner] | Array with number of children (optional) + payment_method = 'payment_method_example' # str | Payment Method of choice. (optional) + card_token = 'card_token_example' # str | Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. (optional) + payment_authorization_code = 'payment_authorization_code_example' # str | Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. (optional) + custom_fields = [cloudbeds_pms_v1_2.PostReservationRequestCustomFieldsInner()] # List[PostReservationRequestCustomFieldsInner] | Array with custom fields information (optional) + promo_code = 'promo_code_example' # str | Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". (optional) + allotment_block_code = 'allotment_block_code_example' # str | Allotment block code to add reservation to allotment block. (optional) + date_created = '2013-10-20T19:20:30+01:00' # datetime | Date reservation was made. Defaults to current date if omitted. (optional) + send_email_confirmation = True # bool | Send confirmation email to guest. (optional) (default to True) + + try: + # postReservation + api_response = api_instance.post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, date_created=date_created, send_email_confirmation=send_email_confirmation) + print("The response of ReservationApi->post_reservation_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->post_reservation_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **source_id** | **str**| The third-party source ID for this reservation. | [optional] + **third_party_identifier** | **str**| If it was received from a booking channel, this can be an identifier from that channel. | [optional] + **start_date** | **date**| Check-In date. | [optional] + **end_date** | **date**| Check-Out date. | [optional] + **guest_first_name** | **str**| First name of the guest | [optional] + **guest_last_name** | **str**| Last name of the guest | [optional] + **guest_gender** | **str**| | [optional] + **guest_country** | **str**| Valid ISO-Code for Country (2 characters) | [optional] + **guest_zip** | **str**| ZIP Code | [optional] + **guest_email** | **str**| Guest email | [optional] + **guest_phone** | **str**| Guest main phone number | [optional] + **estimated_arrival_time** | **str**| Estimated Arrival Time, 24-hour format. | [optional] + **rooms** | [**List[PostReservationRequestRoomsInner]**](PostReservationRequestRoomsInner.md)| Array with quantity of rooms | [optional] + **adults** | [**List[PostReservationRequestAdultsInner]**](PostReservationRequestAdultsInner.md)| Array with number of adults | [optional] + **children** | [**List[PostReservationRequestChildrenInner]**](PostReservationRequestChildrenInner.md)| Array with number of children | [optional] + **payment_method** | **str**| Payment Method of choice. | [optional] + **card_token** | **str**| Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. | [optional] + **payment_authorization_code** | **str**| Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. | [optional] + **custom_fields** | [**List[PostReservationRequestCustomFieldsInner]**](PostReservationRequestCustomFieldsInner.md)| Array with custom fields information | [optional] + **promo_code** | **str**| Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". | [optional] + **allotment_block_code** | **str**| Allotment block code to add reservation to allotment block. | [optional] + **date_created** | **datetime**| Date reservation was made. Defaults to current date if omitted. | [optional] + **send_email_confirmation** | **bool**| Send confirmation email to guest. | [optional] [default to True] + +### Return type + +[**PostReservationResponse**](PostReservationResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_reservation_note_put** +> PutReservationNoteResponse put_reservation_note_put(property_id=property_id, reservation_id=reservation_id, reservation_note_id=reservation_note_id, reservation_note=reservation_note) + +putReservationNote + +Updates an existing reservation note. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) + reservation_note_id = 'reservation_note_id_example' # str | Reservation Note ID (optional) + reservation_note = 'reservation_note_example' # str | Note to be added to reservation (optional) + + try: + # putReservationNote + api_response = api_instance.put_reservation_note_put(property_id=property_id, reservation_id=reservation_id, reservation_note_id=reservation_note_id, reservation_note=reservation_note) + print("The response of ReservationApi->put_reservation_note_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->put_reservation_note_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation Unique Identifier | [optional] + **reservation_note_id** | **str**| Reservation Note ID | [optional] + **reservation_note** | **str**| Note to be added to reservation | [optional] + +### Return type + +[**PutReservationNoteResponse**](PutReservationNoteResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_reservation_put** +> PutReservationResponse put_reservation_put(property_id=property_id, reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, status=status, checkout_date=checkout_date, custom_fields=custom_fields, rooms=rooms, date_created=date_created, send_status_change_email=send_status_change_email) + +putReservation + +Updates a reservation, such as custom fields, estimated arrival time, room configuration and reservation status. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, one reservation ID per call. (optional) + estimated_arrival_time = 'estimated_arrival_time_example' # str | Estimated Arrival Time, 24-hour format. (optional) + status = 'status_example' # str | Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date (optional) + checkout_date = '2013-10-20' # date | Update the checkoutDate across the whole reservation (optional) + custom_fields = [cloudbeds_pms_v1_2.PutReservationRequestCustomFieldsInner()] # List[PutReservationRequestCustomFieldsInner] | Array with custom fields information (optional) + rooms = [cloudbeds_pms_v1_2.PutReservationRequestRoomsInner()] # List[PutReservationRequestRoomsInner] | Array with rooms information to change accommodations assigned to the reservation (optional) + date_created = '2013-10-20T19:20:30+01:00' # datetime | Date reservation was made. Do not change if omitted. (optional) + send_status_change_email = False # bool | Send email on reservation status change to property and guest. (optional) (default to False) + + try: + # putReservation + api_response = api_instance.put_reservation_put(property_id=property_id, reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, status=status, checkout_date=checkout_date, custom_fields=custom_fields, rooms=rooms, date_created=date_created, send_status_change_email=send_status_change_email) + print("The response of ReservationApi->put_reservation_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->put_reservation_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation Unique Identifier, one reservation ID per call. | [optional] + **estimated_arrival_time** | **str**| Estimated Arrival Time, 24-hour format. | [optional] + **status** | **str**| Reservation status<br /> 'confirmed' - Reservation is confirmed<br /> 'not_confirmed' - Reservation not passed confirmation<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] + **checkout_date** | **date**| Update the checkoutDate across the whole reservation | [optional] + **custom_fields** | [**List[PutReservationRequestCustomFieldsInner]**](PutReservationRequestCustomFieldsInner.md)| Array with custom fields information | [optional] + **rooms** | [**List[PutReservationRequestRoomsInner]**](PutReservationRequestRoomsInner.md)| Array with rooms information to change accommodations assigned to the reservation | [optional] + **date_created** | **datetime**| Date reservation was made. Do not change if omitted. | [optional] + **send_status_change_email** | **bool**| Send email on reservation status change to property and guest. | [optional] [default to False] + +### Return type + +[**PutReservationResponse**](PutReservationResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/RoomApi.md b/cloudbeds_pms_v1_2/docs/RoomApi.md new file mode 100644 index 0000000..b9f6bc7 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/RoomApi.md @@ -0,0 +1,1225 @@ +# cloudbeds_pms_v1_2.RoomApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_room_block_delete**](RoomApi.md#delete_room_block_delete) | **DELETE** /deleteRoomBlock | deleteRoomBlock +[**get_available_room_types_get**](RoomApi.md#get_available_room_types_get) | **GET** /getAvailableRoomTypes | getAvailableRoomTypes +[**get_reservation_room_details_get**](RoomApi.md#get_reservation_room_details_get) | **GET** /getReservationRoomDetails | getReservationRoomDetails +[**get_room_blocks_get**](RoomApi.md#get_room_blocks_get) | **GET** /getRoomBlocks | getRoomBlocks +[**get_room_types_get**](RoomApi.md#get_room_types_get) | **GET** /getRoomTypes | getRoomTypes +[**get_rooms_fees_and_taxes_get**](RoomApi.md#get_rooms_fees_and_taxes_get) | **GET** /getRoomsFeesAndTaxes | getRoomsFeesAndTaxes +[**get_rooms_get**](RoomApi.md#get_rooms_get) | **GET** /getRooms | getRooms +[**get_rooms_unassigned_get**](RoomApi.md#get_rooms_unassigned_get) | **GET** /getRoomsUnassigned | getRoomsUnassigned +[**post_room_assign_post**](RoomApi.md#post_room_assign_post) | **POST** /postRoomAssign | postRoomAssign +[**post_room_block_post**](RoomApi.md#post_room_block_post) | **POST** /postRoomBlock | postRoomBlock +[**post_room_check_in_post**](RoomApi.md#post_room_check_in_post) | **POST** /postRoomCheckIn | postRoomCheckIn +[**post_room_check_out_post**](RoomApi.md#post_room_check_out_post) | **POST** /postRoomCheckOut | postRoomCheckOut +[**put_room_block_put**](RoomApi.md#put_room_block_put) | **PUT** /putRoomBlock | putRoomBlock + + +# **delete_room_block_delete** +> DeleteRoomBlockResponse delete_room_block_delete(room_block_id, property_id=property_id) + +deleteRoomBlock + +Deletes a room block + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + room_block_id = 'room_block_id_example' # str | Room block ID + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # deleteRoomBlock + api_response = api_instance.delete_room_block_delete(room_block_id, property_id=property_id) + print("The response of RoomApi->delete_room_block_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->delete_room_block_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **room_block_id** | **str**| Room block ID | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**DeleteRoomBlockResponse**](DeleteRoomBlockResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_available_room_types_get** +> GetAvailableRoomTypesResponse get_available_room_types_get(start_date, end_date, rooms, adults, children, property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, sort=sort, order=order, min_rate=min_rate, max_rate=max_rate, page_number=page_number, page_size=page_size) + +getAvailableRoomTypes + +Returns a list of room types with availability considering the informed parameters ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + start_date = '2013-10-20' # date | Check-In date. + end_date = '2013-10-20' # date | Check-Out date. + rooms = 1 # int | Number of rooms. (default to 1) + adults = 1 # int | Number of adults. (default to 1) + children = 56 # int | Number of children. + property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 (optional) + promo_code = 'promo_code_example' # str | Promotional code (optional) + detailed_rates = False # bool | If detailed rates are expected (optional) (default to False) + sort = 'sort_example' # str | Sort parameter (optional) + order = asc # str | (optional) (default to asc) + min_rate = 3.4 # float | Minimum daily rate. Used to filter results (optional) + max_rate = 3.4 # float | Maximum daily rate. Used to filter results (optional) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 20 # int | Page size (optional) (default to 20) + + try: + # getAvailableRoomTypes + api_response = api_instance.get_available_room_types_get(start_date, end_date, rooms, adults, children, property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, sort=sort, order=order, min_rate=min_rate, max_rate=max_rate, page_number=page_number, page_size=page_size) + print("The response of RoomApi->get_available_room_types_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->get_available_room_types_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_date** | **date**| Check-In date. | + **end_date** | **date**| Check-Out date. | + **rooms** | **int**| Number of rooms. | [default to 1] + **adults** | **int**| Number of adults. | [default to 1] + **children** | **int**| Number of children. | + **property_ids** | **str**| Property ID list, comma-separated, i.e. 37,345,89 | [optional] + **promo_code** | **str**| Promotional code | [optional] + **detailed_rates** | **bool**| If detailed rates are expected | [optional] [default to False] + **sort** | **str**| Sort parameter | [optional] + **order** | **str**| | [optional] [default to asc] + **min_rate** | **float**| Minimum daily rate. Used to filter results | [optional] + **max_rate** | **float**| Maximum daily rate. Used to filter results | [optional] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 20] + +### Return type + +[**GetAvailableRoomTypesResponse**](GetAvailableRoomTypesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reservation_room_details_get** +> GetReservationRoomDetailsResponse get_reservation_room_details_get(sub_reservation_id, property_id=property_id) + +getReservationRoomDetails + +Returns information about particular room in reservation by its subReservationID + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation ID of the specific assigned room + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getReservationRoomDetails + api_response = api_instance.get_reservation_room_details_get(sub_reservation_id, property_id=property_id) + print("The response of RoomApi->get_reservation_room_details_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->get_reservation_room_details_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sub_reservation_id** | **str**| Sub Reservation ID of the specific assigned room | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetReservationRoomDetailsResponse**](GetReservationRoomDetailsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_room_blocks_get** +> GetRoomBlocksResponse get_room_blocks_get(property_id=property_id, room_block_id=room_block_id, room_type_id=room_type_id, room_id=room_id, start_date=start_date, end_date=end_date, page_number=page_number, page_size=page_size) + +getRoomBlocks + +Returns a list of all room blocks considering the informed parameters. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + room_block_id = 'room_block_id_example' # str | Room block ID (optional) + room_type_id = 'room_type_id_example' # str | Room type ID (optional) + room_id = 'room_id_example' # str | Room ID (optional) + start_date = '2013-10-20' # date | date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less) (optional) + end_date = '2013-10-20' # date | date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less) (optional) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 20 # int | Page size (optional) (default to 20) + + try: + # getRoomBlocks + api_response = api_instance.get_room_blocks_get(property_id=property_id, room_block_id=room_block_id, room_type_id=room_type_id, room_id=room_id, start_date=start_date, end_date=end_date, page_number=page_number, page_size=page_size) + print("The response of RoomApi->get_room_blocks_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->get_room_blocks_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **room_block_id** | **str**| Room block ID | [optional] + **room_type_id** | **str**| Room type ID | [optional] + **room_id** | **str**| Room ID | [optional] + **start_date** | **date**| date\"] Start date - will filter for any room blocks that include this date (Date range must be one month or less) | [optional] + **end_date** | **date**| date\"] End date - will filter for any room blocks that include this date (Date range must be one month or less) | [optional] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 20] + +### Return type + +[**GetRoomBlocksResponse**](GetRoomBlocksResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_room_types_get** +> GetRoomTypesResponse get_room_types_get(property_ids=property_ids, room_type_ids=room_type_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, room_type_name=room_type_name, property_city=property_city, property_name=property_name, max_guests=max_guests, page_number=page_number, page_size=page_size) + +getRoomTypes + +Returns a list of room types filtered by the selected parameters ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 (optional) + room_type_ids = 'room_type_ids_example' # str | Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89 (optional) + start_date = '2013-10-20' # date | Check-in date. Required for the rates to be returned. (optional) + end_date = '2013-10-20' # date | Check-out date. Required for the rates to be returned. (optional) + adults = 56 # int | Number of adults. Required for the rates to be returned. (optional) + children = 56 # int | Number of children. Required for the rates to be returned. (optional) + detailed_rates = False # bool | If detailed rates are expected (optional) (default to False) + room_type_name = 'room_type_name_example' # str | Room type name, used to filter (optional) + property_city = 'property_city_example' # str | Hotel city, used to filter (optional) + property_name = 'property_name_example' # str | Hotel name, used to filter (optional) + max_guests = 'max_guests_example' # str | Max number of guests, used to filter (optional) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 20 # int | Page size (optional) (default to 20) + + try: + # getRoomTypes + api_response = api_instance.get_room_types_get(property_ids=property_ids, room_type_ids=room_type_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, room_type_name=room_type_name, property_city=property_city, property_name=property_name, max_guests=max_guests, page_number=page_number, page_size=page_size) + print("The response of RoomApi->get_room_types_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->get_room_types_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| Property ID list, comma-separated, i.e. 37,345,89 | [optional] + **room_type_ids** | **str**| Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89 | [optional] + **start_date** | **date**| Check-in date. Required for the rates to be returned. | [optional] + **end_date** | **date**| Check-out date. Required for the rates to be returned. | [optional] + **adults** | **int**| Number of adults. Required for the rates to be returned. | [optional] + **children** | **int**| Number of children. Required for the rates to be returned. | [optional] + **detailed_rates** | **bool**| If detailed rates are expected | [optional] [default to False] + **room_type_name** | **str**| Room type name, used to filter | [optional] + **property_city** | **str**| Hotel city, used to filter | [optional] + **property_name** | **str**| Hotel name, used to filter | [optional] + **max_guests** | **str**| Max number of guests, used to filter | [optional] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 20] + +### Return type + +[**GetRoomTypesResponse**](GetRoomTypesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_rooms_fees_and_taxes_get** +> GetRoomsFeesAndTaxesResponse get_rooms_fees_and_taxes_get(start_date, end_date, rooms_total, rooms_count, property_id=property_id) + +getRoomsFeesAndTaxes + +Get applicable fees and tax to a booking. This is meant to be used on checkout to display to the guest. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + start_date = '2013-10-20' # date | Check-in date + end_date = '2013-10-20' # date | Check-out date + rooms_total = 3.4 # float | Total value of the rooms to be booked, with included taxes + rooms_count = 56 # int | Number of rooms to be booked + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getRoomsFeesAndTaxes + api_response = api_instance.get_rooms_fees_and_taxes_get(start_date, end_date, rooms_total, rooms_count, property_id=property_id) + print("The response of RoomApi->get_rooms_fees_and_taxes_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->get_rooms_fees_and_taxes_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_date** | **date**| Check-in date | + **end_date** | **date**| Check-out date | + **rooms_total** | **float**| Total value of the rooms to be booked, with included taxes | + **rooms_count** | **int**| Number of rooms to be booked | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetRoomsFeesAndTaxesResponse**](GetRoomsFeesAndTaxesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_rooms_get** +> GetRoomsResponse get_rooms_get(room_type_id, room_type_name_short, property_ids=property_ids, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) + +getRooms + +Returns a list of all rooms considering the informed parameters. If Check-in/out dates are sent, only unassigned rooms are returned. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + room_type_id = 'room_type_id_example' # str | Room type ID, comma-separated, i.e. 37,345,89 + room_type_name_short = 'room_type_name_short_example' # str | Room Type (short-version) + property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 (optional) + start_date = '2013-10-20' # date | Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. (optional) + end_date = '2013-10-20' # date | Final stay date. Necessary if startDate is sent. (optional) + include_room_relations = 0 # int | Determines whether room relations info should be included in the response (optional) (default to 0) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 20 # int | Page size (optional) (default to 20) + + try: + # getRooms + api_response = api_instance.get_rooms_get(room_type_id, room_type_name_short, property_ids=property_ids, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) + print("The response of RoomApi->get_rooms_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->get_rooms_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **room_type_id** | **str**| Room type ID, comma-separated, i.e. 37,345,89 | + **room_type_name_short** | **str**| Room Type (short-version) | + **property_ids** | **str**| Property ID list, comma-separated, i.e. 37,345,89 | [optional] + **start_date** | **date**| Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. | [optional] + **end_date** | **date**| Final stay date. Necessary if startDate is sent. | [optional] + **include_room_relations** | **int**| Determines whether room relations info should be included in the response | [optional] [default to 0] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 20] + +### Return type + +[**GetRoomsResponse**](GetRoomsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_rooms_unassigned_get** +> GetRoomsUnassignedResponse get_rooms_unassigned_get(property_ids=property_ids) + +getRoomsUnassigned + +Returns a list of unassigned rooms in the property. Call is alias of [getRooms](#api-Room-getRooms). Please check its documentation for parameters, response and example. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) + + try: + # getRoomsUnassigned + api_response = api_instance.get_rooms_unassigned_get(property_ids=property_ids) + print("The response of RoomApi->get_rooms_unassigned_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->get_rooms_unassigned_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| List of property IDs, comma-separated, i.e. 37,345,89 | [optional] + +### Return type + +[**GetRoomsUnassignedResponse**](GetRoomsUnassignedResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_room_assign_post** +> PostRoomAssignResponse post_room_assign_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, override_rates=override_rates, adjust_price=adjust_price) + +postRoomAssign + +Assign/Reassign a room on a guest reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier (optional) + new_room_id = 'new_room_id_example' # str | Room ID of the room that will be assigned. (optional) + room_type_id = 'room_type_id_example' # str | Room Type ID of the room that will be assigned. Need to be informed in case of assignment. (optional) + old_room_id = 'old_room_id_example' # str | Room ID of the room that was assigned. Need to be informed in case of reassignment. (optional) + override_rates = False # bool | Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. (optional) (default to False) + adjust_price = False # bool | If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value. (optional) (default to False) + + try: + # postRoomAssign + api_response = api_instance.post_room_assign_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, override_rates=override_rates, adjust_price=adjust_price) + print("The response of RoomApi->post_room_assign_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->post_room_assign_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **sub_reservation_id** | **str**| Sub Reservation identifier | [optional] + **new_room_id** | **str**| Room ID of the room that will be assigned. | [optional] + **room_type_id** | **str**| Room Type ID of the room that will be assigned. Need to be informed in case of assignment. | [optional] + **old_room_id** | **str**| Room ID of the room that was assigned. Need to be informed in case of reassignment. | [optional] + **override_rates** | **bool**| Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. | [optional] [default to False] + **adjust_price** | **bool**| If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value. | [optional] [default to False] + +### Return type + +[**PostRoomAssignResponse**](PostRoomAssignResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_room_block_post** +> PostRoomBlockResponse post_room_block_post(property_id=property_id, room_block_type=room_block_type, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) + +postRoomBlock + +Adds a room block to the selected property. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + room_block_type = 'room_block_type_example' # str | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block (optional) + room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) + start_date = '2013-10-20' # date | Room block start date (optional) + end_date = '2013-10-20' # date | Room block end date (optional) + rooms = [cloudbeds_pms_v1_2.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + + try: + # postRoomBlock + api_response = api_instance.post_room_block_post(property_id=property_id, room_block_type=room_block_type, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) + print("The response of RoomApi->post_room_block_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->post_room_block_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **room_block_type** | **str**| Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] + **room_block_reason** | **str**| Room block reason | [optional] + **start_date** | **date**| Room block start date | [optional] + **end_date** | **date**| Room block end date | [optional] + **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + +### Return type + +[**PostRoomBlockResponse**](PostRoomBlockResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_room_check_in_post** +> PostRoomCheckInResponse post_room_check_in_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id) + +postRoomCheckIn + +Check-in a room already assigned for a guest + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored. (optional) + room_id = 'room_id_example' # str | Room ID of the room that will be checked-in. (optional) + + try: + # postRoomCheckIn + api_response = api_instance.post_room_check_in_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id) + print("The response of RoomApi->post_room_check_in_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->post_room_check_in_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **sub_reservation_id** | **str**| Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored. | [optional] + **room_id** | **str**| Room ID of the room that will be checked-in. | [optional] + +### Return type + +[**PostRoomCheckInResponse**](PostRoomCheckInResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_room_check_out_post** +> PostRoomCheckOutResponse post_room_check_out_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id) + +postRoomCheckOut + +Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to \"Checked Out\" as well. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored. (optional) + room_id = 'room_id_example' # str | Room ID of the room that will be checked out. (optional) + + try: + # postRoomCheckOut + api_response = api_instance.post_room_check_out_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id) + print("The response of RoomApi->post_room_check_out_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->post_room_check_out_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **sub_reservation_id** | **str**| Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored. | [optional] + **room_id** | **str**| Room ID of the room that will be checked out. | [optional] + +### Return type + +[**PostRoomCheckOutResponse**](PostRoomCheckOutResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **put_room_block_put** +> PutRoomBlockResponse put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) + +putRoomBlock + +Updates a room block. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + room_block_id = 'room_block_id_example' # str | Room block ID (optional) + room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) + start_date = '2013-10-20' # date | Room block start date (optional) + end_date = '2013-10-20' # date | Room block end date (optional) + rooms = [cloudbeds_pms_v1_2.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + + try: + # putRoomBlock + api_response = api_instance.put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) + print("The response of RoomApi->put_room_block_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->put_room_block_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **room_block_id** | **str**| Room block ID | [optional] + **room_block_reason** | **str**| Room block reason | [optional] + **start_date** | **date**| Room block start date | [optional] + **end_date** | **date**| Room block end date | [optional] + **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + +### Return type + +[**PutRoomBlockResponse**](PutRoomBlockResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md b/cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md new file mode 100644 index 0000000..d7bb451 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md @@ -0,0 +1,95 @@ +# cloudbeds_pms_v1_2.TaxesAndFeesApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_taxes_and_fees_get**](TaxesAndFeesApi.md#get_taxes_and_fees_get) | **GET** /getTaxesAndFees | getTaxesAndFees + + +# **get_taxes_and_fees_get** +> GetTaxesAndFeesResponse get_taxes_and_fees_get(property_id=property_id, include_deleted=include_deleted, include_expired=include_expired) + +getTaxesAndFees + +Returns the taxes and fees set for the property. Read the [Rate-Based tax (Dynamic Tax) guide](https://myfrontdesk.cloudbeds.com/hc/en-us/articles/360014103514-rate-based-tax-dynamic-tax) to understand its usage. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.TaxesAndFeesApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + include_deleted = False # bool | If the response should include deleted taxes and fees (optional) (default to False) + include_expired = False # bool | If the response should include expired taxes and fees (optional) (default to False) + + try: + # getTaxesAndFees + api_response = api_instance.get_taxes_and_fees_get(property_id=property_id, include_deleted=include_deleted, include_expired=include_expired) + print("The response of TaxesAndFeesApi->get_taxes_and_fees_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TaxesAndFeesApi->get_taxes_and_fees_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **include_deleted** | **bool**| If the response should include deleted taxes and fees | [optional] [default to False] + **include_expired** | **bool**| If the response should include expired taxes and fees | [optional] [default to False] + +### Return type + +[**GetTaxesAndFeesResponse**](GetTaxesAndFeesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/UserApi.md b/cloudbeds_pms_v1_2/docs/UserApi.md new file mode 100644 index 0000000..751ceff --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/UserApi.md @@ -0,0 +1,91 @@ +# cloudbeds_pms_v1_2.UserApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_users_get**](UserApi.md#get_users_get) | **GET** /getUsers | getUsers + + +# **get_users_get** +> GetUsersResponse get_users_get(property_ids=property_ids) + +getUsers + +Returns information on the properties' users ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_2 +from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_2.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_2.Configuration( + host = "https://api.cloudbeds.com/api/v1.2" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_2.UserApi(api_client) + property_ids = 'property_ids_example' # str | Property numeric identifiers (comma-separated, i.e. 37,345,89) (optional) + + try: + # getUsers + api_response = api_instance.get_users_get(property_ids=property_ids) + print("The response of UserApi->get_users_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->get_users_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| Property numeric identifiers (comma-separated, i.e. 37,345,89) | [optional] + +### Return type + +[**GetUsersResponse**](GetUsersResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/exceptions.py b/cloudbeds_pms_v1_2/exceptions.py new file mode 100644 index 0000000..30991c3 --- /dev/null +++ b/cloudbeds_pms_v1_2/exceptions.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from typing import Any, Optional +from typing_extensions import Self + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None) -> None: + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiAttributeError(OpenApiException, AttributeError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Raised when an attribute reference or assignment fails. + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiAttributeError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None) -> None: + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__( + self, + status=None, + reason=None, + http_resp=None, + *, + body: Optional[str] = None, + data: Optional[Any] = None, + ) -> None: + self.status = status + self.reason = reason + self.body = body + self.data = data + self.headers = None + + if http_resp: + if self.status is None: + self.status = http_resp.status + if self.reason is None: + self.reason = http_resp.reason + if self.body is None: + try: + self.body = http_resp.data.decode('utf-8') + except Exception: + pass + self.headers = http_resp.getheaders() + + @classmethod + def from_response( + cls, + *, + http_resp, + body: Optional[str], + data: Optional[Any], + ) -> Self: + if http_resp.status == 400: + raise BadRequestException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 401: + raise UnauthorizedException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 403: + raise ForbiddenException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 404: + raise NotFoundException(http_resp=http_resp, body=body, data=data) + + if 500 <= http_resp.status <= 599: + raise ServiceException(http_resp=http_resp, body=body, data=data) + raise ApiException(http_resp=http_resp, body=body, data=data) + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.data or self.body: + error_message += "HTTP response body: {0}\n".format(self.data or self.body) + + return error_message + + +class BadRequestException(ApiException): + pass + + +class NotFoundException(ApiException): + pass + + +class UnauthorizedException(ApiException): + pass + + +class ForbiddenException(ApiException): + pass + + +class ServiceException(ApiException): + pass + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, int): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/cloudbeds_pms_v1_2/models/__init__.py b/cloudbeds_pms_v1_2/models/__init__.py new file mode 100644 index 0000000..9423397 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/__init__.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +# flake8: noqa +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +# import models into model package +from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData +from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner +from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner +from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData +from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner +from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner +from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner +from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData +from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse diff --git a/cloudbeds_pms_v1_2/models/delete_adjustment_response.py b/cloudbeds_pms_v1_2/models/delete_adjustment_response.py new file mode 100644 index 0000000..d18da9e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/delete_adjustment_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteAdjustmentResponse(BaseModel): + """ + DeleteAdjustmentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteAdjustmentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteAdjustmentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/delete_guest_note_response.py b/cloudbeds_pms_v1_2/models/delete_guest_note_response.py new file mode 100644 index 0000000..11cdbad --- /dev/null +++ b/cloudbeds_pms_v1_2/models/delete_guest_note_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteGuestNoteResponse(BaseModel): + """ + DeleteGuestNoteResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteGuestNoteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteGuestNoteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/delete_reservation_note_response.py b/cloudbeds_pms_v1_2/models/delete_reservation_note_response.py new file mode 100644 index 0000000..3c59fcb --- /dev/null +++ b/cloudbeds_pms_v1_2/models/delete_reservation_note_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteReservationNoteResponse(BaseModel): + """ + DeleteReservationNoteResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteReservationNoteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteReservationNoteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/delete_room_block_response.py b/cloudbeds_pms_v1_2/models/delete_room_block_response.py new file mode 100644 index 0000000..aebdd7a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/delete_room_block_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteRoomBlockResponse(BaseModel): + """ + DeleteRoomBlockResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteRoomBlockResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteRoomBlockResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/delete_webhook_response.py b/cloudbeds_pms_v1_2/models/delete_webhook_response.py new file mode 100644 index 0000000..8d5f64f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/delete_webhook_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteWebhookResponse(BaseModel): + """ + DeleteWebhookResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteWebhookResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteWebhookResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_adjustment_response.py b/cloudbeds_pms_v1_2/models/get_adjustment_response.py new file mode 100644 index 0000000..bc2bbd4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_adjustment_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentResponse(BaseModel): + """ + GetAdjustmentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetAdjustmentResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetAdjustmentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_adjustment_response_data.py b/cloudbeds_pms_v1_2/models/get_adjustment_response_data.py new file mode 100644 index 0000000..37de423 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_adjustment_response_data.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentResponseData(BaseModel): + """ + Adjustment + """ # noqa: E501 + adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") + property_id: Optional[StrictStr] = Field(default=None, description="unique hotel identifier", alias="propertyID") + created: Optional[datetime] = Field(default=None, description="Adjustment created time") + room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") + reservation_identifier: Optional[StrictStr] = Field(default=None, description="Reservation Unique Identifier", alias="reservationIdentifier") + description: Optional[StrictStr] = Field(default=None, description="Adjustment description") + notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") + currency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment currency") + posted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment posted transaction") + type: Optional[StrictStr] = Field(default=None, description="Adjustment type") + void_id: Optional[StrictStr] = Field(default=None, description="Voided adjustment transaction unique identifier. Null if adjustment not voided", alias="voidID") + __properties: ClassVar[List[str]] = ["adjustmentID", "propertyID", "created", "roomID", "roomName", "reservationIdentifier", "description", "notes", "amount", "currency", "posted", "type", "voidID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adjustmentID": obj.get("adjustmentID"), + "propertyID": obj.get("propertyID"), + "created": obj.get("created"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "reservationIdentifier": obj.get("reservationIdentifier"), + "description": obj.get("description"), + "notes": obj.get("notes"), + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "posted": obj.get("posted"), + "type": obj.get("type"), + "voidID": obj.get("voidID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_adjustments_response.py b/cloudbeds_pms_v1_2/models/get_adjustments_response.py new file mode 100644 index 0000000..a120638 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_adjustments_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentsResponse(BaseModel): + """ + GetAdjustmentsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetAdjustmentsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetAdjustmentsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_adjustments_response_data.py b/cloudbeds_pms_v1_2/models/get_adjustments_response_data.py new file mode 100644 index 0000000..c2c90b0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_adjustments_response_data.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentsResponseData(BaseModel): + """ + Adjustments + """ # noqa: E501 + adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") + created: Optional[datetime] = Field(default=None, description="Adjustment created time") + room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") + description: Optional[StrictStr] = Field(default=None, description="Adjustment description") + notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") + type: Optional[StrictStr] = Field(default=None, description="Adjustment type") + __properties: ClassVar[List[str]] = ["adjustmentID", "created", "roomID", "roomName", "description", "notes", "amount", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adjustmentID": obj.get("adjustmentID"), + "created": obj.get("created"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "description": obj.get("description"), + "notes": obj.get("notes"), + "amount": obj.get("amount"), + "type": obj.get("type") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py new file mode 100644 index 0000000..e306c2c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAllotmentBlocksResponse(BaseModel): + """ + GetAllotmentBlocksResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + count: Optional[StrictInt] = Field(default=None, description="Number of allotment blocks returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of allotment blocks") + data: Optional[List[GetAllotmentBlocksResponseDataInner]] = Field(default=None, description="Allotment Blocks") + __properties: ClassVar[List[str]] = ["success", "count", "total", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "count": obj.get("count"), + "total": obj.get("total"), + "data": [GetAllotmentBlocksResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py new file mode 100644 index 0000000..15ab989 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAllotmentBlocksResponseDataInner(BaseModel): + """ + GetAllotmentBlocksResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID associated to the allotment block", alias="propertyID") + allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + allotment_block_status: Optional[StrictStr] = Field(default=None, description="Allotment block status", alias="allotmentBlockStatus") + allotment_block_name: Optional[StrictStr] = Field(default=None, description="Allotment block name", alias="allotmentBlockName") + allotment_block_id: Optional[StrictStr] = Field(default=None, description="Allotment block ID", alias="allotmentBlockId") + rate_type: Optional[StrictStr] = Field(default=None, description="Rate type for the allotment block", alias="rateType") + rate_plan_id: Optional[StrictStr] = Field(default=None, description="Rate plan ID if applicable", alias="ratePlanId") + allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") + group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") + group_code: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block", alias="groupCode") + is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") + auto_release: Optional[List[GetAllotmentBlocksResponseDataInnerAutoReleaseInner]] = Field(default=None, description="auto-release data if applicable", alias="autoRelease") + allotment_intervals: Optional[List[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") + __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in auto_release (list) + _items = [] + if self.auto_release: + for _item_auto_release in self.auto_release: + if _item_auto_release: + _items.append(_item_auto_release.to_dict()) + _dict['autoRelease'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in allotment_intervals (list) + _items = [] + if self.allotment_intervals: + for _item_allotment_intervals in self.allotment_intervals: + if _item_allotment_intervals: + _items.append(_item_allotment_intervals.to_dict()) + _dict['allotmentIntervals'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "allotmentBlockCode": obj.get("allotmentBlockCode"), + "allotmentBlockStatus": obj.get("allotmentBlockStatus"), + "allotmentBlockName": obj.get("allotmentBlockName"), + "allotmentBlockId": obj.get("allotmentBlockId"), + "rateType": obj.get("rateType"), + "ratePlanId": obj.get("ratePlanId"), + "allotmentType": obj.get("allotmentType"), + "groupId": obj.get("groupId"), + "groupCode": obj.get("groupCode"), + "isAutoRelease": obj.get("isAutoRelease"), + "autoRelease": [GetAllotmentBlocksResponseDataInnerAutoReleaseInner.from_dict(_item) for _item in obj["autoRelease"]] if obj.get("autoRelease") is not None else None, + "allotmentIntervals": [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..7b094bd --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from typing import Optional, Set +from typing_extensions import Self + +class GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner(BaseModel): + """ + GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") + start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") + availability: Optional[List[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner]] = Field(default=None, description="Interval availability data by day in interval") + restrictions: Optional[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions] = None + __properties: ClassVar[List[str]] = ["roomTypeId", "startDate", "endDate", "availability", "restrictions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in availability (list) + _items = [] + if self.availability: + for _item_availability in self.availability: + if _item_availability: + _items.append(_item_availability.to_dict()) + _dict['availability'] = _items + # override the default output from pydantic by calling `to_dict()` of restrictions + if self.restrictions: + _dict['restrictions'] = self.restrictions.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeId": obj.get("roomTypeId"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "availability": [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.from_dict(_item) for _item in obj["availability"]] if obj.get("availability") is not None else None, + "restrictions": GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py new file mode 100644 index 0000000..a935618 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from typing import Optional, Set +from typing_extensions import Self + +class GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner(BaseModel): + """ + GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, description="Day within interval", alias="date") + block_remaining: Optional[StrictInt] = Field(default=None, description="Number of units remaining for the room type for this day", alias="blockRemaining") + block_allotted: Optional[StrictInt] = Field(default=None, description="Total number of units available for the room type for this day", alias="blockAllotted") + block_confirmed: Optional[StrictInt] = Field(default=None, description="Number of units booked for the room type for this day", alias="blockConfirmed") + rate: Optional[StrictStr] = Field(default=None, description="the price") + guest_pricing: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing] = Field(default=None, alias="guestPricing") + __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of guest_pricing + if self.guest_pricing: + _dict['guestPricing'] = self.guest_pricing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "blockRemaining": obj.get("blockRemaining"), + "blockAllotted": obj.get("blockAllotted"), + "blockConfirmed": obj.get("blockConfirmed"), + "rate": obj.get("rate"), + "guestPricing": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..dc7b572 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions(BaseModel): + """ + Interval restrictions if applicable + """ # noqa: E501 + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") + cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should guests be required to book", alias="cutOffDays") + last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="How many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") + closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure", alias="closedToDeparture") + __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos"), + "cutOffDays": obj.get("cutOffDays"), + "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py new file mode 100644 index 0000000..9ce9836 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAllotmentBlocksResponseDataInnerAutoReleaseInner(BaseModel): + """ + GetAllotmentBlocksResponseDataInnerAutoReleaseInner + """ # noqa: E501 + release_type: Optional[StrictStr] = Field(default=None, description="The type of auto-release", alias="releaseType") + days: Optional[StrictInt] = Field(default=None, description="The number of days prior to the end of the allotment block to begin releasing dates from the allotment block") + release_time: Optional[StrictStr] = Field(default=None, description="The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'...", alias="releaseTime") + __properties: ClassVar[List[str]] = ["releaseType", "days", "releaseTime"] + + @field_validator('release_type') + def release_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['all_dates', 'by_day', 'by_interval']): + raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAutoReleaseInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAllotmentBlocksResponseDataInnerAutoReleaseInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "releaseType": obj.get("releaseType"), + "days": obj.get("days"), + "releaseTime": obj.get("releaseTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py b/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py new file mode 100644 index 0000000..8bf0d4f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAppPropertySettingsResponse(BaseModel): + """ + GetAppPropertySettingsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + data: Optional[List[GetAppPropertySettingsResponseDataInner]] = Field(default=None, description="Data") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppPropertySettingsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppPropertySettingsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetAppPropertySettingsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py new file mode 100644 index 0000000..441199b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAppPropertySettingsResponseDataInner(BaseModel): + """ + GetAppPropertySettingsResponseDataInner + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="ID") + key: Optional[StrictStr] = Field(default=None, description="Key") + value: Optional[StrictStr] = Field(default=None, description="Value") + __properties: ClassVar[List[str]] = ["id", "key", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppPropertySettingsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppPropertySettingsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "key": obj.get("key"), + "value": obj.get("value") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_app_settings_response.py b/cloudbeds_pms_v1_2/models/get_app_settings_response.py new file mode 100644 index 0000000..186c8e7 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_app_settings_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetAppSettingsResponse(BaseModel): + """ + GetAppSettingsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetAppSettingsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppSettingsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppSettingsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetAppSettingsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_app_settings_response_data.py b/cloudbeds_pms_v1_2/models/get_app_settings_response_data.py new file mode 100644 index 0000000..3eaef0f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_app_settings_response_data.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAppSettingsResponseData(BaseModel): + """ + Application settings details + """ # noqa: E501 + full_revenue_sync: Optional[StrictBool] = Field(default=None, description="Full Revenue Sync", alias="fullRevenueSync") + __properties: ClassVar[List[str]] = ["fullRevenueSync"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppSettingsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppSettingsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fullRevenueSync": obj.get("fullRevenueSync") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_app_state_response.py b/cloudbeds_pms_v1_2/models/get_app_state_response.py new file mode 100644 index 0000000..3f853a9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_app_state_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetAppStateResponse(BaseModel): + """ + GetAppStateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetAppStateResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppStateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppStateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetAppStateResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_app_state_response_data.py b/cloudbeds_pms_v1_2/models/get_app_state_response_data.py new file mode 100644 index 0000000..e090d64 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_app_state_response_data.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAppStateResponseData(BaseModel): + """ + Integration state details + """ # noqa: E501 + app_state: Optional[StrictStr] = Field(default=None, description="Integration state") + __properties: ClassVar[List[str]] = ["app_state"] + + @field_validator('app_state') + def app_state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['enabled', 'disabled', 'installing', 'pending']): + raise ValueError("must be one of enum values ('enabled', 'disabled', 'installing', 'pending')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppStateResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppStateResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "app_state": obj.get("app_state") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response.py b/cloudbeds_pms_v1_2/models/get_available_room_types_response.py new file mode 100644 index 0000000..9cbc951 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_available_room_types_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAvailableRoomTypesResponse(BaseModel): + """ + GetAvailableRoomTypesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetAvailableRoomTypesResponseDataInner]] = Field(default=None, description="Room Types details") + room_count: Optional[StrictInt] = Field(default=None, description="Number of results (room types) returned", alias="roomCount") + count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results (properties)") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "roomCount", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetAvailableRoomTypesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "roomCount": obj.get("roomCount"), + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py new file mode 100644 index 0000000..06bea52 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAvailableRoomTypesResponseDataInner(BaseModel): + """ + GetAvailableRoomTypesResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + property_currency: Optional[List[GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner]] = Field(default=None, description="Currency used by the property", alias="propertyCurrency") + property_rooms: Optional[List[GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner]] = Field(default=None, description="List of room types for the property", alias="propertyRooms") + __properties: ClassVar[List[str]] = ["propertyID", "propertyCurrency", "propertyRooms"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in property_currency (list) + _items = [] + if self.property_currency: + for _item_property_currency in self.property_currency: + if _item_property_currency: + _items.append(_item_property_currency.to_dict()) + _dict['propertyCurrency'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in property_rooms (list) + _items = [] + if self.property_rooms: + for _item_property_rooms in self.property_rooms: + if _item_property_rooms: + _items.append(_item_property_rooms.to_dict()) + _dict['propertyRooms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "propertyCurrency": [GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.from_dict(_item) for _item in obj["propertyCurrency"]] if obj.get("propertyCurrency") is not None else None, + "propertyRooms": [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.from_dict(_item) for _item in obj["propertyRooms"]] if obj.get("propertyRooms") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py new file mode 100644 index 0000000..94ce05d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner(BaseModel): + """ + GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner + """ # noqa: E501 + currency_code: Optional[StrictStr] = Field(default=None, description="Currency identifier code", alias="currencyCode") + currency_symbol: Optional[StrictStr] = Field(default=None, description="Currency symbol", alias="currencySymbol") + currency_position: Optional[StrictStr] = Field(default=None, description="Currency position", alias="currencyPosition") + __properties: ClassVar[List[str]] = ["currencyCode", "currencySymbol", "currencyPosition"] + + @field_validator('currency_position') + def currency_position_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['before', 'after']): + raise ValueError("must be one of enum values ('before', 'after')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyCode": obj.get("currencyCode"), + "currencySymbol": obj.get("currencySymbol"), + "currencyPosition": obj.get("currencyPosition") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py new file mode 100644 index 0000000..c470f5c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner(BaseModel): + """ + GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room type name", alias="roomTypeName") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Room type short name", alias="roomTypeNameShort") + room_type_description: Optional[StrictStr] = Field(default=None, description="Room Type Description", alias="roomTypeDescription") + max_guests: Optional[StrictInt] = Field(default=None, description="Max number of guests allowed in the room type", alias="maxGuests") + adults_included: Optional[StrictInt] = Field(default=None, description="Number of adults included on the basic room rate", alias="adultsIncluded") + children_included: Optional[StrictInt] = Field(default=None, description="Number of children included on the basic room rate", alias="childrenIncluded") + room_type_photos: Optional[List[GetHotelDetailsResponseDataPropertyImageInner]] = Field(default=None, description="List of photos for the room type", alias="roomTypePhotos") + room_type_features: Optional[List[StrictStr]] = Field(default=None, description="List of features for the room type", alias="roomTypeFeatures") + room_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Basic rate for the room, based on the parameters provided", alias="roomRate") + room_rate_id: Optional[StrictStr] = Field(default=None, description="Specific Rate ID used for the room type ID", alias="roomRateID") + rate_plan_name_public: Optional[StrictStr] = Field(default=None, description="Rate plan public name", alias="ratePlanNamePublic") + rate_plan_name_private: Optional[StrictStr] = Field(default=None, description="Rate plan private name", alias="ratePlanNamePrivate") + rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available, based on the parameters provided", alias="roomsAvailable") + adults_extra_charge: Optional[List[Dict[str, Any]]] = Field(default=None, description="Total extra charge for number of adults, depending on room settings (see \"adultsIncluded\" field). It is an associative array, where the key is the number of adults, and the value is the total extra charge when the number of adults is selected.", alias="adultsExtraCharge") + children_extra_charge: Optional[List[Dict[str, Any]]] = Field(default=None, description="Total extra charge for number of children, depending on room settings (see \"childrenIncluded\" field). It is an associative array, where the key is the number of children, and the value is the total extra charge when the number of children is selected.", alias="childrenExtraCharge") + room_rate_detailed: Optional[List[GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner]] = Field(default=None, description="Detailed information on the rates, if requested", alias="roomRateDetailed") + derived_type: Optional[StrictStr] = Field(default=None, description="type of deriving (only if current rate was derived from other one).", alias="derivedType") + derived_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Can be positive or negative (only if current rate was derived from other one).", alias="derivedValue") + individual_rooms: Optional[List[GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner]] = Field(default=None, description="Individual rooms available to be booked (if set on backend)", alias="individualRooms") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeNameShort", "roomTypeDescription", "maxGuests", "adultsIncluded", "childrenIncluded", "roomTypePhotos", "roomTypeFeatures", "roomRate", "roomRateID", "ratePlanNamePublic", "ratePlanNamePrivate", "roomsAvailable", "adultsExtraCharge", "childrenExtraCharge", "roomRateDetailed", "derivedType", "derivedValue", "individualRooms"] + + @field_validator('derived_type') + def derived_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['fixed', 'percentage']): + raise ValueError("must be one of enum values ('fixed', 'percentage')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in room_type_photos (list) + _items = [] + if self.room_type_photos: + for _item_room_type_photos in self.room_type_photos: + if _item_room_type_photos: + _items.append(_item_room_type_photos.to_dict()) + _dict['roomTypePhotos'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in room_rate_detailed (list) + _items = [] + if self.room_rate_detailed: + for _item_room_rate_detailed in self.room_rate_detailed: + if _item_room_rate_detailed: + _items.append(_item_room_rate_detailed.to_dict()) + _dict['roomRateDetailed'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in individual_rooms (list) + _items = [] + if self.individual_rooms: + for _item_individual_rooms in self.individual_rooms: + if _item_individual_rooms: + _items.append(_item_individual_rooms.to_dict()) + _dict['individualRooms'] = _items + # set to None if adults_extra_charge (nullable) is None + # and model_fields_set contains the field + if self.adults_extra_charge is None and "adults_extra_charge" in self.model_fields_set: + _dict['adultsExtraCharge'] = None + + # set to None if children_extra_charge (nullable) is None + # and model_fields_set contains the field + if self.children_extra_charge is None and "children_extra_charge" in self.model_fields_set: + _dict['childrenExtraCharge'] = None + + # set to None if room_rate_detailed (nullable) is None + # and model_fields_set contains the field + if self.room_rate_detailed is None and "room_rate_detailed" in self.model_fields_set: + _dict['roomRateDetailed'] = None + + # set to None if derived_type (nullable) is None + # and model_fields_set contains the field + if self.derived_type is None and "derived_type" in self.model_fields_set: + _dict['derivedType'] = None + + # set to None if derived_value (nullable) is None + # and model_fields_set contains the field + if self.derived_value is None and "derived_value" in self.model_fields_set: + _dict['derivedValue'] = None + + # set to None if individual_rooms (nullable) is None + # and model_fields_set contains the field + if self.individual_rooms is None and "individual_rooms" in self.model_fields_set: + _dict['individualRooms'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeNameShort": obj.get("roomTypeNameShort"), + "roomTypeDescription": obj.get("roomTypeDescription"), + "maxGuests": obj.get("maxGuests"), + "adultsIncluded": obj.get("adultsIncluded"), + "childrenIncluded": obj.get("childrenIncluded"), + "roomTypePhotos": [GetHotelDetailsResponseDataPropertyImageInner.from_dict(_item) for _item in obj["roomTypePhotos"]] if obj.get("roomTypePhotos") is not None else None, + "roomTypeFeatures": obj.get("roomTypeFeatures"), + "roomRate": obj.get("roomRate"), + "roomRateID": obj.get("roomRateID"), + "ratePlanNamePublic": obj.get("ratePlanNamePublic"), + "ratePlanNamePrivate": obj.get("ratePlanNamePrivate"), + "roomsAvailable": obj.get("roomsAvailable"), + "adultsExtraCharge": obj.get("adultsExtraCharge"), + "childrenExtraCharge": obj.get("childrenExtraCharge"), + "roomRateDetailed": [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.from_dict(_item) for _item in obj["roomRateDetailed"]] if obj.get("roomRateDetailed") is not None else None, + "derivedType": obj.get("derivedType"), + "derivedValue": obj.get("derivedValue"), + "individualRooms": [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.from_dict(_item) for _item in obj["individualRooms"]] if obj.get("individualRooms") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py new file mode 100644 index 0000000..69356f1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner(BaseModel): + """ + GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, alias="roomID") + room_name: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="roomName") + dorm_room_name: Optional[StrictStr] = Field(default=None, description="Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type.", alias="dormRoomName") + __properties: ClassVar[List[str]] = ["roomID", "roomName", "dormRoomName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if dorm_room_name (nullable) is None + # and model_fields_set contains the field + if self.dorm_room_name is None and "dorm_room_name" in self.model_fields_set: + _dict['dormRoomName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "dormRoomName": obj.get("dormRoomName") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py new file mode 100644 index 0000000..6cda4c1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner(BaseModel): + """ + GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, alias="date") + rate: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["date", "rate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + + # set to None if rate (nullable) is None + # and model_fields_set contains the field + if self.rate is None and "rate" in self.model_fields_set: + _dict['rate'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "rate": obj.get("rate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response.py b/cloudbeds_pms_v1_2/models/get_currency_settings_response.py new file mode 100644 index 0000000..6ad44d1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_currency_settings_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetCurrencySettingsResponse(BaseModel): + """ + GetCurrencySettingsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetCurrencySettingsResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetCurrencySettingsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py new file mode 100644 index 0000000..b07bf7f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from typing import Optional, Set +from typing_extensions import Self + +class GetCurrencySettingsResponseData(BaseModel): + """ + Currency Settings + """ # noqa: E501 + default: Optional[StrictStr] = Field(default=None, description="Default Currency ISO CODE") + acceptable: Optional[List[StrictStr]] = Field(default=None, description="Acceptable Currency ISO CODEs") + format: Optional[GetCurrencySettingsResponseDataFormat] = None + rates: Optional[GetCurrencySettingsResponseDataRates] = None + __properties: ClassVar[List[str]] = ["default", "acceptable", "format", "rates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of format + if self.format: + _dict['format'] = self.format.to_dict() + # override the default output from pydantic by calling `to_dict()` of rates + if self.rates: + _dict['rates'] = self.rates.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "default": obj.get("default"), + "acceptable": obj.get("acceptable"), + "format": GetCurrencySettingsResponseDataFormat.from_dict(obj["format"]) if obj.get("format") is not None else None, + "rates": GetCurrencySettingsResponseDataRates.from_dict(obj["rates"]) if obj.get("rates") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py new file mode 100644 index 0000000..7e08ada --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetCurrencySettingsResponseDataFormat(BaseModel): + """ + Currency Format + """ # noqa: E501 + decimal: Optional[StrictStr] = Field(default=None, description="Decimal separator") + thousand: Optional[StrictStr] = Field(default=None, description="Thousand separator") + __properties: ClassVar[List[str]] = ["decimal", "thousand"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseDataFormat from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseDataFormat from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "decimal": obj.get("decimal"), + "thousand": obj.get("thousand") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py new file mode 100644 index 0000000..7bb948f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from typing import Optional, Set +from typing_extensions import Self + +class GetCurrencySettingsResponseDataRates(BaseModel): + """ + Currency rates + """ # noqa: E501 + fixed: Optional[List[GetCurrencySettingsResponseDataRatesFixedInner]] = Field(default=None, description="Fixed currency rates (configured by the property)") + __properties: ClassVar[List[str]] = ["fixed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseDataRates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in fixed (list) + _items = [] + if self.fixed: + for _item_fixed in self.fixed: + if _item_fixed: + _items.append(_item_fixed.to_dict()) + _dict['fixed'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseDataRates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fixed": [GetCurrencySettingsResponseDataRatesFixedInner.from_dict(_item) for _item in obj["fixed"]] if obj.get("fixed") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py new file mode 100644 index 0000000..cf31ea9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetCurrencySettingsResponseDataRatesFixedInner(BaseModel): + """ + GetCurrencySettingsResponseDataRatesFixedInner + """ # noqa: E501 + currency: Optional[StrictStr] = Field(default=None, description="Currency ISO CODE") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Currency rate") + __properties: ClassVar[List[str]] = ["currency", "rate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseDataRatesFixedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if currency (nullable) is None + # and model_fields_set contains the field + if self.currency is None and "currency" in self.model_fields_set: + _dict['currency'] = None + + # set to None if rate (nullable) is None + # and model_fields_set contains the field + if self.rate is None and "rate" in self.model_fields_set: + _dict['rate'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCurrencySettingsResponseDataRatesFixedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currency": obj.get("currency"), + "rate": obj.get("rate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_custom_fields_response.py b/cloudbeds_pms_v1_2/models/get_custom_fields_response.py new file mode 100644 index 0000000..07cc62e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_custom_fields_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetCustomFieldsResponse(BaseModel): + """ + GetCustomFieldsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetCustomFieldsResponseDataInner]] = Field(default=None, description="Field details") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCustomFieldsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCustomFieldsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetCustomFieldsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py new file mode 100644 index 0000000..c9b5f1c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetCustomFieldsResponseDataInner(BaseModel): + """ + GetCustomFieldsResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Unique hotel identifier", alias="propertyID") + name: Optional[StrictStr] = Field(default=None, description="Field name") + shortcode: Optional[StrictStr] = Field(default=None, description="Internal reference and is used for integration purposes such as custom links and the API") + apply_to: Optional[StrictStr] = Field(default=None, description="Where put this field in reservation or guest section of the booking.", alias="applyTo") + required: Optional[StrictBool] = Field(default=None, description="Specify whether this field is required to be filled out.") + is_personal: Optional[StrictBool] = Field(default=None, description="Specifies if the contents of this field may contain personal information (GDPR).", alias="isPersonal") + max_characters: Optional[StrictInt] = Field(default=None, description="Maximum number of characters allowed to be entered in this field.", alias="maxCharacters") + type: Optional[StrictStr] = Field(default=None, description="The field's input type.") + displayed: Optional[List[StrictStr]] = Field(default=None, description="¹ Specify where this custom field to show up.") + __properties: ClassVar[List[str]] = ["propertyID", "name", "shortcode", "applyTo", "required", "isPersonal", "maxCharacters", "type", "displayed"] + + @field_validator('apply_to') + def apply_to_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['reservation', 'guest']): + raise ValueError("must be one of enum values ('reservation', 'guest')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['input', 'text']): + raise ValueError("must be one of enum values ('input', 'text')") + return value + + @field_validator('displayed') + def displayed_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set([]): + raise ValueError("each list item must be one of ()") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCustomFieldsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCustomFieldsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "name": obj.get("name"), + "shortcode": obj.get("shortcode"), + "applyTo": obj.get("applyTo"), + "required": obj.get("required"), + "isPersonal": obj.get("isPersonal"), + "maxCharacters": obj.get("maxCharacters"), + "type": obj.get("type"), + "displayed": obj.get("displayed") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_dashboard_response.py b/cloudbeds_pms_v1_2/models/get_dashboard_response.py new file mode 100644 index 0000000..27b5ac1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_dashboard_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetDashboardResponse(BaseModel): + """ + GetDashboardResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=True, description="Returns if the request could be completed") + data: Optional[GetDashboardResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetDashboardResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetDashboardResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") if obj.get("success") is not None else True, + "data": GetDashboardResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_dashboard_response_data.py b/cloudbeds_pms_v1_2/models/get_dashboard_response_data.py new file mode 100644 index 0000000..5c8131b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_dashboard_response_data.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetDashboardResponseData(BaseModel): + """ + Data to be displayed on dashboard + """ # noqa: E501 + rooms_occupied: Optional[StrictInt] = Field(default=None, description="Number of rooms occupied at the moment", alias="roomsOccupied") + percentage_occupied: Optional[StrictInt] = Field(default=None, description="Percentage of rooms occupied (rooms occupied/rooms total) for the current day", alias="percentageOccupied") + arrivals: Optional[StrictInt] = Field(default=None, description="Number of arrivals (check-ins) expected for the current day") + departures: Optional[StrictInt] = Field(default=None, description="Number of departures (check-outs) expected for the current day") + in_house: Optional[StrictInt] = Field(default=None, description="Number of rooms occupied, and not expected to have a check-out for the current day", alias="inHouse") + __properties: ClassVar[List[str]] = ["roomsOccupied", "percentageOccupied", "arrivals", "departures", "inHouse"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetDashboardResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetDashboardResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomsOccupied": obj.get("roomsOccupied"), + "percentageOccupied": obj.get("percentageOccupied"), + "arrivals": obj.get("arrivals"), + "departures": obj.get("departures"), + "inHouse": obj.get("inHouse") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_email_schedule_response.py b/cloudbeds_pms_v1_2/models/get_email_schedule_response.py new file mode 100644 index 0000000..b3004c1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_email_schedule_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetEmailScheduleResponse(BaseModel): + """ + GetEmailScheduleResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetEmailScheduleResponseDataInner]] = Field(default=None, description="List of existing email schedules") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetEmailScheduleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetEmailScheduleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetEmailScheduleResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py new file mode 100644 index 0000000..9da6294 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetEmailScheduleResponseDataInner(BaseModel): + """ + GetEmailScheduleResponseDataInner + """ # noqa: E501 + email_schedule_id: Optional[StrictStr] = Field(default=None, description="ID of the email schedule", alias="emailScheduleID") + name: Optional[StrictStr] = Field(default=None, description="Name of the email schedule") + email_template_id: Optional[StrictStr] = Field(default=None, description="ID of the email template used in this schedule", alias="emailTemplateID") + template_name: Optional[StrictStr] = Field(default=None, description="Name of the email template used in this schedule", alias="templateName") + is_active: Optional[StrictBool] = Field(default=None, description="True if email template is active; false if not", alias="isActive") + __properties: ClassVar[List[str]] = ["emailScheduleID", "name", "emailTemplateID", "templateName", "isActive"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetEmailScheduleResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetEmailScheduleResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "emailScheduleID": obj.get("emailScheduleID"), + "name": obj.get("name"), + "emailTemplateID": obj.get("emailTemplateID"), + "templateName": obj.get("templateName"), + "isActive": obj.get("isActive") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_email_templates_response.py b/cloudbeds_pms_v1_2/models/get_email_templates_response.py new file mode 100644 index 0000000..a1ffb2b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_email_templates_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetEmailTemplatesResponse(BaseModel): + """ + GetEmailTemplatesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetEmailTemplatesResponseDataInner]] = Field(default=None, description="List of existing email templates") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetEmailTemplatesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetEmailTemplatesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetEmailTemplatesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py new file mode 100644 index 0000000..5adc17b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetEmailTemplatesResponseDataInner(BaseModel): + """ + GetEmailTemplatesResponseDataInner + """ # noqa: E501 + email_template_id: Optional[StrictStr] = Field(default=None, description="ID of the email template", alias="emailTemplateID") + name: Optional[StrictStr] = Field(default=None, description="Name") + subject: Optional[StrictStr] = Field(default=None, description="Subject") + is_active: Optional[StrictBool] = Field(default=None, description="True if email template is active; false if not", alias="isActive") + __properties: ClassVar[List[str]] = ["emailTemplateID", "name", "subject", "isActive"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetEmailTemplatesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetEmailTemplatesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "emailTemplateID": obj.get("emailTemplateID"), + "name": obj.get("name"), + "subject": obj.get("subject"), + "isActive": obj.get("isActive") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_files_response.py b/cloudbeds_pms_v1_2/models/get_files_response.py new file mode 100644 index 0000000..e0c9467 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_files_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetFilesResponse(BaseModel): + """ + GetFilesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetFilesResponseDataInner]] = Field(default=None, description="Files linked to the property") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results for supplied parameters") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetFilesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetFilesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetFilesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_files_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_files_response_data_inner.py new file mode 100644 index 0000000..d9d8b5e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_files_response_data_inner.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetFilesResponseDataInner(BaseModel): + """ + GetFilesResponseDataInner + """ # noqa: E501 + file_id: Optional[StrictStr] = Field(default=None, description="File's unique identifier", alias="fileID") + name: Optional[StrictStr] = Field(default=None, description="File Name") + type: Optional[StrictStr] = Field(default=None, description="File Type") + source: Optional[StrictStr] = Field(default=None, description="File Source") + date_created: Optional[datetime] = Field(default=None, description="File creation date", alias="dateCreated") + url: Optional[StrictStr] = Field(default=None, description="File's URL to download") + __properties: ClassVar[List[str]] = ["fileID", "name", "type", "source", "dateCreated", "url"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetFilesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetFilesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fileID": obj.get("fileID"), + "name": obj.get("name"), + "type": obj.get("type"), + "source": obj.get("source"), + "dateCreated": obj.get("dateCreated"), + "url": obj.get("url") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_group_notes_response.py b/cloudbeds_pms_v1_2/models/get_group_notes_response.py new file mode 100644 index 0000000..be25a4e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_group_notes_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetGroupNotesResponse(BaseModel): + """ + GetGroupNotesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + code: Optional[StrictInt] = Field(default=None, description="HTTP status code") + data: Optional[GetGroupNotesResponseData] = None + __properties: ClassVar[List[str]] = ["success", "code", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGroupNotesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGroupNotesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "code": obj.get("code"), + "data": GetGroupNotesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_group_notes_response_data.py b/cloudbeds_pms_v1_2/models/get_group_notes_response_data.py new file mode 100644 index 0000000..ab0b1de --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_group_notes_response_data.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGroupNotesResponseData(BaseModel): + """ + Data + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="ID for the note") + group_profile_id: Optional[StrictStr] = Field(default=None, description="Group profile ID") + text: Optional[StrictStr] = Field(default=None, description="Note text") + created_by: Optional[StrictStr] = Field(default=None, description="Created by") + created_at: Optional[StrictStr] = Field(default=None, description="Created at") + updated_at: Optional[StrictStr] = Field(default=None, description="Updated at") + archived: Optional[StrictBool] = Field(default=None, description="Note archived") + archived_at: Optional[StrictStr] = Field(default=None, description="Note archived at") + __properties: ClassVar[List[str]] = ["id", "group_profile_id", "text", "created_by", "created_at", "updated_at", "archived", "archived_at"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGroupNotesResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGroupNotesResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "group_profile_id": obj.get("group_profile_id"), + "text": obj.get("text"), + "created_by": obj.get("created_by"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "archived": obj.get("archived"), + "archived_at": obj.get("archived_at") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_groups_response.py b/cloudbeds_pms_v1_2/models/get_groups_response.py new file mode 100644 index 0000000..6f0acb9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_groups_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGroupsResponse(BaseModel): + """ + GetGroupsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + data: Optional[List[GetGroupsResponseDataInner]] = Field(default=None, description="Data") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGroupsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGroupsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetGroupsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py new file mode 100644 index 0000000..6c81fae --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGroupsResponseDataInner(BaseModel): + """ + GetGroupsResponseDataInner + """ # noqa: E501 + group_code: Optional[StrictStr] = Field(default=None, description="Unique ID for a group", alias="groupCode") + name: Optional[StrictStr] = Field(default=None, description="The name of the group") + type: Optional[StrictStr] = Field(default=None, description="The type of the group") + status: Optional[StrictStr] = Field(default=None, description="Group status") + created: Optional[datetime] = Field(default=None, description="Group created time") + source_id: Optional[StrictStr] = Field(default=None, description="The third-party source ID for this group, can be null", alias="sourceID") + address1: Optional[StrictStr] = Field(default=None, description="Address") + address2: Optional[StrictStr] = Field(default=None, description="Address2") + city: Optional[StrictStr] = Field(default=None, description="City") + zip: Optional[StrictStr] = Field(default=None, description="Zip") + state: Optional[StrictStr] = Field(default=None, description="State") + __properties: ClassVar[List[str]] = ["groupCode", "name", "type", "status", "created", "sourceID", "address1", "address2", "city", "zip", "state"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['group', 'company', 'travel_agent', 'wholesaler']): + raise ValueError("must be one of enum values ('group', 'company', 'travel_agent', 'wholesaler')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['open', 'closed']): + raise ValueError("must be one of enum values ('open', 'closed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groupCode": obj.get("groupCode"), + "name": obj.get("name"), + "type": obj.get("type"), + "status": obj.get("status"), + "created": obj.get("created"), + "sourceID": obj.get("sourceID"), + "address1": obj.get("address1"), + "address2": obj.get("address2"), + "city": obj.get("city"), + "zip": obj.get("zip"), + "state": obj.get("state") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_list_response.py b/cloudbeds_pms_v1_2/models/get_guest_list_response.py new file mode 100644 index 0000000..2dd6388 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_list_response.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestListResponse(BaseModel): + """ + GetGuestListResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[Dict[str, GetGuestListResponseDataValue]] = Field(default=None, description="Details for the guest linked to the property (key is the Guest ID)") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestListResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in data (dict) + _field_dict = {} + if self.data: + for _key_data in self.data: + if self.data[_key_data]: + _field_dict[_key_data] = self.data[_key_data].to_dict() + _dict['data'] = _field_dict + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestListResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": dict( + (_k, GetGuestListResponseDataValue.from_dict(_v)) + for _k, _v in obj["data"].items() + ) + if obj.get("data") is not None + else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py b/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py new file mode 100644 index 0000000..a5270d1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestListResponseDataValue(BaseModel): + """ + GetGuestListResponseDataValue + """ # noqa: E501 + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation's unique identifier", alias="reservationID") + guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name", alias="guestName") + guest_email: Optional[StrictStr] = Field(default=None, description="Guest Email", alias="guestEmail") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + date_created: Optional[datetime] = Field(default=None, description="Reservation creation date", alias="dateCreated") + date_modified: Optional[datetime] = Field(default=None, description="Reservation modification date", alias="dateModified") + is_main_guest: Optional[StrictBool] = Field(default=None, description="If the guest is the main guest of its reservation", alias="isMainGuest") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + guest_first_name: Optional[StrictStr] = Field(default=None, description="Guest First Name", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Guest Last Name", alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, description="Guest Gender", alias="guestGender") + guest_phone: Optional[StrictStr] = Field(default=None, description="Guest Phone", alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, description="Guest Cell Phone", alias="guestCellPhone") + guest_address1: Optional[StrictStr] = Field(default=None, description="Guest Address (line 1)", alias="guestAddress1") + guest_address2: Optional[StrictStr] = Field(default=None, description="Guest Address (line 2)", alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, description="Guest City", alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, description="Guest State", alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, description="Guest Country", alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, description="Guest Zip code", alias="guestZip") + guest_birth_date: Optional[date] = Field(default=None, description="Guest Birth Date", alias="guestBirthDate") + guest_document_type: Optional[StrictStr] = Field(default=None, description="Guest Document Type", alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, description="Guest Document Number", alias="guestDocumentNumber") + guest_document_issue_date: Optional[date] = Field(default=None, description="Guest Document Issue Date", alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, description="Guest Document Issuing Country", alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[date] = Field(default=None, description="Guest Document Expiration Date", alias="guestDocumentExpirationDate") + tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Company name", alias="companyName") + guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") + guest_notes: Optional[List[GetGuestListResponseDataValueGuestNotesInner]] = Field(default=None, description="Guest Notes", alias="guestNotes") + status: Optional[StrictStr] = Field(default=None, description="Reservation status
in_progress - Reservation is pending confirmation
confirmed - Reservation is confirmed
not_confirmed - Reservation not passed confirmation
canceled - Reservation is canceled
checked_in - Guest is in hotel
checked_out - Guest already left hotel
no_show - Guest didn't showed up on check-in date") + is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") + new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") + __properties: ClassVar[List[str]] = ["reservationID", "guestName", "guestEmail", "guestID", "dateCreated", "dateModified", "isMainGuest", "isAnonymized", "guestFirstName", "guestLastName", "guestGender", "guestPhone", "guestCellPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "guestOptIn", "guestNotes", "status", "isMerged", "newGuestID"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['in_progress', 'confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): + raise ValueError("must be one of enum values ('in_progress', 'confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestListResponseDataValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in guest_notes (list) + _items = [] + if self.guest_notes: + for _item_guest_notes in self.guest_notes: + if _item_guest_notes: + _items.append(_item_guest_notes.to_dict()) + _dict['guestNotes'] = _items + # set to None if guest_first_name (nullable) is None + # and model_fields_set contains the field + if self.guest_first_name is None and "guest_first_name" in self.model_fields_set: + _dict['guestFirstName'] = None + + # set to None if guest_last_name (nullable) is None + # and model_fields_set contains the field + if self.guest_last_name is None and "guest_last_name" in self.model_fields_set: + _dict['guestLastName'] = None + + # set to None if guest_gender (nullable) is None + # and model_fields_set contains the field + if self.guest_gender is None and "guest_gender" in self.model_fields_set: + _dict['guestGender'] = None + + # set to None if guest_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_phone is None and "guest_phone" in self.model_fields_set: + _dict['guestPhone'] = None + + # set to None if guest_cell_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_cell_phone is None and "guest_cell_phone" in self.model_fields_set: + _dict['guestCellPhone'] = None + + # set to None if guest_address1 (nullable) is None + # and model_fields_set contains the field + if self.guest_address1 is None and "guest_address1" in self.model_fields_set: + _dict['guestAddress1'] = None + + # set to None if guest_address2 (nullable) is None + # and model_fields_set contains the field + if self.guest_address2 is None and "guest_address2" in self.model_fields_set: + _dict['guestAddress2'] = None + + # set to None if guest_city (nullable) is None + # and model_fields_set contains the field + if self.guest_city is None and "guest_city" in self.model_fields_set: + _dict['guestCity'] = None + + # set to None if guest_state (nullable) is None + # and model_fields_set contains the field + if self.guest_state is None and "guest_state" in self.model_fields_set: + _dict['guestState'] = None + + # set to None if guest_country (nullable) is None + # and model_fields_set contains the field + if self.guest_country is None and "guest_country" in self.model_fields_set: + _dict['guestCountry'] = None + + # set to None if guest_zip (nullable) is None + # and model_fields_set contains the field + if self.guest_zip is None and "guest_zip" in self.model_fields_set: + _dict['guestZip'] = None + + # set to None if guest_birth_date (nullable) is None + # and model_fields_set contains the field + if self.guest_birth_date is None and "guest_birth_date" in self.model_fields_set: + _dict['guestBirthDate'] = None + + # set to None if guest_document_type (nullable) is None + # and model_fields_set contains the field + if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: + _dict['guestDocumentType'] = None + + # set to None if guest_document_number (nullable) is None + # and model_fields_set contains the field + if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: + _dict['guestDocumentNumber'] = None + + # set to None if guest_document_issue_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: + _dict['guestDocumentIssueDate'] = None + + # set to None if guest_document_issuing_country (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: + _dict['guestDocumentIssuingCountry'] = None + + # set to None if guest_document_expiration_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: + _dict['guestDocumentExpirationDate'] = None + + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + # set to None if guest_opt_in (nullable) is None + # and model_fields_set contains the field + if self.guest_opt_in is None and "guest_opt_in" in self.model_fields_set: + _dict['guestOptIn'] = None + + # set to None if guest_notes (nullable) is None + # and model_fields_set contains the field + if self.guest_notes is None and "guest_notes" in self.model_fields_set: + _dict['guestNotes'] = None + + # set to None if status (nullable) is None + # and model_fields_set contains the field + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestListResponseDataValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservationID": obj.get("reservationID"), + "guestName": obj.get("guestName"), + "guestEmail": obj.get("guestEmail"), + "guestID": obj.get("guestID"), + "dateCreated": obj.get("dateCreated"), + "dateModified": obj.get("dateModified"), + "isMainGuest": obj.get("isMainGuest"), + "isAnonymized": obj.get("isAnonymized"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress1": obj.get("guestAddress1"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestBirthDate": obj.get("guestBirthDate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "guestOptIn": obj.get("guestOptIn"), + "guestNotes": [GetGuestListResponseDataValueGuestNotesInner.from_dict(_item) for _item in obj["guestNotes"]] if obj.get("guestNotes") is not None else None, + "status": obj.get("status"), + "isMerged": obj.get("isMerged"), + "newGuestID": obj.get("newGuestID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py b/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py new file mode 100644 index 0000000..774f175 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestListResponseDataValueGuestNotesInner(BaseModel): + """ + GetGuestListResponseDataValueGuestNotesInner + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Guest Notes ID", alias="ID") + note: Optional[StrictStr] = Field(default=None, description="Guest Notes \"note\"") + __properties: ClassVar[List[str]] = ["ID", "note"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestListResponseDataValueGuestNotesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['ID'] = None + + # set to None if note (nullable) is None + # and model_fields_set contains the field + if self.note is None and "note" in self.model_fields_set: + _dict['note'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestListResponseDataValueGuestNotesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ID": obj.get("ID"), + "note": obj.get("note") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_notes_response.py b/cloudbeds_pms_v1_2/models/get_guest_notes_response.py new file mode 100644 index 0000000..6ea314d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_notes_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestNotesResponse(BaseModel): + """ + GetGuestNotesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetGuestNotesResponseDataInner]] = Field(default=None, description="Details for the notes on that reservation") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestNotesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestNotesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetGuestNotesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py new file mode 100644 index 0000000..e9dd748 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestNotesResponseDataInner(BaseModel): + """ + GetGuestNotesResponseDataInner + """ # noqa: E501 + guest_note_id: Optional[StrictStr] = Field(default=None, description="Guest note ID", alias="guestNoteID") + user_name: Optional[StrictStr] = Field(default=None, description="User Name", alias="userName") + date_created: Optional[datetime] = Field(default=None, description="Creation datetime", alias="dateCreated") + date_modified: Optional[datetime] = Field(default=None, description="Last modification datetime", alias="dateModified") + guest_note: Optional[StrictStr] = Field(default=None, description="Note content", alias="guestNote") + __properties: ClassVar[List[str]] = ["guestNoteID", "userName", "dateCreated", "dateModified", "guestNote"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestNotesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestNotesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestNoteID": obj.get("guestNoteID"), + "userName": obj.get("userName"), + "dateCreated": obj.get("dateCreated"), + "dateModified": obj.get("dateModified"), + "guestNote": obj.get("guestNote") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_response.py b/cloudbeds_pms_v1_2/models/get_guest_response.py new file mode 100644 index 0000000..a60a33d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestResponse(BaseModel): + """ + GetGuestResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetGuestResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetGuestResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data.py b/cloudbeds_pms_v1_2/models/get_guest_response_data.py new file mode 100644 index 0000000..5f33438 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_response_data.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestResponseData(BaseModel): + """ + Details for the guest queried + """ # noqa: E501 + first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="firstName") + last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="lastName") + gender: Optional[StrictStr] = Field(default=None, description="Gender") + email: Optional[StrictStr] = Field(default=None, description="Email") + phone: Optional[StrictStr] = Field(default=None, description="Phone number") + cell_phone: Optional[StrictStr] = Field(default=None, description="Cell phone number", alias="cellPhone") + country: Optional[StrictStr] = Field(default=None, description="Country (2 digit code)") + address: Optional[StrictStr] = Field(default=None, description="Address") + address2: Optional[StrictStr] = Field(default=None, description="Address 2") + city: Optional[StrictStr] = Field(default=None, description="City") + zip: Optional[StrictStr] = Field(default=None, description="Zip") + state: Optional[StrictStr] = Field(default=None, description="State") + birth_date: Optional[date] = Field(default=None, description="Birth date", alias="birthDate") + document_type: Optional[StrictStr] = Field(default=None, description="Document Type", alias="documentType") + document_number: Optional[StrictStr] = Field(default=None, description="Document number", alias="documentNumber") + document_issue_date: Optional[date] = Field(default=None, description="Document Issue Date, can be null", alias="documentIssueDate") + document_issuing_country: Optional[StrictStr] = Field(default=None, description="Document Issuing Country (2-digits code)", alias="documentIssuingCountry") + document_expiration_date: Optional[date] = Field(default=None, description="Document Expiration Date, can be null", alias="documentExpirationDate") + custom_fields: Optional[List[GetGuestResponseDataCustomFieldsInner]] = Field(default=None, alias="customFields") + special_requests: Optional[StrictStr] = Field(default=None, description="Special requests made by the guest at the time of the booking", alias="specialRequests") + tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Company name", alias="companyName") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") + is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") + new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") + __properties: ClassVar[List[str]] = ["firstName", "lastName", "gender", "email", "phone", "cellPhone", "country", "address", "address2", "city", "zip", "state", "birthDate", "documentType", "documentNumber", "documentIssueDate", "documentIssuingCountry", "documentExpirationDate", "customFields", "specialRequests", "taxID", "companyTaxID", "companyName", "isAnonymized", "guestOptIn", "isMerged", "newGuestID"] + + @field_validator('gender') + def gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "firstName": obj.get("firstName"), + "lastName": obj.get("lastName"), + "gender": obj.get("gender"), + "email": obj.get("email"), + "phone": obj.get("phone"), + "cellPhone": obj.get("cellPhone"), + "country": obj.get("country"), + "address": obj.get("address"), + "address2": obj.get("address2"), + "city": obj.get("city"), + "zip": obj.get("zip"), + "state": obj.get("state"), + "birthDate": obj.get("birthDate"), + "documentType": obj.get("documentType"), + "documentNumber": obj.get("documentNumber"), + "documentIssueDate": obj.get("documentIssueDate"), + "documentIssuingCountry": obj.get("documentIssuingCountry"), + "documentExpirationDate": obj.get("documentExpirationDate"), + "customFields": [GetGuestResponseDataCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "specialRequests": obj.get("specialRequests"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "isAnonymized": obj.get("isAnonymized"), + "guestOptIn": obj.get("guestOptIn"), + "isMerged": obj.get("isMerged"), + "newGuestID": obj.get("newGuestID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py new file mode 100644 index 0000000..d0a7234 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestResponseDataCustomFieldsInner(BaseModel): + """ + GetGuestResponseDataCustomFieldsInner + """ # noqa: E501 + custom_field_name: Optional[StrictStr] = Field(default=None, alias="customFieldName") + custom_field_value: Optional[StrictStr] = Field(default=None, alias="customFieldValue") + __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestResponseDataCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if custom_field_name (nullable) is None + # and model_fields_set contains the field + if self.custom_field_name is None and "custom_field_name" in self.model_fields_set: + _dict['customFieldName'] = None + + # set to None if custom_field_value (nullable) is None + # and model_fields_set contains the field + if self.custom_field_value is None and "custom_field_value" in self.model_fields_set: + _dict['customFieldValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestResponseDataCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customFieldName": obj.get("customFieldName"), + "customFieldValue": obj.get("customFieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py b/cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py new file mode 100644 index 0000000..86ca22a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestsByFilterResponse(BaseModel): + """ + GetGuestsByFilterResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetGuestsByFilterResponseDataInner]] = Field(default=None, description="Details for the guest") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestsByFilterResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestsByFilterResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetGuestsByFilterResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py new file mode 100644 index 0000000..c9185af --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestsByFilterResponseDataInner(BaseModel): + """ + GetGuestsByFilterResponseDataInner + """ # noqa: E501 + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation's unique identifier", alias="reservationID") + guest_name: Optional[StrictStr] = Field(default=None, alias="guestName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID that the guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the room where guest is assigned", alias="roomName") + is_main_guest: Optional[StrictBool] = Field(default=None, description="True if the main guest of the reservation", alias="isMainGuest") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") + is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") + new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") + __properties: ClassVar[List[str]] = ["reservationID", "guestName", "guestID", "roomID", "roomName", "isMainGuest", "isAnonymized", "guestOptIn", "isMerged", "newGuestID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestsByFilterResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestsByFilterResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservationID": obj.get("reservationID"), + "guestName": obj.get("guestName"), + "guestID": obj.get("guestID"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "isMainGuest": obj.get("isMainGuest"), + "isAnonymized": obj.get("isAnonymized"), + "guestOptIn": obj.get("guestOptIn"), + "isMerged": obj.get("isMerged"), + "newGuestID": obj.get("newGuestID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_status_response.py b/cloudbeds_pms_v1_2/models/get_guests_by_status_response.py new file mode 100644 index 0000000..be4c174 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guests_by_status_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestsByStatusResponse(BaseModel): + """ + GetGuestsByStatusResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetGuestsByStatusResponseDataInner]] = Field(default=None, description="Details for the guest") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestsByStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestsByStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetGuestsByStatusResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py new file mode 100644 index 0000000..bf9a9c0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestsByStatusResponseDataInner(BaseModel): + """ + GetGuestsByStatusResponseDataInner + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation's unique identifier", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") + reservation_created_date_time: Optional[datetime] = Field(default=None, description="Reservation creation datetime", alias="reservationCreatedDateTime") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID that the guest is assigned", alias="roomTypeID") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID that the guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the room where guest is assigned", alias="roomName") + guest_first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, description="Gender", alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, description="Email Address", alias="guestEmail") + guest_phone: Optional[StrictStr] = Field(default=None, description="Phone Number", alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, description="Cell Phone Number", alias="guestCellPhone") + guest_address1: Optional[StrictStr] = Field(default=None, description="Address", alias="guestAddress1") + guest_address2: Optional[StrictStr] = Field(default=None, description="Address line 2", alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, description="Address city", alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, description="Address state", alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, description="Address country", alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, description="Address zip code", alias="guestZip") + guest_birth_date: Optional[date] = Field(default=None, description="Guests Date of Birth", alias="guestBirthDate") + guest_document_type: Optional[StrictStr] = Field(default=None, description="Document Type", alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, description="Document Number", alias="guestDocumentNumber") + guest_document_issue_date: Optional[date] = Field(default=None, description="Document Issue Date", alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, description="Document Issuing Country", alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[date] = Field(default=None, description="Document Expiration Date", alias="guestDocumentExpirationDate") + start_date: Optional[datetime] = Field(default=None, description="Check-in date", alias="startDate") + end_date: Optional[datetime] = Field(default=None, description="Check-out date", alias="endDate") + custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of custom fields", alias="customFields") + date_modified: Optional[datetime] = Field(default=None, description="Guest modification date", alias="dateModified") + current_status: Optional[StrictStr] = Field(default=None, description="Current Status of the guest. Does not need to be equal to the status looked for (it may have had a status change outside of the filtered date range).", alias="currentStatus") + status_date: Optional[datetime] = Field(default=None, description="DateTime when the last status modification occurred.", alias="statusDate") + tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Company name", alias="companyName") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + is_deleted: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest's reservation was removed", alias="isDeleted") + guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") + is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") + new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") + __properties: ClassVar[List[str]] = ["guestID", "reservationID", "subReservationID", "reservationCreatedDateTime", "roomTypeID", "roomID", "roomName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "startDate", "endDate", "customFields", "dateModified", "currentStatus", "statusDate", "taxID", "companyTaxID", "companyName", "isAnonymized", "isDeleted", "guestOptIn", "isMerged", "newGuestID"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + @field_validator('current_status') + def current_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['canceled', 'checked_out', 'in_house', 'not_checked_in']): + raise ValueError("must be one of enum values ('canceled', 'checked_out', 'in_house', 'not_checked_in')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestsByStatusResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestsByStatusResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "reservationCreatedDateTime": obj.get("reservationCreatedDateTime"), + "roomTypeID": obj.get("roomTypeID"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress1": obj.get("guestAddress1"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestBirthDate": obj.get("guestBirthDate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "dateModified": obj.get("dateModified"), + "currentStatus": obj.get("currentStatus"), + "statusDate": obj.get("statusDate"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "isAnonymized": obj.get("isAnonymized"), + "isDeleted": obj.get("isDeleted"), + "guestOptIn": obj.get("guestOptIn"), + "isMerged": obj.get("isMerged"), + "newGuestID": obj.get("newGuestID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guests_modified_response.py b/cloudbeds_pms_v1_2/models/get_guests_modified_response.py new file mode 100644 index 0000000..4eed4a2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guests_modified_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestsModifiedResponse(BaseModel): + """ + GetGuestsModifiedResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetGuestsModifiedResponseDataInner]] = Field(default=None, description="Details for the guest linked to the property") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestsModifiedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestsModifiedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetGuestsModifiedResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py new file mode 100644 index 0000000..dcb00b7 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestsModifiedResponseDataInner(BaseModel): + """ + GetGuestsModifiedResponseDataInner + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation's unique identifier", alias="reservationID") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID that the guest is assigned", alias="roomTypeID") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID that the guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the room where guest is assigned", alias="roomName") + guest_first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, description="Email Address", alias="guestEmail") + guest_phone: Optional[StrictStr] = Field(default=None, description="Phone Number", alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, description="Cell Phone Number", alias="guestCellPhone") + guest_address1: Optional[StrictStr] = Field(default=None, description="Address", alias="guestAddress1") + guest_address2: Optional[StrictStr] = Field(default=None, description="Address line 2", alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, description="Address city", alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, description="Address state", alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, description="Address country", alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, description="Address zip code", alias="guestZip") + guest_birth_date: Optional[date] = Field(default=None, description="Guests Date of Birth", alias="guestBirthDate") + guest_document_type: Optional[StrictStr] = Field(default=None, description="Document Type", alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, description="Document Number", alias="guestDocumentNumber") + guest_document_issue_date: Optional[date] = Field(default=None, description="Document Issue Date", alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, description="Document Issuing Country", alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[date] = Field(default=None, description="Document Expiration Date", alias="guestDocumentExpirationDate") + start_date: Optional[datetime] = Field(default=None, description="Check-in date", alias="startDate") + end_date: Optional[datetime] = Field(default=None, description="Check-out date", alias="endDate") + custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of custom fields", alias="customFields") + date_modified: Optional[datetime] = Field(default=None, description="Guest modification date", alias="dateModified") + tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Company name", alias="companyName") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") + is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") + new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") + __properties: ClassVar[List[str]] = ["guestID", "reservationID", "roomTypeID", "roomID", "roomName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "startDate", "endDate", "customFields", "dateModified", "taxID", "companyTaxID", "companyName", "isAnonymized", "guestOptIn", "isMerged", "newGuestID"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestsModifiedResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestsModifiedResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "reservationID": obj.get("reservationID"), + "roomTypeID": obj.get("roomTypeID"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress1": obj.get("guestAddress1"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestBirthDate": obj.get("guestBirthDate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "dateModified": obj.get("dateModified"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "isAnonymized": obj.get("isAnonymized"), + "guestOptIn": obj.get("guestOptIn"), + "isMerged": obj.get("isMerged"), + "newGuestID": obj.get("newGuestID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py new file mode 100644 index 0000000..775c493 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGuestsModifiedResponseDataInnerCustomFieldsInner(BaseModel): + """ + GetGuestsModifiedResponseDataInnerCustomFieldsInner + """ # noqa: E501 + custom_field_name: Optional[StrictStr] = Field(default=None, description="Custom Field Name", alias="customFieldName") + custom_field_value: Optional[StrictStr] = Field(default=None, description="Custom Field Value", alias="customFieldValue") + __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGuestsModifiedResponseDataInnerCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if custom_field_name (nullable) is None + # and model_fields_set contains the field + if self.custom_field_name is None and "custom_field_name" in self.model_fields_set: + _dict['customFieldName'] = None + + # set to None if custom_field_value (nullable) is None + # and model_fields_set contains the field + if self.custom_field_value is None and "custom_field_value" in self.model_fields_set: + _dict['customFieldValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGuestsModifiedResponseDataInnerCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customFieldName": obj.get("customFieldName"), + "customFieldValue": obj.get("customFieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response.py b/cloudbeds_pms_v1_2/models/get_hotel_details_response.py new file mode 100644 index 0000000..3e7e819 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotel_details_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelDetailsResponse(BaseModel): + """ + GetHotelDetailsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetHotelDetailsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetHotelDetailsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py new file mode 100644 index 0000000..852cfd7 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelDetailsResponseData(BaseModel): + """ + Information about the hotel + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization ID", alias="organizationID") + property_name: Optional[StrictStr] = Field(default=None, description="Property name", alias="propertyName") + property_type: Optional[StrictStr] = Field(default=None, description="The type of property", alias="propertyType") + property_image: Optional[List[GetHotelDetailsResponseDataPropertyImageInner]] = Field(default=None, description="Property images details", alias="propertyImage") + property_description: Optional[StrictStr] = Field(default=None, description="Property description", alias="propertyDescription") + property_currency: Optional[GetHotelDetailsResponseDataPropertyCurrency] = Field(default=None, alias="propertyCurrency") + property_primary_language: Optional[StrictStr] = Field(default=None, description="Property primary language", alias="propertyPrimaryLanguage") + property_additional_photos: Optional[List[GetHotelDetailsResponseDataPropertyImageInner]] = Field(default=None, description="Property additional photos", alias="propertyAdditionalPhotos") + property_phone: Optional[StrictStr] = Field(default=None, description="Property phone number", alias="propertyPhone") + property_email: Optional[StrictStr] = Field(default=None, description="Property main email address", alias="propertyEmail") + property_address: Optional[GetHotelDetailsResponseDataPropertyAddress] = Field(default=None, alias="propertyAddress") + property_policy: Optional[GetHotelDetailsResponseDataPropertyPolicy] = Field(default=None, alias="propertyPolicy") + property_amenities: Optional[List[StrictStr]] = Field(default=None, description="List of property amenities", alias="propertyAmenities") + tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID number", alias="taxID") + tax_id2: Optional[StrictStr] = Field(default=None, description="Second Tax ID number", alias="taxID2") + company_legal_name: Optional[StrictStr] = Field(default=None, description="Legal company name", alias="companyLegalName") + __properties: ClassVar[List[str]] = ["propertyID", "organizationID", "propertyName", "propertyType", "propertyImage", "propertyDescription", "propertyCurrency", "propertyPrimaryLanguage", "propertyAdditionalPhotos", "propertyPhone", "propertyEmail", "propertyAddress", "propertyPolicy", "propertyAmenities", "taxID", "taxID2", "companyLegalName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in property_image (list) + _items = [] + if self.property_image: + for _item_property_image in self.property_image: + if _item_property_image: + _items.append(_item_property_image.to_dict()) + _dict['propertyImage'] = _items + # override the default output from pydantic by calling `to_dict()` of property_currency + if self.property_currency: + _dict['propertyCurrency'] = self.property_currency.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in property_additional_photos (list) + _items = [] + if self.property_additional_photos: + for _item_property_additional_photos in self.property_additional_photos: + if _item_property_additional_photos: + _items.append(_item_property_additional_photos.to_dict()) + _dict['propertyAdditionalPhotos'] = _items + # override the default output from pydantic by calling `to_dict()` of property_address + if self.property_address: + _dict['propertyAddress'] = self.property_address.to_dict() + # override the default output from pydantic by calling `to_dict()` of property_policy + if self.property_policy: + _dict['propertyPolicy'] = self.property_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "organizationID": obj.get("organizationID"), + "propertyName": obj.get("propertyName"), + "propertyType": obj.get("propertyType"), + "propertyImage": [GetHotelDetailsResponseDataPropertyImageInner.from_dict(_item) for _item in obj["propertyImage"]] if obj.get("propertyImage") is not None else None, + "propertyDescription": obj.get("propertyDescription"), + "propertyCurrency": GetHotelDetailsResponseDataPropertyCurrency.from_dict(obj["propertyCurrency"]) if obj.get("propertyCurrency") is not None else None, + "propertyPrimaryLanguage": obj.get("propertyPrimaryLanguage"), + "propertyAdditionalPhotos": [GetHotelDetailsResponseDataPropertyImageInner.from_dict(_item) for _item in obj["propertyAdditionalPhotos"]] if obj.get("propertyAdditionalPhotos") is not None else None, + "propertyPhone": obj.get("propertyPhone"), + "propertyEmail": obj.get("propertyEmail"), + "propertyAddress": GetHotelDetailsResponseDataPropertyAddress.from_dict(obj["propertyAddress"]) if obj.get("propertyAddress") is not None else None, + "propertyPolicy": GetHotelDetailsResponseDataPropertyPolicy.from_dict(obj["propertyPolicy"]) if obj.get("propertyPolicy") is not None else None, + "propertyAmenities": obj.get("propertyAmenities"), + "taxID": obj.get("taxID"), + "taxID2": obj.get("taxID2"), + "companyLegalName": obj.get("companyLegalName") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py new file mode 100644 index 0000000..c9902bf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelDetailsResponseDataPropertyAddress(BaseModel): + """ + + """ # noqa: E501 + property_address1: Optional[StrictStr] = Field(default=None, alias="propertyAddress1") + property_address2: Optional[StrictStr] = Field(default=None, alias="propertyAddress2") + property_city: Optional[StrictStr] = Field(default=None, alias="propertyCity") + property_state: Optional[StrictStr] = Field(default=None, alias="propertyState") + property_zip: Optional[StrictStr] = Field(default=None, alias="propertyZip") + property_country: Optional[StrictStr] = Field(default=None, alias="propertyCountry") + property_latitude: Optional[StrictStr] = Field(default=None, alias="propertyLatitude") + property_longitude: Optional[StrictStr] = Field(default=None, alias="propertyLongitude") + __properties: ClassVar[List[str]] = ["propertyAddress1", "propertyAddress2", "propertyCity", "propertyState", "propertyZip", "propertyCountry", "propertyLatitude", "propertyLongitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyAddress1": obj.get("propertyAddress1"), + "propertyAddress2": obj.get("propertyAddress2"), + "propertyCity": obj.get("propertyCity"), + "propertyState": obj.get("propertyState"), + "propertyZip": obj.get("propertyZip"), + "propertyCountry": obj.get("propertyCountry"), + "propertyLatitude": obj.get("propertyLatitude"), + "propertyLongitude": obj.get("propertyLongitude") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py new file mode 100644 index 0000000..3cab567 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelDetailsResponseDataPropertyCurrency(BaseModel): + """ + Currency used by the property + """ # noqa: E501 + currency_code: Optional[StrictStr] = Field(default=None, description="Currency code", alias="currencyCode") + currency_symbol: Optional[StrictStr] = Field(default=None, description="Currency symbol", alias="currencySymbol") + currency_position: Optional[StrictStr] = Field(default=None, description="Currency position", alias="currencyPosition") + __properties: ClassVar[List[str]] = ["currencyCode", "currencySymbol", "currencyPosition"] + + @field_validator('currency_position') + def currency_position_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['before', 'after']): + raise ValueError("must be one of enum values ('before', 'after')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyCurrency from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyCurrency from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyCode": obj.get("currencyCode"), + "currencySymbol": obj.get("currencySymbol"), + "currencyPosition": obj.get("currencyPosition") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py new file mode 100644 index 0000000..989ac27 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelDetailsResponseDataPropertyImageInner(BaseModel): + """ + GetHotelDetailsResponseDataPropertyImageInner + """ # noqa: E501 + thumb: Optional[StrictStr] = Field(default=None, description="Thumbnail URL") + image: Optional[StrictStr] = Field(default=None, description="Full Image URL") + __properties: ClassVar[List[str]] = ["thumb", "image"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyImageInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyImageInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "thumb": obj.get("thumb"), + "image": obj.get("image") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py new file mode 100644 index 0000000..281d7cd --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelDetailsResponseDataPropertyPolicy(BaseModel): + """ + + """ # noqa: E501 + property_check_in_time: Optional[StrictStr] = Field(default=None, alias="propertyCheckInTime") + property_check_out_time: Optional[StrictStr] = Field(default=None, alias="propertyCheckOutTime") + property_late_check_out_allowed: Optional[StrictBool] = Field(default=None, alias="propertyLateCheckOutAllowed") + property_late_check_out_type: Optional[StrictStr] = Field(default=None, description="If the property accepts late check-out, defines if the value is fixed, or a percentage of the daily rate", alias="propertyLateCheckOutType") + property_late_check_out_value: Optional[StrictStr] = Field(default=None, description="The fixed value, or percentage of the daily rate, to be charged on a late check-out", alias="propertyLateCheckOutValue") + property_terms_and_conditions: Optional[StrictStr] = Field(default=None, description="Text describing the terms and conditions to be displayed to guest", alias="propertyTermsAndConditions") + property_full_payment_before_checkin: Optional[StrictBool] = Field(default=None, description="If the property requires the full payment amount of the reservation to be collected prior to check-in", alias="propertyFullPaymentBeforeCheckin") + __properties: ClassVar[List[str]] = ["propertyCheckInTime", "propertyCheckOutTime", "propertyLateCheckOutAllowed", "propertyLateCheckOutType", "propertyLateCheckOutValue", "propertyTermsAndConditions", "propertyFullPaymentBeforeCheckin"] + + @field_validator('property_late_check_out_type') + def property_late_check_out_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['value', 'percent']): + raise ValueError("must be one of enum values ('value', 'percent')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyPolicy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelDetailsResponseDataPropertyPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyCheckInTime": obj.get("propertyCheckInTime"), + "propertyCheckOutTime": obj.get("propertyCheckOutTime"), + "propertyLateCheckOutAllowed": obj.get("propertyLateCheckOutAllowed"), + "propertyLateCheckOutType": obj.get("propertyLateCheckOutType"), + "propertyLateCheckOutValue": obj.get("propertyLateCheckOutValue"), + "propertyTermsAndConditions": obj.get("propertyTermsAndConditions"), + "propertyFullPaymentBeforeCheckin": obj.get("propertyFullPaymentBeforeCheckin") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotels_response.py b/cloudbeds_pms_v1_2/models/get_hotels_response.py new file mode 100644 index 0000000..b9659d5 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotels_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelsResponse(BaseModel): + """ + GetHotelsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetHotelsResponseDataInner]] = Field(default=None, description="Information about the hotels") + count: Optional[StrictInt] = Field(default=None, description="Number of results in this page") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetHotelsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py new file mode 100644 index 0000000..329a63a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelsResponseDataInner(BaseModel): + """ + GetHotelsResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization ID", alias="organizationID") + property_name: Optional[StrictStr] = Field(default=None, description="Property name", alias="propertyName") + property_image: Optional[StrictStr] = Field(default=None, description="Property image URL", alias="propertyImage") + property_description: Optional[StrictStr] = Field(default=None, description="Property description", alias="propertyDescription") + property_timezone: Optional[StrictStr] = Field(default=None, description="Property Timezone", alias="propertyTimezone") + property_currency: Optional[List[GetHotelsResponseDataInnerPropertyCurrencyInner]] = Field(default=None, description="Currency used by the property", alias="propertyCurrency") + __properties: ClassVar[List[str]] = ["propertyID", "organizationID", "propertyName", "propertyImage", "propertyDescription", "propertyTimezone", "propertyCurrency"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in property_currency (list) + _items = [] + if self.property_currency: + for _item_property_currency in self.property_currency: + if _item_property_currency: + _items.append(_item_property_currency.to_dict()) + _dict['propertyCurrency'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "organizationID": obj.get("organizationID"), + "propertyName": obj.get("propertyName"), + "propertyImage": obj.get("propertyImage"), + "propertyDescription": obj.get("propertyDescription"), + "propertyTimezone": obj.get("propertyTimezone"), + "propertyCurrency": [GetHotelsResponseDataInnerPropertyCurrencyInner.from_dict(_item) for _item in obj["propertyCurrency"]] if obj.get("propertyCurrency") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py new file mode 100644 index 0000000..db27261 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelsResponseDataInnerPropertyCurrencyInner(BaseModel): + """ + GetHotelsResponseDataInnerPropertyCurrencyInner + """ # noqa: E501 + currency_code: Optional[StrictStr] = Field(default=None, description="Currency code", alias="currencyCode") + currency_symbol: Optional[StrictStr] = Field(default=None, description="Currency symbol", alias="currencySymbol") + currency_position: Optional[StrictStr] = Field(default=None, description="Currency position", alias="currencyPosition") + __properties: ClassVar[List[str]] = ["currencyCode", "currencySymbol", "currencyPosition"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelsResponseDataInnerPropertyCurrencyInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelsResponseDataInnerPropertyCurrencyInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyCode": obj.get("currencyCode"), + "currencySymbol": obj.get("currencySymbol"), + "currencyPosition": obj.get("currencyPosition") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response.py new file mode 100644 index 0000000..5af4209 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_house_account_details_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponse(BaseModel): + """ + GetHouseAccountDetailsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetHouseAccountDetailsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetHouseAccountDetailsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py new file mode 100644 index 0000000..dc8a6e0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponseData(BaseModel): + """ + Includes records list for House Account and summary info covering the date range specified + """ # noqa: E501 + total: Optional[List[GetHouseAccountDetailsResponseDataTotalInner]] = Field(default=None, description="Section with summary records info") + records: Optional[List[GetHouseAccountDetailsResponseDataRecordsInner]] = Field(default=None, description="Section with records list") + __properties: ClassVar[List[str]] = ["total", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [GetHouseAccountDetailsResponseDataTotalInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "records": [GetHouseAccountDetailsResponseDataRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py new file mode 100644 index 0000000..6f1ee79 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponseDataRecordsInner(BaseModel): + """ + GetHouseAccountDetailsResponseDataRecordsInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction ID", alias="transactionID") + user_name: Optional[StrictStr] = Field(default=None, description="User name", alias="userName") + description: Optional[StrictStr] = Field(default=None, description="Record description") + notes: Optional[StrictStr] = Field(default=None, description="Record notes") + quantity: Optional[StrictStr] = Field(default=None, description="Quantity of items (for product type record)") + debit: Optional[StrictStr] = Field(default=None, description="Debit amount (non formatted)") + credit: Optional[StrictStr] = Field(default=None, description="Credit amount (non formatted)") + debit_formatter: Optional[StrictStr] = Field(default=None, description="Debit amount (formatted)", alias="debitFormatter") + credit_formatted: Optional[StrictStr] = Field(default=None, description="Credit amount (formatted)", alias="creditFormatted") + currency: Optional[StrictStr] = Field(default=None, description="Currency string") + transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction code", alias="transactionCode") + parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") + transaction_date: Optional[date] = Field(default=None, description="Transaction date", alias="transactionDate") + transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction date and time", alias="transactionDateTime") + __properties: ClassVar[List[str]] = ["propertyID", "transactionID", "userName", "description", "notes", "quantity", "debit", "credit", "debitFormatter", "creditFormatted", "currency", "transactionCode", "parentTransactionID", "transactionDate", "transactionDateTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "transactionID": obj.get("transactionID"), + "userName": obj.get("userName"), + "description": obj.get("description"), + "notes": obj.get("notes"), + "quantity": obj.get("quantity"), + "debit": obj.get("debit"), + "credit": obj.get("credit"), + "debitFormatter": obj.get("debitFormatter"), + "creditFormatted": obj.get("creditFormatted"), + "currency": obj.get("currency"), + "transactionCode": obj.get("transactionCode"), + "parentTransactionID": obj.get("parentTransactionID"), + "transactionDate": obj.get("transactionDate"), + "transactionDateTime": obj.get("transactionDateTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py new file mode 100644 index 0000000..49f060d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponseDataTotalInner(BaseModel): + """ + GetHouseAccountDetailsResponseDataTotalInner + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Total number of House Account records") + quantity: Optional[StrictStr] = Field(default=None, description="Total items quantity of product type records") + debit: Optional[StrictStr] = Field(default=None, description="Total debit (formatted)") + credit: Optional[StrictStr] = Field(default=None, description="Total credit (formatted)") + __properties: ClassVar[List[str]] = ["count", "quantity", "debit", "credit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "quantity": obj.get("quantity"), + "debit": obj.get("debit"), + "credit": obj.get("credit") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_list_response.py b/cloudbeds_pms_v1_2/models/get_house_account_list_response.py new file mode 100644 index 0000000..8bc11eb --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_house_account_list_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountListResponse(BaseModel): + """ + GetHouseAccountListResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetHouseAccountListResponseDataInner]] = Field(default=None, description="Details for the house accounts") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountListResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountListResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetHouseAccountListResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py new file mode 100644 index 0000000..80552be --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountListResponseDataInner(BaseModel): + """ + GetHouseAccountListResponseDataInner + """ # noqa: E501 + account_id: Optional[StrictStr] = Field(default=None, description="House Account ID", alias="accountID") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + account_name: Optional[StrictStr] = Field(default=None, description="House Account name", alias="accountName") + account_status: Optional[StrictStr] = Field(default=None, description="House Account status", alias="accountStatus") + is_private: Optional[StrictBool] = Field(default=None, description="Whether House Account is set to private or not (if true \"userName\" will be specified)", alias="isPrivate") + user_name: Optional[StrictStr] = Field(default=None, description="Owner Name of private House Account", alias="userName") + __properties: ClassVar[List[str]] = ["accountID", "propertyID", "accountName", "accountStatus", "isPrivate", "userName"] + + @field_validator('account_status') + def account_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['open', 'closed']): + raise ValueError("must be one of enum values ('open', 'closed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountListResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountListResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accountID": obj.get("accountID"), + "propertyID": obj.get("propertyID"), + "accountName": obj.get("accountName"), + "accountStatus": obj.get("accountStatus"), + "isPrivate": obj.get("isPrivate"), + "userName": obj.get("userName") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_housekeepers_response.py b/cloudbeds_pms_v1_2/models/get_housekeepers_response.py new file mode 100644 index 0000000..bd835fe --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_housekeepers_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetHousekeepersResponse(BaseModel): + """ + GetHousekeepersResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetHousekeepersResponseDataInner]] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHousekeepersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHousekeepersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetHousekeepersResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py new file mode 100644 index 0000000..ae24f93 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHousekeepersResponseDataInner(BaseModel): + """ + GetHousekeepersResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + housekeeper_id: Optional[StrictStr] = Field(default=None, description="Housekeeper ID", alias="housekeeperID") + name: Optional[StrictStr] = Field(default=None, description="Housekeeper Name") + __properties: ClassVar[List[str]] = ["propertyID", "housekeeperID", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHousekeepersResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHousekeepersResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "housekeeperID": obj.get("housekeeperID"), + "name": obj.get("name") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py b/cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py new file mode 100644 index 0000000..925636c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetHousekeepingStatusResponse(BaseModel): + """ + GetHousekeepingStatusResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetHousekeepingStatusResponseDataInner]] = None + count: Optional[StrictInt] = Field(default=None, description="Results in current request") + total: Optional[StrictInt] = Field(default=None, description="Total number of results for supplied parameters") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHousekeepingStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHousekeepingStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetHousekeepingStatusResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py new file mode 100644 index 0000000..35e12fb --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHousekeepingStatusResponseDataInner(BaseModel): + """ + GetHousekeepingStatusResponseDataInner + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, description="Date for last date/time that the room condition changed", alias="date") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type", alias="roomTypeName") + room_id: Optional[StrictStr] = Field(default=None, description="ID of room", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of room", alias="roomName") + room_condition: Optional[StrictStr] = Field(default=None, description="Room cleaning condition", alias="roomCondition") + room_occupied: Optional[StrictBool] = Field(default=None, description="Flag if room currently occupied", alias="roomOccupied") + room_blocked: Optional[StrictBool] = Field(default=None, description="Flag if room is blocked", alias="roomBlocked") + frontdesk_status: Optional[StrictStr] = Field(default=None, description="The following frontdesk statuses exist:

'check-in' - There is no guest checking out, but there is a guest checking in.
'check-out' - Guest checking out today, but no guest checking in.
'stayover' - Guest is in-house, not checking out today and is staying for another night
'turnover' - Guest checking out today and another guest checking in today
'unused' - Room is not being used. There is no one there now due to check out, and no one arriving.", alias="frontdeskStatus") + housekeeper_id: Optional[StrictStr] = Field(default=None, description="ID of Housekeeper", alias="housekeeperID") + housekeeper: Optional[StrictStr] = Field(default=None, description="Housekeeper name") + do_not_disturb: Optional[StrictBool] = Field(default=None, description="Flag if room as set as \"Do Not Disturb\"", alias="doNotDisturb") + refused_service: Optional[StrictBool] = Field(default=None, description="Flag if room as set as \"Refused Service\"", alias="refusedService") + vacant_pickup: Optional[StrictBool] = Field(default=None, description="Flag if room as set as \"Vacant Pickup\"", alias="vacantPickup") + room_comments: Optional[StrictStr] = Field(default=None, description="Room comments", alias="roomComments") + __properties: ClassVar[List[str]] = ["date", "roomTypeID", "roomTypeName", "roomID", "roomName", "roomCondition", "roomOccupied", "roomBlocked", "frontdeskStatus", "housekeeperID", "housekeeper", "doNotDisturb", "refusedService", "vacantPickup", "roomComments"] + + @field_validator('room_condition') + def room_condition_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['dirty', 'clean']): + raise ValueError("must be one of enum values ('dirty', 'clean')") + return value + + @field_validator('frontdesk_status') + def frontdesk_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['check-in', 'check-out', 'stayover', 'turnover', 'unused']): + raise ValueError("must be one of enum values ('check-in', 'check-out', 'stayover', 'turnover', 'unused')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHousekeepingStatusResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHousekeepingStatusResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomCondition": obj.get("roomCondition"), + "roomOccupied": obj.get("roomOccupied"), + "roomBlocked": obj.get("roomBlocked"), + "frontdeskStatus": obj.get("frontdeskStatus"), + "housekeeperID": obj.get("housekeeperID"), + "housekeeper": obj.get("housekeeper"), + "doNotDisturb": obj.get("doNotDisturb"), + "refusedService": obj.get("refusedService"), + "vacantPickup": obj.get("vacantPickup"), + "roomComments": obj.get("roomComments") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response.py b/cloudbeds_pms_v1_2/models/get_invoice_response.py new file mode 100644 index 0000000..f6ca68b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_invoice_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetInvoiceResponse(BaseModel): + """ + GetInvoiceResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetInvoiceResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetInvoiceResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetInvoiceResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetInvoiceResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data.py b/cloudbeds_pms_v1_2/models/get_invoice_response_data.py new file mode 100644 index 0000000..6718323 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_invoice_response_data.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetInvoiceResponseData(BaseModel): + """ + Invoice details + """ # noqa: E501 + invoice_id: Optional[StrictStr] = Field(default=None, description="Unique invoice ID", alias="invoiceID") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier", alias="reservationID") + prefix: Optional[StrictStr] = Field(default=None, description="Invoice ID prefix") + number: Optional[StrictInt] = Field(default=None, description="Invoice ID number") + suffix: Optional[StrictStr] = Field(default=None, description="Invoice ID suffix") + document_issue_date: Optional[StrictStr] = Field(default=None, description="Date and time when invoice was issued", alias="documentIssueDate") + status: Optional[StrictStr] = Field(default=None, description="Invoice status") + billed_to: Optional[GetInvoiceResponseDataBilledTo] = Field(default=None, alias="billedTo") + items: Optional[List[GetInvoiceResponseDataItemsInner]] = Field(default=None, description="Invoice items") + taxes: Optional[List[GetInvoiceResponseDataItemsInnerTaxesInner]] = None + fees: Optional[List[GetInvoiceResponseDataItemsInnerFeesInner]] = None + __properties: ClassVar[List[str]] = ["invoiceID", "reservationID", "prefix", "number", "suffix", "documentIssueDate", "status", "billedTo", "items", "taxes", "fees"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetInvoiceResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of billed_to + if self.billed_to: + _dict['billedTo'] = self.billed_to.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) + _items = [] + if self.taxes: + for _item_taxes in self.taxes: + if _item_taxes: + _items.append(_item_taxes.to_dict()) + _dict['taxes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in fees (list) + _items = [] + if self.fees: + for _item_fees in self.fees: + if _item_fees: + _items.append(_item_fees.to_dict()) + _dict['fees'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetInvoiceResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invoiceID": obj.get("invoiceID"), + "reservationID": obj.get("reservationID"), + "prefix": obj.get("prefix"), + "number": obj.get("number"), + "suffix": obj.get("suffix"), + "documentIssueDate": obj.get("documentIssueDate"), + "status": obj.get("status"), + "billedTo": GetInvoiceResponseDataBilledTo.from_dict(obj["billedTo"]) if obj.get("billedTo") is not None else None, + "items": [GetInvoiceResponseDataItemsInner.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "taxes": [GetInvoiceResponseDataItemsInnerTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, + "fees": [GetInvoiceResponseDataItemsInnerFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py b/cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py new file mode 100644 index 0000000..35efadf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetInvoiceResponseDataBilledTo(BaseModel): + """ + Information about who being billed + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Unique identifier of who being billed Additional information about who being billed could be retrieved via corresponding API e.g.: for a guest it could be [getGuest](#tag/Guest/paths/~1getGuest/get)") + type: Optional[StrictStr] = Field(default=None, description="Type of who being billed") + __properties: ClassVar[List[str]] = ["id", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['guest']): + raise ValueError("must be one of enum values ('guest')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataBilledTo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataBilledTo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py b/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py new file mode 100644 index 0000000..c018e11 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetInvoiceResponseDataItemsInner(BaseModel): + """ + GetInvoiceResponseDataItemsInner + """ # noqa: E501 + description: Optional[StrictStr] = None + type: Optional[StrictStr] = None + quantity: Optional[StrictInt] = None + total_amount: Optional[StrictStr] = Field(default=None, alias="totalAmount") + net_amount: Optional[StrictStr] = Field(default=None, alias="netAmount") + currency: Optional[StrictStr] = None + taxes: Optional[List[GetInvoiceResponseDataItemsInnerTaxesInner]] = None + fees: Optional[List[GetInvoiceResponseDataItemsInnerFeesInner]] = None + __properties: ClassVar[List[str]] = ["description", "type", "quantity", "totalAmount", "netAmount", "currency", "taxes", "fees"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataItemsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) + _items = [] + if self.taxes: + for _item_taxes in self.taxes: + if _item_taxes: + _items.append(_item_taxes.to_dict()) + _dict['taxes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in fees (list) + _items = [] + if self.fees: + for _item_fees in self.fees: + if _item_fees: + _items.append(_item_fees.to_dict()) + _dict['fees'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataItemsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "type": obj.get("type"), + "quantity": obj.get("quantity"), + "totalAmount": obj.get("totalAmount"), + "netAmount": obj.get("netAmount"), + "currency": obj.get("currency"), + "taxes": [GetInvoiceResponseDataItemsInnerTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, + "fees": [GetInvoiceResponseDataItemsInnerFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py b/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py new file mode 100644 index 0000000..c5bc02a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetInvoiceResponseDataItemsInnerFeesInner(BaseModel): + """ + GetInvoiceResponseDataItemsInnerFeesInner + """ # noqa: E501 + name: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + code: Optional[StrictStr] = None + fee_id: Optional[StrictStr] = Field(default=None, alias="feeID") + __properties: ClassVar[List[str]] = ["name", "amount", "code", "feeID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "amount": obj.get("amount"), + "code": obj.get("code"), + "feeID": obj.get("feeID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py b/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py new file mode 100644 index 0000000..71fe7be --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetInvoiceResponseDataItemsInnerTaxesInner(BaseModel): + """ + GetInvoiceResponseDataItemsInnerTaxesInner + """ # noqa: E501 + name: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + code: Optional[StrictStr] = None + tax_id: Optional[StrictStr] = Field(default=None, alias="taxID") + __properties: ClassVar[List[str]] = ["name", "amount", "code", "taxID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "amount": obj.get("amount"), + "code": obj.get("code"), + "taxID": obj.get("taxID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_item_categories_response.py b/cloudbeds_pms_v1_2/models/get_item_categories_response.py new file mode 100644 index 0000000..69721ac --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_item_categories_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetItemCategoriesResponse(BaseModel): + """ + GetItemCategoriesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetItemCategoriesResponseDataInner]] = Field(default=None, description="Categories details") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemCategoriesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemCategoriesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetItemCategoriesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py new file mode 100644 index 0000000..185ac30 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetItemCategoriesResponseDataInner(BaseModel): + """ + GetItemCategoriesResponseDataInner + """ # noqa: E501 + category_id: Optional[StrictStr] = Field(default=None, description="Category unique identifier", alias="categoryID") + category_name: Optional[StrictStr] = Field(default=None, description="Category name", alias="categoryName") + category_code: Optional[StrictStr] = Field(default=None, description="Category code", alias="categoryCode") + category_color: Optional[StrictStr] = Field(default=None, description="Category color (like #3b7be7)", alias="categoryColor") + __properties: ClassVar[List[str]] = ["categoryID", "categoryName", "categoryCode", "categoryColor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemCategoriesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemCategoriesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categoryID": obj.get("categoryID"), + "categoryName": obj.get("categoryName"), + "categoryCode": obj.get("categoryCode"), + "categoryColor": obj.get("categoryColor") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_item_response.py b/cloudbeds_pms_v1_2/models/get_item_response.py new file mode 100644 index 0000000..718b2d9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_item_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetItemResponse(BaseModel): + """ + GetItemResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetItemResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetItemResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_item_response_data.py b/cloudbeds_pms_v1_2/models/get_item_response_data.py new file mode 100644 index 0000000..0896828 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_item_response_data.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetItemResponseData(BaseModel): + """ + Item details + """ # noqa: E501 + item_id: Optional[StrictStr] = Field(default=None, description="Item unique identifier", alias="itemID") + item_type: Optional[StrictStr] = Field(default=None, description="Item type", alias="itemType") + sku: Optional[StrictStr] = Field(default=None, description="Item SKU") + item_code: Optional[StrictStr] = Field(default=None, description="Item code", alias="itemCode") + name: Optional[StrictStr] = Field(default=None, description="Item name") + category_id: Optional[StrictStr] = Field(default=None, description="Item category identifier. Null if unset", alias="categoryID") + category_name: Optional[StrictStr] = Field(default=None, description="Item category name. Empty if unset", alias="categoryName") + description: Optional[StrictStr] = Field(default=None, description="Item description") + price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Item price") + stock_inventory: Optional[StrictBool] = Field(default=None, description="Track stock inventory for this item", alias="stockInventory") + item_quantity: Optional[StrictInt] = Field(default=None, description="1 Current amount of item available", alias="itemQuantity") + reorder_threshold: Optional[StrictInt] = Field(default=None, description="1 Quantity at which to reorder item", alias="reorderThreshold") + reorder_needed: Optional[StrictBool] = Field(default=None, description="1 true - Whether item is at or below value set for reorder threshold.", alias="reorderNeeded") + stop_sell: Optional[StrictInt] = Field(default=None, description="1 Quantity at which to stop selling product.", alias="stopSell") + stop_sell_met: Optional[StrictBool] = Field(default=None, description="1 true - Whether item is at or below value set for stop-sell threshold.", alias="stopSellMet") + taxes: Optional[List[GetItemResponseDataTaxesInner]] = Field(default=None, description="2 Details of the taxes applicable") + total_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 Total value of the taxes", alias="totalTaxes") + fees: Optional[List[GetItemResponseDataFeesInner]] = Field(default=None, description="2 Details of the fees applicable") + total_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 Total value of the fees", alias="totalFees") + price_without_fees_and_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 item price subtracting the included taxes", alias="priceWithoutFeesAndTaxes") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 item price with fees and taxes", alias="grandTotal") + __properties: ClassVar[List[str]] = ["itemID", "itemType", "sku", "itemCode", "name", "categoryID", "categoryName", "description", "price", "stockInventory", "itemQuantity", "reorderThreshold", "reorderNeeded", "stopSell", "stopSellMet", "taxes", "totalTaxes", "fees", "totalFees", "priceWithoutFeesAndTaxes", "grandTotal"] + + @field_validator('item_type') + def item_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['product', 'service']): + raise ValueError("must be one of enum values ('product', 'service')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) + _items = [] + if self.taxes: + for _item_taxes in self.taxes: + if _item_taxes: + _items.append(_item_taxes.to_dict()) + _dict['taxes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in fees (list) + _items = [] + if self.fees: + for _item_fees in self.fees: + if _item_fees: + _items.append(_item_fees.to_dict()) + _dict['fees'] = _items + # set to None if item_quantity (nullable) is None + # and model_fields_set contains the field + if self.item_quantity is None and "item_quantity" in self.model_fields_set: + _dict['itemQuantity'] = None + + # set to None if reorder_threshold (nullable) is None + # and model_fields_set contains the field + if self.reorder_threshold is None and "reorder_threshold" in self.model_fields_set: + _dict['reorderThreshold'] = None + + # set to None if reorder_needed (nullable) is None + # and model_fields_set contains the field + if self.reorder_needed is None and "reorder_needed" in self.model_fields_set: + _dict['reorderNeeded'] = None + + # set to None if stop_sell (nullable) is None + # and model_fields_set contains the field + if self.stop_sell is None and "stop_sell" in self.model_fields_set: + _dict['stopSell'] = None + + # set to None if stop_sell_met (nullable) is None + # and model_fields_set contains the field + if self.stop_sell_met is None and "stop_sell_met" in self.model_fields_set: + _dict['stopSellMet'] = None + + # set to None if taxes (nullable) is None + # and model_fields_set contains the field + if self.taxes is None and "taxes" in self.model_fields_set: + _dict['taxes'] = None + + # set to None if total_taxes (nullable) is None + # and model_fields_set contains the field + if self.total_taxes is None and "total_taxes" in self.model_fields_set: + _dict['totalTaxes'] = None + + # set to None if fees (nullable) is None + # and model_fields_set contains the field + if self.fees is None and "fees" in self.model_fields_set: + _dict['fees'] = None + + # set to None if total_fees (nullable) is None + # and model_fields_set contains the field + if self.total_fees is None and "total_fees" in self.model_fields_set: + _dict['totalFees'] = None + + # set to None if price_without_fees_and_taxes (nullable) is None + # and model_fields_set contains the field + if self.price_without_fees_and_taxes is None and "price_without_fees_and_taxes" in self.model_fields_set: + _dict['priceWithoutFeesAndTaxes'] = None + + # set to None if grand_total (nullable) is None + # and model_fields_set contains the field + if self.grand_total is None and "grand_total" in self.model_fields_set: + _dict['grandTotal'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "itemID": obj.get("itemID"), + "itemType": obj.get("itemType"), + "sku": obj.get("sku"), + "itemCode": obj.get("itemCode"), + "name": obj.get("name"), + "categoryID": obj.get("categoryID"), + "categoryName": obj.get("categoryName"), + "description": obj.get("description"), + "price": obj.get("price"), + "stockInventory": obj.get("stockInventory"), + "itemQuantity": obj.get("itemQuantity"), + "reorderThreshold": obj.get("reorderThreshold"), + "reorderNeeded": obj.get("reorderNeeded"), + "stopSell": obj.get("stopSell"), + "stopSellMet": obj.get("stopSellMet"), + "taxes": [GetItemResponseDataTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, + "totalTaxes": obj.get("totalTaxes"), + "fees": [GetItemResponseDataFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None, + "totalFees": obj.get("totalFees"), + "priceWithoutFeesAndTaxes": obj.get("priceWithoutFeesAndTaxes"), + "grandTotal": obj.get("grandTotal") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py b/cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py new file mode 100644 index 0000000..5068f9c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetItemResponseDataFeesInner(BaseModel): + """ + GetItemResponseDataFeesInner + """ # noqa: E501 + fee_name: Optional[StrictStr] = Field(default=None, description="2 Name of the fee", alias="feeName") + fee_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 Value of the fee", alias="feeValue") + __properties: ClassVar[List[str]] = ["feeName", "feeValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemResponseDataFeesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if fee_name (nullable) is None + # and model_fields_set contains the field + if self.fee_name is None and "fee_name" in self.model_fields_set: + _dict['feeName'] = None + + # set to None if fee_value (nullable) is None + # and model_fields_set contains the field + if self.fee_value is None and "fee_value" in self.model_fields_set: + _dict['feeValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemResponseDataFeesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feeName": obj.get("feeName"), + "feeValue": obj.get("feeValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py b/cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py new file mode 100644 index 0000000..e38dd23 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetItemResponseDataTaxesInner(BaseModel): + """ + GetItemResponseDataTaxesInner + """ # noqa: E501 + tax_name: Optional[StrictStr] = Field(default=None, description="2 Name of the tax", alias="taxName") + tax_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 Value of the tax", alias="taxValue") + __properties: ClassVar[List[str]] = ["taxName", "taxValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemResponseDataTaxesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if tax_name (nullable) is None + # and model_fields_set contains the field + if self.tax_name is None and "tax_name" in self.model_fields_set: + _dict['taxName'] = None + + # set to None if tax_value (nullable) is None + # and model_fields_set contains the field + if self.tax_value is None and "tax_value" in self.model_fields_set: + _dict['taxValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemResponseDataTaxesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taxName": obj.get("taxName"), + "taxValue": obj.get("taxValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_items_response.py b/cloudbeds_pms_v1_2/models/get_items_response.py new file mode 100644 index 0000000..ef15540 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_items_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetItemsResponse(BaseModel): + """ + GetItemsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetItemsResponseDataInner]] = Field(default=None, description="Item details") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetItemsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_items_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_items_response_data_inner.py new file mode 100644 index 0000000..fbe5b43 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_items_response_data_inner.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetItemsResponseDataInner(BaseModel): + """ + GetItemsResponseDataInner + """ # noqa: E501 + item_id: Optional[StrictStr] = Field(default=None, description="Item unique identifier", alias="itemID") + item_type: Optional[StrictStr] = Field(default=None, description="Item type", alias="itemType") + sku: Optional[StrictStr] = Field(default=None, description="Item SKU") + item_code: Optional[StrictStr] = Field(default=None, description="Item code", alias="itemCode") + name: Optional[StrictStr] = Field(default=None, description="Item name") + category_id: Optional[StrictStr] = Field(default=None, description="Item category identifier. Null if unset", alias="categoryID") + category_name: Optional[StrictStr] = Field(default=None, description="Item category name. Empty if unset", alias="categoryName") + description: Optional[StrictStr] = Field(default=None, description="Item description") + price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Item price") + stock_inventory: Optional[StrictBool] = Field(default=None, description="Track stock inventory for this item", alias="stockInventory") + item_quantity: Optional[StrictInt] = Field(default=None, description="1 Current amount of item available", alias="itemQuantity") + reorder_threshold: Optional[StrictInt] = Field(default=None, description="1 Quantity at which to reorder item", alias="reorderThreshold") + reorder_needed: Optional[StrictBool] = Field(default=None, description="1 true - Whether item is at or below value set for reorder threshold.", alias="reorderNeeded") + stop_sell: Optional[StrictInt] = Field(default=None, description="1 Quantity at which to stop selling product.", alias="stopSell") + stop_sell_met: Optional[StrictBool] = Field(default=None, description="1 true - Whether item is at or below value set for stop-sell threshold.", alias="stopSellMet") + taxes: Optional[List[GetItemResponseDataTaxesInner]] = Field(default=None, description="2 Details of the taxes applicable") + total_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 Total value of the taxes", alias="totalTaxes") + fees: Optional[List[GetItemResponseDataFeesInner]] = Field(default=None, description="2 Details of the fees applicable") + total_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 Total value of the fees", alias="totalFees") + price_without_fees_and_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 item price subtracting the included taxes", alias="priceWithoutFeesAndTaxes") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="2 item price with fees and taxes", alias="grandTotal") + __properties: ClassVar[List[str]] = ["itemID", "itemType", "sku", "itemCode", "name", "categoryID", "categoryName", "description", "price", "stockInventory", "itemQuantity", "reorderThreshold", "reorderNeeded", "stopSell", "stopSellMet", "taxes", "totalTaxes", "fees", "totalFees", "priceWithoutFeesAndTaxes", "grandTotal"] + + @field_validator('item_type') + def item_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['product', 'service']): + raise ValueError("must be one of enum values ('product', 'service')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetItemsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) + _items = [] + if self.taxes: + for _item_taxes in self.taxes: + if _item_taxes: + _items.append(_item_taxes.to_dict()) + _dict['taxes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in fees (list) + _items = [] + if self.fees: + for _item_fees in self.fees: + if _item_fees: + _items.append(_item_fees.to_dict()) + _dict['fees'] = _items + # set to None if item_quantity (nullable) is None + # and model_fields_set contains the field + if self.item_quantity is None and "item_quantity" in self.model_fields_set: + _dict['itemQuantity'] = None + + # set to None if reorder_threshold (nullable) is None + # and model_fields_set contains the field + if self.reorder_threshold is None and "reorder_threshold" in self.model_fields_set: + _dict['reorderThreshold'] = None + + # set to None if reorder_needed (nullable) is None + # and model_fields_set contains the field + if self.reorder_needed is None and "reorder_needed" in self.model_fields_set: + _dict['reorderNeeded'] = None + + # set to None if stop_sell (nullable) is None + # and model_fields_set contains the field + if self.stop_sell is None and "stop_sell" in self.model_fields_set: + _dict['stopSell'] = None + + # set to None if stop_sell_met (nullable) is None + # and model_fields_set contains the field + if self.stop_sell_met is None and "stop_sell_met" in self.model_fields_set: + _dict['stopSellMet'] = None + + # set to None if taxes (nullable) is None + # and model_fields_set contains the field + if self.taxes is None and "taxes" in self.model_fields_set: + _dict['taxes'] = None + + # set to None if total_taxes (nullable) is None + # and model_fields_set contains the field + if self.total_taxes is None and "total_taxes" in self.model_fields_set: + _dict['totalTaxes'] = None + + # set to None if fees (nullable) is None + # and model_fields_set contains the field + if self.fees is None and "fees" in self.model_fields_set: + _dict['fees'] = None + + # set to None if total_fees (nullable) is None + # and model_fields_set contains the field + if self.total_fees is None and "total_fees" in self.model_fields_set: + _dict['totalFees'] = None + + # set to None if price_without_fees_and_taxes (nullable) is None + # and model_fields_set contains the field + if self.price_without_fees_and_taxes is None and "price_without_fees_and_taxes" in self.model_fields_set: + _dict['priceWithoutFeesAndTaxes'] = None + + # set to None if grand_total (nullable) is None + # and model_fields_set contains the field + if self.grand_total is None and "grand_total" in self.model_fields_set: + _dict['grandTotal'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetItemsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "itemID": obj.get("itemID"), + "itemType": obj.get("itemType"), + "sku": obj.get("sku"), + "itemCode": obj.get("itemCode"), + "name": obj.get("name"), + "categoryID": obj.get("categoryID"), + "categoryName": obj.get("categoryName"), + "description": obj.get("description"), + "price": obj.get("price"), + "stockInventory": obj.get("stockInventory"), + "itemQuantity": obj.get("itemQuantity"), + "reorderThreshold": obj.get("reorderThreshold"), + "reorderNeeded": obj.get("reorderNeeded"), + "stopSell": obj.get("stopSell"), + "stopSellMet": obj.get("stopSellMet"), + "taxes": [GetItemResponseDataTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, + "totalTaxes": obj.get("totalTaxes"), + "fees": [GetItemResponseDataFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None, + "totalFees": obj.get("totalFees"), + "priceWithoutFeesAndTaxes": obj.get("priceWithoutFeesAndTaxes"), + "grandTotal": obj.get("grandTotal") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py b/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py new file mode 100644 index 0000000..10a5836 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetListAllotmentBlockNotesResponse(BaseModel): + """ + GetListAllotmentBlockNotesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetListAllotmentBlockNotesResponseDataInner]] = Field(default=None, description="List of notes") + page_size: Optional[StrictInt] = Field(default=None, description="Number of Notes per Page", alias="pageSize") + page_number: Optional[StrictInt] = Field(default=None, description="Current page", alias="pageNumber") + total: Optional[StrictInt] = Field(default=None, description="Total number of Notes") + __properties: ClassVar[List[str]] = ["success", "data", "pageSize", "pageNumber", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetListAllotmentBlockNotesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetListAllotmentBlockNotesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetListAllotmentBlockNotesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "pageSize": obj.get("pageSize"), + "pageNumber": obj.get("pageNumber"), + "total": obj.get("total") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py new file mode 100644 index 0000000..47e38f0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetListAllotmentBlockNotesResponseDataInner(BaseModel): + """ + GetListAllotmentBlockNotesResponseDataInner + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Note ID") + message: Optional[StrictStr] = Field(default=None, description="Note contents") + created_by: Optional[StrictStr] = Field(default=None, description="User Name", alias="createdBy") + created_at: Optional[datetime] = Field(default=None, description="Creation datetime (format: Y-m-d H:i:s)", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="Last modification datetime (format: Y-m-d H:i:s)", alias="updatedAt") + archived_at: Optional[datetime] = Field(default=None, description="Archival datetime (format: Y-m-d H:i:s)", alias="archivedAt") + status: Optional[StrictStr] = Field(default=None, description="Note status") + __properties: ClassVar[List[str]] = ["id", "message", "createdBy", "createdAt", "updatedAt", "archivedAt", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetListAllotmentBlockNotesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if archived_at (nullable) is None + # and model_fields_set contains the field + if self.archived_at is None and "archived_at" in self.model_fields_set: + _dict['archivedAt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetListAllotmentBlockNotesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "message": obj.get("message"), + "createdBy": obj.get("createdBy"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "archivedAt": obj.get("archivedAt"), + "status": obj.get("status") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_metadata_response.py b/cloudbeds_pms_v1_2/models/get_metadata_response.py new file mode 100644 index 0000000..d281845 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_metadata_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetMetadataResponse(BaseModel): + """ + GetMetadataResponse + """ # noqa: E501 + success: Optional[StrictStr] = Field(default=None, description="True if property can be found") + data: Optional[GetMetadataResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetMetadataResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetMetadataResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetMetadataResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_metadata_response_data.py b/cloudbeds_pms_v1_2/models/get_metadata_response_data.py new file mode 100644 index 0000000..40728ad --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_metadata_response_data.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from typing import Optional, Set +from typing_extensions import Self + +class GetMetadataResponseData(BaseModel): + """ + + """ # noqa: E501 + api: Optional[GetMetadataResponseDataApi] = None + __properties: ClassVar[List[str]] = ["api"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetMetadataResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of api + if self.api: + _dict['api'] = self.api.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetMetadataResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "api": GetMetadataResponseDataApi.from_dict(obj["api"]) if obj.get("api") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py b/cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py new file mode 100644 index 0000000..de5e491 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetMetadataResponseDataApi(BaseModel): + """ + The api details + """ # noqa: E501 + url: Optional[StrictStr] = Field(default=None, description="The API URL for the given property") + __properties: ClassVar[List[str]] = ["url"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetMetadataResponseDataApi from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetMetadataResponseDataApi from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "url": obj.get("url") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_packages_response.py b/cloudbeds_pms_v1_2/models/get_packages_response.py new file mode 100644 index 0000000..5ca0814 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_packages_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetPackagesResponse(BaseModel): + """ + GetPackagesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetPackagesResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPackagesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPackagesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetPackagesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_packages_response_data.py b/cloudbeds_pms_v1_2/models/get_packages_response_data.py new file mode 100644 index 0000000..48c0b3b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_packages_response_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetPackagesResponseData(BaseModel): + """ + + """ # noqa: E501 + package_names: Optional[List[StrictStr]] = Field(default=None, description="Array of package names", alias="packageNames") + __properties: ClassVar[List[str]] = ["packageNames"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPackagesResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if package_names (nullable) is None + # and model_fields_set contains the field + if self.package_names is None and "package_names" in self.model_fields_set: + _dict['packageNames'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPackagesResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "packageNames": obj.get("packageNames") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response.py b/cloudbeds_pms_v1_2/models/get_payment_methods_response.py new file mode 100644 index 0000000..fdca407 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payment_methods_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentMethodsResponse(BaseModel): + """ + GetPaymentMethodsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetPaymentMethodsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetPaymentMethodsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py new file mode 100644 index 0000000..a8eb65b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentMethodsResponseData(BaseModel): + """ + + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + methods: Optional[List[GetPaymentMethodsResponseDataMethodsInner]] = Field(default=None, description="List of active methods enabled") + gateway: Optional[List[GetPaymentMethodsResponseDataGatewayInner]] = Field(default=None, description="Payment Gateway used by property") + __properties: ClassVar[List[str]] = ["propertyID", "methods", "gateway"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in methods (list) + _items = [] + if self.methods: + for _item_methods in self.methods: + if _item_methods: + _items.append(_item_methods.to_dict()) + _dict['methods'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in gateway (list) + _items = [] + if self.gateway: + for _item_gateway in self.gateway: + if _item_gateway: + _items.append(_item_gateway.to_dict()) + _dict['gateway'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "methods": [GetPaymentMethodsResponseDataMethodsInner.from_dict(_item) for _item in obj["methods"]] if obj.get("methods") is not None else None, + "gateway": [GetPaymentMethodsResponseDataGatewayInner.from_dict(_item) for _item in obj["gateway"]] if obj.get("gateway") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py new file mode 100644 index 0000000..d0e8174 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentMethodsResponseDataGatewayInner(BaseModel): + """ + GetPaymentMethodsResponseDataGatewayInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Gateway name") + currency: Optional[StrictStr] = Field(default=None, description="3 letters iso code") + __properties: ClassVar[List[str]] = ["name", "currency"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseDataGatewayInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseDataGatewayInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "currency": obj.get("currency") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py new file mode 100644 index 0000000..48a3f25 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentMethodsResponseDataMethodsInner(BaseModel): + """ + GetPaymentMethodsResponseDataMethodsInner + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Payment Type") + name: Optional[StrictStr] = Field(default=None, description="Payment Name (in given lang)") + card_types: Optional[List[GetPaymentMethodsResponseDataMethodsInnerCardTypesInner]] = Field(default=None, description="IF type = 'credit' the enabled card types. Having the array's keys as its type and the value as its name.", alias="cardTypes") + __properties: ClassVar[List[str]] = ["type", "name", "cardTypes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseDataMethodsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in card_types (list) + _items = [] + if self.card_types: + for _item_card_types in self.card_types: + if _item_card_types: + _items.append(_item_card_types.to_dict()) + _dict['cardTypes'] = _items + # set to None if card_types (nullable) is None + # and model_fields_set contains the field + if self.card_types is None and "card_types" in self.model_fields_set: + _dict['cardTypes'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseDataMethodsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "name": obj.get("name"), + "cardTypes": [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.from_dict(_item) for _item in obj["cardTypes"]] if obj.get("cardTypes") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py new file mode 100644 index 0000000..a9e9046 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentMethodsResponseDataMethodsInnerCardTypesInner(BaseModel): + """ + GetPaymentMethodsResponseDataMethodsInnerCardTypesInner + """ # noqa: E501 + card_code: Optional[StrictStr] = Field(default=None, alias="cardCode") + card_name: Optional[StrictStr] = Field(default=None, alias="cardName") + __properties: ClassVar[List[str]] = ["cardCode", "cardName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if card_code (nullable) is None + # and model_fields_set contains the field + if self.card_code is None and "card_code" in self.model_fields_set: + _dict['cardCode'] = None + + # set to None if card_name (nullable) is None + # and model_fields_set contains the field + if self.card_name is None and "card_name" in self.model_fields_set: + _dict['cardName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cardCode": obj.get("cardCode"), + "cardName": obj.get("cardName") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py b/cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py new file mode 100644 index 0000000..f8f1e43 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsCapabilitiesResponse(BaseModel): + """ + GetPaymentsCapabilitiesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetPaymentsCapabilitiesResponseDataInner]] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsCapabilitiesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsCapabilitiesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetPaymentsCapabilitiesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py new file mode 100644 index 0000000..53a5490 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsCapabilitiesResponseDataInner(BaseModel): + """ + GetPaymentsCapabilitiesResponseDataInner + """ # noqa: E501 + cloudbeds_payments: Optional[StrictBool] = Field(default=None, description="If Cloudbeds Payments is enabled for this property", alias="cloudbedsPayments") + terminal: Optional[StrictBool] = Field(default=None, description="If the property has an active terminal") + tap_to_pay: Optional[StrictBool] = Field(default=None, description="If tap-to-pay is enabled for the property in the backend gateway", alias="tapToPay") + gateway: Optional[StrictStr] = Field(default=None, description="The backend gateway in use for this property") + pay_by_link: Optional[StrictBool] = Field(default=None, description="If Pay-by-Link is enabled for the property", alias="payByLink") + __properties: ClassVar[List[str]] = ["cloudbedsPayments", "terminal", "tapToPay", "gateway", "payByLink"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsCapabilitiesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsCapabilitiesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cloudbedsPayments": obj.get("cloudbedsPayments"), + "terminal": obj.get("terminal"), + "tapToPay": obj.get("tapToPay"), + "gateway": obj.get("gateway"), + "payByLink": obj.get("payByLink") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payments_response.py b/cloudbeds_pms_v1_2/models/get_payments_response.py new file mode 100644 index 0000000..ab9ef53 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payments_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsResponse(BaseModel): + """ + GetPaymentsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetPaymentsResponseDataInner]] = Field(default=None, description="Transaction list") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetPaymentsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py new file mode 100644 index 0000000..fefb949 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsResponseDataInner(BaseModel): + """ + GetPaymentsResponseDataInner + """ # noqa: E501 + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + payment_id: Optional[StrictStr] = Field(default=None, description="Payment ID", alias="paymentID") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction DateTime", alias="transactionDateTime") + transaction_date_time_utc: Optional[datetime] = Field(default=None, description="Transaction DateTime on UTC timezone", alias="transactionDateTimeUTC") + user_id: Optional[StrictStr] = Field(default=None, description="User ID that generated payment", alias="userID") + user_name: Optional[StrictStr] = Field(default=None, description="User name that generated payment", alias="userName") + room_id: Optional[StrictStr] = Field(default=None, description="ID of room. Only available when reservationID is sent.", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name/Number of room. Only available when reservationID is sent.", alias="roomName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID. Only available when reservationID or guestID is sent.", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name. Only available when reservationID or guestID is sent.", alias="guestName") + guest_check_in: Optional[date] = Field(default=None, description="Guest Check-In date. Only available when reservationID is sent.", alias="guestCheckIn") + guest_check_out: Optional[date] = Field(default=None, description="Guest Check-Out date. Only available when reservationID is sent.", alias="guestCheckOut") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID. Only available when reservationID is sent.", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub reservation ID. Only available when reservationID is sent.", alias="subReservationID") + reservation_status: Optional[StrictStr] = Field(default=None, description="Current reservation status. Only available when reservationID is sent.", alias="reservationStatus") + house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID, Only available when houseAccountID is sent.", alias="houseAccountID") + house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name, Only available when houseAccountID is sent.", alias="houseAccountName") + description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") + payment_method: Optional[StrictStr] = Field(default=None, description="Payment Method of the transaction", alias="paymentMethod") + quantity: Optional[StrictInt] = None + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") + currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") + is_posted: Optional[StrictBool] = Field(default=None, alias="isPosted") + is_voided: Optional[StrictBool] = Field(default=None, alias="isVoided") + is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") + state: Optional[StrictStr] = None + is_allocated: Optional[StrictBool] = Field(default=None, description="only if includePaymentAllocation=true", alias="isAllocated") + total_allocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated payment", alias="totalAllocated") + total_unallocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of unallocated payment", alias="totalUnallocated") + payment_allocation: Optional[List[GetPaymentsResponseDataInnerPaymentAllocationInner]] = Field(default=None, description="²", alias="paymentAllocation") + __properties: ClassVar[List[str]] = ["transactionID", "paymentID", "propertyID", "transactionDateTime", "transactionDateTimeUTC", "userID", "userName", "roomID", "roomName", "guestID", "guestName", "guestCheckIn", "guestCheckOut", "reservationID", "subReservationID", "reservationStatus", "houseAccountID", "houseAccountName", "description", "paymentMethod", "quantity", "amount", "currency", "isPosted", "isVoided", "isDeleted", "state", "isAllocated", "totalAllocated", "totalUnallocated", "paymentAllocation"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in payment_allocation (list) + _items = [] + if self.payment_allocation: + for _item_payment_allocation in self.payment_allocation: + if _item_payment_allocation: + _items.append(_item_payment_allocation.to_dict()) + _dict['paymentAllocation'] = _items + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if guest_id (nullable) is None + # and model_fields_set contains the field + if self.guest_id is None and "guest_id" in self.model_fields_set: + _dict['guestID'] = None + + # set to None if guest_name (nullable) is None + # and model_fields_set contains the field + if self.guest_name is None and "guest_name" in self.model_fields_set: + _dict['guestName'] = None + + # set to None if guest_check_in (nullable) is None + # and model_fields_set contains the field + if self.guest_check_in is None and "guest_check_in" in self.model_fields_set: + _dict['guestCheckIn'] = None + + # set to None if guest_check_out (nullable) is None + # and model_fields_set contains the field + if self.guest_check_out is None and "guest_check_out" in self.model_fields_set: + _dict['guestCheckOut'] = None + + # set to None if reservation_id (nullable) is None + # and model_fields_set contains the field + if self.reservation_id is None and "reservation_id" in self.model_fields_set: + _dict['reservationID'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if reservation_status (nullable) is None + # and model_fields_set contains the field + if self.reservation_status is None and "reservation_status" in self.model_fields_set: + _dict['reservationStatus'] = None + + # set to None if house_account_id (nullable) is None + # and model_fields_set contains the field + if self.house_account_id is None and "house_account_id" in self.model_fields_set: + _dict['houseAccountID'] = None + + # set to None if house_account_name (nullable) is None + # and model_fields_set contains the field + if self.house_account_name is None and "house_account_name" in self.model_fields_set: + _dict['houseAccountName'] = None + + # set to None if is_allocated (nullable) is None + # and model_fields_set contains the field + if self.is_allocated is None and "is_allocated" in self.model_fields_set: + _dict['isAllocated'] = None + + # set to None if total_allocated (nullable) is None + # and model_fields_set contains the field + if self.total_allocated is None and "total_allocated" in self.model_fields_set: + _dict['totalAllocated'] = None + + # set to None if total_unallocated (nullable) is None + # and model_fields_set contains the field + if self.total_unallocated is None and "total_unallocated" in self.model_fields_set: + _dict['totalUnallocated'] = None + + # set to None if payment_allocation (nullable) is None + # and model_fields_set contains the field + if self.payment_allocation is None and "payment_allocation" in self.model_fields_set: + _dict['paymentAllocation'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactionID": obj.get("transactionID"), + "paymentID": obj.get("paymentID"), + "propertyID": obj.get("propertyID"), + "transactionDateTime": obj.get("transactionDateTime"), + "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), + "userID": obj.get("userID"), + "userName": obj.get("userName"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "guestCheckIn": obj.get("guestCheckIn"), + "guestCheckOut": obj.get("guestCheckOut"), + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "reservationStatus": obj.get("reservationStatus"), + "houseAccountID": obj.get("houseAccountID"), + "houseAccountName": obj.get("houseAccountName"), + "description": obj.get("description"), + "paymentMethod": obj.get("paymentMethod"), + "quantity": obj.get("quantity"), + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "isPosted": obj.get("isPosted"), + "isVoided": obj.get("isVoided"), + "isDeleted": obj.get("isDeleted"), + "state": obj.get("state"), + "isAllocated": obj.get("isAllocated"), + "totalAllocated": obj.get("totalAllocated"), + "totalUnallocated": obj.get("totalUnallocated"), + "paymentAllocation": [GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(_item) for _item in obj["paymentAllocation"]] if obj.get("paymentAllocation") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py new file mode 100644 index 0000000..965b7c2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsResponseDataInnerPaymentAllocationInner(BaseModel): + """ + GetPaymentsResponseDataInnerPaymentAllocationInner + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="² Type of item described in allocation") + reference: Optional[StrictStr] = Field(default=None, description="² Reference of item described in allocation") + name: Optional[StrictStr] = Field(default=None, description="² Name of item described in allocation") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated of payment total") + taxes: Optional[List[StrictStr]] = Field(default=None, description="² Taxes of allocated payment. Values are an array numeric of taxes IDs") + fees: Optional[List[StrictStr]] = Field(default=None, description="² Fees of allocated payment. Values are an array numeric of fees IDs") + __properties: ClassVar[List[str]] = ["type", "reference", "name", "amount", "taxes", "fees"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if reference (nullable) is None + # and model_fields_set contains the field + if self.reference is None and "reference" in self.model_fields_set: + _dict['reference'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if amount (nullable) is None + # and model_fields_set contains the field + if self.amount is None and "amount" in self.model_fields_set: + _dict['amount'] = None + + # set to None if taxes (nullable) is None + # and model_fields_set contains the field + if self.taxes is None and "taxes" in self.model_fields_set: + _dict['taxes'] = None + + # set to None if fees (nullable) is None + # and model_fields_set contains the field + if self.fees is None and "fees" in self.model_fields_set: + _dict['fees'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "reference": obj.get("reference"), + "name": obj.get("name"), + "amount": obj.get("amount"), + "taxes": obj.get("taxes"), + "fees": obj.get("fees") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_jobs_response.py b/cloudbeds_pms_v1_2/models/get_rate_jobs_response.py new file mode 100644 index 0000000..45bc19a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_jobs_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRateJobsResponse(BaseModel): + """ + GetRateJobsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + has_next_page: Optional[StrictBool] = Field(default=None, description="Returns true if there is another page of results after this one", alias="hasNextPage") + next_page: Optional[StrictStr] = Field(default=None, description="The URL of the next page of results if there is one", alias="nextPage") + data: Optional[List[GetRateJobsResponseDataInner]] = Field(default=None, description="Job details") + __properties: ClassVar[List[str]] = ["success", "hasNextPage", "nextPage", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRateJobsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if next_page (nullable) is None + # and model_fields_set contains the field + if self.next_page is None and "next_page" in self.model_fields_set: + _dict['nextPage'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRateJobsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "hasNextPage": obj.get("hasNextPage"), + "nextPage": obj.get("nextPage"), + "data": [GetRateJobsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py new file mode 100644 index 0000000..ded00ff --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRateJobsResponseDataInner(BaseModel): + """ + GetRateJobsResponseDataInner + """ # noqa: E501 + job_reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the rate:batch_job", alias="jobReferenceID") + date_created: Optional[date] = Field(default=None, description="Rate Job creation datetime", alias="dateCreated") + status: Optional[StrictStr] = Field(default=None, description="Status of the Rate Job. in_progress - job is processing. completed - job has completed successfully. error - there was an error with 1 or more updates requested in this job. Allowed values: in_progressgu, completed, error") + updates: Optional[List[GetRateJobsResponseDataInnerUpdatesInner]] = Field(default=None, description="Array of actions produced from this job") + __properties: ClassVar[List[str]] = ["jobReferenceID", "dateCreated", "status", "updates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRateJobsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in updates (list) + _items = [] + if self.updates: + for _item_updates in self.updates: + if _item_updates: + _items.append(_item_updates.to_dict()) + _dict['updates'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRateJobsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobReferenceID": obj.get("jobReferenceID"), + "dateCreated": obj.get("dateCreated"), + "status": obj.get("status"), + "updates": [GetRateJobsResponseDataInnerUpdatesInner.from_dict(_item) for _item in obj["updates"]] if obj.get("updates") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py new file mode 100644 index 0000000..35edd0b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetRateJobsResponseDataInnerUpdatesInner(BaseModel): + """ + GetRateJobsResponseDataInnerUpdatesInner + """ # noqa: E501 + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID for which action was taken", alias="rateID") + action: Optional[StrictStr] = Field(default=None, description="Action taken for this interval as part of this job. in_progress - interval wait for it turn. updated - interval was updated. created - new interval was created with the new date range. error - there was an error when attempting this update. Allowed values: in_progress, updated, created, error") + start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Value of rate which was updated") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay for this rate", alias="maxLos") + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay for this rate", alias="minLos") + closed_to_arrival: Optional[StrictBool] = Field(default=None, description="If this rate is closed to arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictBool] = Field(default=None, description="If this rate is closed to departure", alias="closedToDeparture") + cut_off: Optional[StrictInt] = Field(default=None, description="Cutoff for this rate", alias="cutOff") + last_minute_booking: Optional[StrictInt] = Field(default=None, description="Last minute booking for this rate", alias="lastMinuteBooking") + message: Optional[StrictStr] = Field(default=None, description="Error message") + __properties: ClassVar[List[str]] = ["rateID", "action", "startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRateJobsResponseDataInnerUpdatesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if max_los (nullable) is None + # and model_fields_set contains the field + if self.max_los is None and "max_los" in self.model_fields_set: + _dict['maxLos'] = None + + # set to None if min_los (nullable) is None + # and model_fields_set contains the field + if self.min_los is None and "min_los" in self.model_fields_set: + _dict['minLos'] = None + + # set to None if closed_to_arrival (nullable) is None + # and model_fields_set contains the field + if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: + _dict['closedToArrival'] = None + + # set to None if closed_to_departure (nullable) is None + # and model_fields_set contains the field + if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: + _dict['closedToDeparture'] = None + + # set to None if cut_off (nullable) is None + # and model_fields_set contains the field + if self.cut_off is None and "cut_off" in self.model_fields_set: + _dict['cutOff'] = None + + # set to None if last_minute_booking (nullable) is None + # and model_fields_set contains the field + if self.last_minute_booking is None and "last_minute_booking" in self.model_fields_set: + _dict['lastMinuteBooking'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRateJobsResponseDataInnerUpdatesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rateID": obj.get("rateID"), + "action": obj.get("action"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rate": obj.get("rate"), + "maxLos": obj.get("maxLos"), + "minLos": obj.get("minLos"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture"), + "cutOff": obj.get("cutOff"), + "lastMinuteBooking": obj.get("lastMinuteBooking"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response.py b/cloudbeds_pms_v1_2/models/get_rate_plans_response.py new file mode 100644 index 0000000..12cce05 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_plans_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRatePlansResponse(BaseModel): + """ + GetRatePlansResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetRatePlansResponseDataInner]] = Field(default=None, description="Rates details") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRatePlansResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRatePlansResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetRatePlansResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py new file mode 100644 index 0000000..e31242a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRatePlansResponseDataInner(BaseModel): + """ + GetRatePlansResponseDataInner + """ # noqa: E501 + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") + is_derived: Optional[StrictBool] = Field(default=None, description="True if this rate is derived from another rate", alias="isDerived") + room_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Rate for the room, based on the parameters provided", alias="roomRate") + total_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the room, based on the parameters provided. Calculated using base rates and additional costs from extra guests.", alias="totalRate") + rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available for the selected date", alias="roomsAvailable") + room_type_id: Optional[StrictStr] = Field(default=None, description="] room type ID (if not specified in request)", alias="roomTypeID") + room_type_name: Optional[StrictInt] = Field(default=None, description="] room type name (if not specified in request)", alias="roomTypeName") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID, used if multiple properties are included in request", alias="propertyID") + rate_plan_id: Optional[StrictStr] = Field(default=None, description="ratePlanID (If rate depends on plan)", alias="ratePlanID") + rate_plan_name_public: Optional[StrictStr] = Field(default=None, description="ratePlanNamePublic", alias="ratePlanNamePublic") + rate_plan_name_private: Optional[StrictStr] = Field(default=None, description="ratePlanNamePrivate", alias="ratePlanNamePrivate") + promo_code: Optional[StrictStr] = Field(default=None, description="Promotional code when rate plan has has it", alias="promoCode") + derived_type: Optional[StrictStr] = Field(default=None, description="type of deriving (only if current rate was derived from other one).", alias="derivedType") + derived_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Can be positive or negative (only if current rate was derived from other one).", alias="derivedValue") + base_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate on given period", alias="baseRate") + days_of_week: Optional[List[StrictStr]] = Field(default=None, description="Returns when there is a difference between range given with startDate/endDate and days of week which rate plan applies.", alias="daysOfWeek") + add_ons: Optional[List[GetRatePlansResponseDataInnerAddOnsInner]] = Field(default=None, description="addOns information on the rates", alias="addOns") + room_rate_detailed: Optional[List[GetRatePlansResponseDataInnerRoomRateDetailedInner]] = Field(default=None, description="Detailed information on the rates, if requested", alias="roomRateDetailed") + __properties: ClassVar[List[str]] = ["rateID", "isDerived", "roomRate", "totalRate", "roomsAvailable", "roomTypeID", "roomTypeName", "propertyID", "ratePlanID", "ratePlanNamePublic", "ratePlanNamePrivate", "promoCode", "derivedType", "derivedValue", "baseRate", "daysOfWeek", "addOns", "roomRateDetailed"] + + @field_validator('derived_type') + def derived_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['fixed', 'percentage']): + raise ValueError("must be one of enum values ('fixed', 'percentage')") + return value + + @field_validator('days_of_week') + def days_of_week_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set([]): + raise ValueError("each list item must be one of ()") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRatePlansResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in add_ons (list) + _items = [] + if self.add_ons: + for _item_add_ons in self.add_ons: + if _item_add_ons: + _items.append(_item_add_ons.to_dict()) + _dict['addOns'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in room_rate_detailed (list) + _items = [] + if self.room_rate_detailed: + for _item_room_rate_detailed in self.room_rate_detailed: + if _item_room_rate_detailed: + _items.append(_item_room_rate_detailed.to_dict()) + _dict['roomRateDetailed'] = _items + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeID'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if property_id (nullable) is None + # and model_fields_set contains the field + if self.property_id is None and "property_id" in self.model_fields_set: + _dict['propertyID'] = None + + # set to None if rate_plan_id (nullable) is None + # and model_fields_set contains the field + if self.rate_plan_id is None and "rate_plan_id" in self.model_fields_set: + _dict['ratePlanID'] = None + + # set to None if rate_plan_name_public (nullable) is None + # and model_fields_set contains the field + if self.rate_plan_name_public is None and "rate_plan_name_public" in self.model_fields_set: + _dict['ratePlanNamePublic'] = None + + # set to None if rate_plan_name_private (nullable) is None + # and model_fields_set contains the field + if self.rate_plan_name_private is None and "rate_plan_name_private" in self.model_fields_set: + _dict['ratePlanNamePrivate'] = None + + # set to None if promo_code (nullable) is None + # and model_fields_set contains the field + if self.promo_code is None and "promo_code" in self.model_fields_set: + _dict['promoCode'] = None + + # set to None if derived_type (nullable) is None + # and model_fields_set contains the field + if self.derived_type is None and "derived_type" in self.model_fields_set: + _dict['derivedType'] = None + + # set to None if derived_value (nullable) is None + # and model_fields_set contains the field + if self.derived_value is None and "derived_value" in self.model_fields_set: + _dict['derivedValue'] = None + + # set to None if base_rate (nullable) is None + # and model_fields_set contains the field + if self.base_rate is None and "base_rate" in self.model_fields_set: + _dict['baseRate'] = None + + # set to None if days_of_week (nullable) is None + # and model_fields_set contains the field + if self.days_of_week is None and "days_of_week" in self.model_fields_set: + _dict['daysOfWeek'] = None + + # set to None if room_rate_detailed (nullable) is None + # and model_fields_set contains the field + if self.room_rate_detailed is None and "room_rate_detailed" in self.model_fields_set: + _dict['roomRateDetailed'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRatePlansResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rateID": obj.get("rateID"), + "isDerived": obj.get("isDerived"), + "roomRate": obj.get("roomRate"), + "totalRate": obj.get("totalRate"), + "roomsAvailable": obj.get("roomsAvailable"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "propertyID": obj.get("propertyID"), + "ratePlanID": obj.get("ratePlanID"), + "ratePlanNamePublic": obj.get("ratePlanNamePublic"), + "ratePlanNamePrivate": obj.get("ratePlanNamePrivate"), + "promoCode": obj.get("promoCode"), + "derivedType": obj.get("derivedType"), + "derivedValue": obj.get("derivedValue"), + "baseRate": obj.get("baseRate"), + "daysOfWeek": obj.get("daysOfWeek"), + "addOns": [GetRatePlansResponseDataInnerAddOnsInner.from_dict(_item) for _item in obj["addOns"]] if obj.get("addOns") is not None else None, + "roomRateDetailed": [GetRatePlansResponseDataInnerRoomRateDetailedInner.from_dict(_item) for _item in obj["roomRateDetailed"]] if obj.get("roomRateDetailed") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py b/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py new file mode 100644 index 0000000..62d0430 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetRatePlansResponseDataInnerAddOnsInner(BaseModel): + """ + GetRatePlansResponseDataInnerAddOnsInner + """ # noqa: E501 + add_on_id: Optional[StrictStr] = Field(default=None, description="addOnID", alias="addOnID") + add_on_name: Optional[StrictStr] = Field(default=None, description="addOnName", alias="addOnName") + item_id: Optional[StrictStr] = Field(default=None, description="itemID", alias="itemID") + item_name: Optional[StrictStr] = Field(default=None, description="itemName", alias="itemName") + __properties: ClassVar[List[str]] = ["addOnID", "addOnName", "itemID", "itemName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRatePlansResponseDataInnerAddOnsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRatePlansResponseDataInnerAddOnsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "addOnID": obj.get("addOnID"), + "addOnName": obj.get("addOnName"), + "itemID": obj.get("itemID"), + "itemName": obj.get("itemName") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py new file mode 100644 index 0000000..47b4ef1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetRatePlansResponseDataInnerRoomRateDetailedInner(BaseModel): + """ + GetRatePlansResponseDataInnerRoomRateDetailedInner + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, alias="date") + rate_base: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="rate for the selected date", alias="rateBase") + total_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the selected date", alias="totalRate") + rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available for the selected date", alias="roomsAvailable") + closed_to_arrival: Optional[StrictBool] = Field(default=None, description="true if day closed to arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictBool] = Field(default=None, description="true if day closed to departure", alias="closedToDeparture") + min_los: Optional[StrictInt] = Field(default=None, description="Minimum Length Of Stay", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum Length Of Stay", alias="maxLos") + cut_off: Optional[StrictInt] = Field(default=None, alias="cutOff") + last_minute_booking: Optional[StrictInt] = Field(default=None, alias="lastMinuteBooking") + __properties: ClassVar[List[str]] = ["date", "rateBase", "totalRate", "roomsAvailable", "closedToArrival", "closedToDeparture", "minLos", "maxLos", "cutOff", "lastMinuteBooking"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRatePlansResponseDataInnerRoomRateDetailedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if rate_base (nullable) is None + # and model_fields_set contains the field + if self.rate_base is None and "rate_base" in self.model_fields_set: + _dict['rateBase'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRatePlansResponseDataInnerRoomRateDetailedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "rateBase": obj.get("rateBase"), + "totalRate": obj.get("totalRate"), + "roomsAvailable": obj.get("roomsAvailable"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture"), + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos"), + "cutOff": obj.get("cutOff"), + "lastMinuteBooking": obj.get("lastMinuteBooking") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_response.py b/cloudbeds_pms_v1_2/models/get_rate_response.py new file mode 100644 index 0000000..68b8ac2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetRateResponse(BaseModel): + """ + GetRateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetRateResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetRateResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_response_data.py b/cloudbeds_pms_v1_2/models/get_rate_response_data.py new file mode 100644 index 0000000..7d6495d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_response_data.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRateResponseData(BaseModel): + """ + Rates details + """ # noqa: E501 + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") + is_derived: Optional[StrictBool] = Field(default=None, description="This rate has been derived from another rate", alias="isDerived") + room_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the room, based on the parameters provided", alias="roomRate") + total_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the room, based on the parameters provided. Calculated using base rates and additional costs from extra guests.", alias="totalRate") + rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available, based on the parameters provided", alias="roomsAvailable") + days_of_week: Optional[List[StrictStr]] = Field(default=None, alias="daysOfWeek") + room_rate_detailed: Optional[List[GetRateResponseDataRoomRateDetailedInner]] = Field(default=None, description="Detailed information on the rates, if requested", alias="roomRateDetailed") + __properties: ClassVar[List[str]] = ["rateID", "isDerived", "roomRate", "totalRate", "roomsAvailable", "daysOfWeek", "roomRateDetailed"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRateResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in room_rate_detailed (list) + _items = [] + if self.room_rate_detailed: + for _item_room_rate_detailed in self.room_rate_detailed: + if _item_room_rate_detailed: + _items.append(_item_room_rate_detailed.to_dict()) + _dict['roomRateDetailed'] = _items + # set to None if days_of_week (nullable) is None + # and model_fields_set contains the field + if self.days_of_week is None and "days_of_week" in self.model_fields_set: + _dict['daysOfWeek'] = None + + # set to None if room_rate_detailed (nullable) is None + # and model_fields_set contains the field + if self.room_rate_detailed is None and "room_rate_detailed" in self.model_fields_set: + _dict['roomRateDetailed'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRateResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rateID": obj.get("rateID"), + "isDerived": obj.get("isDerived"), + "roomRate": obj.get("roomRate"), + "totalRate": obj.get("totalRate"), + "roomsAvailable": obj.get("roomsAvailable"), + "daysOfWeek": obj.get("daysOfWeek"), + "roomRateDetailed": [GetRateResponseDataRoomRateDetailedInner.from_dict(_item) for _item in obj["roomRateDetailed"]] if obj.get("roomRateDetailed") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py b/cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py new file mode 100644 index 0000000..94b68b0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetRateResponseDataRoomRateDetailedInner(BaseModel): + """ + GetRateResponseDataRoomRateDetailedInner + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, alias="date") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the selected date") + total_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the selected date", alias="totalRate") + rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available for the selected date", alias="roomsAvailable") + closed_to_arrival: Optional[StrictBool] = Field(default=None, alias="closedToArrival") + closed_to_departure: Optional[StrictBool] = Field(default=None, alias="closedToDeparture") + min_los: Optional[StrictInt] = Field(default=None, description="Minimum Length Of Stay", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum Length Of Stay", alias="maxLos") + __properties: ClassVar[List[str]] = ["date", "rate", "totalRate", "roomsAvailable", "closedToArrival", "closedToDeparture", "minLos", "maxLos"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRateResponseDataRoomRateDetailedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRateResponseDataRoomRateDetailedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "rate": obj.get("rate"), + "totalRate": obj.get("totalRate"), + "roomsAvailable": obj.get("roomsAvailable"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture"), + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py b/cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py new file mode 100644 index 0000000..3f49a43 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationAssignmentsResponse(BaseModel): + """ + GetReservationAssignmentsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationAssignmentsResponseDataInner]] = Field(default=None, description="Details for the rooms assigned on the selected date") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationAssignmentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationAssignmentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationAssignmentsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py new file mode 100644 index 0000000..2f656f8 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationAssignmentsResponseDataInner(BaseModel): + """ + GetReservationAssignmentsResponseDataInner + """ # noqa: E501 + guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name", alias="guestName") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier, used for all query operations", alias="reservationID") + unassigned: Optional[StrictInt] = Field(default=None, description="Number of rooms unassigned") + assigned: Optional[List[GetReservationAssignmentsResponseDataInnerAssignedInner]] = Field(default=None, description="Assigned Rooms information. May not exist if no room is assigned.") + __properties: ClassVar[List[str]] = ["guestName", "reservationID", "unassigned", "assigned"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationAssignmentsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in assigned (list) + _items = [] + if self.assigned: + for _item_assigned in self.assigned: + if _item_assigned: + _items.append(_item_assigned.to_dict()) + _dict['assigned'] = _items + # set to None if assigned (nullable) is None + # and model_fields_set contains the field + if self.assigned is None and "assigned" in self.model_fields_set: + _dict['assigned'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationAssignmentsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestName": obj.get("guestName"), + "reservationID": obj.get("reservationID"), + "unassigned": obj.get("unassigned"), + "assigned": [GetReservationAssignmentsResponseDataInnerAssignedInner.from_dict(_item) for _item in obj["assigned"]] if obj.get("assigned") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py new file mode 100644 index 0000000..197babf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationAssignmentsResponseDataInnerAssignedInner(BaseModel): + """ + GetReservationAssignmentsResponseDataInnerAssignedInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type assigned", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type assigned", alias="roomTypeName") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Short name of the room type assigned", alias="roomTypeNameShort") + dorm_room_name: Optional[StrictStr] = Field(default=None, description="Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type", alias="dormRoomName") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific room assigned", alias="roomName") + room_id: Optional[StrictStr] = Field(default=None, description="ID of the specific room assigned", alias="roomID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Associated subReservation ID (specific to room)", alias="subReservationID") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeNameShort", "dormRoomName", "roomName", "roomID", "subReservationID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationAssignmentsResponseDataInnerAssignedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeID'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_name_short (nullable) is None + # and model_fields_set contains the field + if self.room_type_name_short is None and "room_type_name_short" in self.model_fields_set: + _dict['roomTypeNameShort'] = None + + # set to None if dorm_room_name (nullable) is None + # and model_fields_set contains the field + if self.dorm_room_name is None and "dorm_room_name" in self.model_fields_set: + _dict['dormRoomName'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationAssignmentsResponseDataInnerAssignedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeNameShort": obj.get("roomTypeNameShort"), + "dormRoomName": obj.get("dormRoomName"), + "roomName": obj.get("roomName"), + "roomID": obj.get("roomID"), + "subReservationID": obj.get("subReservationID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py new file mode 100644 index 0000000..801c687 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponse(BaseModel): + """ + GetReservationInvoiceInformationResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationInvoiceInformationResponseDataInner]] = Field(default=None, description="Details for the rooms assigned on the selected date") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationInvoiceInformationResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py new file mode 100644 index 0000000..7b44371 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py @@ -0,0 +1,210 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInner + """ # noqa: E501 + status: Optional[StrictStr] = Field(default=None, description="Reservation status
'not_confirmed' - Reservation is pending confirmation
'confirmed' - Reservation is confirmed
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date") + custom_fields: Optional[List[GetReservationResponseDataGuestListValueCustomFieldsInner]] = Field(default=None, description="Custom Fields related to the reservation", alias="customFields") + main_guest_details: Optional[List[GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner]] = Field(default=None, description="Details for the main guest of the reservation", alias="mainGuestDetails") + reservation_rooms: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner]] = Field(default=None, description="Booked rooms information", alias="reservationRooms") + reservation_rooms_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rates for all rooms", alias="reservationRoomsTotal") + reservation_adjustments: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner]] = Field(default=None, description="Adjustments applied to the reservation", alias="reservationAdjustments") + reservation_adjustments_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum of adjustments", alias="reservationAdjustmentsTotal") + reservation_payments: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner]] = Field(default=None, description="Payments made for this reservation", alias="reservationPayments") + reservation_additional_products: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner]] = Field(default=None, description="Additional items (products or services)", alias="reservationAdditionalProducts") + reservation_additional_products_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for additional items", alias="reservationAdditionalProductsTotal") + reservation_add_on_products: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner]] = Field(default=None, description="Addons", alias="reservationAddOnProducts") + reservation_add_on_products_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for addons", alias="reservationAddOnProductsTotal") + reservation_taxes: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]] = Field(default=None, description="Taxes", alias="reservationTaxes") + reservation_taxes_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for taxes", alias="reservationTaxesTotal") + reservation_fees: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]] = Field(default=None, description="Fees", alias="reservationFees") + reservation_fees_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for fees", alias="reservationFeesTotal") + balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance currently owed") + balance_detailed: Optional[List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on PC app, describing the financial items calculated", alias="balanceDetailed") + __properties: ClassVar[List[str]] = ["status", "customFields", "mainGuestDetails", "reservationRooms", "reservationRoomsTotal", "reservationAdjustments", "reservationAdjustmentsTotal", "reservationPayments", "reservationAdditionalProducts", "reservationAdditionalProductsTotal", "reservationAddOnProducts", "reservationAddOnProductsTotal", "reservationTaxes", "reservationTaxesTotal", "reservationFees", "reservationFeesTotal", "balance", "balanceDetailed"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): + raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in main_guest_details (list) + _items = [] + if self.main_guest_details: + for _item_main_guest_details in self.main_guest_details: + if _item_main_guest_details: + _items.append(_item_main_guest_details.to_dict()) + _dict['mainGuestDetails'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reservation_rooms (list) + _items = [] + if self.reservation_rooms: + for _item_reservation_rooms in self.reservation_rooms: + if _item_reservation_rooms: + _items.append(_item_reservation_rooms.to_dict()) + _dict['reservationRooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reservation_adjustments (list) + _items = [] + if self.reservation_adjustments: + for _item_reservation_adjustments in self.reservation_adjustments: + if _item_reservation_adjustments: + _items.append(_item_reservation_adjustments.to_dict()) + _dict['reservationAdjustments'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reservation_payments (list) + _items = [] + if self.reservation_payments: + for _item_reservation_payments in self.reservation_payments: + if _item_reservation_payments: + _items.append(_item_reservation_payments.to_dict()) + _dict['reservationPayments'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reservation_additional_products (list) + _items = [] + if self.reservation_additional_products: + for _item_reservation_additional_products in self.reservation_additional_products: + if _item_reservation_additional_products: + _items.append(_item_reservation_additional_products.to_dict()) + _dict['reservationAdditionalProducts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reservation_add_on_products (list) + _items = [] + if self.reservation_add_on_products: + for _item_reservation_add_on_products in self.reservation_add_on_products: + if _item_reservation_add_on_products: + _items.append(_item_reservation_add_on_products.to_dict()) + _dict['reservationAddOnProducts'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reservation_taxes (list) + _items = [] + if self.reservation_taxes: + for _item_reservation_taxes in self.reservation_taxes: + if _item_reservation_taxes: + _items.append(_item_reservation_taxes.to_dict()) + _dict['reservationTaxes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in reservation_fees (list) + _items = [] + if self.reservation_fees: + for _item_reservation_fees in self.reservation_fees: + if _item_reservation_fees: + _items.append(_item_reservation_fees.to_dict()) + _dict['reservationFees'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in balance_detailed (list) + _items = [] + if self.balance_detailed: + for _item_balance_detailed in self.balance_detailed: + if _item_balance_detailed: + _items.append(_item_balance_detailed.to_dict()) + _dict['balanceDetailed'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "customFields": [GetReservationResponseDataGuestListValueCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "mainGuestDetails": [GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.from_dict(_item) for _item in obj["mainGuestDetails"]] if obj.get("mainGuestDetails") is not None else None, + "reservationRooms": [GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.from_dict(_item) for _item in obj["reservationRooms"]] if obj.get("reservationRooms") is not None else None, + "reservationRoomsTotal": obj.get("reservationRoomsTotal"), + "reservationAdjustments": [GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.from_dict(_item) for _item in obj["reservationAdjustments"]] if obj.get("reservationAdjustments") is not None else None, + "reservationAdjustmentsTotal": obj.get("reservationAdjustmentsTotal"), + "reservationPayments": [GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.from_dict(_item) for _item in obj["reservationPayments"]] if obj.get("reservationPayments") is not None else None, + "reservationAdditionalProducts": [GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.from_dict(_item) for _item in obj["reservationAdditionalProducts"]] if obj.get("reservationAdditionalProducts") is not None else None, + "reservationAdditionalProductsTotal": obj.get("reservationAdditionalProductsTotal"), + "reservationAddOnProducts": [GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.from_dict(_item) for _item in obj["reservationAddOnProducts"]] if obj.get("reservationAddOnProducts") is not None else None, + "reservationAddOnProductsTotal": obj.get("reservationAddOnProductsTotal"), + "reservationTaxes": [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_dict(_item) for _item in obj["reservationTaxes"]] if obj.get("reservationTaxes") is not None else None, + "reservationTaxesTotal": obj.get("reservationTaxesTotal"), + "reservationFees": [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_dict(_item) for _item in obj["reservationFees"]] if obj.get("reservationFees") is not None else None, + "reservationFeesTotal": obj.get("reservationFeesTotal"), + "balance": obj.get("balance"), + "balanceDetailed": [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py new file mode 100644 index 0000000..b08194d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner + """ # noqa: E501 + suggested_deposit: Optional[StrictStr] = Field(default=None, description="Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid", alias="suggestedDeposit") + sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the room prices on the reservation", alias="subTotal") + additional_items: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the additional items recorded on the reservation", alias="additionalItems") + taxes_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of taxes and fees on the reservation", alias="taxesFees") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of sub.Total + additionalItems + taxesFees", alias="grandTotal") + paid: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount paid (reservation deposit + any other extra payment)") + original_currency_code: Optional[StrictStr] = Field(default=None, description="The currency the booking was originally made in. Included only if different from property currency", alias="originalCurrencyCode") + original_currency_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The currency conversion rate used at the time of booking. Included only if originalCurrencyCode is different from property currency.", alias="originalCurrencyRate") + __properties: ClassVar[List[str]] = ["suggestedDeposit", "subTotal", "additionalItems", "taxesFees", "grandTotal", "paid", "originalCurrencyCode", "originalCurrencyRate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "suggestedDeposit": obj.get("suggestedDeposit"), + "subTotal": obj.get("subTotal"), + "additionalItems": obj.get("additionalItems"), + "taxesFees": obj.get("taxesFees"), + "grandTotal": obj.get("grandTotal"), + "paid": obj.get("paid"), + "originalCurrencyCode": obj.get("originalCurrencyCode"), + "originalCurrencyRate": obj.get("originalCurrencyRate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py new file mode 100644 index 0000000..f826641 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner + """ # noqa: E501 + guest_first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, description="Gender", alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, description="Email Address", alias="guestEmail") + guest_phone: Optional[StrictStr] = Field(default=None, description="Phone Number", alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, description="Cell Phone Number", alias="guestCellPhone") + guest_address: Optional[StrictStr] = Field(default=None, description="Adress", alias="guestAddress") + guest_address2: Optional[StrictStr] = Field(default=None, description="Address Line 2 (Complement)", alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, description="City", alias="guestCity") + guest_country: Optional[StrictStr] = Field(default=None, description="Country", alias="guestCountry") + tax_id: Optional[StrictStr] = Field(default=None, description="Guest Tax Identifier Number", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Company Tax Identifier Number", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Company Name", alias="companyName") + guest_state: Optional[StrictStr] = Field(default=None, description="State", alias="guestState") + guest_zip: Optional[StrictStr] = Field(default=None, description="Zip code", alias="guestZip") + is_anonymyzed: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymyzed") + __properties: ClassVar[List[str]] = ["guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestCountry", "taxID", "companyTaxID", "companyName", "guestState", "guestZip", "isAnonymyzed"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress": obj.get("guestAddress"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestCountry": obj.get("guestCountry"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "guestState": obj.get("guestState"), + "guestZip": obj.get("guestZip"), + "isAnonymyzed": obj.get("isAnonymyzed") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py new file mode 100644 index 0000000..8b18a68 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner + """ # noqa: E501 + sold_product_id: Optional[StrictStr] = Field(default=None, description="ID of the sold product", alias="soldProductID") + product_name: Optional[StrictStr] = Field(default=None, description="Name", alias="productName") + product_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Price", alias="productPrice") + product_quantity: Optional[StrictInt] = Field(default=None, description="Quantity sold", alias="productQuantity") + product_sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross amount", alias="productSubTotal") + product_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fees charged for this addon", alias="productFees") + product_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Taxes charged for this addon", alias="productTaxes") + product_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Net amount", alias="productTotal") + transaction_date_time: Optional[datetime] = Field(default=None, description="Date and time of the sale", alias="transactionDateTime") + __properties: ClassVar[List[str]] = ["soldProductID", "productName", "productPrice", "productQuantity", "productSubTotal", "productFees", "productTaxes", "productTotal", "transactionDateTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "soldProductID": obj.get("soldProductID"), + "productName": obj.get("productName"), + "productPrice": obj.get("productPrice"), + "productQuantity": obj.get("productQuantity"), + "productSubTotal": obj.get("productSubTotal"), + "productFees": obj.get("productFees"), + "productTaxes": obj.get("productTaxes"), + "productTotal": obj.get("productTotal"), + "transactionDateTime": obj.get("transactionDateTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py new file mode 100644 index 0000000..7420e43 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner + """ # noqa: E501 + product_id: Optional[StrictStr] = Field(default=None, description="Internal product ID", alias="productID") + sold_product_id: Optional[StrictStr] = Field(default=None, description="ID of the sold product", alias="soldProductID") + item_code: Optional[StrictStr] = Field(default=None, description="Code of the item", alias="itemCode") + product_name: Optional[StrictStr] = Field(default=None, description="Name", alias="productName") + product_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Price", alias="productPrice") + product_quantity: Optional[StrictInt] = Field(default=None, description="Quantity sold", alias="productQuantity") + product_sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross amount", alias="productSubTotal") + product_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fees charged for this item", alias="productFees") + product_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Taxes charged for this item", alias="productTaxes") + product_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Net amount", alias="productTotal") + product_note: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product note", alias="productNote") + transaction_date_time: Optional[datetime] = Field(default=None, description="Date and time of the sale", alias="transactionDateTime") + __properties: ClassVar[List[str]] = ["productID", "soldProductID", "itemCode", "productName", "productPrice", "productQuantity", "productSubTotal", "productFees", "productTaxes", "productTotal", "productNote", "transactionDateTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "productID": obj.get("productID"), + "soldProductID": obj.get("soldProductID"), + "itemCode": obj.get("itemCode"), + "productName": obj.get("productName"), + "productPrice": obj.get("productPrice"), + "productQuantity": obj.get("productQuantity"), + "productSubTotal": obj.get("productSubTotal"), + "productFees": obj.get("productFees"), + "productTaxes": obj.get("productTaxes"), + "productTotal": obj.get("productTotal"), + "productNote": obj.get("productNote"), + "transactionDateTime": obj.get("transactionDateTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py new file mode 100644 index 0000000..92d78c3 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner + """ # noqa: E501 + adjustment_description: Optional[StrictStr] = Field(default=None, description="Description", alias="adjustmentDescription") + adjustment_room_name: Optional[StrictStr] = Field(default=None, description="Room name", alias="adjustmentRoomName") + adjustment_date_time: Optional[datetime] = Field(default=None, description="Date and time of the adjustment", alias="adjustmentDateTime") + adjustment_date_time_utc: Optional[datetime] = Field(default=None, description="Date and time of the adjustment (UTC)", alias="adjustmentDateTimeUTC") + adjustment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount", alias="adjustmentAmount") + __properties: ClassVar[List[str]] = ["adjustmentDescription", "adjustmentRoomName", "adjustmentDateTime", "adjustmentDateTimeUTC", "adjustmentAmount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adjustmentDescription": obj.get("adjustmentDescription"), + "adjustmentRoomName": obj.get("adjustmentRoomName"), + "adjustmentDateTime": obj.get("adjustmentDateTime"), + "adjustmentDateTimeUTC": obj.get("adjustmentDateTimeUTC"), + "adjustmentAmount": obj.get("adjustmentAmount") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py new file mode 100644 index 0000000..04b6877 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner + """ # noqa: E501 + payment_type: Optional[StrictStr] = Field(default=None, description="Type", alias="paymentType") + payment_description: Optional[StrictStr] = Field(default=None, description="Description", alias="paymentDescription") + payment_date_time: Optional[datetime] = Field(default=None, description="Date and time of the payment", alias="paymentDateTime") + payment_date_time_utc: Optional[datetime] = Field(default=None, description="Date and time of the payment (UTC)", alias="paymentDateTimeUTC") + payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount", alias="paymentAmount") + reservation_payments_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum of payments", alias="reservationPaymentsTotal") + __properties: ClassVar[List[str]] = ["paymentType", "paymentDescription", "paymentDateTime", "paymentDateTimeUTC", "paymentAmount", "reservationPaymentsTotal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paymentType": obj.get("paymentType"), + "paymentDescription": obj.get("paymentDescription"), + "paymentDateTime": obj.get("paymentDateTime"), + "paymentDateTimeUTC": obj.get("paymentDateTimeUTC"), + "paymentAmount": obj.get("paymentAmount"), + "reservationPaymentsTotal": obj.get("reservationPaymentsTotal") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py new file mode 100644 index 0000000..2407a57 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner + """ # noqa: E501 + room_type_name: Optional[StrictStr] = Field(default=None, description="Room type name", alias="roomTypeName") + guest_name: Optional[StrictStr] = Field(default=None, description="Assigned guest name", alias="guestName") + start_date: Optional[date] = Field(default=None, description="Check-in date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Check-out date", alias="endDate") + adults: Optional[StrictInt] = Field(default=None, description="Number of adults for the room") + children: Optional[StrictInt] = Field(default=None, description="Number of children for the room") + nights: Optional[StrictInt] = Field(default=None, description="Number of nights") + room_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the room", alias="roomTotal") + room_id: Optional[StrictStr] = Field(default=None, description="Unique ID of the room", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the room", alias="roomName") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") + __properties: ClassVar[List[str]] = ["roomTypeName", "guestName", "startDate", "endDate", "adults", "children", "nights", "roomTotal", "roomID", "roomName", "roomTypeID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeName": obj.get("roomTypeName"), + "guestName": obj.get("guestName"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "nights": obj.get("nights"), + "roomTotal": obj.get("roomTotal"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomTypeID": obj.get("roomTypeID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py new file mode 100644 index 0000000..b831dc5 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner(BaseModel): + """ + GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner + """ # noqa: E501 + tax_name: Optional[StrictStr] = Field(default=None, description="Name", alias="taxName") + tax_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount", alias="taxAmount") + __properties: ClassVar[List[str]] = ["taxName", "taxAmount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taxName": obj.get("taxName"), + "taxAmount": obj.get("taxAmount") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_notes_response.py b/cloudbeds_pms_v1_2/models/get_reservation_notes_response.py new file mode 100644 index 0000000..40377c8 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_notes_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationNotesResponse(BaseModel): + """ + GetReservationNotesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationNotesResponseDataInner]] = Field(default=None, description="Details for the notes on that reservation") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationNotesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationNotesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationNotesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py new file mode 100644 index 0000000..45e1eb2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationNotesResponseDataInner(BaseModel): + """ + GetReservationNotesResponseDataInner + """ # noqa: E501 + reservation_note_id: Optional[StrictStr] = Field(default=None, description="Reservation note ID", alias="reservationNoteID") + user_name: Optional[StrictStr] = Field(default=None, description="User Name", alias="userName") + date_created: Optional[datetime] = Field(default=None, description="Creation datetime", alias="dateCreated") + date_modified: Optional[datetime] = Field(default=None, description="Last modification datetime", alias="dateModified") + reservation_note: Optional[StrictStr] = Field(default=None, description="Note content", alias="reservationNote") + __properties: ClassVar[List[str]] = ["reservationNoteID", "userName", "dateCreated", "dateModified", "reservationNote"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationNotesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationNotesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservationNoteID": obj.get("reservationNoteID"), + "userName": obj.get("userName"), + "dateCreated": obj.get("dateCreated"), + "dateModified": obj.get("dateModified"), + "reservationNote": obj.get("reservationNote") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response.py b/cloudbeds_pms_v1_2/models/get_reservation_response.py new file mode 100644 index 0000000..1364ab0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponse(BaseModel): + """ + GetReservationResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetReservationResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetReservationResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data.py new file mode 100644 index 0000000..9e472aa --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data.py @@ -0,0 +1,212 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseData(BaseModel): + """ + Details for the reservation queried + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + guest_name: Optional[StrictStr] = Field(default=None, description="Main Guest Name", alias="guestName") + guest_email: Optional[StrictStr] = Field(default=None, description="Main Guest Email", alias="guestEmail") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the main guest data was removed upon request", alias="isAnonymized") + guest_list: Optional[Dict[str, GetReservationResponseDataGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation.", alias="guestList") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier", alias="reservationID") + date_created: Optional[datetime] = Field(default=None, alias="dateCreated") + date_modified: Optional[datetime] = Field(default=None, alias="dateModified") + estimated_arrival_time: Optional[StrictStr] = Field(default=None, description="Estimated arrival time, 24-hour format.", alias="estimatedArrivalTime") + source: Optional[StrictStr] = Field(default=None, description="Booking source (e.g. Website, Facebook Widget, Booking.com, etc)") + source_id: Optional[StrictStr] = Field(default=None, description="Booking source unique id", alias="sourceID") + third_party_identifier: Optional[StrictStr] = Field(default=None, description="If it was received from a booking channel, it displays its identifier. If not, it will be empty", alias="thirdPartyIdentifier") + status: Optional[StrictStr] = Field(default=None, description="Reservation status
'not_confirmed' - Reservation is pending confirmation
'confirmed' - Reservation is confirmed
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date") + total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total price of the booking") + balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance currently owed") + balance_detailed: Optional[List[GetReservationResponseDataBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on PC app, describing the financial items calculated", alias="balanceDetailed") + assigned: Optional[List[GetReservationResponseDataAssignedInner]] = Field(default=None, description="Assigned Rooms information") + unassigned: Optional[List[GetReservationResponseDataUnassignedInner]] = Field(default=None, description="Unassigned Rooms information") + cards_on_file: Optional[List[GetReservationResponseDataCardsOnFileInner]] = Field(default=None, description="Credit Cards stored for the reservation", alias="cardsOnFile") + custom_fields: Optional[List[GetReservationResponseDataGuestListValueCustomFieldsInner]] = Field(default=None, description="Custom Fields related to the reservation", alias="customFields") + start_date: Optional[date] = Field(default=None, description="First reservation check-in date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Last reservation check-out date", alias="endDate") + allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + channel_provided_credit_card: Optional[StrictBool] = Field(default=None, description="Whether a credit card was provided by the channel. Only included for reservations originating from OTAs.", alias="channelProvidedCreditCard") + __properties: ClassVar[List[str]] = ["propertyID", "guestName", "guestEmail", "isAnonymized", "guestList", "reservationID", "dateCreated", "dateModified", "estimatedArrivalTime", "source", "sourceID", "thirdPartyIdentifier", "status", "total", "balance", "balanceDetailed", "assigned", "unassigned", "cardsOnFile", "customFields", "startDate", "endDate", "allotmentBlockCode", "channelProvidedCreditCard"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): + raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in guest_list (dict) + _field_dict = {} + if self.guest_list: + for _key_guest_list in self.guest_list: + if self.guest_list[_key_guest_list]: + _field_dict[_key_guest_list] = self.guest_list[_key_guest_list].to_dict() + _dict['guestList'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each item in balance_detailed (list) + _items = [] + if self.balance_detailed: + for _item_balance_detailed in self.balance_detailed: + if _item_balance_detailed: + _items.append(_item_balance_detailed.to_dict()) + _dict['balanceDetailed'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in assigned (list) + _items = [] + if self.assigned: + for _item_assigned in self.assigned: + if _item_assigned: + _items.append(_item_assigned.to_dict()) + _dict['assigned'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in unassigned (list) + _items = [] + if self.unassigned: + for _item_unassigned in self.unassigned: + if _item_unassigned: + _items.append(_item_unassigned.to_dict()) + _dict['unassigned'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in cards_on_file (list) + _items = [] + if self.cards_on_file: + for _item_cards_on_file in self.cards_on_file: + if _item_cards_on_file: + _items.append(_item_cards_on_file.to_dict()) + _dict['cardsOnFile'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # set to None if estimated_arrival_time (nullable) is None + # and model_fields_set contains the field + if self.estimated_arrival_time is None and "estimated_arrival_time" in self.model_fields_set: + _dict['estimatedArrivalTime'] = None + + # set to None if third_party_identifier (nullable) is None + # and model_fields_set contains the field + if self.third_party_identifier is None and "third_party_identifier" in self.model_fields_set: + _dict['thirdPartyIdentifier'] = None + + # set to None if allotment_block_code (nullable) is None + # and model_fields_set contains the field + if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: + _dict['allotmentBlockCode'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "guestName": obj.get("guestName"), + "guestEmail": obj.get("guestEmail"), + "isAnonymized": obj.get("isAnonymized"), + "guestList": dict( + (_k, GetReservationResponseDataGuestListValue.from_dict(_v)) + for _k, _v in obj["guestList"].items() + ) + if obj.get("guestList") is not None + else None, + "reservationID": obj.get("reservationID"), + "dateCreated": obj.get("dateCreated"), + "dateModified": obj.get("dateModified"), + "estimatedArrivalTime": obj.get("estimatedArrivalTime"), + "source": obj.get("source"), + "sourceID": obj.get("sourceID"), + "thirdPartyIdentifier": obj.get("thirdPartyIdentifier"), + "status": obj.get("status"), + "total": obj.get("total"), + "balance": obj.get("balance"), + "balanceDetailed": [GetReservationResponseDataBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, + "assigned": [GetReservationResponseDataAssignedInner.from_dict(_item) for _item in obj["assigned"]] if obj.get("assigned") is not None else None, + "unassigned": [GetReservationResponseDataUnassignedInner.from_dict(_item) for _item in obj["unassigned"]] if obj.get("unassigned") is not None else None, + "cardsOnFile": [GetReservationResponseDataCardsOnFileInner.from_dict(_item) for _item in obj["cardsOnFile"]] if obj.get("cardsOnFile") is not None else None, + "customFields": [GetReservationResponseDataGuestListValueCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "allotmentBlockCode": obj.get("allotmentBlockCode"), + "channelProvidedCreditCard": obj.get("channelProvidedCreditCard") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py new file mode 100644 index 0000000..17fd232 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataAssignedInner(BaseModel): + """ + GetReservationResponseDataAssignedInner + """ # noqa: E501 + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the assigned room type", alias="roomTypeName") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Short name of the assigned room type", alias="roomTypeNameShort") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + dorm_room_name: Optional[StrictStr] = Field(default=None, description="Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type", alias="dormRoomName") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the assigned room type", alias="roomTypeID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific assigned room", alias="roomName") + room_id: Optional[StrictStr] = Field(default=None, description="ID of the specific assigned room", alias="roomID") + start_date: Optional[date] = Field(default=None, description="Check-In date of the room", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Check-Out date of the room", alias="endDate") + adults: Optional[StrictStr] = Field(default=None, description="Number of adult staying in the room") + children: Optional[StrictStr] = Field(default=None, description="Number of children staying in the room") + daily_rates: Optional[List[GetReservationResponseDataAssignedInnerDailyRatesInner]] = Field(default=None, description="Array with rates detailed by day", alias="dailyRates") + room_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Room total rate", alias="roomTotal") + __properties: ClassVar[List[str]] = ["roomTypeName", "roomTypeNameShort", "roomTypeIsVirtual", "dormRoomName", "roomTypeID", "subReservationID", "roomName", "roomID", "startDate", "endDate", "adults", "children", "dailyRates", "roomTotal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataAssignedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in daily_rates (list) + _items = [] + if self.daily_rates: + for _item_daily_rates in self.daily_rates: + if _item_daily_rates: + _items.append(_item_daily_rates.to_dict()) + _dict['dailyRates'] = _items + # set to None if dorm_room_name (nullable) is None + # and model_fields_set contains the field + if self.dorm_room_name is None and "dorm_room_name" in self.model_fields_set: + _dict['dormRoomName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataAssignedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeName": obj.get("roomTypeName"), + "roomTypeNameShort": obj.get("roomTypeNameShort"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "dormRoomName": obj.get("dormRoomName"), + "roomTypeID": obj.get("roomTypeID"), + "subReservationID": obj.get("subReservationID"), + "roomName": obj.get("roomName"), + "roomID": obj.get("roomID"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "dailyRates": [GetReservationResponseDataAssignedInnerDailyRatesInner.from_dict(_item) for _item in obj["dailyRates"]] if obj.get("dailyRates") is not None else None, + "roomTotal": obj.get("roomTotal") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py new file mode 100644 index 0000000..9a15dc4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataAssignedInnerDailyRatesInner(BaseModel): + """ + GetReservationResponseDataAssignedInnerDailyRatesInner + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, alias="date") + rate: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["date", "rate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataAssignedInnerDailyRatesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataAssignedInnerDailyRatesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "rate": obj.get("rate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py new file mode 100644 index 0000000..f22c69a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataBalanceDetailedInner(BaseModel): + """ + GetReservationResponseDataBalanceDetailedInner + """ # noqa: E501 + suggested_deposit: Optional[StrictStr] = Field(default=None, description="Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid", alias="suggestedDeposit") + sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the room prices on the reservation", alias="subTotal") + additional_items: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the additional items recorded on the reservation", alias="additionalItems") + taxes_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the taxes and fees calculated on the reservation", alias="taxesFees") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of sub.Total + additionalItems + taxesFees", alias="grandTotal") + paid: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount paid (reservation deposit + any other extra payment)") + __properties: ClassVar[List[str]] = ["suggestedDeposit", "subTotal", "additionalItems", "taxesFees", "grandTotal", "paid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataBalanceDetailedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataBalanceDetailedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "suggestedDeposit": obj.get("suggestedDeposit"), + "subTotal": obj.get("subTotal"), + "additionalItems": obj.get("additionalItems"), + "taxesFees": obj.get("taxesFees"), + "grandTotal": obj.get("grandTotal"), + "paid": obj.get("paid") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py new file mode 100644 index 0000000..dbbf846 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataCardsOnFileInner(BaseModel): + """ + GetReservationResponseDataCardsOnFileInner + """ # noqa: E501 + card_id: Optional[StrictStr] = Field(default=None, description="Credit Card ID, used for card operations", alias="cardID") + card_number: Optional[StrictStr] = Field(default=None, description="Ending digits of the credit card", alias="cardNumber") + card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") + __properties: ClassVar[List[str]] = ["cardID", "cardNumber", "cardType"] + + @field_validator('card_type') + def card_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['visa', 'master', 'amex', 'diners']): + raise ValueError("must be one of enum values ('visa', 'master', 'amex', 'diners')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataCardsOnFileInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataCardsOnFileInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cardID": obj.get("cardID"), + "cardNumber": obj.get("cardNumber"), + "cardType": obj.get("cardType") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py new file mode 100644 index 0000000..c512b1d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataGuestListValue(BaseModel): + """ + GetReservationResponseDataGuestListValue + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="ID of the guest", alias="guestID") + guest_first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, description="Gender", alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, description="Email Address", alias="guestEmail") + guest_phone: Optional[StrictStr] = Field(default=None, description="Phone Number", alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, description="Cell Phone Number", alias="guestCellPhone") + guest_address: Optional[StrictStr] = Field(default=None, alias="guestAddress") + guest_address2: Optional[StrictStr] = Field(default=None, alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") + guest_status: Optional[StrictStr] = Field(default=None, alias="guestStatus") + guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") + guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") + guest_document_issue_date: Optional[date] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[date] = Field(default=None, alias="guestDocumentExpirationDate") + tax_id: Optional[StrictStr] = Field(default=None, alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") + assigned_room: Optional[StrictStr] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + is_main_guest: Optional[StrictBool] = Field(default=None, description="If the guest is the main guest of the reservation or not", alias="isMainGuest") + custom_fields: Optional[List[GetReservationResponseDataGuestListValueCustomFieldsInner]] = Field(default=None, description="List of custom fields", alias="customFields") + rooms: Optional[List[GetReservationResponseDataGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") + unassigned_rooms: Optional[List[GetReservationResponseDataGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of unassigned rooms", alias="unassignedRooms") + __properties: ClassVar[List[str]] = ["guestID", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestStatus", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "assignedRoom", "isAnonymized", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "isMainGuest", "customFields", "rooms", "unassignedRooms"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + @field_validator('guest_status') + def guest_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['in_progress', 'call2confirm', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'not_confirmed', 'no_show', 'paypal_init', 'pending_payment', 'not_checked_in', 'in_house']): + raise ValueError("must be one of enum values ('in_progress', 'call2confirm', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'not_confirmed', 'no_show', 'paypal_init', 'pending_payment', 'not_checked_in', 'in_house')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in unassigned_rooms (list) + _items = [] + if self.unassigned_rooms: + for _item_unassigned_rooms in self.unassigned_rooms: + if _item_unassigned_rooms: + _items.append(_item_unassigned_rooms.to_dict()) + _dict['unassignedRooms'] = _items + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress": obj.get("guestAddress"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestStatus": obj.get("guestStatus"), + "guestBirthdate": obj.get("guestBirthdate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "assignedRoom": obj.get("assignedRoom"), + "isAnonymized": obj.get("isAnonymized"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "isMainGuest": obj.get("isMainGuest"), + "customFields": [GetReservationResponseDataGuestListValueCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "rooms": [GetReservationResponseDataGuestListValueRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "unassignedRooms": [GetReservationResponseDataGuestListValueUnassignedRoomsInner.from_dict(_item) for _item in obj["unassignedRooms"]] if obj.get("unassignedRooms") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py new file mode 100644 index 0000000..e34113e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataGuestListValueCustomFieldsInner(BaseModel): + """ + GetReservationResponseDataGuestListValueCustomFieldsInner + """ # noqa: E501 + custom_field_name: Optional[StrictStr] = Field(default=None, description="Custom Field Name", alias="customFieldName") + custom_field_value: Optional[StrictStr] = Field(default=None, description="Custom Field Value", alias="customFieldValue") + __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValueCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValueCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customFieldName": obj.get("customFieldName"), + "customFieldValue": obj.get("customFieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py new file mode 100644 index 0000000..1616bf1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataGuestListValueRoomsInner(BaseModel): + """ + GetReservationResponseDataGuestListValueRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") + __properties: ClassVar[List[str]] = ["roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "subReservationID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValueRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValueRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "subReservationID": obj.get("subReservationID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py new file mode 100644 index 0000000..07adcde --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataGuestListValueUnassignedRoomsInner(BaseModel): + """ + GetReservationResponseDataGuestListValueUnassignedRoomsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the assigned room type", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeIsVirtual", "subReservationID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValueUnassignedRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeID'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGuestListValueUnassignedRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "subReservationID": obj.get("subReservationID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py new file mode 100644 index 0000000..0d442b6 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataUnassignedInner(BaseModel): + """ + GetReservationResponseDataUnassignedInner + """ # noqa: E501 + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type to be assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type to be assigned", alias="roomTypeID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") + start_date: Optional[date] = Field(default=None, description="Check-In date of the room", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Check-Out date of the room", alias="endDate") + adults: Optional[StrictStr] = Field(default=None, description="Number of adult staying in the room") + children: Optional[StrictStr] = Field(default=None, description="Number of children staying in the room") + daily_rates: Optional[List[GetReservationResponseDataAssignedInnerDailyRatesInner]] = Field(default=None, description="Array with rates detailed by day", alias="dailyRates") + room_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Room total rate", alias="roomTotal") + __properties: ClassVar[List[str]] = ["roomTypeName", "roomTypeIsVirtual", "roomTypeID", "subReservationID", "startDate", "endDate", "adults", "children", "dailyRates", "roomTotal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataUnassignedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in daily_rates (list) + _items = [] + if self.daily_rates: + for _item_daily_rates in self.daily_rates: + if _item_daily_rates: + _items.append(_item_daily_rates.to_dict()) + _dict['dailyRates'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataUnassignedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "roomTypeID": obj.get("roomTypeID"), + "subReservationID": obj.get("subReservationID"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "dailyRates": [GetReservationResponseDataAssignedInnerDailyRatesInner.from_dict(_item) for _item in obj["dailyRates"]] if obj.get("dailyRates") is not None else None, + "roomTotal": obj.get("roomTotal") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py b/cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py new file mode 100644 index 0000000..020eacf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationRoomDetailsResponse(BaseModel): + """ + GetReservationRoomDetailsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + data: Optional[GetReservationRoomDetailsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationRoomDetailsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationRoomDetailsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": GetReservationRoomDetailsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py b/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py new file mode 100644 index 0000000..20ac537 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationRoomDetailsResponseData(BaseModel): + """ + Details for the rooms assigned on the selected date + """ # noqa: E501 + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation Unique Identifier.", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Subreservation Unique Identifier", alias="subReservationID") + room_id: Optional[StrictStr] = Field(default=None, description="ID of room assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of room assigned", alias="roomName") + dorm_room_name: Optional[StrictStr] = Field(default=None, description="Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type.", alias="dormRoomName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest Identifier", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name", alias="guestName") + room_status: Optional[StrictStr] = Field(default=None, description="Room status
'cancelled' - Reservation with this room was canceled
'checked_out' - Guest already left the room
'in_house' - Guest is in the room
'not_checked_in' - Guest isn't checked-in yet", alias="roomStatus") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of room type assigned", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of room type assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + max_guests: Optional[StrictInt] = Field(default=None, description="Maximum number of guests that room type permits", alias="maxGuests") + adults: Optional[StrictInt] = Field(default=None, description="Number of adults registered to room (this does not mean there will be this number of guests in guests array)") + children: Optional[StrictInt] = Field(default=None, description="Number of children registered to room (this does not mean there will be this number of guests in guests array)") + guests: Optional[List[GetReservationRoomDetailsResponseDataGuestsInner]] = Field(default=None, description="Array with all guests assigned to room") + __properties: ClassVar[List[str]] = ["reservationID", "subReservationID", "roomID", "roomName", "dormRoomName", "guestID", "guestName", "roomStatus", "roomTypeID", "roomTypeName", "roomTypeIsVirtual", "maxGuests", "adults", "children", "guests"] + + @field_validator('room_status') + def room_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['cancelled', 'checked_out', 'in_house', 'not_checked_in']): + raise ValueError("must be one of enum values ('cancelled', 'checked_out', 'in_house', 'not_checked_in')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationRoomDetailsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in guests (list) + _items = [] + if self.guests: + for _item_guests in self.guests: + if _item_guests: + _items.append(_item_guests.to_dict()) + _dict['guests'] = _items + # set to None if dorm_room_name (nullable) is None + # and model_fields_set contains the field + if self.dorm_room_name is None and "dorm_room_name" in self.model_fields_set: + _dict['dormRoomName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationRoomDetailsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "dormRoomName": obj.get("dormRoomName"), + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "roomStatus": obj.get("roomStatus"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "maxGuests": obj.get("maxGuests"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "guests": [GetReservationRoomDetailsResponseDataGuestsInner.from_dict(_item) for _item in obj["guests"]] if obj.get("guests") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py new file mode 100644 index 0000000..d263050 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationRoomDetailsResponseDataGuestsInner(BaseModel): + """ + GetReservationRoomDetailsResponseDataGuestsInner + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="ID of assigned guest", alias="guestID") + guest_first_name: Optional[StrictStr] = Field(default=None, description="First name of assigned guest", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Last of assigned guest", alias="guestLastName") + is_main_guest: Optional[StrictBool] = Field(default=None, description="If guest is reservation's main guest", alias="isMainGuest") + __properties: ClassVar[List[str]] = ["guestID", "guestFirstName", "guestLastName", "isMainGuest"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationRoomDetailsResponseDataGuestsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationRoomDetailsResponseDataGuestsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "isMainGuest": obj.get("isMainGuest") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response.py b/cloudbeds_pms_v1_2/models/get_reservations_response.py new file mode 100644 index 0000000..903ad80 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsResponse(BaseModel): + """ + GetReservationsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationsResponseDataInner]] = Field(default=None, description="Details for the reservation queried") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py new file mode 100644 index 0000000..f3c4ccc --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsResponseDataInner(BaseModel): + """ + GetReservationsResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Properties identifier", alias="propertyID") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation's unique identifier", alias="reservationID") + date_created: Optional[datetime] = Field(default=None, alias="dateCreated") + date_modified: Optional[datetime] = Field(default=None, alias="dateModified") + status: Optional[StrictStr] = None + guest_id: Optional[StrictStr] = Field(default=None, alias="guestID") + profile_id: Optional[StrictStr] = Field(default=None, alias="profileID") + guest_name: Optional[StrictStr] = Field(default=None, alias="guestName") + start_date: Optional[date] = Field(default=None, alias="startDate") + end_date: Optional[date] = Field(default=None, alias="endDate") + allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + adults: Optional[StrictInt] = None + children: Optional[StrictInt] = None + balance: Optional[Union[StrictFloat, StrictInt]] = None + source_name: Optional[StrictStr] = Field(default=None, description="Source of reservation", alias="sourceName") + source_id: Optional[StrictStr] = Field(default=None, description="Booking source unique id", alias="sourceID") + third_party_identifier: Optional[StrictStr] = Field(default=None, alias="thirdPartyIdentifier") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="If roomID or roomName are given, the respective subReservationID (to that room) is informed.", alias="subReservationID") + custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of reservation custom fields. Only returned if \"includeCustomFields\" is true", alias="customFields") + rooms: Optional[List[GetReservationsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information. Only returned if \"includeAllRooms\" is true") + guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "subReservationID", "customFields", "rooms", "guestList"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['not_confirmed', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): + raise ValueError("must be one of enum values ('not_confirmed', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each value in guest_list (dict) + _field_dict = {} + if self.guest_list: + for _key_guest_list in self.guest_list: + if self.guest_list[_key_guest_list]: + _field_dict[_key_guest_list] = self.guest_list[_key_guest_list].to_dict() + _dict['guestList'] = _field_dict + # set to None if allotment_block_code (nullable) is None + # and model_fields_set contains the field + if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: + _dict['allotmentBlockCode'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if custom_fields (nullable) is None + # and model_fields_set contains the field + if self.custom_fields is None and "custom_fields" in self.model_fields_set: + _dict['customFields'] = None + + # set to None if guest_list (nullable) is None + # and model_fields_set contains the field + if self.guest_list is None and "guest_list" in self.model_fields_set: + _dict['guestList'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "reservationID": obj.get("reservationID"), + "dateCreated": obj.get("dateCreated"), + "dateModified": obj.get("dateModified"), + "status": obj.get("status"), + "guestID": obj.get("guestID"), + "profileID": obj.get("profileID"), + "guestName": obj.get("guestName"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "allotmentBlockCode": obj.get("allotmentBlockCode"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "balance": obj.get("balance"), + "sourceName": obj.get("sourceName"), + "sourceID": obj.get("sourceID"), + "thirdPartyIdentifier": obj.get("thirdPartyIdentifier"), + "subReservationID": obj.get("subReservationID"), + "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "rooms": [GetReservationsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "guestList": dict( + (_k, GetReservationsResponseDataInnerGuestListValue.from_dict(_v)) + for _k, _v in obj["guestList"].items() + ) + if obj.get("guestList") is not None + else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py new file mode 100644 index 0000000..4bf6616 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py @@ -0,0 +1,372 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsResponseDataInnerGuestListValue(BaseModel): + """ + GetReservationsResponseDataInnerGuestListValue + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="ID of the guest", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, alias="guestName") + guest_first_name: Optional[StrictStr] = Field(default=None, alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, alias="guestEmail") + guest_phone: Optional[StrictStr] = Field(default=None, alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, alias="guestCellPhone") + guest_address: Optional[StrictStr] = Field(default=None, alias="guestAddress") + guest_address2: Optional[StrictStr] = Field(default=None, alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") + guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") + guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") + guest_document_issue_date: Optional[date] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[date] = Field(default=None, alias="guestDocumentExpirationDate") + tax_id: Optional[StrictStr] = Field(default=None, description="Guest's tax ID", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Guest's company tax ID", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Guest's company name", alias="companyName") + sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") + start_date: Optional[date] = Field(default=None, alias="startDate") + end_date: Optional[date] = Field(default=None, alias="endDate") + assigned_room: Optional[StrictStr] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") + unassigned_rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of all unassigned rooms", alias="unassignedRooms") + custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of guest custom fields", alias="customFields") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + is_main_guest: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest is the main guest on the reservation", alias="isMainGuest") + __properties: ClassVar[List[str]] = ["guestID", "guestName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "subReservationID", "startDate", "endDate", "assignedRoom", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "rooms", "unassignedRooms", "customFields", "isAnonymized", "isMainGuest"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerGuestListValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in unassigned_rooms (list) + _items = [] + if self.unassigned_rooms: + for _item_unassigned_rooms in self.unassigned_rooms: + if _item_unassigned_rooms: + _items.append(_item_unassigned_rooms.to_dict()) + _dict['unassignedRooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # set to None if guest_id (nullable) is None + # and model_fields_set contains the field + if self.guest_id is None and "guest_id" in self.model_fields_set: + _dict['guestID'] = None + + # set to None if guest_name (nullable) is None + # and model_fields_set contains the field + if self.guest_name is None and "guest_name" in self.model_fields_set: + _dict['guestName'] = None + + # set to None if guest_first_name (nullable) is None + # and model_fields_set contains the field + if self.guest_first_name is None and "guest_first_name" in self.model_fields_set: + _dict['guestFirstName'] = None + + # set to None if guest_last_name (nullable) is None + # and model_fields_set contains the field + if self.guest_last_name is None and "guest_last_name" in self.model_fields_set: + _dict['guestLastName'] = None + + # set to None if guest_gender (nullable) is None + # and model_fields_set contains the field + if self.guest_gender is None and "guest_gender" in self.model_fields_set: + _dict['guestGender'] = None + + # set to None if guest_email (nullable) is None + # and model_fields_set contains the field + if self.guest_email is None and "guest_email" in self.model_fields_set: + _dict['guestEmail'] = None + + # set to None if guest_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_phone is None and "guest_phone" in self.model_fields_set: + _dict['guestPhone'] = None + + # set to None if guest_cell_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_cell_phone is None and "guest_cell_phone" in self.model_fields_set: + _dict['guestCellPhone'] = None + + # set to None if guest_address (nullable) is None + # and model_fields_set contains the field + if self.guest_address is None and "guest_address" in self.model_fields_set: + _dict['guestAddress'] = None + + # set to None if guest_address2 (nullable) is None + # and model_fields_set contains the field + if self.guest_address2 is None and "guest_address2" in self.model_fields_set: + _dict['guestAddress2'] = None + + # set to None if guest_city (nullable) is None + # and model_fields_set contains the field + if self.guest_city is None and "guest_city" in self.model_fields_set: + _dict['guestCity'] = None + + # set to None if guest_state (nullable) is None + # and model_fields_set contains the field + if self.guest_state is None and "guest_state" in self.model_fields_set: + _dict['guestState'] = None + + # set to None if guest_country (nullable) is None + # and model_fields_set contains the field + if self.guest_country is None and "guest_country" in self.model_fields_set: + _dict['guestCountry'] = None + + # set to None if guest_zip (nullable) is None + # and model_fields_set contains the field + if self.guest_zip is None and "guest_zip" in self.model_fields_set: + _dict['guestZip'] = None + + # set to None if guest_birthdate (nullable) is None + # and model_fields_set contains the field + if self.guest_birthdate is None and "guest_birthdate" in self.model_fields_set: + _dict['guestBirthdate'] = None + + # set to None if guest_document_type (nullable) is None + # and model_fields_set contains the field + if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: + _dict['guestDocumentType'] = None + + # set to None if guest_document_number (nullable) is None + # and model_fields_set contains the field + if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: + _dict['guestDocumentNumber'] = None + + # set to None if guest_document_issue_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: + _dict['guestDocumentIssueDate'] = None + + # set to None if guest_document_issuing_country (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: + _dict['guestDocumentIssuingCountry'] = None + + # set to None if guest_document_expiration_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: + _dict['guestDocumentExpirationDate'] = None + + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if start_date (nullable) is None + # and model_fields_set contains the field + if self.start_date is None and "start_date" in self.model_fields_set: + _dict['startDate'] = None + + # set to None if end_date (nullable) is None + # and model_fields_set contains the field + if self.end_date is None and "end_date" in self.model_fields_set: + _dict['endDate'] = None + + # set to None if assigned_room (nullable) is None + # and model_fields_set contains the field + if self.assigned_room is None and "assigned_room" in self.model_fields_set: + _dict['assignedRoom'] = None + + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + # set to None if rooms (nullable) is None + # and model_fields_set contains the field + if self.rooms is None and "rooms" in self.model_fields_set: + _dict['rooms'] = None + + # set to None if unassigned_rooms (nullable) is None + # and model_fields_set contains the field + if self.unassigned_rooms is None and "unassigned_rooms" in self.model_fields_set: + _dict['unassignedRooms'] = None + + # set to None if custom_fields (nullable) is None + # and model_fields_set contains the field + if self.custom_fields is None and "custom_fields" in self.model_fields_set: + _dict['customFields'] = None + + # set to None if is_anonymized (nullable) is None + # and model_fields_set contains the field + if self.is_anonymized is None and "is_anonymized" in self.model_fields_set: + _dict['isAnonymized'] = None + + # set to None if is_main_guest (nullable) is None + # and model_fields_set contains the field + if self.is_main_guest is None and "is_main_guest" in self.model_fields_set: + _dict['isMainGuest'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerGuestListValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress": obj.get("guestAddress"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestBirthdate": obj.get("guestBirthdate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "subReservationID": obj.get("subReservationID"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "assignedRoom": obj.get("assignedRoom"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "rooms": [GetReservationsResponseDataInnerGuestListValueRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "unassignedRooms": [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.from_dict(_item) for _item in obj["unassignedRooms"]] if obj.get("unassignedRooms") is not None else None, + "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "isAnonymized": obj.get("isAnonymized"), + "isMainGuest": obj.get("isMainGuest") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py new file mode 100644 index 0000000..1b423b6 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsResponseDataInnerGuestListValueRoomsInner(BaseModel): + """ + GetReservationsResponseDataInnerGuestListValueRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Room Type Short Name", alias="roomTypeNameShort") + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") + rate_plan_name: Optional[StrictStr] = Field(default=None, description="Rate plan name", alias="ratePlanName") + room_status: Optional[StrictStr] = Field(default=None, alias="roomStatus") + sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") + __properties: ClassVar[List[str]] = ["roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "roomTypeID", "roomTypeNameShort", "rateID", "ratePlanName", "roomStatus", "subReservationID"] + + @field_validator('room_status') + def room_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['in_house', 'checked_out', 'not_checked_in']): + raise ValueError("must be one of enum values ('in_house', 'checked_out', 'not_checked_in')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerGuestListValueRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeID'] = None + + # set to None if room_type_name_short (nullable) is None + # and model_fields_set contains the field + if self.room_type_name_short is None and "room_type_name_short" in self.model_fields_set: + _dict['roomTypeNameShort'] = None + + # set to None if rate_id (nullable) is None + # and model_fields_set contains the field + if self.rate_id is None and "rate_id" in self.model_fields_set: + _dict['rateID'] = None + + # set to None if rate_plan_name (nullable) is None + # and model_fields_set contains the field + if self.rate_plan_name is None and "rate_plan_name" in self.model_fields_set: + _dict['ratePlanName'] = None + + # set to None if room_status (nullable) is None + # and model_fields_set contains the field + if self.room_status is None and "room_status" in self.model_fields_set: + _dict['roomStatus'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerGuestListValueRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeNameShort": obj.get("roomTypeNameShort"), + "rateID": obj.get("rateID"), + "ratePlanName": obj.get("ratePlanName"), + "roomStatus": obj.get("roomStatus"), + "subReservationID": obj.get("subReservationID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py new file mode 100644 index 0000000..bec4fba --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner(BaseModel): + """ + GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the assigned room type", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Room Type Short Name", alias="roomTypeNameShort") + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") + rate_plan_name: Optional[StrictStr] = Field(default=None, description="Rate plan name", alias="ratePlanName") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeIsVirtual", "roomTypeNameShort", "rateID", "ratePlanName", "subReservationID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeID'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + # set to None if room_type_name_short (nullable) is None + # and model_fields_set contains the field + if self.room_type_name_short is None and "room_type_name_short" in self.model_fields_set: + _dict['roomTypeNameShort'] = None + + # set to None if rate_id (nullable) is None + # and model_fields_set contains the field + if self.rate_id is None and "rate_id" in self.model_fields_set: + _dict['rateID'] = None + + # set to None if rate_plan_name (nullable) is None + # and model_fields_set contains the field + if self.rate_plan_name is None and "rate_plan_name" in self.model_fields_set: + _dict['ratePlanName'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "roomTypeNameShort": obj.get("roomTypeNameShort"), + "rateID": obj.get("rateID"), + "ratePlanName": obj.get("ratePlanName"), + "subReservationID": obj.get("subReservationID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..a5b8420 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsResponseDataInnerRoomsInner(BaseModel): + """ + GetReservationsResponseDataInnerRoomsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="sub Reservation ID (specific to each room)", alias="subReservationID") + guest_id: Optional[StrictStr] = Field(default=None, description="ID of the main guest assigned to the room", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, description="Name of the main guest assigned to the room", alias="guestName") + adults: Optional[StrictStr] = Field(default=None, description="Number of adults in the room") + children: Optional[StrictStr] = Field(default=None, description="Number of children in the room") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID (null if the reservation has not been assigned a specific room yet).", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the room, if roomID=null it does not exist.", alias="roomName") + room_check_in: Optional[StrictStr] = Field(default=None, description="Check-in date for the room", alias="roomCheckIn") + room_check_out: Optional[StrictStr] = Field(default=None, description="Check-out date for the room", alias="roomCheckOut") + room_status: Optional[StrictStr] = Field(default=None, alias="roomStatus") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeIsVirtual", "subReservationID", "guestID", "guestName", "adults", "children", "roomID", "roomName", "roomCheckIn", "roomCheckOut", "roomStatus"] + + @field_validator('room_status') + def room_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['cancelled', 'in_house', 'checked_out', 'not_checked_in']): + raise ValueError("must be one of enum values ('cancelled', 'in_house', 'checked_out', 'not_checked_in')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsResponseDataInnerRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "subReservationID": obj.get("subReservationID"), + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomCheckIn": obj.get("roomCheckIn"), + "roomCheckOut": obj.get("roomCheckOut"), + "roomStatus": obj.get("roomStatus") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py new file mode 100644 index 0000000..3c64e9d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponse(BaseModel): + """ + GetReservationsWithRateDetailsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationsWithRateDetailsResponseDataInner]] = Field(default=None, description="Details for the reservations returned") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationsWithRateDetailsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py new file mode 100644 index 0000000..a117686 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponseDataInner(BaseModel): + """ + GetReservationsWithRateDetailsResponseDataInner + """ # noqa: E501 + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation's unique identifier", alias="reservationID") + is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") + date_created: Optional[datetime] = Field(default=None, alias="dateCreated") + date_created_utc: Optional[datetime] = Field(default=None, alias="dateCreatedUTC") + date_modified: Optional[datetime] = Field(default=None, alias="dateModified") + date_modified_utc: Optional[datetime] = Field(default=None, alias="dateModifiedUTC") + date_cancelled: Optional[datetime] = Field(default=None, description="Will be displayed only if \"status = 'canceled'\"", alias="dateCancelled") + date_cancelled_utc: Optional[datetime] = Field(default=None, description="Will be displayed only if \"status = 'canceled'\"", alias="dateCancelledUTC") + status: Optional[StrictStr] = Field(default=None, description="Reservation status
'not_confirmed' - Reservation is pending confirmation
'confirmed' - Reservation is confirmed
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date") + reservation_check_in: Optional[datetime] = Field(default=None, alias="reservationCheckIn") + reservation_check_out: Optional[datetime] = Field(default=None, alias="reservationCheckOut") + guest_id: Optional[StrictStr] = Field(default=None, description="Main guest ID", alias="guestID") + profile_id: Optional[StrictStr] = Field(default=None, description="Main guest profile ID", alias="profileID") + guest_country: Optional[StrictInt] = Field(default=None, description="Main guest Country", alias="guestCountry") + source_name: Optional[StrictStr] = Field(default=None, description="Reservation source", alias="sourceName") + source: Optional[List[GetReservationsWithRateDetailsResponseDataInnerSourceInner]] = None + source_category: Optional[StrictInt] = Field(default=None, description="Reservation source category", alias="sourceCategory") + source_reservation_id: Optional[StrictInt] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") + property_currency: Optional[StrictInt] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") + balance_detailed: Optional[List[GetReservationResponseDataBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated", alias="balanceDetailed") + detailed_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") + rooms: Optional[List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information") + __properties: ClassVar[List[str]] = ["reservationID", "isDeleted", "dateCreated", "dateCreatedUTC", "dateModified", "dateModifiedUTC", "dateCancelled", "dateCancelledUTC", "status", "reservationCheckIn", "reservationCheckOut", "guestID", "profileID", "guestCountry", "sourceName", "source", "sourceCategory", "sourceReservationID", "propertyCurrency", "balanceDetailed", "detailedRates", "rooms"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): + raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in source (list) + _items = [] + if self.source: + for _item_source in self.source: + if _item_source: + _items.append(_item_source.to_dict()) + _dict['source'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in balance_detailed (list) + _items = [] + if self.balance_detailed: + for _item_balance_detailed in self.balance_detailed: + if _item_balance_detailed: + _items.append(_item_balance_detailed.to_dict()) + _dict['balanceDetailed'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + # set to None if date_cancelled (nullable) is None + # and model_fields_set contains the field + if self.date_cancelled is None and "date_cancelled" in self.model_fields_set: + _dict['dateCancelled'] = None + + # set to None if date_cancelled_utc (nullable) is None + # and model_fields_set contains the field + if self.date_cancelled_utc is None and "date_cancelled_utc" in self.model_fields_set: + _dict['dateCancelledUTC'] = None + + # set to None if source_category (nullable) is None + # and model_fields_set contains the field + if self.source_category is None and "source_category" in self.model_fields_set: + _dict['sourceCategory'] = None + + # set to None if source_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.source_reservation_id is None and "source_reservation_id" in self.model_fields_set: + _dict['sourceReservationID'] = None + + # set to None if property_currency (nullable) is None + # and model_fields_set contains the field + if self.property_currency is None and "property_currency" in self.model_fields_set: + _dict['propertyCurrency'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservationID": obj.get("reservationID"), + "isDeleted": obj.get("isDeleted"), + "dateCreated": obj.get("dateCreated"), + "dateCreatedUTC": obj.get("dateCreatedUTC"), + "dateModified": obj.get("dateModified"), + "dateModifiedUTC": obj.get("dateModifiedUTC"), + "dateCancelled": obj.get("dateCancelled"), + "dateCancelledUTC": obj.get("dateCancelledUTC"), + "status": obj.get("status"), + "reservationCheckIn": obj.get("reservationCheckIn"), + "reservationCheckOut": obj.get("reservationCheckOut"), + "guestID": obj.get("guestID"), + "profileID": obj.get("profileID"), + "guestCountry": obj.get("guestCountry"), + "sourceName": obj.get("sourceName"), + "source": [GetReservationsWithRateDetailsResponseDataInnerSourceInner.from_dict(_item) for _item in obj["source"]] if obj.get("source") is not None else None, + "sourceCategory": obj.get("sourceCategory"), + "sourceReservationID": obj.get("sourceReservationID"), + "propertyCurrency": obj.get("propertyCurrency"), + "balanceDetailed": [GetReservationResponseDataBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, + "detailedRates": obj.get("detailedRates"), + "rooms": [GetReservationsWithRateDetailsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..cf28f81 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponseDataInnerRoomsInner(BaseModel): + """ + GetReservationsWithRateDetailsResponseDataInnerRoomsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name", alias="roomTypeName") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="sub Reservation ID (specific to each room)", alias="subReservationID") + guest_id: Optional[StrictStr] = Field(default=None, description="ID of the main guest assigned to the room", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, description="Name of the main guest assigned to the room", alias="guestName") + rate_id: Optional[StrictStr] = Field(default=None, description="ID of the rate used for the booking room", alias="rateID") + rate_name: Optional[StrictStr] = Field(default=None, description="Name of the rate used for the booking room", alias="rateName") + adults: Optional[StrictStr] = Field(default=None, description="Number of adults in the room") + children: Optional[StrictStr] = Field(default=None, description="Number of children in the room") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID (null if the reservation has not been assigned a specific room yet).", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the room, if roomID=null it does not exist.", alias="roomName") + room_check_in: Optional[StrictStr] = Field(default=None, description="Check-in date for the room", alias="roomCheckIn") + room_check_out: Optional[StrictStr] = Field(default=None, description="Check-out date for the room", alias="roomCheckOut") + room_status: Optional[StrictStr] = Field(default=None, alias="roomStatus") + detailed_room_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, with dates as indexes, and rates as values", alias="detailedRoomRates") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeIsVirtual", "roomTypeName", "subReservationID", "guestID", "guestName", "rateID", "rateName", "adults", "children", "roomID", "roomName", "roomCheckIn", "roomCheckOut", "roomStatus", "detailedRoomRates"] + + @field_validator('room_status') + def room_status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['cancelled', 'in_house', 'checked_out', 'not_checked_in']): + raise ValueError("must be one of enum values ('cancelled', 'in_house', 'checked_out', 'not_checked_in')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "roomTypeName": obj.get("roomTypeName"), + "subReservationID": obj.get("subReservationID"), + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "rateID": obj.get("rateID"), + "rateName": obj.get("rateName"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomCheckIn": obj.get("roomCheckIn"), + "roomCheckOut": obj.get("roomCheckOut"), + "roomStatus": obj.get("roomStatus"), + "detailedRoomRates": obj.get("detailedRoomRates") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py new file mode 100644 index 0000000..507153d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponseDataInnerSourceInner(BaseModel): + """ + GetReservationsWithRateDetailsResponseDataInnerSourceInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Reservation source") + payment_collect: Optional[StrictStr] = Field(default=None, description="Reservation payment collect source", alias="paymentCollect") + source_id: Optional[StrictStr] = Field(default=None, description="Booking source unique id", alias="sourceID") + category: Optional[StrictStr] = Field(default=None, description="Reservation source category") + __properties: ClassVar[List[str]] = ["name", "paymentCollect", "sourceID", "category"] + + @field_validator('payment_collect') + def payment_collect_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['hotel', 'collect']): + raise ValueError("must be one of enum values ('hotel', 'collect')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "paymentCollect": obj.get("paymentCollect"), + "sourceID": obj.get("sourceID"), + "category": obj.get("category") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_room_blocks_response.py b/cloudbeds_pms_v1_2/models/get_room_blocks_response.py new file mode 100644 index 0000000..36d6596 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_room_blocks_response.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomBlocksResponse(BaseModel): + """ + GetRoomBlocksResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetRoomBlocksResponseDataInner]] = Field(default=None, description="Room block details") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomBlocksResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomBlocksResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetRoomBlocksResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py new file mode 100644 index 0000000..167f9d9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomBlocksResponseDataInner(BaseModel): + """ + GetRoomBlocksResponseDataInner + """ # noqa: E501 + room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block", alias="roomBlockType") + room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") + start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") + rooms: Optional[List[PostRoomBlockRequestRoomsInner]] = Field(default=None, description="All rooms for Block ID") + count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned.") + __properties: ClassVar[List[str]] = ["roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "count"] + + @field_validator('room_block_type') + def room_block_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['blocked', 'out_of_service']): + raise ValueError("must be one of enum values ('blocked', 'out_of_service')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomBlocksResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomBlocksResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomBlockID": obj.get("roomBlockID"), + "roomBlockType": obj.get("roomBlockType"), + "roomBlockReason": obj.get("roomBlockReason"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rooms": [PostRoomBlockRequestRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "count": obj.get("count") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_room_types_response.py b/cloudbeds_pms_v1_2/models/get_room_types_response.py new file mode 100644 index 0000000..48633e9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_room_types_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomTypesResponse(BaseModel): + """ + GetRoomTypesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetRoomTypesResponseDataInner]] = Field(default=None, description="Room Types details") + count: Optional[StrictInt] = Field(default=None, description="Number of results in this page") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomTypesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomTypesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetRoomTypesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py new file mode 100644 index 0000000..4620938 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomTypesResponseDataInner(BaseModel): + """ + GetRoomTypesResponseDataInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name", alias="roomTypeName") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Room Type Short Name", alias="roomTypeNameShort") + room_type_description: Optional[StrictStr] = Field(default=None, description="Room Type Description", alias="roomTypeDescription") + is_private: Optional[StrictBool] = Field(default=None, description="Whether room is private or shared", alias="isPrivate") + max_guests: Optional[StrictInt] = Field(default=None, description="Max number of guests allowed in the room type", alias="maxGuests") + adults_included: Optional[StrictInt] = Field(default=None, description="Number of adults included on the basic room rate", alias="adultsIncluded") + children_included: Optional[StrictInt] = Field(default=None, description="Number of children included on the basic room rate", alias="childrenIncluded") + room_type_photos: Optional[List[StrictStr]] = Field(default=None, description="List of photos for the room type", alias="roomTypePhotos") + room_type_features: Optional[List[StrictStr]] = Field(default=None, description="List of features for the room type", alias="roomTypeFeatures") + rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available, based on the parameters provided.", alias="roomsAvailable") + room_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Basic rate for the room, based on the parameters provided. Does not return if roomsAvailable = 0.", alias="roomRate") + room_type_units: Optional[StrictInt] = Field(default=None, description="Number of rooms of a particular type", alias="roomTypeUnits") + room_type_unit_dorm_beds: Optional[StrictInt] = Field(default=None, description="Number of beds per Shared Dorm Room type", alias="roomTypeUnitDormBeds") + __properties: ClassVar[List[str]] = ["roomTypeID", "propertyID", "roomTypeName", "roomTypeNameShort", "roomTypeDescription", "isPrivate", "maxGuests", "adultsIncluded", "childrenIncluded", "roomTypePhotos", "roomTypeFeatures", "roomsAvailable", "roomRate", "roomTypeUnits", "roomTypeUnitDormBeds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomTypesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if rooms_available (nullable) is None + # and model_fields_set contains the field + if self.rooms_available is None and "rooms_available" in self.model_fields_set: + _dict['roomsAvailable'] = None + + # set to None if room_rate (nullable) is None + # and model_fields_set contains the field + if self.room_rate is None and "room_rate" in self.model_fields_set: + _dict['roomRate'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomTypesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "propertyID": obj.get("propertyID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeNameShort": obj.get("roomTypeNameShort"), + "roomTypeDescription": obj.get("roomTypeDescription"), + "isPrivate": obj.get("isPrivate"), + "maxGuests": obj.get("maxGuests"), + "adultsIncluded": obj.get("adultsIncluded"), + "childrenIncluded": obj.get("childrenIncluded"), + "roomTypePhotos": obj.get("roomTypePhotos"), + "roomTypeFeatures": obj.get("roomTypeFeatures"), + "roomsAvailable": obj.get("roomsAvailable"), + "roomRate": obj.get("roomRate"), + "roomTypeUnits": obj.get("roomTypeUnits"), + "roomTypeUnitDormBeds": obj.get("roomTypeUnitDormBeds") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py new file mode 100644 index 0000000..986aee0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsFeesAndTaxesResponse(BaseModel): + """ + GetRoomsFeesAndTaxesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetRoomsFeesAndTaxesResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetRoomsFeesAndTaxesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py new file mode 100644 index 0000000..cdc7401 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsFeesAndTaxesResponseData(BaseModel): + """ + Details of the fees and taxes applicable + """ # noqa: E501 + fees: Optional[List[GetRoomsFeesAndTaxesResponseDataFeesInner]] = Field(default=None, description="Details of the fees applicable") + taxes: Optional[List[GetRoomsFeesAndTaxesResponseDataTaxesInner]] = Field(default=None, description="Details of the taxes applicable") + rooms_total_without_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="\"roomsTotal\" parameter subtracting the included taxes", alias="roomsTotalWithoutTaxes") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total with fees and taxes", alias="grandTotal") + __properties: ClassVar[List[str]] = ["fees", "taxes", "roomsTotalWithoutTaxes", "grandTotal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in fees (list) + _items = [] + if self.fees: + for _item_fees in self.fees: + if _item_fees: + _items.append(_item_fees.to_dict()) + _dict['fees'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) + _items = [] + if self.taxes: + for _item_taxes in self.taxes: + if _item_taxes: + _items.append(_item_taxes.to_dict()) + _dict['taxes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fees": [GetRoomsFeesAndTaxesResponseDataFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None, + "taxes": [GetRoomsFeesAndTaxesResponseDataTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, + "roomsTotalWithoutTaxes": obj.get("roomsTotalWithoutTaxes"), + "grandTotal": obj.get("grandTotal") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py new file mode 100644 index 0000000..b826327 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsFeesAndTaxesResponseDataFeesInner(BaseModel): + """ + GetRoomsFeesAndTaxesResponseDataFeesInner + """ # noqa: E501 + fee_name: Optional[StrictStr] = Field(default=None, description="Name of the fee", alias="feeName") + fee_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Value of the fee for the selected parameters", alias="feeValue") + total_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total value of the fees", alias="totalFees") + __properties: ClassVar[List[str]] = ["feeName", "feeValue", "totalFees"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponseDataFeesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponseDataFeesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feeName": obj.get("feeName"), + "feeValue": obj.get("feeValue"), + "totalFees": obj.get("totalFees") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py new file mode 100644 index 0000000..feb8d75 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsFeesAndTaxesResponseDataTaxesInner(BaseModel): + """ + GetRoomsFeesAndTaxesResponseDataTaxesInner + """ # noqa: E501 + fee_name: Optional[StrictStr] = Field(default=None, description="Name of the tax", alias="feeName") + fee_value: Optional[StrictStr] = Field(default=None, description="Value of the tax for the selected parameters", alias="feeValue") + total_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total value of the taxes", alias="totalTaxes") + __properties: ClassVar[List[str]] = ["feeName", "feeValue", "totalTaxes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponseDataTaxesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsFeesAndTaxesResponseDataTaxesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feeName": obj.get("feeName"), + "feeValue": obj.get("feeValue"), + "totalTaxes": obj.get("totalTaxes") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response.py b/cloudbeds_pms_v1_2/models/get_rooms_response.py new file mode 100644 index 0000000..4244378 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsResponse(BaseModel): + """ + GetRoomsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetRoomsResponseDataInner]] = Field(default=None, description="Room Types details") + count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results, can be more than what was returned") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetRoomsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py new file mode 100644 index 0000000..daa310c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsResponseDataInner(BaseModel): + """ + GetRoomsResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + rooms: Optional[List[GetRoomsResponseDataInnerRoomsInner]] = Field(default=None, description="All rooms for property ID") + __properties: ClassVar[List[str]] = ["propertyID", "rooms"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "rooms": [GetRoomsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..682e5dd --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsResponseDataInnerRoomsInner(BaseModel): + """ + GetRoomsResponseDataInnerRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name", alias="roomName") + dorm_room_name: Optional[StrictStr] = Field(default=None, description="Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type", alias="dormRoomName") + room_description: Optional[StrictStr] = Field(default=None, description="Room Description", alias="roomDescription") + max_guests: Optional[StrictInt] = Field(default=None, description="Number of guests that room allows", alias="maxGuests") + is_private: Optional[StrictBool] = Field(default=None, description="If room is private (true) or shared (false)", alias="isPrivate") + is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="isVirtual") + room_blocked: Optional[StrictBool] = Field(default=None, description="If room is blocked on calendar during the period selected. If no check-in/out dates are sent, it returns the status for the current day.", alias="roomBlocked") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room type Name", alias="roomTypeName") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Room type Short Name", alias="roomTypeNameShort") + linked_room_ids: Optional[List[StrictStr]] = Field(default=None, description="List of linked room IDs for this room (including nested relations). Only returned if includeRoomRelations is set to true", alias="linkedRoomIDs") + linked_room_type_ids: Optional[List[StrictStr]] = Field(default=None, description="List of linked room type IDs. Only returned if includeRoomRelations is set to true", alias="linkedRoomTypeIDs") + linked_room_type_qty: Optional[List[GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner]] = Field(default=None, description="Data about linked rooms count, grouped by room type. Only returned if includeRoomRelations is set to true", alias="linkedRoomTypeQty") + __properties: ClassVar[List[str]] = ["roomID", "roomName", "dormRoomName", "roomDescription", "maxGuests", "isPrivate", "isVirtual", "roomBlocked", "roomTypeID", "roomTypeName", "roomTypeNameShort", "linkedRoomIDs", "linkedRoomTypeIDs", "linkedRoomTypeQty"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsResponseDataInnerRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in linked_room_type_qty (list) + _items = [] + if self.linked_room_type_qty: + for _item_linked_room_type_qty in self.linked_room_type_qty: + if _item_linked_room_type_qty: + _items.append(_item_linked_room_type_qty.to_dict()) + _dict['linkedRoomTypeQty'] = _items + # set to None if linked_room_ids (nullable) is None + # and model_fields_set contains the field + if self.linked_room_ids is None and "linked_room_ids" in self.model_fields_set: + _dict['linkedRoomIDs'] = None + + # set to None if linked_room_type_ids (nullable) is None + # and model_fields_set contains the field + if self.linked_room_type_ids is None and "linked_room_type_ids" in self.model_fields_set: + _dict['linkedRoomTypeIDs'] = None + + # set to None if linked_room_type_qty (nullable) is None + # and model_fields_set contains the field + if self.linked_room_type_qty is None and "linked_room_type_qty" in self.model_fields_set: + _dict['linkedRoomTypeQty'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsResponseDataInnerRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "dormRoomName": obj.get("dormRoomName"), + "roomDescription": obj.get("roomDescription"), + "maxGuests": obj.get("maxGuests"), + "isPrivate": obj.get("isPrivate"), + "isVirtual": obj.get("isVirtual"), + "roomBlocked": obj.get("roomBlocked"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeNameShort": obj.get("roomTypeNameShort"), + "linkedRoomIDs": obj.get("linkedRoomIDs"), + "linkedRoomTypeIDs": obj.get("linkedRoomTypeIDs"), + "linkedRoomTypeQty": [GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.from_dict(_item) for _item in obj["linkedRoomTypeQty"]] if obj.get("linkedRoomTypeQty") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py new file mode 100644 index 0000000..cc5997a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner(BaseModel): + """ + GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") + room_qty: Optional[StrictInt] = Field(default=None, description="Related rooms count", alias="roomQty") + __properties: ClassVar[List[str]] = ["roomTypeId", "roomQty"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeId'] = None + + # set to None if room_qty (nullable) is None + # and model_fields_set contains the field + if self.room_qty is None and "room_qty" in self.model_fields_set: + _dict['roomQty'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeId": obj.get("roomTypeId"), + "roomQty": obj.get("roomQty") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py b/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py new file mode 100644 index 0000000..3cce11d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsUnassignedResponse(BaseModel): + """ + GetRoomsUnassignedResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetRoomsUnassignedResponseDataInner]] = Field(default=None, description="Room Types details") + count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned") + total: Optional[StrictInt] = Field(default=None, description="Total number of results, can be more than what was returned") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsUnassignedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsUnassignedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetRoomsUnassignedResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py new file mode 100644 index 0000000..10745bb --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsUnassignedResponseDataInner(BaseModel): + """ + GetRoomsUnassignedResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + rooms: Optional[List[GetRoomsUnassignedResponseDataInnerRoomsInner]] = Field(default=None, description="All rooms for property ID") + __properties: ClassVar[List[str]] = ["propertyID", "rooms"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsUnassignedResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsUnassignedResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "rooms": [GetRoomsUnassignedResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..5c92837 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetRoomsUnassignedResponseDataInnerRoomsInner(BaseModel): + """ + GetRoomsUnassignedResponseDataInnerRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name", alias="roomName") + dorm_room_name: Optional[StrictStr] = Field(default=None, description="Name of the dorm room. Used for the shared dorm beds that are organized into rooms within the same room type", alias="dormRoomName") + room_description: Optional[StrictStr] = Field(default=None, description="Room Description", alias="roomDescription") + max_guests: Optional[StrictInt] = Field(default=None, description="Number of guests that room allows", alias="maxGuests") + is_private: Optional[StrictBool] = Field(default=None, description="If room is private (true) or shared (false)", alias="isPrivate") + is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="isVirtual") + room_blocked: Optional[StrictBool] = Field(default=None, description="If room is blocked on calendar during the period selected. If no check-in/out dates are sent, it returns the status for the current day.", alias="roomBlocked") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room type Name", alias="roomTypeName") + room_type_name_short: Optional[StrictStr] = Field(default=None, description="Room type Short Name", alias="roomTypeNameShort") + __properties: ClassVar[List[str]] = ["roomID", "roomName", "dormRoomName", "roomDescription", "maxGuests", "isPrivate", "isVirtual", "roomBlocked", "roomTypeID", "roomTypeName", "roomTypeNameShort"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetRoomsUnassignedResponseDataInnerRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetRoomsUnassignedResponseDataInnerRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "dormRoomName": obj.get("dormRoomName"), + "roomDescription": obj.get("roomDescription"), + "maxGuests": obj.get("maxGuests"), + "isPrivate": obj.get("isPrivate"), + "isVirtual": obj.get("isVirtual"), + "roomBlocked": obj.get("roomBlocked"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeNameShort": obj.get("roomTypeNameShort") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_sources_response.py b/cloudbeds_pms_v1_2/models/get_sources_response.py new file mode 100644 index 0000000..4058674 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_sources_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetSourcesResponse(BaseModel): + """ + GetSourcesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetSourcesResponseDataInner]] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetSourcesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetSourcesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetSourcesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py new file mode 100644 index 0000000..f5dccd4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetSourcesResponseDataInner(BaseModel): + """ + GetSourcesResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property Id", alias="propertyID") + source_id: Optional[StrictStr] = Field(default=None, description="Source Identifier", alias="sourceID") + source_name: Optional[StrictStr] = Field(default=None, description="Source Name", alias="sourceName") + is_third_party: Optional[StrictBool] = Field(default=None, description="true if source is from third party", alias="isThirdParty") + status: Optional[StrictBool] = Field(default=None, description="true if source is active") + commission: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="How much commission charged by source (in %)") + payment_collect: Optional[StrictStr] = Field(default=None, description="Type of payment collect practiced by source", alias="paymentCollect") + taxes: Optional[List[GetSourcesResponseDataInnerTaxesInner]] = None + fees: Optional[List[GetSourcesResponseDataInnerFeesInner]] = None + __properties: ClassVar[List[str]] = ["propertyID", "sourceID", "sourceName", "isThirdParty", "status", "commission", "paymentCollect", "taxes", "fees"] + + @field_validator('payment_collect') + def payment_collect_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['hotel', 'channel']): + raise ValueError("must be one of enum values ('hotel', 'channel')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetSourcesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) + _items = [] + if self.taxes: + for _item_taxes in self.taxes: + if _item_taxes: + _items.append(_item_taxes.to_dict()) + _dict['taxes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in fees (list) + _items = [] + if self.fees: + for _item_fees in self.fees: + if _item_fees: + _items.append(_item_fees.to_dict()) + _dict['fees'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetSourcesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "sourceID": obj.get("sourceID"), + "sourceName": obj.get("sourceName"), + "isThirdParty": obj.get("isThirdParty"), + "status": obj.get("status"), + "commission": obj.get("commission"), + "paymentCollect": obj.get("paymentCollect"), + "taxes": [GetSourcesResponseDataInnerTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, + "fees": [GetSourcesResponseDataInnerFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py b/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py new file mode 100644 index 0000000..9206073 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetSourcesResponseDataInnerFeesInner(BaseModel): + """ + GetSourcesResponseDataInnerFeesInner + """ # noqa: E501 + fee_id: Optional[StrictInt] = Field(default=None, description="ID of fee", alias="feeID") + name: Optional[StrictStr] = Field(default=None, description="Name of fee") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Value of fee") + amount_type: Optional[StrictStr] = Field(default=None, description="If fee is percentage of amount or fixed", alias="amountType") + type: Optional[StrictStr] = Field(default=None, description="If fee is included or not in final price") + __properties: ClassVar[List[str]] = ["feeID", "name", "amount", "amountType", "type"] + + @field_validator('amount_type') + def amount_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['percentage', 'fixed']): + raise ValueError("must be one of enum values ('percentage', 'fixed')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['exclusive', 'inclusive']): + raise ValueError("must be one of enum values ('exclusive', 'inclusive')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetSourcesResponseDataInnerFeesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetSourcesResponseDataInnerFeesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feeID": obj.get("feeID"), + "name": obj.get("name"), + "amount": obj.get("amount"), + "amountType": obj.get("amountType"), + "type": obj.get("type") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py b/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py new file mode 100644 index 0000000..06b3ee9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetSourcesResponseDataInnerTaxesInner(BaseModel): + """ + GetSourcesResponseDataInnerTaxesInner + """ # noqa: E501 + tax_id: Optional[StrictStr] = Field(default=None, description="ID of tax", alias="taxID") + name: Optional[StrictStr] = Field(default=None, description="Name of tax") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Value of tax") + amount_type: Optional[StrictStr] = Field(default=None, description="If tax is percentage of amount or fixed", alias="amountType") + type: Optional[StrictStr] = Field(default=None, description="If tax is included or not in final price") + __properties: ClassVar[List[str]] = ["taxID", "name", "amount", "amountType", "type"] + + @field_validator('amount_type') + def amount_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['percentage', 'fixed']): + raise ValueError("must be one of enum values ('percentage', 'fixed')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['exclusive', 'inclusive']): + raise ValueError("must be one of enum values ('exclusive', 'inclusive')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetSourcesResponseDataInnerTaxesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetSourcesResponseDataInnerTaxesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taxID": obj.get("taxID"), + "name": obj.get("name"), + "amount": obj.get("amount"), + "amountType": obj.get("amountType"), + "type": obj.get("type") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py new file mode 100644 index 0000000..9b126d4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponse(BaseModel): + """ + GetTaxesAndFeesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + data: Optional[List[GetTaxesAndFeesResponseDataInner]] = Field(default=None, description="Details for the taxes and fees. If success = false, it may not exist.") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + __properties: ClassVar[List[str]] = ["success", "message", "data", "total"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if data (nullable) is None + # and model_fields_set contains the field + if self.data is None and "data" in self.model_fields_set: + _dict['data'] = None + + # set to None if total (nullable) is None + # and model_fields_set contains the field + if self.total is None and "total" in self.model_fields_set: + _dict['total'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": [GetTaxesAndFeesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "total": obj.get("total") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py new file mode 100644 index 0000000..5460136 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInner(BaseModel): + """ + GetTaxesAndFeesResponseDataInner + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Type. Fee or tax.") + fee_id: Optional[StrictInt] = Field(default=None, description="Fee's unique identifier. Only exists if type = fee.", alias="feeID") + tax_id: Optional[StrictInt] = Field(default=None, description="Tax's unique identifier. Only exists if type = tax.", alias="taxID") + name: Optional[StrictStr] = Field(default=None, description="Name") + code: Optional[StrictStr] = Field(default=None, description="Code") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount") + amount_adult: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountAdult") + amount_child: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountChild") + amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]] = Field(default=None, description="Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based)", alias="amountRateBased") + amount_type: Optional[StrictStr] = Field(default=None, description="Amount type. They mean:
ValueMeaning
percentagePercentage of Total Amount
fixedFixed per Room Night / Item
fixed_per_personFixed per Person per Night
fixed_per_accomodationFixed per Accomodation
fixed_per_reservationFixed per Reservation
percentage_rate_basedRate-based
", alias="amountType") + available_for: Optional[List[StrictStr]] = Field(default=None, description="Where this tax/fee is available?
They mean:
ValueMeaning
productItems
rateReservations
feeFees -- this tax is charged on top of some fees
", alias="availableFor") + fees_charged: Optional[List[StrictInt]] = Field(default=None, description="List of Fee IDs charged by the current tax. Only exists if type = tax.", alias="feesCharged") + inclusive_or_exclusive: Optional[StrictStr] = Field(default=None, description="If this tax/fee is inclusive or exclusive", alias="inclusiveOrExclusive") + is_deleted: Optional[StrictBool] = Field(default=None, description="Flag indicating if tax was deleted from the system", alias="isDeleted") + child_id: Optional[StrictStr] = Field(default=None, description="ID of the tax or fee that replaced current one", alias="childId") + created_at: Optional[StrictStr] = Field(default=None, description="Date when tax or fee was created in the system", alias="createdAt") + expired_at: Optional[StrictStr] = Field(default=None, description="Date when tax or fee was expired", alias="expiredAt") + __properties: ClassVar[List[str]] = ["type", "feeID", "taxID", "name", "code", "amount", "amountAdult", "amountChild", "amountRateBased", "amountType", "availableFor", "feesCharged", "inclusiveOrExclusive", "isDeleted", "childId", "createdAt", "expiredAt"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['fee', 'tax']): + raise ValueError("must be one of enum values ('fee', 'tax')") + return value + + @field_validator('amount_type') + def amount_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['percentage', 'fixed', 'fixed_per_person', 'fixed_per_accomodation', 'fixed_per_reservation', 'percentage_rate_based']): + raise ValueError("must be one of enum values ('percentage', 'fixed', 'fixed_per_person', 'fixed_per_accomodation', 'fixed_per_reservation', 'percentage_rate_based')") + return value + + @field_validator('available_for') + def available_for_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set([]): + raise ValueError("each list item must be one of ()") + return value + + @field_validator('inclusive_or_exclusive') + def inclusive_or_exclusive_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['inclusive', 'exclusive']): + raise ValueError("must be one of enum values ('inclusive', 'exclusive')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in amount_rate_based (list) + _items = [] + if self.amount_rate_based: + for _item_amount_rate_based in self.amount_rate_based: + if _item_amount_rate_based: + _items.append(_item_amount_rate_based.to_dict()) + _dict['amountRateBased'] = _items + # set to None if fee_id (nullable) is None + # and model_fields_set contains the field + if self.fee_id is None and "fee_id" in self.model_fields_set: + _dict['feeID'] = None + + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if amount_rate_based (nullable) is None + # and model_fields_set contains the field + if self.amount_rate_based is None and "amount_rate_based" in self.model_fields_set: + _dict['amountRateBased'] = None + + # set to None if fees_charged (nullable) is None + # and model_fields_set contains the field + if self.fees_charged is None and "fees_charged" in self.model_fields_set: + _dict['feesCharged'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "feeID": obj.get("feeID"), + "taxID": obj.get("taxID"), + "name": obj.get("name"), + "code": obj.get("code"), + "amount": obj.get("amount"), + "amountAdult": obj.get("amountAdult"), + "amountChild": obj.get("amountChild"), + "amountRateBased": [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None, + "amountType": obj.get("amountType"), + "availableFor": obj.get("availableFor"), + "feesCharged": obj.get("feesCharged"), + "inclusiveOrExclusive": obj.get("inclusiveOrExclusive"), + "isDeleted": obj.get("isDeleted"), + "childId": obj.get("childId"), + "createdAt": obj.get("createdAt"), + "expiredAt": obj.get("expiredAt") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py new file mode 100644 index 0000000..025a23c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInnerAmountRateBasedInner(BaseModel): + """ + GetTaxesAndFeesResponseDataInnerAmountRateBasedInner + """ # noqa: E501 + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum rate for which this amount is valid") + percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage applied for the rate") + __properties: ClassVar[List[str]] = ["rate", "percentage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rate": obj.get("rate"), + "percentage": obj.get("percentage") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_transactions_response.py b/cloudbeds_pms_v1_2/models/get_transactions_response.py new file mode 100644 index 0000000..938ba8a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_transactions_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTransactionsResponse(BaseModel): + """ + GetTransactionsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetTransactionsResponseDataInner]] = Field(default=None, description="Transaction list covering the date range specified") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination and filter parameters") + total: Optional[StrictInt] = Field(default=None, description="Total count of results, based on filter parameters") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTransactionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTransactionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetTransactionsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py new file mode 100644 index 0000000..36e360a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetTransactionsResponseDataInner(BaseModel): + """ + GetTransactionsResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID", alias="subReservationID") + house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID", alias="houseAccountID") + house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name", alias="houseAccountName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + property_name: Optional[StrictStr] = Field(default=None, description="Property Name", alias="propertyName") + transaction_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored", alias="transactionDateTime") + transaction_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored, in UTC timezone", alias="transactionDateTimeUTC") + transaction_modified_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified", alias="transactionModifiedDateTime") + transaction_modified_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified, in UTC timezone", alias="transactionModifiedDateTimeUTC") + guest_check_in: Optional[date] = Field(default=None, description="Reservation Check-in date", alias="guestCheckIn") + guest_check_out: Optional[date] = Field(default=None, description="Reservation Check-out date", alias="guestCheckOut") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type", alias="roomTypeName") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room.", alias="roomName") + guest_name: Optional[StrictStr] = Field(default=None, description="Name of the first guest of the reservation", alias="guestName") + description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") + category: Optional[StrictStr] = Field(default=None, description="Category of the transaction") + transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction identifier that can be used, or left blank", alias="transactionCode") + notes: Optional[StrictStr] = Field(default=None, description="If any special information needs to be added to the transaction, it will be in this field") + quantity: Optional[StrictInt] = None + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") + currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") + user_name: Optional[StrictStr] = Field(default=None, description="User responsible for creating the transaction", alias="userName") + transaction_type: Optional[StrictStr] = Field(default=None, description="Consolidated transaction type", alias="transactionType") + transaction_category: Optional[StrictStr] = Field(default=None, description="Transaction category", alias="transactionCategory") + item_category_name: Optional[StrictStr] = Field(default=None, description="Item category name", alias="itemCategoryName") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") + card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") + is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted"] + + @field_validator('transaction_type') + def transaction_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['debit', 'credit']): + raise ValueError("must be one of enum values ('debit', 'credit')") + return value + + @field_validator('transaction_category') + def transaction_category_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void']): + raise ValueError("must be one of enum values ('adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTransactionsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if house_account_id (nullable) is None + # and model_fields_set contains the field + if self.house_account_id is None and "house_account_id" in self.model_fields_set: + _dict['houseAccountID'] = None + + # set to None if house_account_name (nullable) is None + # and model_fields_set contains the field + if self.house_account_name is None and "house_account_name" in self.model_fields_set: + _dict['houseAccountName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTransactionsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "houseAccountID": obj.get("houseAccountID"), + "houseAccountName": obj.get("houseAccountName"), + "guestID": obj.get("guestID"), + "propertyName": obj.get("propertyName"), + "transactionDateTime": obj.get("transactionDateTime"), + "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), + "transactionModifiedDateTime": obj.get("transactionModifiedDateTime"), + "transactionModifiedDateTimeUTC": obj.get("transactionModifiedDateTimeUTC"), + "guestCheckIn": obj.get("guestCheckIn"), + "guestCheckOut": obj.get("guestCheckOut"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomName": obj.get("roomName"), + "guestName": obj.get("guestName"), + "description": obj.get("description"), + "category": obj.get("category"), + "transactionCode": obj.get("transactionCode"), + "notes": obj.get("notes"), + "quantity": obj.get("quantity"), + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "userName": obj.get("userName"), + "transactionType": obj.get("transactionType"), + "transactionCategory": obj.get("transactionCategory"), + "itemCategoryName": obj.get("itemCategoryName"), + "transactionID": obj.get("transactionID"), + "parentTransactionID": obj.get("parentTransactionID"), + "cardType": obj.get("cardType"), + "isDeleted": obj.get("isDeleted") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_userinfo_response.py b/cloudbeds_pms_v1_2/models/get_userinfo_response.py new file mode 100644 index 0000000..c624516 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_userinfo_response.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetUserinfoResponse(BaseModel): + """ + GetUserinfoResponse + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, description="ID of user") + first_name: Optional[StrictStr] = Field(default=None, description="Authorized users' first name.") + last_name: Optional[StrictStr] = Field(default=None, description="Authorized users' last name.") + email: Optional[StrictStr] = Field(default=None, description="Authorized users' email.") + acl: Optional[List[StrictStr]] = Field(default=None, description="Authorized users' access control list.") + roles: Optional[List[GetUserinfoResponseRolesInner]] = Field(default=None, description="Authorized users' role information.") + __properties: ClassVar[List[str]] = ["user_id", "first_name", "last_name", "email", "acl", "roles"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUserinfoResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item_roles in self.roles: + if _item_roles: + _items.append(_item_roles.to_dict()) + _dict['roles'] = _items + # set to None if acl (nullable) is None + # and model_fields_set contains the field + if self.acl is None and "acl" in self.model_fields_set: + _dict['acl'] = None + + # set to None if roles (nullable) is None + # and model_fields_set contains the field + if self.roles is None and "roles" in self.model_fields_set: + _dict['roles'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUserinfoResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_id": obj.get("user_id"), + "first_name": obj.get("first_name"), + "last_name": obj.get("last_name"), + "email": obj.get("email"), + "acl": obj.get("acl"), + "roles": [GetUserinfoResponseRolesInner.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py b/cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py new file mode 100644 index 0000000..fc35222 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetUserinfoResponseRolesInner(BaseModel): + """ + GetUserinfoResponseRolesInner + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="ID of the role.") + name: Optional[StrictStr] = Field(default=None, description="Name of the role.") + description: Optional[StrictStr] = Field(default=None, description="Description of the role.") + __properties: ClassVar[List[str]] = ["id", "name", "description"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUserinfoResponseRolesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if description (nullable) is None + # and model_fields_set contains the field + if self.description is None and "description" in self.model_fields_set: + _dict['description'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUserinfoResponseRolesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "description": obj.get("description") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_users_response.py b/cloudbeds_pms_v1_2/models/get_users_response.py new file mode 100644 index 0000000..6aba2fc --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_users_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetUsersResponse(BaseModel): + """ + GetUsersResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetUsersResponseDataInner]] = Field(default=None, description="Details for the users") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetUsersResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_users_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_users_response_data_inner.py new file mode 100644 index 0000000..27a5f7c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_users_response_data_inner.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from typing import Optional, Set +from typing_extensions import Self + +class GetUsersResponseDataInner(BaseModel): + """ + GetUsersResponseDataInner + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, description="User ID", alias="userID") + first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="firstName") + last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="lastName") + email: Optional[StrictStr] = Field(default=None, description="Email") + language: Optional[StrictStr] = Field(default=None, description="User Language|Property Default Language. See the full list of available language parameters here") + user_role: Optional[GetUsersResponseDataInnerUserRole] = Field(default=None, alias="userRole") + active: Optional[StrictStr] = None + last_login: Optional[date] = Field(default=None, description="Date and time of the last login event", alias="lastLogin") + property_id: Optional[StrictStr] = Field(default=None, description="Property numeric identifier", alias="propertyId") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization ID", alias="organizationID") + __properties: ClassVar[List[str]] = ["userID", "firstName", "lastName", "email", "language", "userRole", "active", "lastLogin", "propertyId", "organizationID"] + + @field_validator('active') + def active_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['yes', 'no']): + raise ValueError("must be one of enum values ('yes', 'no')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUsersResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user_role + if self.user_role: + _dict['userRole'] = self.user_role.to_dict() + # set to None if organization_id (nullable) is None + # and model_fields_set contains the field + if self.organization_id is None and "organization_id" in self.model_fields_set: + _dict['organizationID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUsersResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userID": obj.get("userID"), + "firstName": obj.get("firstName"), + "lastName": obj.get("lastName"), + "email": obj.get("email"), + "language": obj.get("language"), + "userRole": GetUsersResponseDataInnerUserRole.from_dict(obj["userRole"]) if obj.get("userRole") is not None else None, + "active": obj.get("active"), + "lastLogin": obj.get("lastLogin"), + "propertyId": obj.get("propertyId"), + "organizationID": obj.get("organizationID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py b/cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py new file mode 100644 index 0000000..c7c0ceb --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetUsersResponseDataInnerUserRole(BaseModel): + """ + Details for the role + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Role's name") + description: Optional[StrictStr] = Field(default=None, description="Role's description") + __properties: ClassVar[List[str]] = ["name", "description"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUsersResponseDataInnerUserRole from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUsersResponseDataInnerUserRole from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "description": obj.get("description") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response.py b/cloudbeds_pms_v1_2/models/get_webhooks_response.py new file mode 100644 index 0000000..3d299d4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_webhooks_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetWebhooksResponse(BaseModel): + """ + GetWebhooksResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetWebhooksResponseDataInner]] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWebhooksResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWebhooksResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetWebhooksResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py new file mode 100644 index 0000000..5479d37 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from typing import Optional, Set +from typing_extensions import Self + +class GetWebhooksResponseDataInner(BaseModel): + """ + GetWebhooksResponseDataInner + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Subscription ID") + key: Optional[GetWebhooksResponseDataInnerKey] = None + event: Optional[GetWebhooksResponseDataInnerEvent] = None + owner: Optional[GetWebhooksResponseDataInnerOwner] = None + subscription_type: Optional[StrictStr] = Field(default=None, description="Subscription Type (Webhook)", alias="subscriptionType") + subscription_data: Optional[GetWebhooksResponseDataInnerSubscriptionData] = Field(default=None, alias="subscriptionData") + __properties: ClassVar[List[str]] = ["id", "key", "event", "owner", "subscriptionType", "subscriptionData"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of key + if self.key: + _dict['key'] = self.key.to_dict() + # override the default output from pydantic by calling `to_dict()` of event + if self.event: + _dict['event'] = self.event.to_dict() + # override the default output from pydantic by calling `to_dict()` of owner + if self.owner: + _dict['owner'] = self.owner.to_dict() + # override the default output from pydantic by calling `to_dict()` of subscription_data + if self.subscription_data: + _dict['subscriptionData'] = self.subscription_data.to_dict() + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + # set to None if key (nullable) is None + # and model_fields_set contains the field + if self.key is None and "key" in self.model_fields_set: + _dict['key'] = None + + # set to None if event (nullable) is None + # and model_fields_set contains the field + if self.event is None and "event" in self.model_fields_set: + _dict['event'] = None + + # set to None if owner (nullable) is None + # and model_fields_set contains the field + if self.owner is None and "owner" in self.model_fields_set: + _dict['owner'] = None + + # set to None if subscription_type (nullable) is None + # and model_fields_set contains the field + if self.subscription_type is None and "subscription_type" in self.model_fields_set: + _dict['subscriptionType'] = None + + # set to None if subscription_data (nullable) is None + # and model_fields_set contains the field + if self.subscription_data is None and "subscription_data" in self.model_fields_set: + _dict['subscriptionData'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "key": GetWebhooksResponseDataInnerKey.from_dict(obj["key"]) if obj.get("key") is not None else None, + "event": GetWebhooksResponseDataInnerEvent.from_dict(obj["event"]) if obj.get("event") is not None else None, + "owner": GetWebhooksResponseDataInnerOwner.from_dict(obj["owner"]) if obj.get("owner") is not None else None, + "subscriptionType": obj.get("subscriptionType"), + "subscriptionData": GetWebhooksResponseDataInnerSubscriptionData.from_dict(obj["subscriptionData"]) if obj.get("subscriptionData") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py new file mode 100644 index 0000000..ad1d725 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetWebhooksResponseDataInnerEvent(BaseModel): + """ + Event for which the subscription was created + """ # noqa: E501 + entity: Optional[StrictStr] = Field(default=None, description="Entity which the event belongs to") + action: Optional[StrictStr] = Field(default=None, description="Action which the event represents") + __properties: ClassVar[List[str]] = ["entity", "action"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerEvent from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if entity (nullable) is None + # and model_fields_set contains the field + if self.entity is None and "entity" in self.model_fields_set: + _dict['entity'] = None + + # set to None if action (nullable) is None + # and model_fields_set contains the field + if self.action is None and "action" in self.model_fields_set: + _dict['action'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerEvent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "entity": obj.get("entity"), + "action": obj.get("action") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py new file mode 100644 index 0000000..e2b00ec --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetWebhooksResponseDataInnerKey(BaseModel): + """ + Subscription Key object (User, Property or Association and it's ID) + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Subscription Key type") + id: Optional[StrictStr] = Field(default=None, description="Subscription Key ID") + __properties: ClassVar[List[str]] = ["type", "id"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['user', 'property', 'association']): + raise ValueError("must be one of enum values ('user', 'property', 'association')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerKey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerKey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "id": obj.get("id") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py new file mode 100644 index 0000000..2d39074 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetWebhooksResponseDataInnerOwner(BaseModel): + """ + Subscription Owner object (User, API Client, etc, and it's ID) + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Subscription Owner type") + id: Optional[StrictStr] = Field(default=None, description="Subscription Owner ID") + __properties: ClassVar[List[str]] = ["type", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerOwner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if id (nullable) is None + # and model_fields_set contains the field + if self.id is None and "id" in self.model_fields_set: + _dict['id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerOwner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "id": obj.get("id") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py new file mode 100644 index 0000000..5d6df4f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetWebhooksResponseDataInnerSubscriptionData(BaseModel): + """ + Data used on the subscription. For webhooks, just the endpoint URL. + """ # noqa: E501 + endpoint: Optional[StrictStr] = Field(default=None, description="The endpoint") + __properties: ClassVar[List[str]] = ["endpoint"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerSubscriptionData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if endpoint (nullable) is None + # and model_fields_set contains the field + if self.endpoint is None and "endpoint" in self.model_fields_set: + _dict['endpoint'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetWebhooksResponseDataInnerSubscriptionData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endpoint": obj.get("endpoint") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_access_token_response.py b/cloudbeds_pms_v1_2/models/post_access_token_response.py new file mode 100644 index 0000000..561f528 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_access_token_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from typing import Optional, Set +from typing_extensions import Self + +class PostAccessTokenResponse(BaseModel): + """ + PostAccessTokenResponse + """ # noqa: E501 + access_token: Optional[StrictStr] = Field(default=None, description="Authenticated access token.") + token_type: Optional[StrictStr] = Field(default=None, description="The type of the access token authenticated.") + expires_in: Optional[StrictInt] = Field(default=None, description="The expiration time of the access token in seconds.") + refresh_token: Optional[StrictStr] = Field(default=None, description="A token to refresh your access token without performing the full auth flow.") + resources: Optional[List[PostAccessTokenResponseResourcesInner]] = Field(default=None, description="List of resources associated with the token during consent") + __properties: ClassVar[List[str]] = ["access_token", "token_type", "expires_in", "refresh_token", "resources"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAccessTokenResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in resources (list) + _items = [] + if self.resources: + for _item_resources in self.resources: + if _item_resources: + _items.append(_item_resources.to_dict()) + _dict['resources'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAccessTokenResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "access_token": obj.get("access_token"), + "token_type": obj.get("token_type"), + "expires_in": obj.get("expires_in"), + "refresh_token": obj.get("refresh_token"), + "resources": [PostAccessTokenResponseResourcesInner.from_dict(_item) for _item in obj["resources"]] if obj.get("resources") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py b/cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py new file mode 100644 index 0000000..95d39ec --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAccessTokenResponseResourcesInner(BaseModel): + """ + PostAccessTokenResponseResourcesInner + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="A type of associated resource") + id: Optional[StrictStr] = Field(default=None, description="Unique ID of associated resource") + __properties: ClassVar[List[str]] = ["type", "id"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['property', 'association']): + raise ValueError("must be one of enum values ('property', 'association')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAccessTokenResponseResourcesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAccessTokenResponseResourcesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "id": obj.get("id") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_adjustment_response.py b/cloudbeds_pms_v1_2/models/post_adjustment_response.py new file mode 100644 index 0000000..b7175db --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_adjustment_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostAdjustmentResponse(BaseModel): + """ + PostAdjustmentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostAdjustmentResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAdjustmentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAdjustmentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostAdjustmentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_adjustment_response_data.py b/cloudbeds_pms_v1_2/models/post_adjustment_response_data.py new file mode 100644 index 0000000..62bb6a8 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_adjustment_response_data.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAdjustmentResponseData(BaseModel): + """ + post Adjustment details + """ # noqa: E501 + adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment transaction identifier", alias="adjustmentID") + __properties: ClassVar[List[str]] = ["adjustmentID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAdjustmentResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAdjustmentResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adjustmentID": obj.get("adjustmentID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_app_error_response.py b/cloudbeds_pms_v1_2/models/post_app_error_response.py new file mode 100644 index 0000000..52b9acb --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_app_error_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostAppErrorResponse(BaseModel): + """ + PostAppErrorResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostAppErrorResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppErrorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppErrorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostAppErrorResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_app_error_response_data.py b/cloudbeds_pms_v1_2/models/post_app_error_response_data.py new file mode 100644 index 0000000..6169f65 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_app_error_response_data.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAppErrorResponseData(BaseModel): + """ + Integration state details + """ # noqa: E501 + error_id: Optional[StrictStr] = Field(default=None, description="Unique ID of error recorded in Cloudbeds", alias="errorID") + __properties: ClassVar[List[str]] = ["errorID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppErrorResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppErrorResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errorID": obj.get("errorID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_app_property_setting_response.py b/cloudbeds_pms_v1_2/models/post_app_property_setting_response.py new file mode 100644 index 0000000..64e821b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_app_property_setting_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostAppPropertySettingResponse(BaseModel): + """ + PostAppPropertySettingResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + data: Optional[PostAppPropertySettingResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppPropertySettingResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppPropertySettingResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostAppPropertySettingResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py b/cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py new file mode 100644 index 0000000..c086662 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAppPropertySettingResponseData(BaseModel): + """ + Data + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="ID") + key: Optional[StrictStr] = Field(default=None, description="Key") + value: Optional[StrictStr] = Field(default=None, description="Value") + __properties: ClassVar[List[str]] = ["id", "key", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppPropertySettingResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppPropertySettingResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "key": obj.get("key"), + "value": obj.get("value") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_app_state_response.py b/cloudbeds_pms_v1_2/models/post_app_state_response.py new file mode 100644 index 0000000..9369f48 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_app_state_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAppStateResponse(BaseModel): + """ + PostAppStateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppStateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppStateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_append_custom_item_response.py b/cloudbeds_pms_v1_2/models/post_append_custom_item_response.py new file mode 100644 index 0000000..ffe9d0b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_append_custom_item_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostAppendCustomItemResponse(BaseModel): + """ + PostAppendCustomItemResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostAppendCustomItemResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppendCustomItemResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppendCustomItemResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostAppendCustomItemResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py b/cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py new file mode 100644 index 0000000..b2af3ef --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAppendCustomItemResponseData(BaseModel): + """ + Sold product details + """ # noqa: E501 + sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + __properties: ClassVar[List[str]] = ["soldProductID", "transactionID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppendCustomItemResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppendCustomItemResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "soldProductID": obj.get("soldProductID"), + "transactionID": obj.get("transactionID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_card_response.py b/cloudbeds_pms_v1_2/models/post_card_response.py new file mode 100644 index 0000000..1aaf893 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_card_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostCardResponse(BaseModel): + """ + PostCardResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostCardResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCardResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCardResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostCardResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_card_response_data.py b/cloudbeds_pms_v1_2/models/post_card_response_data.py new file mode 100644 index 0000000..4680719 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_card_response_data.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCardResponseData(BaseModel): + """ + Rates details + """ # noqa: E501 + card_id: Optional[StrictStr] = Field(default=None, description="Card ID", alias="cardID") + card_number: Optional[StrictStr] = Field(default=None, description="Ending digits of the credit card", alias="cardNumber") + card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") + redirect_url: Optional[StrictStr] = Field(default=None, description="null if no 3ds required", alias="redirectUrl") + __properties: ClassVar[List[str]] = ["cardID", "cardNumber", "cardType", "redirectUrl"] + + @field_validator('card_type') + def card_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['visa', 'master', 'amex', 'aura', 'diners', 'hiper', 'elo', 'Discover', 'jcb', 'maestro', 'dan', 'PostCard', 'Eurocard', 'сunion']): + raise ValueError("must be one of enum values ('visa', 'master', 'amex', 'aura', 'diners', 'hiper', 'elo', 'Discover', 'jcb', 'maestro', 'dan', 'PostCard', 'Eurocard', 'сunion')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCardResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCardResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cardID": obj.get("cardID"), + "cardNumber": obj.get("cardNumber"), + "cardType": obj.get("cardType"), + "redirectUrl": obj.get("redirectUrl") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_charge_response.py b/cloudbeds_pms_v1_2/models/post_charge_response.py new file mode 100644 index 0000000..7a8ea2e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_charge_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostChargeResponse(BaseModel): + """ + PostChargeResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request was completed") + data: Optional[PostChargeResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostChargeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostChargeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostChargeResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_charge_response_data.py b/cloudbeds_pms_v1_2/models/post_charge_response_data.py new file mode 100644 index 0000000..3fb00cc --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_charge_response_data.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from typing import Optional, Set +from typing_extensions import Self + +class PostChargeResponseData(BaseModel): + """ + Payment details + """ # noqa: E501 + payment_id: Optional[StrictStr] = Field(default=None, description="Payment ID", alias="paymentID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction ID", alias="transactionID") + payment_status: Optional[StrictStr] = Field(default=None, description="the status of the payment, could be 'pending' if the payment requires a next action", alias="paymentStatus") + payment_type: Optional[StrictStr] = Field(default=None, description="detected payment type. Ex: 'cards', 'oxxo'", alias="paymentType") + next_action: Optional[PostChargeResponseDataNextAction] = Field(default=None, alias="nextAction") + __properties: ClassVar[List[str]] = ["paymentID", "transactionID", "paymentStatus", "paymentType", "nextAction"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostChargeResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of next_action + if self.next_action: + _dict['nextAction'] = self.next_action.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostChargeResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paymentID": obj.get("paymentID"), + "transactionID": obj.get("transactionID"), + "paymentStatus": obj.get("paymentStatus"), + "paymentType": obj.get("paymentType"), + "nextAction": PostChargeResponseDataNextAction.from_dict(obj["nextAction"]) if obj.get("nextAction") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py b/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py new file mode 100644 index 0000000..e261e08 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from typing import Optional, Set +from typing_extensions import Self + +class PostChargeResponseDataNextAction(BaseModel): + """ + not set if no next action is required + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="The type of next action required. Ex: 'redirect'") + details: Optional[PostChargeResponseDataNextActionDetails] = None + __properties: ClassVar[List[str]] = ["type", "details"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostChargeResponseDataNextAction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of details + if self.details: + _dict['details'] = self.details.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostChargeResponseDataNextAction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "details": PostChargeResponseDataNextActionDetails.from_dict(obj["details"]) if obj.get("details") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py b/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py new file mode 100644 index 0000000..a2d4006 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostChargeResponseDataNextActionDetails(BaseModel): + """ + The details of the next action + """ # noqa: E501 + url: Optional[StrictStr] = Field(default=None, description="The URL to redirect the user to") + method: Optional[StrictStr] = Field(default=None, description="The HTTP method to use when redirecting the user") + __properties: ClassVar[List[str]] = ["url", "method"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostChargeResponseDataNextActionDetails from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostChargeResponseDataNextActionDetails from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "url": obj.get("url"), + "method": obj.get("method") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py new file mode 100644 index 0000000..7082b2d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockNotesResponse(BaseModel): + """ + PostCreateAllotmentBlockNotesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostCreateAllotmentBlockNotesResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockNotesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockNotesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostCreateAllotmentBlockNotesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py new file mode 100644 index 0000000..8ca0fb7 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockNotesResponseData(BaseModel): + """ + The created note + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Note ID") + text: Optional[StrictStr] = Field(default=None, description="Note contents") + created_by: Optional[StrictStr] = Field(default=None, description="User Name", alias="createdBy") + created_at: Optional[datetime] = Field(default=None, description="Creation datetime (format: Y-m-d H:i:s)", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="Last modification datetime (format: Y-m-d H:i:s)", alias="updatedAt") + archived_at: Optional[datetime] = Field(default=None, description="Archival datetime (format: Y-m-d H:i:s)", alias="archivedAt") + status: Optional[StrictStr] = Field(default=None, description="Note status") + __properties: ClassVar[List[str]] = ["id", "text", "createdBy", "createdAt", "updatedAt", "archivedAt", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockNotesResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if archived_at (nullable) is None + # and model_fields_set contains the field + if self.archived_at is None and "archived_at" in self.model_fields_set: + _dict['archivedAt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockNotesResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "text": obj.get("text"), + "createdBy": obj.get("createdBy"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "archivedAt": obj.get("archivedAt"), + "status": obj.get("status") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py new file mode 100644 index 0000000..958470e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockRequestAllotmentIntervalsInner(BaseModel): + """ + PostCreateAllotmentBlockRequestAllotmentIntervalsInner + """ # noqa: E501 + availability: Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]] = None + __properties: ClassVar[List[str]] = ["availability"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in availability (list) + _items = [] + if self.availability: + for _item_availability in self.availability: + if _item_availability: + _items.append(_item_availability.to_dict()) + _dict['availability'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "availability": [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_dict(_item) for _item in obj["availability"]] if obj.get("availability") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py new file mode 100644 index 0000000..71a3b1c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(BaseModel): + """ + PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, description="the day within the interval (YYYY-MM-DD)", alias="date") + block_allotted: Optional[StrictInt] = Field(default=None, description="Total number of units available for the", alias="blockAllotted") + rate: Optional[StrictStr] = Field(default=None, description="the price if applicable") + guest_pricing: Optional[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing] = Field(default=None, alias="guestPricing") + restrictions: Optional[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions] = None + __properties: ClassVar[List[str]] = ["date", "blockAllotted", "rate", "guestPricing", "restrictions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of guest_pricing + if self.guest_pricing: + _dict['guestPricing'] = self.guest_pricing.to_dict() + # override the default output from pydantic by calling `to_dict()` of restrictions + if self.restrictions: + _dict['restrictions'] = self.restrictions.to_dict() + # set to None if rate (nullable) is None + # and model_fields_set contains the field + if self.rate is None and "rate" in self.model_fields_set: + _dict['rate'] = None + + # set to None if guest_pricing (nullable) is None + # and model_fields_set contains the field + if self.guest_pricing is None and "guest_pricing" in self.model_fields_set: + _dict['guestPricing'] = None + + # set to None if restrictions (nullable) is None + # and model_fields_set contains the field + if self.restrictions is None and "restrictions" in self.model_fields_set: + _dict['restrictions'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "blockAllotted": obj.get("blockAllotted"), + "rate": obj.get("rate"), + "guestPricing": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None, + "restrictions": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py new file mode 100644 index 0000000..3781c6a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(BaseModel): + """ + Guest pricing data if applicable. Note: the number of applicable keys varies here based on the occupancy settings for the room type. + """ # noqa: E501 + adult1: Optional[StrictStr] = Field(default=None, description="Price for adult 1") + adult2: Optional[StrictStr] = Field(default=None, description="Price for adult 2") + adult3: Optional[StrictStr] = Field(default=None, description="Price for adult 3") + child1: Optional[StrictStr] = Field(default=None, description="Price for child 1") + child2: Optional[StrictStr] = Field(default=None, description="Price for child 2") + child3: Optional[StrictStr] = Field(default=None, description="Price for child 3") + __properties: ClassVar[List[str]] = ["adult1", "adult2", "adult3", "child1", "child2", "child3"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if adult1 (nullable) is None + # and model_fields_set contains the field + if self.adult1 is None and "adult1" in self.model_fields_set: + _dict['adult1'] = None + + # set to None if adult2 (nullable) is None + # and model_fields_set contains the field + if self.adult2 is None and "adult2" in self.model_fields_set: + _dict['adult2'] = None + + # set to None if adult3 (nullable) is None + # and model_fields_set contains the field + if self.adult3 is None and "adult3" in self.model_fields_set: + _dict['adult3'] = None + + # set to None if child1 (nullable) is None + # and model_fields_set contains the field + if self.child1 is None and "child1" in self.model_fields_set: + _dict['child1'] = None + + # set to None if child2 (nullable) is None + # and model_fields_set contains the field + if self.child2 is None and "child2" in self.model_fields_set: + _dict['child2'] = None + + # set to None if child3 (nullable) is None + # and model_fields_set contains the field + if self.child3 is None and "child3" in self.model_fields_set: + _dict['child3'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adult1": obj.get("adult1"), + "adult2": obj.get("adult2"), + "adult3": obj.get("adult3"), + "child1": obj.get("child1"), + "child2": obj.get("child2"), + "child3": obj.get("child3") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py new file mode 100644 index 0000000..bc64988 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(BaseModel): + """ + Interval restrictions if applicable + """ # noqa: E501 + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") + cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should guests be required to book", alias="cutOffDays") + last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="How many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") + closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure", alias="closedToDeparture") + __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if min_los (nullable) is None + # and model_fields_set contains the field + if self.min_los is None and "min_los" in self.model_fields_set: + _dict['minLos'] = None + + # set to None if max_los (nullable) is None + # and model_fields_set contains the field + if self.max_los is None and "max_los" in self.model_fields_set: + _dict['maxLos'] = None + + # set to None if cut_off_days (nullable) is None + # and model_fields_set contains the field + if self.cut_off_days is None and "cut_off_days" in self.model_fields_set: + _dict['cutOffDays'] = None + + # set to None if last_minute_booking_days (nullable) is None + # and model_fields_set contains the field + if self.last_minute_booking_days is None and "last_minute_booking_days" in self.model_fields_set: + _dict['lastMinuteBookingDays'] = None + + # set to None if closed_to_arrival (nullable) is None + # and model_fields_set contains the field + if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: + _dict['closedToArrival'] = None + + # set to None if closed_to_departure (nullable) is None + # and model_fields_set contains the field + if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: + _dict['closedToDeparture'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos"), + "cutOffDays": obj.get("cutOffDays"), + "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py new file mode 100644 index 0000000..ad6315e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockRequestAutoRelease(BaseModel): + """ + Optional auto-release configuration + """ # noqa: E501 + release_type: Optional[StrictStr] = Field(default=None, description="The type of auto-release", alias="releaseType") + days: Optional[StrictInt] = Field(default=None, description="The number of days prior to the end of the allotment block to begin releasing dates from the allotment block") + release_time: Optional[StrictStr] = Field(default=None, description="The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'...", alias="releaseTime") + __properties: ClassVar[List[str]] = ["releaseType", "days", "releaseTime"] + + @field_validator('release_type') + def release_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['all_dates', 'by_day', 'by_interval']): + raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAutoRelease from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if release_type (nullable) is None + # and model_fields_set contains the field + if self.release_type is None and "release_type" in self.model_fields_set: + _dict['releaseType'] = None + + # set to None if days (nullable) is None + # and model_fields_set contains the field + if self.days is None and "days" in self.model_fields_set: + _dict['days'] = None + + # set to None if release_time (nullable) is None + # and model_fields_set contains the field + if self.release_time is None and "release_time" in self.model_fields_set: + _dict['releaseTime'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockRequestAutoRelease from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "releaseType": obj.get("releaseType"), + "days": obj.get("days"), + "releaseTime": obj.get("releaseTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py new file mode 100644 index 0000000..73687b4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockResponse(BaseModel): + """ + PostCreateAllotmentBlockResponse + """ # noqa: E501 + start_date: Optional[date] = Field(default=None, description="Date on or after which each returned allotmentBlock applies", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Date on or before which each returned allotmentBlock applies", alias="endDate") + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[PostCreateAllotmentBlockResponseDataInner]] = Field(default=None, description="Allotment Blocks") + __properties: ClassVar[List[str]] = ["startDate", "endDate", "success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "success": obj.get("success"), + "data": [PostCreateAllotmentBlockResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py new file mode 100644 index 0000000..bc07f02 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockResponseDataInner(BaseModel): + """ + PostCreateAllotmentBlockResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID associated to the allotment block", alias="propertyID") + allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + allotment_block_status: Optional[StrictStr] = Field(default=None, description="Allotment block status", alias="allotmentBlockStatus") + allotment_block_name: Optional[StrictStr] = Field(default=None, description="Allotment block name", alias="allotmentBlockName") + allotment_block_id: Optional[StrictStr] = Field(default=None, description="Allotment block ID", alias="allotmentBlockId") + rate_type: Optional[StrictStr] = Field(default=None, description="Rate type for the allotment block", alias="rateType") + rate_plan_id: Optional[StrictStr] = Field(default=None, description="Rate plan ID if applicable", alias="ratePlanId") + allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") + group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") + group_code: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block", alias="groupCode") + is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") + auto_release: Optional[PostCreateAllotmentBlockResponseDataInnerAutoRelease] = Field(default=None, alias="autoRelease") + allotment_intervals: Optional[List[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") + __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of auto_release + if self.auto_release: + _dict['autoRelease'] = self.auto_release.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in allotment_intervals (list) + _items = [] + if self.allotment_intervals: + for _item_allotment_intervals in self.allotment_intervals: + if _item_allotment_intervals: + _items.append(_item_allotment_intervals.to_dict()) + _dict['allotmentIntervals'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "allotmentBlockCode": obj.get("allotmentBlockCode"), + "allotmentBlockStatus": obj.get("allotmentBlockStatus"), + "allotmentBlockName": obj.get("allotmentBlockName"), + "allotmentBlockId": obj.get("allotmentBlockId"), + "rateType": obj.get("rateType"), + "ratePlanId": obj.get("ratePlanId"), + "allotmentType": obj.get("allotmentType"), + "groupId": obj.get("groupId"), + "groupCode": obj.get("groupCode"), + "isAutoRelease": obj.get("isAutoRelease"), + "autoRelease": PostCreateAllotmentBlockResponseDataInnerAutoRelease.from_dict(obj["autoRelease"]) if obj.get("autoRelease") is not None else None, + "allotmentIntervals": [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..df032bf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(BaseModel): + """ + PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") + start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") + availability: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability] = None + restrictions: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions] = None + __properties: ClassVar[List[str]] = ["roomTypeId", "startDate", "endDate", "availability", "restrictions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of availability + if self.availability: + _dict['availability'] = self.availability.to_dict() + # override the default output from pydantic by calling `to_dict()` of restrictions + if self.restrictions: + _dict['restrictions'] = self.restrictions.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeId": obj.get("roomTypeId"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "availability": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.from_dict(obj["availability"]) if obj.get("availability") is not None else None, + "restrictions": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py new file mode 100644 index 0000000..86ef060 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability(BaseModel): + """ + Interval availability data by day in interval + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, description="Day within interval", alias="date") + block_remaining: Optional[StrictInt] = Field(default=None, description="Number of units remaining for the room type for this day", alias="blockRemaining") + block_allotted: Optional[StrictInt] = Field(default=None, description="Total number of units available for the room type for this day", alias="blockAllotted") + block_confirmed: Optional[StrictInt] = Field(default=None, description="Number of units booked for the room type for this day", alias="blockConfirmed") + rate: Optional[StrictStr] = Field(default=None, description="the price") + guest_pricing: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing] = Field(default=None, alias="guestPricing") + __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of guest_pricing + if self.guest_pricing: + _dict['guestPricing'] = self.guest_pricing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "blockRemaining": obj.get("blockRemaining"), + "blockAllotted": obj.get("blockAllotted"), + "blockConfirmed": obj.get("blockConfirmed"), + "rate": obj.get("rate"), + "guestPricing": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py new file mode 100644 index 0000000..656dedf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing(BaseModel): + """ + Guest pricing data if applicable. Note: the number of results varies here based on the occupancy settings and custom guest pricing for the room type. + """ # noqa: E501 + adult1: Optional[StrictStr] = Field(default=None, description="Price for adult 1") + adult2: Optional[StrictStr] = Field(default=None, description="Price for adult 2") + adult3: Optional[StrictStr] = Field(default=None, description="Price for adult 3") + child1: Optional[StrictStr] = Field(default=None, description="Price for child 1") + child2: Optional[StrictStr] = Field(default=None, description="Price for child 2") + child3: Optional[StrictStr] = Field(default=None, description="Price for child 3") + __properties: ClassVar[List[str]] = ["adult1", "adult2", "adult3", "child1", "child2", "child3"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adult1": obj.get("adult1"), + "adult2": obj.get("adult2"), + "adult3": obj.get("adult3"), + "child1": obj.get("child1"), + "child2": obj.get("child2"), + "child3": obj.get("child3") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..e907cd1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(BaseModel): + """ + Interval restrictions if applicable + """ # noqa: E501 + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") + cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should the guests be required to book", alias="cutOffDays") + last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="Hoe many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") + closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure", alias="closedToDeparture") + __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos"), + "cutOffDays": obj.get("cutOffDays"), + "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py new file mode 100644 index 0000000..b412f48 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCreateAllotmentBlockResponseDataInnerAutoRelease(BaseModel): + """ + auto-release data if applicable + """ # noqa: E501 + release_type: Optional[StrictStr] = Field(default=None, description="The type of auto-release", alias="releaseType") + days: Optional[StrictInt] = Field(default=None, description="The number of days prior to the end of the allotment block to begin releasing dates from the allotment block") + release_time: Optional[StrictStr] = Field(default=None, description="The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'...", alias="releaseTime") + __properties: ClassVar[List[str]] = ["releaseType", "days", "releaseTime"] + + @field_validator('release_type') + def release_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['all_dates', 'by_day', 'by_interval']): + raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAutoRelease from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCreateAllotmentBlockResponseDataInnerAutoRelease from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "releaseType": obj.get("releaseType"), + "days": obj.get("days"), + "releaseTime": obj.get("releaseTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_field_response.py b/cloudbeds_pms_v1_2/models/post_custom_field_response.py new file mode 100644 index 0000000..3399b87 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_field_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomFieldResponse(BaseModel): + """ + PostCustomFieldResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostCustomFieldResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomFieldResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomFieldResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostCustomFieldResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_field_response_data.py b/cloudbeds_pms_v1_2/models/post_custom_field_response_data.py new file mode 100644 index 0000000..b181be4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_field_response_data.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomFieldResponseData(BaseModel): + """ + Field details + """ # noqa: E501 + field_id: Optional[StrictStr] = Field(default=None, description="Field name", alias="fieldID") + name: Optional[StrictStr] = Field(default=None, description="Field name") + shortcode: Optional[StrictStr] = Field(default=None, description="Internal reference and is used for integration purposes such as custom links and the API") + __properties: ClassVar[List[str]] = ["fieldID", "name", "shortcode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomFieldResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomFieldResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fieldID": obj.get("fieldID"), + "name": obj.get("name"), + "shortcode": obj.get("shortcode") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py b/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py new file mode 100644 index 0000000..165e52b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomItemRequestItemsInner(BaseModel): + """ + PostCustomItemRequestItemsInner + """ # noqa: E501 + app_item_id: Optional[StrictStr] = Field(default=None, description="Identifier of item. Future calls using the same ID will use previously sent item name and description. Item name/description sent in new request will be ignored.", alias="appItemID") + item_sku: Optional[StrictStr] = Field(default=None, description="Item SKU identifier", alias="itemSKU") + item_quantity: Optional[StrictInt] = Field(default=None, description="Items quantity", alias="itemQuantity") + item_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Item price", alias="itemPrice") + item_name: Optional[StrictStr] = Field(default=None, description="Item name", alias="itemName") + item_category_name: Optional[StrictStr] = Field(default=None, description="Item category name", alias="itemCategoryName") + item_note: Optional[StrictStr] = Field(default=None, description="Item note", alias="itemNote") + item_taxes: Optional[List[PostCustomItemRequestItemsInnerItemTaxesInner]] = Field(default=None, description="list of taxes applied to item", alias="itemTaxes") + item_fees: Optional[List[PostCustomItemRequestItemsInnerItemFeesInner]] = Field(default=None, description="list of fees applied to item", alias="itemFees") + __properties: ClassVar[List[str]] = ["appItemID", "itemSKU", "itemQuantity", "itemPrice", "itemName", "itemCategoryName", "itemNote", "itemTaxes", "itemFees"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomItemRequestItemsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in item_taxes (list) + _items = [] + if self.item_taxes: + for _item_item_taxes in self.item_taxes: + if _item_item_taxes: + _items.append(_item_item_taxes.to_dict()) + _dict['itemTaxes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in item_fees (list) + _items = [] + if self.item_fees: + for _item_item_fees in self.item_fees: + if _item_item_fees: + _items.append(_item_item_fees.to_dict()) + _dict['itemFees'] = _items + # set to None if item_sku (nullable) is None + # and model_fields_set contains the field + if self.item_sku is None and "item_sku" in self.model_fields_set: + _dict['itemSKU'] = None + + # set to None if item_category_name (nullable) is None + # and model_fields_set contains the field + if self.item_category_name is None and "item_category_name" in self.model_fields_set: + _dict['itemCategoryName'] = None + + # set to None if item_note (nullable) is None + # and model_fields_set contains the field + if self.item_note is None and "item_note" in self.model_fields_set: + _dict['itemNote'] = None + + # set to None if item_taxes (nullable) is None + # and model_fields_set contains the field + if self.item_taxes is None and "item_taxes" in self.model_fields_set: + _dict['itemTaxes'] = None + + # set to None if item_fees (nullable) is None + # and model_fields_set contains the field + if self.item_fees is None and "item_fees" in self.model_fields_set: + _dict['itemFees'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomItemRequestItemsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "appItemID": obj.get("appItemID"), + "itemSKU": obj.get("itemSKU"), + "itemQuantity": obj.get("itemQuantity"), + "itemPrice": obj.get("itemPrice"), + "itemName": obj.get("itemName"), + "itemCategoryName": obj.get("itemCategoryName"), + "itemNote": obj.get("itemNote"), + "itemTaxes": [PostCustomItemRequestItemsInnerItemTaxesInner.from_dict(_item) for _item in obj["itemTaxes"]] if obj.get("itemTaxes") is not None else None, + "itemFees": [PostCustomItemRequestItemsInnerItemFeesInner.from_dict(_item) for _item in obj["itemFees"]] if obj.get("itemFees") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py b/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py new file mode 100644 index 0000000..495d951 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomItemRequestItemsInnerItemFeesInner(BaseModel): + """ + PostCustomItemRequestItemsInnerItemFeesInner + """ # noqa: E501 + fee_name: Optional[StrictStr] = Field(default=None, description="fee name", alias="feeName") + fee_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="fee value", alias="feeValue") + __properties: ClassVar[List[str]] = ["feeName", "feeValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomItemRequestItemsInnerItemFeesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomItemRequestItemsInnerItemFeesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feeName": obj.get("feeName"), + "feeValue": obj.get("feeValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py b/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py new file mode 100644 index 0000000..a2d1986 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomItemRequestItemsInnerItemTaxesInner(BaseModel): + """ + PostCustomItemRequestItemsInnerItemTaxesInner + """ # noqa: E501 + tax_name: Optional[StrictStr] = Field(default=None, description="tax name", alias="taxName") + tax_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="tax value", alias="taxValue") + __properties: ClassVar[List[str]] = ["taxName", "taxValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomItemRequestItemsInnerItemTaxesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomItemRequestItemsInnerItemTaxesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "taxName": obj.get("taxName"), + "taxValue": obj.get("taxValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py b/cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py new file mode 100644 index 0000000..0ba456d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomItemRequestPaymentsInner(BaseModel): + """ + PostCustomItemRequestPaymentsInner + """ # noqa: E501 + payment_type: Optional[StrictStr] = Field(default=None, description="Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.", alias="paymentType") + card_type: Optional[StrictStr] = Field(default=None, description="When paymentType is cards or credit, the cardType could be specified (visa, master etc.). The list of types can be found with [getPaymentMethods](#api-Payment-getPaymentMethods) (cardCode inside cardTypes). If omitted, payment is treated as Credit Card Without Details.", alias="cardType") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="payment amount") + notes: Optional[StrictStr] = Field(default=None, description="payment note") + __properties: ClassVar[List[str]] = ["paymentType", "cardType", "amount", "notes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomItemRequestPaymentsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if card_type (nullable) is None + # and model_fields_set contains the field + if self.card_type is None and "card_type" in self.model_fields_set: + _dict['cardType'] = None + + # set to None if notes (nullable) is None + # and model_fields_set contains the field + if self.notes is None and "notes" in self.model_fields_set: + _dict['notes'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomItemRequestPaymentsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paymentType": obj.get("paymentType"), + "cardType": obj.get("cardType"), + "amount": obj.get("amount"), + "notes": obj.get("notes") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_response.py b/cloudbeds_pms_v1_2/models/post_custom_item_response.py new file mode 100644 index 0000000..ac1c8a5 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_item_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomItemResponse(BaseModel): + """ + PostCustomItemResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostCustomItemResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomItemResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomItemResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostCustomItemResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_response_data.py b/cloudbeds_pms_v1_2/models/post_custom_item_response_data.py new file mode 100644 index 0000000..c330064 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_item_response_data.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomItemResponseData(BaseModel): + """ + Sold product details + """ # noqa: E501 + sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + notice: Optional[StrictStr] = Field(default=None, description="In case that a referenceID was sent, for second time, this field will alert that nothing was created or updated.") + __properties: ClassVar[List[str]] = ["soldProductID", "transactionID", "notice"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomItemResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomItemResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "soldProductID": obj.get("soldProductID"), + "transactionID": obj.get("transactionID"), + "notice": obj.get("notice") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py b/cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py new file mode 100644 index 0000000..7903c23 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCustomPaymentMethodResponse(BaseModel): + """ + PostCustomPaymentMethodResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCustomPaymentMethodResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCustomPaymentMethodResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py b/cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py new file mode 100644 index 0000000..2e340f4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostDeleteAllotmentBlockResponse(BaseModel): + """ + PostDeleteAllotmentBlockResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostDeleteAllotmentBlockResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostDeleteAllotmentBlockResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py b/cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py new file mode 100644 index 0000000..ffaef0c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostDeleteAppPropertySettingsResponse(BaseModel): + """ + PostDeleteAppPropertySettingsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + message: Optional[StrictStr] = Field(default=None, description="Response message") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostDeleteAppPropertySettingsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostDeleteAppPropertySettingsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py b/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py new file mode 100644 index 0000000..d4b730d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from typing import Optional, Set +from typing_extensions import Self + +class PostEmailScheduleRequestSchedule(BaseModel): + """ + + """ # noqa: E501 + reservation_status_change: Optional[PostEmailScheduleRequestScheduleReservationStatusChange] = Field(default=None, alias="reservationStatusChange") + reservation_event: Optional[PostEmailScheduleRequestScheduleReservationEvent] = Field(default=None, alias="reservationEvent") + __properties: ClassVar[List[str]] = ["reservationStatusChange", "reservationEvent"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostEmailScheduleRequestSchedule from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of reservation_status_change + if self.reservation_status_change: + _dict['reservationStatusChange'] = self.reservation_status_change.to_dict() + # override the default output from pydantic by calling `to_dict()` of reservation_event + if self.reservation_event: + _dict['reservationEvent'] = self.reservation_event.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostEmailScheduleRequestSchedule from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reservationStatusChange": PostEmailScheduleRequestScheduleReservationStatusChange.from_dict(obj["reservationStatusChange"]) if obj.get("reservationStatusChange") is not None else None, + "reservationEvent": PostEmailScheduleRequestScheduleReservationEvent.from_dict(obj["reservationEvent"]) if obj.get("reservationEvent") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py b/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py new file mode 100644 index 0000000..c8e4c5b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostEmailScheduleRequestScheduleReservationEvent(BaseModel): + """ + + """ # noqa: E501 + event: Optional[StrictStr] = Field(default=None, description="Specify event that triggers email sending") + days: Optional[StrictInt] = Field(default=None, description="Number of days prior to or after the event") + time: Optional[StrictStr] = Field(default=None, description="Time of the day") + __properties: ClassVar[List[str]] = ["event", "days", "time"] + + @field_validator('event') + def event_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['after_booking', 'after_check_out', 'after_check_in', 'before_check_out', 'before_check_in']): + raise ValueError("must be one of enum values ('after_booking', 'after_check_out', 'after_check_in', 'before_check_out', 'before_check_in')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostEmailScheduleRequestScheduleReservationEvent from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostEmailScheduleRequestScheduleReservationEvent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "event": obj.get("event"), + "days": obj.get("days"), + "time": obj.get("time") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py b/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py new file mode 100644 index 0000000..2e55882 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostEmailScheduleRequestScheduleReservationStatusChange(BaseModel): + """ + + """ # noqa: E501 + status: Optional[StrictStr] = Field(default=None, description="Specify which reservation status change triggers sending the email") + __properties: ClassVar[List[str]] = ["status"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): + raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostEmailScheduleRequestScheduleReservationStatusChange from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostEmailScheduleRequestScheduleReservationStatusChange from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_response.py b/cloudbeds_pms_v1_2/models/post_email_schedule_response.py new file mode 100644 index 0000000..cca0701 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_email_schedule_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostEmailScheduleResponse(BaseModel): + """ + PostEmailScheduleResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + email_schedule_id: Optional[StrictStr] = Field(default=None, description="The ID of the created email schedule. Only present if success = true", alias="emailScheduleID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "emailScheduleID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostEmailScheduleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if email_schedule_id (nullable) is None + # and model_fields_set contains the field + if self.email_schedule_id is None and "email_schedule_id" in self.model_fields_set: + _dict['emailScheduleID'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostEmailScheduleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "emailScheduleID": obj.get("emailScheduleID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_email_template_request_body.py b/cloudbeds_pms_v1_2/models/post_email_template_request_body.py new file mode 100644 index 0000000..5db2d6b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_email_template_request_body.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostEmailTemplateRequestBody(BaseModel): + """ + Email message body. The body key should be a language code (IETF). A few examples are listed below. + """ # noqa: E501 + en: Optional[StrictStr] = Field(default=None, description="Email message body in English") + es: Optional[StrictStr] = Field(default=None, description="Email message body in Spanish") + ru: Optional[StrictStr] = Field(default=None, description="Email message body in Russian") + pt_br: Optional[StrictStr] = Field(default=None, description="Email message body in Portuguese", alias="pt-br") + __properties: ClassVar[List[str]] = ["en", "es", "ru", "pt-br"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostEmailTemplateRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if en (nullable) is None + # and model_fields_set contains the field + if self.en is None and "en" in self.model_fields_set: + _dict['en'] = None + + # set to None if es (nullable) is None + # and model_fields_set contains the field + if self.es is None and "es" in self.model_fields_set: + _dict['es'] = None + + # set to None if ru (nullable) is None + # and model_fields_set contains the field + if self.ru is None and "ru" in self.model_fields_set: + _dict['ru'] = None + + # set to None if pt_br (nullable) is None + # and model_fields_set contains the field + if self.pt_br is None and "pt_br" in self.model_fields_set: + _dict['pt-br'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostEmailTemplateRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "en": obj.get("en"), + "es": obj.get("es"), + "ru": obj.get("ru"), + "pt-br": obj.get("pt-br") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_email_template_request_subject.py b/cloudbeds_pms_v1_2/models/post_email_template_request_subject.py new file mode 100644 index 0000000..334fdcf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_email_template_request_subject.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostEmailTemplateRequestSubject(BaseModel): + """ + Email message subject. The subject key should be a language code (IETF). A few examples are listed below. + """ # noqa: E501 + en: Optional[StrictStr] = Field(default=None, description="Email message subject in English") + es: Optional[StrictStr] = Field(default=None, description="Email message subject in Spanish") + ru: Optional[StrictStr] = Field(default=None, description="Email message subject in Russian") + pt_br: Optional[StrictStr] = Field(default=None, description="Email message subject in Portuguese", alias="pt-br") + __properties: ClassVar[List[str]] = ["en", "es", "ru", "pt-br"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostEmailTemplateRequestSubject from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if en (nullable) is None + # and model_fields_set contains the field + if self.en is None and "en" in self.model_fields_set: + _dict['en'] = None + + # set to None if es (nullable) is None + # and model_fields_set contains the field + if self.es is None and "es" in self.model_fields_set: + _dict['es'] = None + + # set to None if ru (nullable) is None + # and model_fields_set contains the field + if self.ru is None and "ru" in self.model_fields_set: + _dict['ru'] = None + + # set to None if pt_br (nullable) is None + # and model_fields_set contains the field + if self.pt_br is None and "pt_br" in self.model_fields_set: + _dict['pt-br'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostEmailTemplateRequestSubject from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "en": obj.get("en"), + "es": obj.get("es"), + "ru": obj.get("ru"), + "pt-br": obj.get("pt-br") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_email_template_response.py b/cloudbeds_pms_v1_2/models/post_email_template_response.py new file mode 100644 index 0000000..3f9ea96 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_email_template_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostEmailTemplateResponse(BaseModel): + """ + PostEmailTemplateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + email_template_id: Optional[StrictStr] = Field(default=None, description="The ID of the created email template. Only present if success = true", alias="emailTemplateID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "emailTemplateID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostEmailTemplateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if email_template_id (nullable) is None + # and model_fields_set contains the field + if self.email_template_id is None and "email_template_id" in self.model_fields_set: + _dict['emailTemplateID'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostEmailTemplateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "emailTemplateID": obj.get("emailTemplateID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_file_response.py b/cloudbeds_pms_v1_2/models/post_file_response.py new file mode 100644 index 0000000..77436e3 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_file_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostFileResponse(BaseModel): + """ + PostFileResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + data: Optional[PostGuestDocumentResponseData] = None + __properties: ClassVar[List[str]] = ["success", "message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostFileResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostFileResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": PostGuestDocumentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_government_receipt_response.py b/cloudbeds_pms_v1_2/models/post_government_receipt_response.py new file mode 100644 index 0000000..22b210a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_government_receipt_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGovernmentReceiptResponse(BaseModel): + """ + PostGovernmentReceiptResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGovernmentReceiptResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGovernmentReceiptResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_group_note_response.py b/cloudbeds_pms_v1_2/models/post_group_note_response.py new file mode 100644 index 0000000..b2d51b5 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_group_note_response.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class PostGroupNoteResponse(BaseModel): + """ + PostGroupNoteResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + code: Optional[StrictInt] = Field(default=None, description="code HTTP status code") + data: Optional[List[PostGroupNoteResponseDataInner]] = Field(default=None, description="Data") + __properties: ClassVar[List[str]] = ["success", "code", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGroupNoteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGroupNoteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "code": obj.get("code"), + "data": [PostGroupNoteResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py b/cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py new file mode 100644 index 0000000..7ff6f4e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGroupNoteResponseDataInner(BaseModel): + """ + PostGroupNoteResponseDataInner + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="ID for the note") + group_profile_id: Optional[StrictStr] = Field(default=None, description="Group profile ID") + text: Optional[StrictStr] = Field(default=None, description="Note text") + created_by: Optional[StrictStr] = Field(default=None, description="Created by") + created_at: Optional[StrictStr] = Field(default=None, description="Created at") + updated_at: Optional[StrictStr] = Field(default=None, description="Updated at") + archived: Optional[StrictStr] = Field(default=None, description="Note archived") + archived_at: Optional[StrictStr] = Field(default=None, description="Note archived at") + __properties: ClassVar[List[str]] = ["id", "group_profile_id", "text", "created_by", "created_at", "updated_at", "archived", "archived_at"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGroupNoteResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGroupNoteResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "group_profile_id": obj.get("group_profile_id"), + "text": obj.get("text"), + "created_by": obj.get("created_by"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "archived": obj.get("archived"), + "archived_at": obj.get("archived_at") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guest_document_response.py b/cloudbeds_pms_v1_2/models/post_guest_document_response.py new file mode 100644 index 0000000..4f9ecba --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_guest_document_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestDocumentResponse(BaseModel): + """ + PostGuestDocumentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + data: Optional[PostGuestDocumentResponseData] = None + __properties: ClassVar[List[str]] = ["success", "message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestDocumentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestDocumentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": PostGuestDocumentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guest_document_response_data.py b/cloudbeds_pms_v1_2/models/post_guest_document_response_data.py new file mode 100644 index 0000000..fb241ae --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_guest_document_response_data.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestDocumentResponseData(BaseModel): + """ + Details for the uploaded file + """ # noqa: E501 + file_id: Optional[StrictStr] = Field(default=None, description="uploaded file identifier", alias="fileID") + __properties: ClassVar[List[str]] = ["fileID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestDocumentResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestDocumentResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fileID": obj.get("fileID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guest_note_response.py b/cloudbeds_pms_v1_2/models/post_guest_note_response.py new file mode 100644 index 0000000..3b3bfb2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_guest_note_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestNoteResponse(BaseModel): + """ + PostGuestNoteResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + guest_note_id: Optional[StrictStr] = Field(default=None, description="Guest note ID", alias="guestNoteID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "guestNoteID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestNoteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestNoteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "guestNoteID": obj.get("guestNoteID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guest_photo_response.py b/cloudbeds_pms_v1_2/models/post_guest_photo_response.py new file mode 100644 index 0000000..e4ce99c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_guest_photo_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestPhotoResponse(BaseModel): + """ + PostGuestPhotoResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + data: Optional[PostGuestDocumentResponseData] = None + __properties: ClassVar[List[str]] = ["success", "message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestPhotoResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestPhotoResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": PostGuestDocumentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py new file mode 100644 index 0000000..9f59e0b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestRequestCustomFieldsInner(BaseModel): + """ + PostGuestRequestCustomFieldsInner + """ # noqa: E501 + custom_field_name: Optional[StrictStr] = Field(default=None, description="Custom Field shortcode.", alias="customFieldName") + custom_field_value: Optional[StrictStr] = Field(default=None, description="Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.", alias="customFieldValue") + __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestRequestCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if custom_field_name (nullable) is None + # and model_fields_set contains the field + if self.custom_field_name is None and "custom_field_name" in self.model_fields_set: + _dict['customFieldName'] = None + + # set to None if custom_field_value (nullable) is None + # and model_fields_set contains the field + if self.custom_field_value is None and "custom_field_value" in self.model_fields_set: + _dict['customFieldValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestRequestCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customFieldName": obj.get("customFieldName"), + "customFieldValue": obj.get("customFieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guest_response.py b/cloudbeds_pms_v1_2/models/post_guest_response.py new file mode 100644 index 0000000..ad80704 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_guest_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestResponse(BaseModel): + """ + PostGuestResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + guest_id: Optional[StrictStr] = Field(default=None, description="Returns the Guest ID if the request could be completed successfully", alias="guestID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "guestID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if guest_id (nullable) is None + # and model_fields_set contains the field + if self.guest_id is None and "guest_id" in self.model_fields_set: + _dict['guestID'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "guestID": obj.get("guestID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guests_to_room_response.py b/cloudbeds_pms_v1_2/models/post_guests_to_room_response.py new file mode 100644 index 0000000..755c487 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_guests_to_room_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestsToRoomResponse(BaseModel): + """ + PostGuestsToRoomResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestsToRoomResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestsToRoomResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_housekeeper_response.py b/cloudbeds_pms_v1_2/models/post_housekeeper_response.py new file mode 100644 index 0000000..e5f0df4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_housekeeper_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostHousekeeperResponse(BaseModel): + """ + PostHousekeeperResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + housekeeper_id: Optional[StrictStr] = Field(default=None, description="Housekeeper ID. Returned if success = true.", alias="housekeeperID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "housekeeperID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostHousekeeperResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if housekeeper_id (nullable) is None + # and model_fields_set contains the field + if self.housekeeper_id is None and "housekeeper_id" in self.model_fields_set: + _dict['housekeeperID'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostHousekeeperResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "housekeeperID": obj.get("housekeeperID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py b/cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py new file mode 100644 index 0000000..46186b2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostHousekeepingAssignmentResponse(BaseModel): + """ + PostHousekeepingAssignmentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostHousekeepingAssignmentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostHousekeepingAssignmentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py b/cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py new file mode 100644 index 0000000..72f11a8 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostHousekeepingStatusResponse(BaseModel): + """ + PostHousekeepingStatusResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostHousekeepingStatusResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostHousekeepingStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostHousekeepingStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostHousekeepingStatusResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py b/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py new file mode 100644 index 0000000..bbd3100 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostHousekeepingStatusResponseData(BaseModel): + """ + + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, description="Date for last date/time that the room condition changed", alias="date") + room_id: Optional[StrictStr] = Field(default=None, description="ID of room", alias="roomID") + room_condition: Optional[StrictStr] = Field(default=None, description="New room condition", alias="roomCondition") + room_comments: Optional[StrictStr] = Field(default=None, description="New room comments.", alias="roomComments") + do_not_disturb: Optional[StrictBool] = Field(default=None, description="New \"do not disturb\" status", alias="doNotDisturb") + refused_service: Optional[StrictBool] = Field(default=None, description="New \"refused service\" status", alias="refusedService") + vacant_pickup: Optional[StrictBool] = Field(default=None, description="New \"vacant_pickup\" status", alias="vacantPickup") + __properties: ClassVar[List[str]] = ["date", "roomID", "roomCondition", "roomComments", "doNotDisturb", "refusedService", "vacantPickup"] + + @field_validator('room_condition') + def room_condition_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['dirty', 'clean']): + raise ValueError("must be one of enum values ('dirty', 'clean')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostHousekeepingStatusResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if do_not_disturb (nullable) is None + # and model_fields_set contains the field + if self.do_not_disturb is None and "do_not_disturb" in self.model_fields_set: + _dict['doNotDisturb'] = None + + # set to None if refused_service (nullable) is None + # and model_fields_set contains the field + if self.refused_service is None and "refused_service" in self.model_fields_set: + _dict['refusedService'] = None + + # set to None if vacant_pickup (nullable) is None + # and model_fields_set contains the field + if self.vacant_pickup is None and "vacant_pickup" in self.model_fields_set: + _dict['vacantPickup'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostHousekeepingStatusResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "roomID": obj.get("roomID"), + "roomCondition": obj.get("roomCondition"), + "roomComments": obj.get("roomComments"), + "doNotDisturb": obj.get("doNotDisturb"), + "refusedService": obj.get("refusedService"), + "vacantPickup": obj.get("vacantPickup") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_item_category_response.py b/cloudbeds_pms_v1_2/models/post_item_category_response.py new file mode 100644 index 0000000..31d75be --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_item_category_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostItemCategoryResponse(BaseModel): + """ + PostItemCategoryResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + category_id: Optional[StrictStr] = Field(default=None, description="Category unique identifier (if success = true)", alias="categoryID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "categoryID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemCategoryResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if category_id (nullable) is None + # and model_fields_set contains the field + if self.category_id is None and "category_id" in self.model_fields_set: + _dict['categoryID'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemCategoryResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "categoryID": obj.get("categoryID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py b/cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py new file mode 100644 index 0000000..7531107 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PostItemRequestPaymentsInner(BaseModel): + """ + PostItemRequestPaymentsInner + """ # noqa: E501 + payment_type: Optional[StrictStr] = Field(default=None, description="Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.", alias="paymentType") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="payment amount") + notes: Optional[StrictStr] = Field(default=None, description="payment note") + __properties: ClassVar[List[str]] = ["paymentType", "amount", "notes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemRequestPaymentsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if notes (nullable) is None + # and model_fields_set contains the field + if self.notes is None and "notes" in self.model_fields_set: + _dict['notes'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemRequestPaymentsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "paymentType": obj.get("paymentType"), + "amount": obj.get("amount"), + "notes": obj.get("notes") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_item_response.py b/cloudbeds_pms_v1_2/models/post_item_response.py new file mode 100644 index 0000000..be6c2c1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_item_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostItemResponse(BaseModel): + """ + PostItemResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostItemResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostItemResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_item_response_data.py b/cloudbeds_pms_v1_2/models/post_item_response_data.py new file mode 100644 index 0000000..3c953b7 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_item_response_data.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostItemResponseData(BaseModel): + """ + Sold product details + """ # noqa: E501 + sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + transaction_status: Optional[StrictStr] = Field(default=None, description="Transaction Status is returned \"Pending\" when sale date is in the future.", alias="transactionStatus") + remaining_item_quantity: Optional[StrictInt] = Field(default=None, description="Remaining number of items in stock (if applicable)", alias="remainingItemQuantity") + reorder_needed: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for reorder threshold.", alias="reorderNeeded") + stop_sell_met: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for stop-sell threshold.", alias="stopSellMet") + __properties: ClassVar[List[str]] = ["soldProductID", "transactionID", "transactionStatus", "remainingItemQuantity", "reorderNeeded", "stopSellMet"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if transaction_status (nullable) is None + # and model_fields_set contains the field + if self.transaction_status is None and "transaction_status" in self.model_fields_set: + _dict['transactionStatus'] = None + + # set to None if remaining_item_quantity (nullable) is None + # and model_fields_set contains the field + if self.remaining_item_quantity is None and "remaining_item_quantity" in self.model_fields_set: + _dict['remainingItemQuantity'] = None + + # set to None if reorder_needed (nullable) is None + # and model_fields_set contains the field + if self.reorder_needed is None and "reorder_needed" in self.model_fields_set: + _dict['reorderNeeded'] = None + + # set to None if stop_sell_met (nullable) is None + # and model_fields_set contains the field + if self.stop_sell_met is None and "stop_sell_met" in self.model_fields_set: + _dict['stopSellMet'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "soldProductID": obj.get("soldProductID"), + "transactionID": obj.get("transactionID"), + "transactionStatus": obj.get("transactionStatus"), + "remainingItemQuantity": obj.get("remainingItemQuantity"), + "reorderNeeded": obj.get("reorderNeeded"), + "stopSellMet": obj.get("stopSellMet") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py b/cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py new file mode 100644 index 0000000..6424514 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py @@ -0,0 +1,186 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PostItemsToInventoryRequestItem(BaseModel): + """ + Items + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + item_name: Optional[StrictStr] = Field(default=None, description="Item name", alias="itemName") + category_id: Optional[StrictStr] = Field(default=None, description="Item category identifier", alias="categoryID") + item_type: Optional[StrictStr] = Field(default=None, description="Item type", alias="itemType") + item_sku: Optional[StrictStr] = Field(default=None, description="Item SKU. Will be generated if not set", alias="itemSKU") + item_code: Optional[StrictStr] = Field(default=None, description="Item code", alias="itemCode") + item_description: Optional[StrictStr] = Field(default=None, description="Item description", alias="itemDescription") + item_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Item price
When ItemPrice is blank the item will be created as Free / Complimentaty item without price", alias="itemPrice") + stock_inventory: Optional[StrictBool] = Field(default=False, description="Track stock inventory for this item", alias="stockInventory") + item_quantity: Optional[StrictInt] = Field(default=None, description="¹ Current amount of item available", alias="itemQuantity") + reorder_threshold: Optional[StrictInt] = Field(default=None, description="¹ Quantity at which to reorder item", alias="reorderThreshold") + stop_sell_met: Optional[StrictBool] = Field(default=False, description="¹ true - Whether item is at or below value set for stop-sell threshold.", alias="stopSellMet") + stop_sell: Optional[StrictInt] = Field(default=None, description="¹ Quantity at which to stop selling product.", alias="stopSell") + __properties: ClassVar[List[str]] = ["propertyID", "itemName", "categoryID", "itemType", "itemSKU", "itemCode", "itemDescription", "itemPrice", "stockInventory", "itemQuantity", "reorderThreshold", "stopSellMet", "stopSell"] + + @field_validator('item_type') + def item_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['product', 'service']): + raise ValueError("must be one of enum values ('product', 'service')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemsToInventoryRequestItem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if property_id (nullable) is None + # and model_fields_set contains the field + if self.property_id is None and "property_id" in self.model_fields_set: + _dict['propertyID'] = None + + # set to None if item_name (nullable) is None + # and model_fields_set contains the field + if self.item_name is None and "item_name" in self.model_fields_set: + _dict['itemName'] = None + + # set to None if category_id (nullable) is None + # and model_fields_set contains the field + if self.category_id is None and "category_id" in self.model_fields_set: + _dict['categoryID'] = None + + # set to None if item_type (nullable) is None + # and model_fields_set contains the field + if self.item_type is None and "item_type" in self.model_fields_set: + _dict['itemType'] = None + + # set to None if item_sku (nullable) is None + # and model_fields_set contains the field + if self.item_sku is None and "item_sku" in self.model_fields_set: + _dict['itemSKU'] = None + + # set to None if item_code (nullable) is None + # and model_fields_set contains the field + if self.item_code is None and "item_code" in self.model_fields_set: + _dict['itemCode'] = None + + # set to None if item_description (nullable) is None + # and model_fields_set contains the field + if self.item_description is None and "item_description" in self.model_fields_set: + _dict['itemDescription'] = None + + # set to None if item_price (nullable) is None + # and model_fields_set contains the field + if self.item_price is None and "item_price" in self.model_fields_set: + _dict['itemPrice'] = None + + # set to None if stock_inventory (nullable) is None + # and model_fields_set contains the field + if self.stock_inventory is None and "stock_inventory" in self.model_fields_set: + _dict['stockInventory'] = None + + # set to None if item_quantity (nullable) is None + # and model_fields_set contains the field + if self.item_quantity is None and "item_quantity" in self.model_fields_set: + _dict['itemQuantity'] = None + + # set to None if reorder_threshold (nullable) is None + # and model_fields_set contains the field + if self.reorder_threshold is None and "reorder_threshold" in self.model_fields_set: + _dict['reorderThreshold'] = None + + # set to None if stop_sell_met (nullable) is None + # and model_fields_set contains the field + if self.stop_sell_met is None and "stop_sell_met" in self.model_fields_set: + _dict['stopSellMet'] = None + + # set to None if stop_sell (nullable) is None + # and model_fields_set contains the field + if self.stop_sell is None and "stop_sell" in self.model_fields_set: + _dict['stopSell'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemsToInventoryRequestItem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "itemName": obj.get("itemName"), + "categoryID": obj.get("categoryID"), + "itemType": obj.get("itemType"), + "itemSKU": obj.get("itemSKU"), + "itemCode": obj.get("itemCode"), + "itemDescription": obj.get("itemDescription"), + "itemPrice": obj.get("itemPrice"), + "stockInventory": obj.get("stockInventory") if obj.get("stockInventory") is not None else False, + "itemQuantity": obj.get("itemQuantity"), + "reorderThreshold": obj.get("reorderThreshold"), + "stopSellMet": obj.get("stopSellMet") if obj.get("stopSellMet") is not None else False, + "stopSell": obj.get("stopSell") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py b/cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py new file mode 100644 index 0000000..ca80a6d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class PostItemsToInventoryResponse(BaseModel): + """ + PostItemsToInventoryResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[PostItemsToInventoryResponseDataInner]] = Field(default=None, description="Sold product details") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemsToInventoryResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemsToInventoryResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [PostItemsToInventoryResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py b/cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py new file mode 100644 index 0000000..8d4cbd5 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostItemsToInventoryResponseDataInner(BaseModel): + """ + PostItemsToInventoryResponseDataInner + """ # noqa: E501 + item_id: Optional[StrictStr] = Field(default=None, description="Item identifier", alias="itemID") + item_sku: Optional[StrictStr] = Field(default=None, description=" Item SKU", alias="itemSKU") + item_name: Optional[StrictStr] = Field(default=None, description="Item name", alias="itemName") + __properties: ClassVar[List[str]] = ["itemID", "itemSKU", "itemName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemsToInventoryResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemsToInventoryResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "itemID": obj.get("itemID"), + "itemSKU": obj.get("itemSKU"), + "itemName": obj.get("itemName") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_new_house_account_response.py b/cloudbeds_pms_v1_2/models/post_new_house_account_response.py new file mode 100644 index 0000000..d1d01d6 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_new_house_account_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostNewHouseAccountResponse(BaseModel): + """ + PostNewHouseAccountResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostNewHouseAccountResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostNewHouseAccountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostNewHouseAccountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostNewHouseAccountResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py b/cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py new file mode 100644 index 0000000..86797df --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostNewHouseAccountResponseData(BaseModel): + """ + House Account details + """ # noqa: E501 + house_account_id: Optional[StrictStr] = Field(default=None, description="Unique identifier of created House Account", alias="houseAccountID") + __properties: ClassVar[List[str]] = ["houseAccountID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostNewHouseAccountResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostNewHouseAccountResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "houseAccountID": obj.get("houseAccountID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_patch_group_response.py b/cloudbeds_pms_v1_2/models/post_patch_group_response.py new file mode 100644 index 0000000..7910f9d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_patch_group_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class PostPatchGroupResponse(BaseModel): + """ + PostPatchGroupResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + data: Optional[List[PostPatchGroupResponseDataInner]] = Field(default=None, description="Data") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPatchGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPatchGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [PostPatchGroupResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py b/cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py new file mode 100644 index 0000000..7a8eb83 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostPatchGroupResponseDataInner(BaseModel): + """ + PostPatchGroupResponseDataInner + """ # noqa: E501 + group_code: Optional[StrictStr] = Field(default=None, description="Unique ID for a group", alias="groupCode") + name: Optional[StrictStr] = Field(default=None, description="The name of the group") + type: Optional[StrictStr] = Field(default=None, description="The type of the group") + status: Optional[StrictStr] = Field(default=None, description="Group status") + created: Optional[datetime] = Field(default=None, description="Group created time") + source_id: Optional[StrictStr] = Field(default=None, description="The third-party source ID for this group, can be null", alias="sourceID") + address1: Optional[StrictStr] = Field(default=None, description="Address") + address2: Optional[StrictStr] = Field(default=None, description="Address2") + city: Optional[StrictStr] = Field(default=None, description="City") + zip: Optional[StrictStr] = Field(default=None, description="Zip") + state: Optional[StrictStr] = Field(default=None, description="State") + id: Optional[StrictStr] = Field(default=None, description="ID") + property_id: Optional[StrictStr] = Field(default=None, description="Property Id") + __properties: ClassVar[List[str]] = ["groupCode", "name", "type", "status", "created", "sourceID", "address1", "address2", "city", "zip", "state", "id", "property_id"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['group', 'company', 'travel_agent', 'wholesaler']): + raise ValueError("must be one of enum values ('group', 'company', 'travel_agent', 'wholesaler')") + return value + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['open', 'closed']): + raise ValueError("must be one of enum values ('open', 'closed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPatchGroupResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPatchGroupResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groupCode": obj.get("groupCode"), + "name": obj.get("name"), + "type": obj.get("type"), + "status": obj.get("status"), + "created": obj.get("created"), + "sourceID": obj.get("sourceID"), + "address1": obj.get("address1"), + "address2": obj.get("address2"), + "city": obj.get("city"), + "zip": obj.get("zip"), + "state": obj.get("state"), + "id": obj.get("id"), + "property_id": obj.get("property_id") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_patch_invoice_response.py b/cloudbeds_pms_v1_2/models/post_patch_invoice_response.py new file mode 100644 index 0000000..c3c4c12 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_patch_invoice_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostPatchInvoiceResponse(BaseModel): + """ + PostPatchInvoiceResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPatchInvoiceResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPatchInvoiceResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py new file mode 100644 index 0000000..9b76af7 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from typing import Optional, Set +from typing_extensions import Self + +class PostPatchRateRequestRatesInner(BaseModel): + """ + PostPatchRateRequestRatesInner + """ # noqa: E501 + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") + interval: Optional[PostPatchRateRequestRatesInnerInterval] = None + __properties: ClassVar[List[str]] = ["rateID", "interval"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPatchRateRequestRatesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of interval + if self.interval: + _dict['interval'] = self.interval.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPatchRateRequestRatesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rateID": obj.get("rateID"), + "interval": PostPatchRateRequestRatesInnerInterval.from_dict(obj["interval"]) if obj.get("interval") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py new file mode 100644 index 0000000..80f5e40 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PostPatchRateRequestRatesInnerInterval(BaseModel): + """ + Rate update details + """ # noqa: E501 + start_date: Optional[date] = Field(default=None, description="Interval Start date. Format: YYYY-MM-DD", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval End date. Format: YYYY-MM-DD", alias="endDate") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the selected date") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay for the selected date.", alias="maxLos") + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay for the selected date.", alias="minLos") + closed_to_arrival: Optional[StrictBool] = Field(default=None, description="Whether it is closed to arrival.", alias="closedToArrival") + closed_to_departure: Optional[StrictBool] = Field(default=None, description="Whether it is closed to departure.", alias="closedToDeparture") + cut_off: Optional[StrictInt] = Field(default=None, description="Cut off time for the selected date.", alias="cutOff") + last_minute_booking: Optional[StrictInt] = Field(default=None, description="Last minute bookings.", alias="lastMinuteBooking") + __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPatchRateRequestRatesInnerInterval from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if max_los (nullable) is None + # and model_fields_set contains the field + if self.max_los is None and "max_los" in self.model_fields_set: + _dict['maxLos'] = None + + # set to None if min_los (nullable) is None + # and model_fields_set contains the field + if self.min_los is None and "min_los" in self.model_fields_set: + _dict['minLos'] = None + + # set to None if closed_to_arrival (nullable) is None + # and model_fields_set contains the field + if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: + _dict['closedToArrival'] = None + + # set to None if closed_to_departure (nullable) is None + # and model_fields_set contains the field + if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: + _dict['closedToDeparture'] = None + + # set to None if cut_off (nullable) is None + # and model_fields_set contains the field + if self.cut_off is None and "cut_off" in self.model_fields_set: + _dict['cutOff'] = None + + # set to None if last_minute_booking (nullable) is None + # and model_fields_set contains the field + if self.last_minute_booking is None and "last_minute_booking" in self.model_fields_set: + _dict['lastMinuteBooking'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPatchRateRequestRatesInnerInterval from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rate": obj.get("rate"), + "maxLos": obj.get("maxLos"), + "minLos": obj.get("minLos"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture"), + "cutOff": obj.get("cutOff"), + "lastMinuteBooking": obj.get("lastMinuteBooking") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_response.py b/cloudbeds_pms_v1_2/models/post_patch_rate_response.py new file mode 100644 index 0000000..ecb3eaf --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_patch_rate_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostPatchRateResponse(BaseModel): + """ + PostPatchRateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns true if the request could be completed") + job_reference_id: Optional[StrictStr] = Field(default=None, description="ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook", alias="jobReferenceID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "jobReferenceID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPatchRateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPatchRateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "jobReferenceID": obj.get("jobReferenceID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_payment_response.py b/cloudbeds_pms_v1_2/models/post_payment_response.py new file mode 100644 index 0000000..b6a0e47 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_payment_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostPaymentResponse(BaseModel): + """ + PostPaymentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + payment_id: Optional[StrictStr] = Field(default=None, description="Returns paymentID of transaction", alias="paymentID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Returns transactionID", alias="transactionID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "paymentID", "transactionID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPaymentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPaymentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "paymentID": obj.get("paymentID"), + "transactionID": obj.get("transactionID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py b/cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py new file mode 100644 index 0000000..a49a34c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostPutAppPropertySettingsResponse(BaseModel): + """ + PostPutAppPropertySettingsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + data: Optional[PostAppPropertySettingResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPutAppPropertySettingsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPutAppPropertySettingsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostAppPropertySettingResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_put_group_response.py b/cloudbeds_pms_v1_2/models/post_put_group_response.py new file mode 100644 index 0000000..fa53e6b --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_put_group_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class PostPutGroupResponse(BaseModel): + """ + PostPutGroupResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + data: Optional[List[PostPatchGroupResponseDataInner]] = Field(default=None, description="Data") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPutGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPutGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [PostPatchGroupResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py b/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py new file mode 100644 index 0000000..e2e3465 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from typing import Optional, Set +from typing_extensions import Self + +class PostPutRateRequestRatesInner(BaseModel): + """ + PostPutRateRequestRatesInner + """ # noqa: E501 + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") + interval: Optional[List[PostPutRateRequestRatesInnerIntervalInner]] = Field(default=None, description="Rate update details") + __properties: ClassVar[List[str]] = ["rateID", "interval"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPutRateRequestRatesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in interval (list) + _items = [] + if self.interval: + for _item_interval in self.interval: + if _item_interval: + _items.append(_item_interval.to_dict()) + _dict['interval'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPutRateRequestRatesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rateID": obj.get("rateID"), + "interval": [PostPutRateRequestRatesInnerIntervalInner.from_dict(_item) for _item in obj["interval"]] if obj.get("interval") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py new file mode 100644 index 0000000..83609d3 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PostPutRateRequestRatesInnerIntervalInner(BaseModel): + """ + PostPutRateRequestRatesInnerIntervalInner + """ # noqa: E501 + start_date: Optional[date] = Field(default=None, description="Interval Start date. Format: YYYY-MM-DD", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval End date. Format: YYYY-MM-DD", alias="endDate") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the selected date") + __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPutRateRequestRatesInnerIntervalInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPutRateRequestRatesInnerIntervalInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rate": obj.get("rate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_put_rate_response.py b/cloudbeds_pms_v1_2/models/post_put_rate_response.py new file mode 100644 index 0000000..0a4698f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_put_rate_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostPutRateResponse(BaseModel): + """ + PostPutRateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns true if the request could be completed") + job_reference_id: Optional[StrictStr] = Field(default=None, description="ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook", alias="jobReferenceID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "jobReferenceID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPutRateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPutRateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "jobReferenceID": obj.get("jobReferenceID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_document_response.py b/cloudbeds_pms_v1_2/models/post_reservation_document_response.py new file mode 100644 index 0000000..40872a1 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_document_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationDocumentResponse(BaseModel): + """ + PostReservationDocumentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + data: Optional[PostGuestDocumentResponseData] = None + __properties: ClassVar[List[str]] = ["success", "message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationDocumentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationDocumentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": PostGuestDocumentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_note_response.py b/cloudbeds_pms_v1_2/models/post_reservation_note_response.py new file mode 100644 index 0000000..d71badb --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_note_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationNoteResponse(BaseModel): + """ + PostReservationNoteResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + reservation_note_id: Optional[StrictStr] = Field(default=None, description="Reservation note ID", alias="reservationNoteID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "reservationNoteID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationNoteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationNoteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "reservationNoteID": obj.get("reservationNoteID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py b/cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py new file mode 100644 index 0000000..6bab937 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationRequestAdultsInner(BaseModel): + """ + PostReservationRequestAdultsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + quantity: Optional[StrictInt] = Field(default=None, description="Quantity of adults for the room type ID") + room_id: Optional[StrictStr] = Field(default=None, description="ID of the individual room", alias="roomID") + __properties: ClassVar[List[str]] = ["roomTypeID", "quantity", "roomID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationRequestAdultsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationRequestAdultsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "quantity": obj.get("quantity"), + "roomID": obj.get("roomID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py b/cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py new file mode 100644 index 0000000..8c62b13 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationRequestChildrenInner(BaseModel): + """ + PostReservationRequestChildrenInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + quantity: Optional[StrictInt] = Field(default=None, description="Number of children for the room type ID") + room_id: Optional[StrictStr] = Field(default=None, description="ID of the individual room", alias="roomID") + __properties: ClassVar[List[str]] = ["roomTypeID", "quantity", "roomID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationRequestChildrenInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationRequestChildrenInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "quantity": obj.get("quantity"), + "roomID": obj.get("roomID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py new file mode 100644 index 0000000..8affc98 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationRequestCustomFieldsInner(BaseModel): + """ + PostReservationRequestCustomFieldsInner + """ # noqa: E501 + field_name: Optional[StrictStr] = Field(default=None, description="Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention", alias="fieldName") + field_value: Optional[StrictStr] = Field(default=None, description="Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.", alias="fieldValue") + __properties: ClassVar[List[str]] = ["fieldName", "fieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationRequestCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationRequestCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fieldName": obj.get("fieldName"), + "fieldValue": obj.get("fieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py new file mode 100644 index 0000000..fe33ba0 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationRequestRoomsInner(BaseModel): + """ + PostReservationRequestRoomsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + quantity: Optional[StrictInt] = Field(default=None, description="Quantity of rooms for the room type ID") + room_id: Optional[StrictStr] = Field(default=None, description="ID of the individual room to be booked. This feature must be enabled on \"MyBookings\" settings, and the room should be available at the time of the booking or else it will result in an unassigned room. It will automatically override \"quantity\" value to 1 and roomTypeID when used.", alias="roomID") + room_rate_id: Optional[StrictStr] = Field(default=None, description="Specific Rate ID used for the room type ID. Can be ommitted.", alias="roomRateID") + __properties: ClassVar[List[str]] = ["roomTypeID", "quantity", "roomID", "roomRateID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationRequestRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_rate_id (nullable) is None + # and model_fields_set contains the field + if self.room_rate_id is None and "room_rate_id" in self.model_fields_set: + _dict['roomRateID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationRequestRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeID": obj.get("roomTypeID"), + "quantity": obj.get("quantity"), + "roomID": obj.get("roomID"), + "roomRateID": obj.get("roomRateID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_response.py b/cloudbeds_pms_v1_2/models/post_reservation_response.py new file mode 100644 index 0000000..33510ce --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_response.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationResponse(BaseModel): + """ + PostReservationResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier", alias="reservationID") + status: Optional[StrictStr] = Field(default=None, description="Reservation status
'not_confirmed' - Reservation is pending confirmation
'confirmed' - Reservation is confirmed
") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + guest_first_name: Optional[StrictStr] = Field(default=None, description="Guest First Name", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Guest Last Name", alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, description="Guest Gender", alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, description="Guest Email", alias="guestEmail") + start_date: Optional[date] = Field(default=None, description="Reservation CheckIn date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Reservation CheckOut date", alias="endDate") + date_created: Optional[datetime] = Field(default=None, description="Reservation creation datetime", alias="dateCreated") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Grand Total", alias="grandTotal") + unassigned: Optional[List[PostReservationResponseUnassignedInner]] = Field(default=None, description="unassigned rooms array") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "reservationID", "status", "guestID", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "startDate", "endDate", "dateCreated", "grandTotal", "unassigned", "message"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['not_confirmed', 'confirmed']): + raise ValueError("must be one of enum values ('not_confirmed', 'confirmed')") + return value + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['M', 'F', 'N/A']): + raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in unassigned (list) + _items = [] + if self.unassigned: + for _item_unassigned in self.unassigned: + if _item_unassigned: + _items.append(_item_unassigned.to_dict()) + _dict['unassigned'] = _items + # set to None if guest_gender (nullable) is None + # and model_fields_set contains the field + if self.guest_gender is None and "guest_gender" in self.model_fields_set: + _dict['guestGender'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "reservationID": obj.get("reservationID"), + "status": obj.get("status"), + "guestID": obj.get("guestID"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "dateCreated": obj.get("dateCreated"), + "grandTotal": obj.get("grandTotal"), + "unassigned": [PostReservationResponseUnassignedInner.from_dict(_item) for _item in obj["unassigned"]] if obj.get("unassigned") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py b/cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py new file mode 100644 index 0000000..2c3f4f9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationResponseUnassignedInner(BaseModel): + """ + PostReservationResponseUnassignedInner + """ # noqa: E501 + sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") + room_type_name: Optional[StrictStr] = Field(default=None, alias="roomTypeName") + room_type_id: Optional[StrictStr] = Field(default=None, alias="roomTypeID") + adults: Optional[StrictInt] = Field(default=None, description="Adults included in rate") + children: Optional[StrictInt] = Field(default=None, description="Children included in rate") + daily_rates: Optional[List[GetReservationResponseDataAssignedInnerDailyRatesInner]] = Field(default=None, description="rates for room", alias="dailyRates") + room_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="roomTotal") + __properties: ClassVar[List[str]] = ["subReservationID", "roomTypeName", "roomTypeID", "adults", "children", "dailyRates", "roomTotal"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationResponseUnassignedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in daily_rates (list) + _items = [] + if self.daily_rates: + for _item_daily_rates in self.daily_rates: + if _item_daily_rates: + _items.append(_item_daily_rates.to_dict()) + _dict['dailyRates'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationResponseUnassignedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subReservationID": obj.get("subReservationID"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeID": obj.get("roomTypeID"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "dailyRates": [GetReservationResponseDataAssignedInnerDailyRatesInner.from_dict(_item) for _item in obj["dailyRates"]] if obj.get("dailyRates") is not None else None, + "roomTotal": obj.get("roomTotal") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_room_assign_response.py b/cloudbeds_pms_v1_2/models/post_room_assign_response.py new file mode 100644 index 0000000..0eb5f4f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_room_assign_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomAssignResponse(BaseModel): + """ + PostRoomAssignResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomAssignResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomAssignResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py new file mode 100644 index 0000000..94e2b55 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomBlockRequestRoomsInner(BaseModel): + """ + PostRoomBlockRequestRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") + __properties: ClassVar[List[str]] = ["roomID", "roomTypeID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomBlockRequestRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomBlockRequestRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomTypeID": obj.get("roomTypeID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_room_block_response.py b/cloudbeds_pms_v1_2/models/post_room_block_response.py new file mode 100644 index 0000000..8ade62d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_room_block_response.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomBlockResponse(BaseModel): + """ + PostRoomBlockResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block", alias="roomBlockType") + room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") + start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] + + @field_validator('room_block_type') + def room_block_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['blocked', 'out_of_service']): + raise ValueError("must be one of enum values ('blocked', 'out_of_service')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomBlockResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomBlockResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "propertyID": obj.get("propertyID"), + "roomBlockID": obj.get("roomBlockID"), + "roomBlockType": obj.get("roomBlockType"), + "roomBlockReason": obj.get("roomBlockReason"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rooms": [PostRoomBlockResponseRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py new file mode 100644 index 0000000..d7225a5 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomBlockResponseRoomsInner(BaseModel): + """ + PostRoomBlockResponseRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") + __properties: ClassVar[List[str]] = ["roomID", "roomTypeID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomBlockResponseRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomBlockResponseRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomTypeID": obj.get("roomTypeID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_room_check_in_response.py b/cloudbeds_pms_v1_2/models/post_room_check_in_response.py new file mode 100644 index 0000000..9ee8d84 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_room_check_in_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomCheckInResponse(BaseModel): + """ + PostRoomCheckInResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomCheckInResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomCheckInResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_room_check_out_response.py b/cloudbeds_pms_v1_2/models/post_room_check_out_response.py new file mode 100644 index 0000000..1e529a2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_room_check_out_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomCheckOutResponse(BaseModel): + """ + PostRoomCheckOutResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomCheckOutResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomCheckOutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py new file mode 100644 index 0000000..4b72cc5 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockNotesResponse(BaseModel): + """ + PostUpdateAllotmentBlockNotesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostUpdateAllotmentBlockNotesResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockNotesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockNotesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostUpdateAllotmentBlockNotesResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py new file mode 100644 index 0000000..721d398 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockNotesResponseData(BaseModel): + """ + The created note + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Note ID") + text: Optional[StrictStr] = Field(default=None, description="Note contents") + created_by: Optional[StrictStr] = Field(default=None, description="User Name", alias="createdBy") + created_at: Optional[datetime] = Field(default=None, description="Creation datetime (format: Y-m-d H:i:s)", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="Last modification datetime (format: Y-m-d H:i:s)", alias="updatedAt") + archived_at: Optional[datetime] = Field(default=None, description="Archival datetime (format: Y-m-d H:i:s)", alias="archivedAt") + status: Optional[StrictBool] = Field(default=None, description="Note status") + __properties: ClassVar[List[str]] = ["id", "text", "createdBy", "createdAt", "updatedAt", "archivedAt", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockNotesResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if archived_at (nullable) is None + # and model_fields_set contains the field + if self.archived_at is None and "archived_at" in self.model_fields_set: + _dict['archivedAt'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockNotesResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "text": obj.get("text"), + "createdBy": obj.get("createdBy"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "archivedAt": obj.get("archivedAt"), + "status": obj.get("status") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py new file mode 100644 index 0000000..3ad818e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockRequestAllotmentIntervalsInner(BaseModel): + """ + PostUpdateAllotmentBlockRequestAllotmentIntervalsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type id", alias="roomTypeId") + availability: Optional[List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]] = Field(default=None, description="Interval availability data by day in interval") + __properties: ClassVar[List[str]] = ["roomTypeId", "availability"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in availability (list) + _items = [] + if self.availability: + for _item_availability in self.availability: + if _item_availability: + _items.append(_item_availability.to_dict()) + _dict['availability'] = _items + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeId'] = None + + # set to None if availability (nullable) is None + # and model_fields_set contains the field + if self.availability is None and "availability" in self.model_fields_set: + _dict['availability'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeId": obj.get("roomTypeId"), + "availability": [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_dict(_item) for _item in obj["availability"]] if obj.get("availability") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py new file mode 100644 index 0000000..b5b061e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(BaseModel): + """ + PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + """ # noqa: E501 + block_allotted: Optional[StrictInt] = Field(default=None, description="Total number of units available for the room type for this day", alias="blockAllotted") + var_date: Optional[date] = Field(default=None, description="the day within the interval (YYYY-MM-DD)", alias="date") + rate: Optional[StrictStr] = Field(default=None, description="the price if applicable") + guest_pricing: Optional[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing] = Field(default=None, alias="guestPricing") + restrictions: Optional[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions] = None + __properties: ClassVar[List[str]] = ["blockAllotted", "date", "rate", "guestPricing", "restrictions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of guest_pricing + if self.guest_pricing: + _dict['guestPricing'] = self.guest_pricing.to_dict() + # override the default output from pydantic by calling `to_dict()` of restrictions + if self.restrictions: + _dict['restrictions'] = self.restrictions.to_dict() + # set to None if block_allotted (nullable) is None + # and model_fields_set contains the field + if self.block_allotted is None and "block_allotted" in self.model_fields_set: + _dict['blockAllotted'] = None + + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + + # set to None if rate (nullable) is None + # and model_fields_set contains the field + if self.rate is None and "rate" in self.model_fields_set: + _dict['rate'] = None + + # set to None if guest_pricing (nullable) is None + # and model_fields_set contains the field + if self.guest_pricing is None and "guest_pricing" in self.model_fields_set: + _dict['guestPricing'] = None + + # set to None if restrictions (nullable) is None + # and model_fields_set contains the field + if self.restrictions is None and "restrictions" in self.model_fields_set: + _dict['restrictions'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "blockAllotted": obj.get("blockAllotted"), + "date": obj.get("date"), + "rate": obj.get("rate"), + "guestPricing": PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None, + "restrictions": PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py new file mode 100644 index 0000000..bf39571 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(BaseModel): + """ + Guest pricing data if applicable. Note: + """ # noqa: E501 + adult1: Optional[StrictStr] = Field(default=None, description="Price for adult 1") + adult2: Optional[StrictStr] = Field(default=None, description="Price for adult 2") + adult3: Optional[StrictStr] = Field(default=None, description="Price for adult 3") + child1: Optional[StrictStr] = Field(default=None, description="Price for child 1") + child2: Optional[StrictStr] = Field(default=None, description="Price for child 2") + child3: Optional[StrictStr] = Field(default=None, description="Price for child 3") + __properties: ClassVar[List[str]] = ["adult1", "adult2", "adult3", "child1", "child2", "child3"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if adult1 (nullable) is None + # and model_fields_set contains the field + if self.adult1 is None and "adult1" in self.model_fields_set: + _dict['adult1'] = None + + # set to None if adult2 (nullable) is None + # and model_fields_set contains the field + if self.adult2 is None and "adult2" in self.model_fields_set: + _dict['adult2'] = None + + # set to None if adult3 (nullable) is None + # and model_fields_set contains the field + if self.adult3 is None and "adult3" in self.model_fields_set: + _dict['adult3'] = None + + # set to None if child1 (nullable) is None + # and model_fields_set contains the field + if self.child1 is None and "child1" in self.model_fields_set: + _dict['child1'] = None + + # set to None if child2 (nullable) is None + # and model_fields_set contains the field + if self.child2 is None and "child2" in self.model_fields_set: + _dict['child2'] = None + + # set to None if child3 (nullable) is None + # and model_fields_set contains the field + if self.child3 is None and "child3" in self.model_fields_set: + _dict['child3'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adult1": obj.get("adult1"), + "adult2": obj.get("adult2"), + "adult3": obj.get("adult3"), + "child1": obj.get("child1"), + "child2": obj.get("child2"), + "child3": obj.get("child3") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py new file mode 100644 index 0000000..6cf0b51 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(BaseModel): + """ + Interval restrictions if applicable + """ # noqa: E501 + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") + cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should guests be required to book", alias="cutOffDays") + last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="How many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") + closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure the number of applicable keys varies here based on the occupancy settings for the room type.", alias="closedToDeparture") + __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if min_los (nullable) is None + # and model_fields_set contains the field + if self.min_los is None and "min_los" in self.model_fields_set: + _dict['minLos'] = None + + # set to None if max_los (nullable) is None + # and model_fields_set contains the field + if self.max_los is None and "max_los" in self.model_fields_set: + _dict['maxLos'] = None + + # set to None if cut_off_days (nullable) is None + # and model_fields_set contains the field + if self.cut_off_days is None and "cut_off_days" in self.model_fields_set: + _dict['cutOffDays'] = None + + # set to None if last_minute_booking_days (nullable) is None + # and model_fields_set contains the field + if self.last_minute_booking_days is None and "last_minute_booking_days" in self.model_fields_set: + _dict['lastMinuteBookingDays'] = None + + # set to None if closed_to_arrival (nullable) is None + # and model_fields_set contains the field + if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: + _dict['closedToArrival'] = None + + # set to None if closed_to_departure (nullable) is None + # and model_fields_set contains the field + if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: + _dict['closedToDeparture'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos"), + "cutOffDays": obj.get("cutOffDays"), + "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py new file mode 100644 index 0000000..3d0ea97 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockRequestAutoRelease(BaseModel): + """ + Optional auto-release configuration NOTE: pass empty object to remove auto-release configuration + """ # noqa: E501 + release_type: Optional[StrictStr] = Field(default=None, description="The type of auto-release", alias="releaseType") + days: Optional[StrictInt] = Field(default=None, description="The number of days prior to the end of the allotment block to begin releasing dates from the allotment block") + release_time: Optional[StrictStr] = Field(default=None, description="The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'...", alias="releaseTime") + __properties: ClassVar[List[str]] = ["releaseType", "days", "releaseTime"] + + @field_validator('release_type') + def release_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['all_dates', 'by_day', 'by_interval']): + raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAutoRelease from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if release_type (nullable) is None + # and model_fields_set contains the field + if self.release_type is None and "release_type" in self.model_fields_set: + _dict['releaseType'] = None + + # set to None if days (nullable) is None + # and model_fields_set contains the field + if self.days is None and "days" in self.model_fields_set: + _dict['days'] = None + + # set to None if release_time (nullable) is None + # and model_fields_set contains the field + if self.release_time is None and "release_time" in self.model_fields_set: + _dict['releaseTime'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockRequestAutoRelease from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "releaseType": obj.get("releaseType"), + "days": obj.get("days"), + "releaseTime": obj.get("releaseTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py new file mode 100644 index 0000000..25e8752 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockResponse(BaseModel): + """ + PostUpdateAllotmentBlockResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[PostUpdateAllotmentBlockResponseDataInner]] = Field(default=None, description="Allotment Blocks") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [PostUpdateAllotmentBlockResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py new file mode 100644 index 0000000..ba8ec2a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockResponseDataInner(BaseModel): + """ + PostUpdateAllotmentBlockResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID associated to the allotment block", alias="propertyID") + allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + allotment_block_status: Optional[StrictStr] = Field(default=None, description="Allotment block status", alias="allotmentBlockStatus") + allotment_block_name: Optional[StrictStr] = Field(default=None, description="Allotment block name", alias="allotmentBlockName") + allotment_block_id: Optional[StrictStr] = Field(default=None, description="Allotment block ID", alias="allotmentBlockId") + rate_type: Optional[StrictStr] = Field(default=None, description="Rate type for the allotment block", alias="rateType") + rate_plan_id: Optional[StrictStr] = Field(default=None, description="Rate plan ID if applicable", alias="ratePlanId") + allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") + group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") + group_code: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block", alias="groupCode") + is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") + auto_release: Optional[PostCreateAllotmentBlockResponseDataInnerAutoRelease] = Field(default=None, alias="autoRelease") + allotment_intervals: Optional[List[PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") + __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of auto_release + if self.auto_release: + _dict['autoRelease'] = self.auto_release.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in allotment_intervals (list) + _items = [] + if self.allotment_intervals: + for _item_allotment_intervals in self.allotment_intervals: + if _item_allotment_intervals: + _items.append(_item_allotment_intervals.to_dict()) + _dict['allotmentIntervals'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "allotmentBlockCode": obj.get("allotmentBlockCode"), + "allotmentBlockStatus": obj.get("allotmentBlockStatus"), + "allotmentBlockName": obj.get("allotmentBlockName"), + "allotmentBlockId": obj.get("allotmentBlockId"), + "rateType": obj.get("rateType"), + "ratePlanId": obj.get("ratePlanId"), + "allotmentType": obj.get("allotmentType"), + "groupId": obj.get("groupId"), + "groupCode": obj.get("groupCode"), + "isAutoRelease": obj.get("isAutoRelease"), + "autoRelease": PostCreateAllotmentBlockResponseDataInnerAutoRelease.from_dict(obj["autoRelease"]) if obj.get("autoRelease") is not None else None, + "allotmentIntervals": [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..89cb867 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(BaseModel): + """ + PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") + availability: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability] = None + restrictions: Optional[PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions] = None + __properties: ClassVar[List[str]] = ["roomTypeId", "availability", "restrictions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of availability + if self.availability: + _dict['availability'] = self.availability.to_dict() + # override the default output from pydantic by calling `to_dict()` of restrictions + if self.restrictions: + _dict['restrictions'] = self.restrictions.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeId": obj.get("roomTypeId"), + "availability": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.from_dict(obj["availability"]) if obj.get("availability") is not None else None, + "restrictions": PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..b808874 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(BaseModel): + """ + Interval restrictions if applicable + """ # noqa: E501 + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") + cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should guests be required to book", alias="cutOffDays") + last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="Hoe many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") + closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure", alias="closedToDeparture") + __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos"), + "cutOffDays": obj.get("cutOffDays"), + "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_void_item_response.py b/cloudbeds_pms_v1_2/models/post_void_item_response.py new file mode 100644 index 0000000..fa65fa2 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_void_item_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostVoidItemResponse(BaseModel): + """ + PostVoidItemResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostVoidItemResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostVoidItemResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_void_payment_response.py b/cloudbeds_pms_v1_2/models/post_void_payment_response.py new file mode 100644 index 0000000..3385aad --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_void_payment_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostVoidPaymentResponse(BaseModel): + """ + PostVoidPaymentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostVoidPaymentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostVoidPaymentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_webhook_response.py b/cloudbeds_pms_v1_2/models/post_webhook_response.py new file mode 100644 index 0000000..0e90b4f --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_webhook_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostWebhookResponse(BaseModel): + """ + PostWebhookResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostWebhookResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostWebhookResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostWebhookResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostWebhookResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_webhook_response_data.py b/cloudbeds_pms_v1_2/models/post_webhook_response_data.py new file mode 100644 index 0000000..bc42c6a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/post_webhook_response_data.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostWebhookResponseData(BaseModel): + """ + Subscription details + """ # noqa: E501 + subscription_id: Optional[StrictStr] = Field(default=None, description="Subscription ID", alias="subscriptionID") + __properties: ClassVar[List[str]] = ["subscriptionID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostWebhookResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostWebhookResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subscriptionID": obj.get("subscriptionID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_guest_note_response.py b/cloudbeds_pms_v1_2/models/put_guest_note_response.py new file mode 100644 index 0000000..4944586 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_guest_note_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutGuestNoteResponse(BaseModel): + """ + PutGuestNoteResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutGuestNoteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutGuestNoteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py new file mode 100644 index 0000000..ffbbf4a --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutGuestRequestGuestCustomFieldsInner(BaseModel): + """ + PutGuestRequestGuestCustomFieldsInner + """ # noqa: E501 + custom_field_name: Optional[StrictStr] = Field(default=None, alias="customFieldName") + custom_field_value: Optional[StrictStr] = Field(default=None, description="Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.", alias="customFieldValue") + __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutGuestRequestGuestCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if custom_field_name (nullable) is None + # and model_fields_set contains the field + if self.custom_field_name is None and "custom_field_name" in self.model_fields_set: + _dict['customFieldName'] = None + + # set to None if custom_field_value (nullable) is None + # and model_fields_set contains the field + if self.custom_field_value is None and "custom_field_value" in self.model_fields_set: + _dict['customFieldValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutGuestRequestGuestCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customFieldName": obj.get("customFieldName"), + "customFieldValue": obj.get("customFieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_guest_response.py b/cloudbeds_pms_v1_2/models/put_guest_response.py new file mode 100644 index 0000000..07ff48c --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_guest_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutGuestResponse(BaseModel): + """ + PutGuestResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false), or in case any warning message is needed. If success = true, it usually does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutGuestResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutGuestResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_house_account_status_response.py b/cloudbeds_pms_v1_2/models/put_house_account_status_response.py new file mode 100644 index 0000000..f70ffc9 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_house_account_status_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutHouseAccountStatusResponse(BaseModel): + """ + PutHouseAccountStatusResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutHouseAccountStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutHouseAccountStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_housekeeper_response.py b/cloudbeds_pms_v1_2/models/put_housekeeper_response.py new file mode 100644 index 0000000..05f7516 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_housekeeper_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutHousekeeperResponse(BaseModel): + """ + PutHousekeeperResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutHousekeeperResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutHousekeeperResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py b/cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py new file mode 100644 index 0000000..84d6cc4 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutItemToInventoryResponse(BaseModel): + """ + PutItemToInventoryResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutItemToInventoryResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutItemToInventoryResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_reservation_note_response.py b/cloudbeds_pms_v1_2/models/put_reservation_note_response.py new file mode 100644 index 0000000..40a55d3 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_reservation_note_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutReservationNoteResponse(BaseModel): + """ + PutReservationNoteResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutReservationNoteResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutReservationNoteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py new file mode 100644 index 0000000..78a4f19 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutReservationRequestCustomFieldsInner(BaseModel): + """ + PutReservationRequestCustomFieldsInner + """ # noqa: E501 + custom_field_name: Optional[StrictStr] = Field(default=None, description="Internal custom field reference. Must match the registered name in backend. Pay Attention", alias="customFieldName") + custom_field_value: Optional[StrictStr] = Field(default=None, description="Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.", alias="customFieldValue") + __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutReservationRequestCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if custom_field_name (nullable) is None + # and model_fields_set contains the field + if self.custom_field_name is None and "custom_field_name" in self.model_fields_set: + _dict['customFieldName'] = None + + # set to None if custom_field_value (nullable) is None + # and model_fields_set contains the field + if self.custom_field_value is None and "custom_field_value" in self.model_fields_set: + _dict['customFieldValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutReservationRequestCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customFieldName": obj.get("customFieldName"), + "customFieldValue": obj.get("customFieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py new file mode 100644 index 0000000..14d6b3e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutReservationRequestRoomsInner(BaseModel): + """ + PutReservationRequestRoomsInner + """ # noqa: E501 + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room. Optional.", alias="subReservationID") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID. Mandatory if rooms are sent.", alias="roomTypeID") + checkin_date: Optional[date] = Field(default=None, description="Check-in date for this specific room. Mandatory if rooms are sent.", alias="checkinDate") + checkout_date: Optional[date] = Field(default=None, description="Check-out date for this specific room. Mandatory if rooms are sent.", alias="checkoutDate") + adults: Optional[StrictInt] = Field(default=None, description="Quantity of adults for the room. Mandatory if rooms are sent.") + children: Optional[StrictInt] = Field(default=None, description="Number of children for the room. Mandatory if rooms are sent.") + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID for the room. Optional.", alias="rateID") + __properties: ClassVar[List[str]] = ["subReservationID", "roomTypeID", "checkinDate", "checkoutDate", "adults", "children", "rateID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutReservationRequestRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeID'] = None + + # set to None if checkin_date (nullable) is None + # and model_fields_set contains the field + if self.checkin_date is None and "checkin_date" in self.model_fields_set: + _dict['checkinDate'] = None + + # set to None if checkout_date (nullable) is None + # and model_fields_set contains the field + if self.checkout_date is None and "checkout_date" in self.model_fields_set: + _dict['checkoutDate'] = None + + # set to None if adults (nullable) is None + # and model_fields_set contains the field + if self.adults is None and "adults" in self.model_fields_set: + _dict['adults'] = None + + # set to None if children (nullable) is None + # and model_fields_set contains the field + if self.children is None and "children" in self.model_fields_set: + _dict['children'] = None + + # set to None if rate_id (nullable) is None + # and model_fields_set contains the field + if self.rate_id is None and "rate_id" in self.model_fields_set: + _dict['rateID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutReservationRequestRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subReservationID": obj.get("subReservationID"), + "roomTypeID": obj.get("roomTypeID"), + "checkinDate": obj.get("checkinDate"), + "checkoutDate": obj.get("checkoutDate"), + "adults": obj.get("adults"), + "children": obj.get("children"), + "rateID": obj.get("rateID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_reservation_response.py b/cloudbeds_pms_v1_2/models/put_reservation_response.py new file mode 100644 index 0000000..4a73058 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_reservation_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutReservationResponse(BaseModel): + """ + PutReservationResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs.") + data: Optional[Dict[str, Any]] = Field(default=None, description="Returns the reservation data as defined by getReservation call.") + __properties: ClassVar[List[str]] = ["success", "message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutReservationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if data (nullable) is None + # and model_fields_set contains the field + if self.data is None and "data" in self.model_fields_set: + _dict['data'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutReservationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": obj.get("data") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py new file mode 100644 index 0000000..793340d --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutRoomBlockRequestRoomsInner(BaseModel): + """ + PutRoomBlockRequestRoomsInner + """ # noqa: E501 + room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") + __properties: ClassVar[List[str]] = ["roomID", "roomTypeID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutRoomBlockRequestRoomsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeID'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutRoomBlockRequestRoomsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomID": obj.get("roomID"), + "roomTypeID": obj.get("roomTypeID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_room_block_response.py b/cloudbeds_pms_v1_2/models/put_room_block_response.py new file mode 100644 index 0000000..c7b3898 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/put_room_block_response.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class PutRoomBlockResponse(BaseModel): + """ + PutRoomBlockResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block", alias="roomBlockType") + room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") + start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] + + @field_validator('room_block_type') + def room_block_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['blocked', 'out_of_service']): + raise ValueError("must be one of enum values ('blocked', 'out_of_service')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutRoomBlockResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutRoomBlockResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "propertyID": obj.get("propertyID"), + "roomBlockID": obj.get("roomBlockID"), + "roomBlockType": obj.get("roomBlockType"), + "roomBlockReason": obj.get("roomBlockReason"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rooms": [PostRoomBlockResponseRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/rest.py b/cloudbeds_pms_v1_2/rest.py new file mode 100644 index 0000000..b76c886 --- /dev/null +++ b/cloudbeds_pms_v1_2/rest.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import json +import re +import ssl + +import urllib3 + +from cloudbeds_pms_v1_2.exceptions import ApiException, ApiValueError + +SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} +RESTResponseType = urllib3.HTTPResponse + + +def is_socks_proxy_url(url): + if url is None: + return False + split_section = url.split("://") + if len(split_section) < 2: + return False + else: + return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES + + +class RESTResponse(io.IOBase): + + def __init__(self, resp) -> None: + self.response = resp + self.status = resp.status + self.reason = resp.reason + self.data = None + + def read(self): + if self.data is None: + self.data = self.response.data + return self.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.response.headers + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.response.headers.get(name, default) + + +class RESTClientObject: + + def __init__(self, configuration) -> None: + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + pool_args = { + "cert_reqs": cert_reqs, + "ca_certs": configuration.ssl_ca_cert, + "cert_file": configuration.cert_file, + "key_file": configuration.key_file, + } + if configuration.assert_hostname is not None: + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) + + if configuration.retries is not None: + pool_args['retries'] = configuration.retries + + if configuration.tls_server_name: + pool_args['server_hostname'] = configuration.tls_server_name + + + if configuration.socket_options is not None: + pool_args['socket_options'] = configuration.socket_options + + if configuration.connection_pool_maxsize is not None: + pool_args['maxsize'] = configuration.connection_pool_maxsize + + # https pool manager + self.pool_manager: urllib3.PoolManager + + if configuration.proxy: + if is_socks_proxy_url(configuration.proxy): + from urllib3.contrib.socks import SOCKSProxyManager + pool_args["proxy_url"] = configuration.proxy + pool_args["headers"] = configuration.proxy_headers + self.pool_manager = SOCKSProxyManager(**pool_args) + else: + pool_args["proxy_url"] = configuration.proxy + pool_args["proxy_headers"] = configuration.proxy_headers + self.pool_manager = urllib3.ProxyManager(**pool_args) + else: + self.pool_manager = urllib3.PoolManager(**pool_args) + + def request( + self, + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): + """Perform requests. + + :param method: http request method + :param url: http request url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): + timeout = urllib3.Timeout(total=_request_timeout) + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): + timeout = urllib3.Timeout( + connect=_request_timeout[0], + read=_request_timeout[1] + ) + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + + # no content type provided or payload is json + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, + url, + body=request_body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'application/x-www-form-urlencoded': + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=False, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif content_type == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + # Ensures that dict objects are serialized + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] + r = self.pool_manager.request( + method, + url, + fields=post_params, + encode_multipart=True, + timeout=timeout, + headers=headers, + preload_content=False + ) + # Pass a `string` parameter directly in the body to support + # other content types than JSON when `body` argument is + # provided in serialized form. + elif isinstance(body, str) or isinstance(body, bytes): + r = self.pool_manager.request( + method, + url, + body=body, + timeout=timeout, + headers=headers, + preload_content=False + ) + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): + request_body = "true" if body else "false" + r = self.pool_manager.request( + method, + url, + body=request_body, + preload_content=False, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request( + method, + url, + fields={}, + timeout=timeout, + headers=headers, + preload_content=False + ) + except urllib3.exceptions.SSLError as e: + msg = "\n".join([type(e).__name__, str(e)]) + raise ApiException(status=0, reason=msg) + + return RESTResponse(r) diff --git a/cloudbeds_pms_v1_2/test/__init__.py b/cloudbeds_pms_v1_2/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/cloudbeds_pms_v1_2/test/test_adjustment_api.py b/cloudbeds_pms_v1_2/test/test_adjustment_api.py new file mode 100644 index 0000000..e32c38d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_adjustment_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi + + +class TestAdjustmentApi(unittest.TestCase): + """AdjustmentApi unit test stubs""" + + def setUp(self) -> None: + self.api = AdjustmentApi() + + def tearDown(self) -> None: + pass + + def test_delete_adjustment_delete(self) -> None: + """Test case for delete_adjustment_delete + + deleteAdjustment + """ + pass + + def test_get_adjustment_get(self) -> None: + """Test case for get_adjustment_get + + getAdjustment + """ + pass + + def test_get_adjustments_get(self) -> None: + """Test case for get_adjustments_get + + getAdjustments + """ + pass + + def test_post_adjustment_post(self) -> None: + """Test case for post_adjustment_post + + postAdjustment + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py b/cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py new file mode 100644 index 0000000..7c2e338 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.allotment_blocks_api import AllotmentBlocksApi + + +class TestAllotmentBlocksApi(unittest.TestCase): + """AllotmentBlocksApi unit test stubs""" + + def setUp(self) -> None: + self.api = AllotmentBlocksApi() + + def tearDown(self) -> None: + pass + + def test_create_allotment_block_notes_post(self) -> None: + """Test case for create_allotment_block_notes_post + + createAllotmentBlockNotes + """ + pass + + def test_create_allotment_block_post(self) -> None: + """Test case for create_allotment_block_post + + createAllotmentBlock + """ + pass + + def test_delete_allotment_block_post(self) -> None: + """Test case for delete_allotment_block_post + + deleteAllotmentBlock + """ + pass + + def test_get_allotment_blocks_get(self) -> None: + """Test case for get_allotment_blocks_get + + getAllotmentBlocks + """ + pass + + def test_list_allotment_block_notes_get(self) -> None: + """Test case for list_allotment_block_notes_get + + listAllotmentBlockNotes + """ + pass + + def test_update_allotment_block_notes_post(self) -> None: + """Test case for update_allotment_block_notes_post + + updateAllotmentBlockNotes + """ + pass + + def test_update_allotment_block_post(self) -> None: + """Test case for update_allotment_block_post + + updateAllotmentBlock + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_app_settings_api.py b/cloudbeds_pms_v1_2/test/test_app_settings_api.py new file mode 100644 index 0000000..0b2c281 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_app_settings_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.app_settings_api import AppSettingsApi + + +class TestAppSettingsApi(unittest.TestCase): + """AppSettingsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AppSettingsApi() + + def tearDown(self) -> None: + pass + + def test_delete_app_property_settings_post(self) -> None: + """Test case for delete_app_property_settings_post + + deleteAppPropertySettings + """ + pass + + def test_get_app_property_settings_get(self) -> None: + """Test case for get_app_property_settings_get + + getAppPropertySettings + """ + pass + + def test_post_app_property_settings_post(self) -> None: + """Test case for post_app_property_settings_post + + postAppPropertySettings + """ + pass + + def test_put_app_property_settings_post(self) -> None: + """Test case for put_app_property_settings_post + + putAppPropertySettings + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_authentication_api.py b/cloudbeds_pms_v1_2/test/test_authentication_api.py new file mode 100644 index 0000000..e1ade67 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_authentication_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.authentication_api import AuthenticationApi + + +class TestAuthenticationApi(unittest.TestCase): + """AuthenticationApi unit test stubs""" + + def setUp(self) -> None: + self.api = AuthenticationApi() + + def tearDown(self) -> None: + pass + + def test_access_token_post(self) -> None: + """Test case for access_token_post + + access_token + """ + pass + + def test_oauth_metadata_get(self) -> None: + """Test case for oauth_metadata_get + + metadata + """ + pass + + def test_userinfo_get(self) -> None: + """Test case for userinfo_get + + userinfo + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_currency_api.py b/cloudbeds_pms_v1_2/test/test_currency_api.py new file mode 100644 index 0000000..1fa003e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_currency_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.currency_api import CurrencyApi + + +class TestCurrencyApi(unittest.TestCase): + """CurrencyApi unit test stubs""" + + def setUp(self) -> None: + self.api = CurrencyApi() + + def tearDown(self) -> None: + pass + + def test_get_currency_settings_get(self) -> None: + """Test case for get_currency_settings_get + + getCurrencySettings + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_custom_fields_api.py b/cloudbeds_pms_v1_2/test/test_custom_fields_api.py new file mode 100644 index 0000000..4000e24 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_custom_fields_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.custom_fields_api import CustomFieldsApi + + +class TestCustomFieldsApi(unittest.TestCase): + """CustomFieldsApi unit test stubs""" + + def setUp(self) -> None: + self.api = CustomFieldsApi() + + def tearDown(self) -> None: + pass + + def test_get_custom_fields_get(self) -> None: + """Test case for get_custom_fields_get + + getCustomFields + """ + pass + + def test_post_custom_field_post(self) -> None: + """Test case for post_custom_field_post + + postCustomField + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_dashboard_api.py b/cloudbeds_pms_v1_2/test/test_dashboard_api.py new file mode 100644 index 0000000..4116487 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_dashboard_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.dashboard_api import DashboardApi + + +class TestDashboardApi(unittest.TestCase): + """DashboardApi unit test stubs""" + + def setUp(self) -> None: + self.api = DashboardApi() + + def tearDown(self) -> None: + pass + + def test_get_dashboard_get(self) -> None: + """Test case for get_dashboard_get + + getDashboard + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py b/cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py new file mode 100644 index 0000000..49e9406 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse + +class TestDeleteAdjustmentResponse(unittest.TestCase): + """DeleteAdjustmentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteAdjustmentResponse: + """Test DeleteAdjustmentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteAdjustmentResponse` + """ + model = DeleteAdjustmentResponse() + if include_optional: + return DeleteAdjustmentResponse( + success = True, + message = '' + ) + else: + return DeleteAdjustmentResponse( + ) + """ + + def testDeleteAdjustmentResponse(self): + """Test DeleteAdjustmentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py b/cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py new file mode 100644 index 0000000..6705c40 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse + +class TestDeleteGuestNoteResponse(unittest.TestCase): + """DeleteGuestNoteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteGuestNoteResponse: + """Test DeleteGuestNoteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteGuestNoteResponse` + """ + model = DeleteGuestNoteResponse() + if include_optional: + return DeleteGuestNoteResponse( + success = True, + message = '' + ) + else: + return DeleteGuestNoteResponse( + ) + """ + + def testDeleteGuestNoteResponse(self): + """Test DeleteGuestNoteResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py b/cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py new file mode 100644 index 0000000..e4b2c84 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse + +class TestDeleteReservationNoteResponse(unittest.TestCase): + """DeleteReservationNoteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteReservationNoteResponse: + """Test DeleteReservationNoteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteReservationNoteResponse` + """ + model = DeleteReservationNoteResponse() + if include_optional: + return DeleteReservationNoteResponse( + success = True, + message = '' + ) + else: + return DeleteReservationNoteResponse( + ) + """ + + def testDeleteReservationNoteResponse(self): + """Test DeleteReservationNoteResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_delete_room_block_response.py b/cloudbeds_pms_v1_2/test/test_delete_room_block_response.py new file mode 100644 index 0000000..2a47e8b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_delete_room_block_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse + +class TestDeleteRoomBlockResponse(unittest.TestCase): + """DeleteRoomBlockResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteRoomBlockResponse: + """Test DeleteRoomBlockResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteRoomBlockResponse` + """ + model = DeleteRoomBlockResponse() + if include_optional: + return DeleteRoomBlockResponse( + success = True, + message = '' + ) + else: + return DeleteRoomBlockResponse( + ) + """ + + def testDeleteRoomBlockResponse(self): + """Test DeleteRoomBlockResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_delete_webhook_response.py b/cloudbeds_pms_v1_2/test/test_delete_webhook_response.py new file mode 100644 index 0000000..5736fb8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_delete_webhook_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse + +class TestDeleteWebhookResponse(unittest.TestCase): + """DeleteWebhookResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteWebhookResponse: + """Test DeleteWebhookResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteWebhookResponse` + """ + model = DeleteWebhookResponse() + if include_optional: + return DeleteWebhookResponse( + success = True + ) + else: + return DeleteWebhookResponse( + ) + """ + + def testDeleteWebhookResponse(self): + """Test DeleteWebhookResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_emails_api.py b/cloudbeds_pms_v1_2/test/test_emails_api.py new file mode 100644 index 0000000..2298fa9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_emails_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.emails_api import EmailsApi + + +class TestEmailsApi(unittest.TestCase): + """EmailsApi unit test stubs""" + + def setUp(self) -> None: + self.api = EmailsApi() + + def tearDown(self) -> None: + pass + + def test_get_email_schedule_get(self) -> None: + """Test case for get_email_schedule_get + + getEmailSchedule + """ + pass + + def test_get_email_templates_get(self) -> None: + """Test case for get_email_templates_get + + getEmailTemplates + """ + pass + + def test_post_email_schedule_post(self) -> None: + """Test case for post_email_schedule_post + + postEmailSchedule + """ + pass + + def test_post_email_template_post(self) -> None: + """Test case for post_email_template_post + + postEmailTemplate + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustment_response.py b/cloudbeds_pms_v1_2/test/test_get_adjustment_response.py new file mode 100644 index 0000000..dbc6e80 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_adjustment_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse + +class TestGetAdjustmentResponse(unittest.TestCase): + """GetAdjustmentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentResponse: + """Test GetAdjustmentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentResponse` + """ + model = GetAdjustmentResponse() + if include_optional: + return GetAdjustmentResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_adjustment_response_data.GetAdjustmentResponse_data( + adjustment_id = '', + property_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + reservation_identifier = '', + description = '', + notes = '', + amount = 1.337, + currency = 1.337, + posted = 1.337, + type = '', + void_id = '', ) + ) + else: + return GetAdjustmentResponse( + ) + """ + + def testGetAdjustmentResponse(self): + """Test GetAdjustmentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py b/cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py new file mode 100644 index 0000000..d5a15c3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData + +class TestGetAdjustmentResponseData(unittest.TestCase): + """GetAdjustmentResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentResponseData: + """Test GetAdjustmentResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentResponseData` + """ + model = GetAdjustmentResponseData() + if include_optional: + return GetAdjustmentResponseData( + adjustment_id = '', + property_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + reservation_identifier = '', + description = '', + notes = '', + amount = 1.337, + currency = 1.337, + posted = 1.337, + type = '', + void_id = '' + ) + else: + return GetAdjustmentResponseData( + ) + """ + + def testGetAdjustmentResponseData(self): + """Test GetAdjustmentResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustments_response.py b/cloudbeds_pms_v1_2/test/test_get_adjustments_response.py new file mode 100644 index 0000000..5d24c70 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_adjustments_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse + +class TestGetAdjustmentsResponse(unittest.TestCase): + """GetAdjustmentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentsResponse: + """Test GetAdjustmentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentsResponse` + """ + model = GetAdjustmentsResponse() + if include_optional: + return GetAdjustmentsResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_adjustments_response_data.GetAdjustmentsResponse_data( + adjustment_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + description = '', + notes = '', + amount = 1.337, + type = '', ) + ) + else: + return GetAdjustmentsResponse( + ) + """ + + def testGetAdjustmentsResponse(self): + """Test GetAdjustmentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py b/cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py new file mode 100644 index 0000000..b101cb0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData + +class TestGetAdjustmentsResponseData(unittest.TestCase): + """GetAdjustmentsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentsResponseData: + """Test GetAdjustmentsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentsResponseData` + """ + model = GetAdjustmentsResponseData() + if include_optional: + return GetAdjustmentsResponseData( + adjustment_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + description = '', + notes = '', + amount = 1.337, + type = '' + ) + else: + return GetAdjustmentsResponseData( + ) + """ + + def testGetAdjustmentsResponseData(self): + """Test GetAdjustmentsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py new file mode 100644 index 0000000..42e90f0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse + +class TestGetAllotmentBlocksResponse(unittest.TestCase): + """GetAllotmentBlocksResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: + """Test GetAllotmentBlocksResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAllotmentBlocksResponse` + """ + model = GetAllotmentBlocksResponse() + if include_optional: + return GetAllotmentBlocksResponse( + success = True, + count = 56, + total = 56, + data = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner.GetAllotmentBlocksResponse_data_inner( + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + group_code = '', + is_auto_release = True, + auto_release = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( + release_type = 'all_dates', + days = 56, + release_time = '', ) + ], + allotment_intervals = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ) + ], + restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ], ) + ] + ) + else: + return GetAllotmentBlocksResponse( + ) + """ + + def testGetAllotmentBlocksResponse(self): + """Test GetAllotmentBlocksResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py new file mode 100644 index 0000000..b344053 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner + +class TestGetAllotmentBlocksResponseDataInner(unittest.TestCase): + """GetAllotmentBlocksResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner: + """Test GetAllotmentBlocksResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAllotmentBlocksResponseDataInner` + """ + model = GetAllotmentBlocksResponseDataInner() + if include_optional: + return GetAllotmentBlocksResponseDataInner( + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + group_code = '', + is_auto_release = True, + auto_release = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( + release_type = 'all_dates', + days = 56, + release_time = '', ) + ], + allotment_intervals = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ) + ], + restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ] + ) + else: + return GetAllotmentBlocksResponseDataInner( + ) + """ + + def testGetAllotmentBlocksResponseDataInner(self): + """Test GetAllotmentBlocksResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..fe2cf67 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner + +class TestGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner(unittest.TestCase): + """GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner: + """Test GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner` + """ + model = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner() + if include_optional: + return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = [ + cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ) + ], + restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ) + ) + else: + return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner( + ) + """ + + def testGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner(self): + """Test GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py new file mode 100644 index 0000000..fba7d19 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner + +class TestGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner(unittest.TestCase): + """GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner: + """Test GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner` + """ + model = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner() + if include_optional: + return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ) + ) + else: + return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner( + ) + """ + + def testGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner(self): + """Test GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..aa3cb09 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions + +class TestGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): + """GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions: + """Test GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions` + """ + model = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions() + if include_optional: + return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56 + ) + else: + return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions( + ) + """ + + def testGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions(self): + """Test GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py new file mode 100644 index 0000000..4154b2d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner + +class TestGetAllotmentBlocksResponseDataInnerAutoReleaseInner(unittest.TestCase): + """GetAllotmentBlocksResponseDataInnerAutoReleaseInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInnerAutoReleaseInner: + """Test GetAllotmentBlocksResponseDataInnerAutoReleaseInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAllotmentBlocksResponseDataInnerAutoReleaseInner` + """ + model = GetAllotmentBlocksResponseDataInnerAutoReleaseInner() + if include_optional: + return GetAllotmentBlocksResponseDataInnerAutoReleaseInner( + release_type = 'all_dates', + days = 56, + release_time = '' + ) + else: + return GetAllotmentBlocksResponseDataInnerAutoReleaseInner( + ) + """ + + def testGetAllotmentBlocksResponseDataInnerAutoReleaseInner(self): + """Test GetAllotmentBlocksResponseDataInnerAutoReleaseInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py new file mode 100644 index 0000000..a263572 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse + +class TestGetAppPropertySettingsResponse(unittest.TestCase): + """GetAppPropertySettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppPropertySettingsResponse: + """Test GetAppPropertySettingsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppPropertySettingsResponse` + """ + model = GetAppPropertySettingsResponse() + if include_optional: + return GetAppPropertySettingsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner.GetAppPropertySettingsResponse_data_inner( + id = '', + key = '', + value = '', ) + ] + ) + else: + return GetAppPropertySettingsResponse( + ) + """ + + def testGetAppPropertySettingsResponse(self): + """Test GetAppPropertySettingsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py new file mode 100644 index 0000000..0817eef --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner + +class TestGetAppPropertySettingsResponseDataInner(unittest.TestCase): + """GetAppPropertySettingsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppPropertySettingsResponseDataInner: + """Test GetAppPropertySettingsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppPropertySettingsResponseDataInner` + """ + model = GetAppPropertySettingsResponseDataInner() + if include_optional: + return GetAppPropertySettingsResponseDataInner( + id = '', + key = '', + value = '' + ) + else: + return GetAppPropertySettingsResponseDataInner( + ) + """ + + def testGetAppPropertySettingsResponseDataInner(self): + """Test GetAppPropertySettingsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_app_settings_response.py b/cloudbeds_pms_v1_2/test/test_get_app_settings_response.py new file mode 100644 index 0000000..d5380ac --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_app_settings_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse + +class TestGetAppSettingsResponse(unittest.TestCase): + """GetAppSettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppSettingsResponse: + """Test GetAppSettingsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppSettingsResponse` + """ + model = GetAppSettingsResponse() + if include_optional: + return GetAppSettingsResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_app_settings_response_data.GetAppSettingsResponse_data( + full_revenue_sync = True, ) + ) + else: + return GetAppSettingsResponse( + ) + """ + + def testGetAppSettingsResponse(self): + """Test GetAppSettingsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py b/cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py new file mode 100644 index 0000000..fef62ef --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData + +class TestGetAppSettingsResponseData(unittest.TestCase): + """GetAppSettingsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppSettingsResponseData: + """Test GetAppSettingsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppSettingsResponseData` + """ + model = GetAppSettingsResponseData() + if include_optional: + return GetAppSettingsResponseData( + full_revenue_sync = True + ) + else: + return GetAppSettingsResponseData( + ) + """ + + def testGetAppSettingsResponseData(self): + """Test GetAppSettingsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_app_state_response.py b/cloudbeds_pms_v1_2/test/test_get_app_state_response.py new file mode 100644 index 0000000..bb1931e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_app_state_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse + +class TestGetAppStateResponse(unittest.TestCase): + """GetAppStateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppStateResponse: + """Test GetAppStateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppStateResponse` + """ + model = GetAppStateResponse() + if include_optional: + return GetAppStateResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_app_state_response_data.GetAppStateResponse_data( + app_state = 'enabled', ) + ) + else: + return GetAppStateResponse( + ) + """ + + def testGetAppStateResponse(self): + """Test GetAppStateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py b/cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py new file mode 100644 index 0000000..9d3870e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData + +class TestGetAppStateResponseData(unittest.TestCase): + """GetAppStateResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppStateResponseData: + """Test GetAppStateResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppStateResponseData` + """ + model = GetAppStateResponseData() + if include_optional: + return GetAppStateResponseData( + app_state = 'enabled' + ) + else: + return GetAppStateResponseData( + ) + """ + + def testGetAppStateResponseData(self): + """Test GetAppStateResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py new file mode 100644 index 0000000..0407827 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse + +class TestGetAvailableRoomTypesResponse(unittest.TestCase): + """GetAvailableRoomTypesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAvailableRoomTypesResponse: + """Test GetAvailableRoomTypesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAvailableRoomTypesResponse` + """ + model = GetAvailableRoomTypesResponse() + if include_optional: + return GetAvailableRoomTypesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner.GetAvailableRoomTypesResponse_data_inner( + property_id = '', + property_currency = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner.GetAvailableRoomTypesResponse_data_inner_propertyCurrency_inner( + currency_code = '', + currency_symbol = '', + currency_position = 'before', ) + ], + property_rooms = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + room_type_description = '', + max_guests = 56, + adults_included = 56, + children_included = 56, + room_type_photos = [ + cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + thumb = '', + image = '', ) + ], + room_type_features = [ + '' + ], + room_rate = 1.337, + room_rate_id = '', + rate_plan_name_public = '', + rate_plan_name_private = '', + rooms_available = 56, + adults_extra_charge = [ + None + ], + children_extra_charge = [ + None + ], + room_rate_detailed = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + derived_type = 'fixed', + derived_value = 1.337, + individual_rooms = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( + room_id = '', + room_name = 1.337, + dorm_room_name = '', ) + ], ) + ], ) + ], + room_count = 56, + count = 56, + total = 56, + message = '' + ) + else: + return GetAvailableRoomTypesResponse( + ) + """ + + def testGetAvailableRoomTypesResponse(self): + """Test GetAvailableRoomTypesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py new file mode 100644 index 0000000..16ce271 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner + +class TestGetAvailableRoomTypesResponseDataInner(unittest.TestCase): + """GetAvailableRoomTypesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataInner: + """Test GetAvailableRoomTypesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAvailableRoomTypesResponseDataInner` + """ + model = GetAvailableRoomTypesResponseDataInner() + if include_optional: + return GetAvailableRoomTypesResponseDataInner( + property_id = '', + property_currency = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner.GetAvailableRoomTypesResponse_data_inner_propertyCurrency_inner( + currency_code = '', + currency_symbol = '', + currency_position = 'before', ) + ], + property_rooms = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + room_type_description = '', + max_guests = 56, + adults_included = 56, + children_included = 56, + room_type_photos = [ + cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + thumb = '', + image = '', ) + ], + room_type_features = [ + '' + ], + room_rate = 1.337, + room_rate_id = '', + rate_plan_name_public = '', + rate_plan_name_private = '', + rooms_available = 56, + adults_extra_charge = [ + None + ], + children_extra_charge = [ + None + ], + room_rate_detailed = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + derived_type = 'fixed', + derived_value = 1.337, + individual_rooms = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( + room_id = '', + room_name = 1.337, + dorm_room_name = '', ) + ], ) + ] + ) + else: + return GetAvailableRoomTypesResponseDataInner( + ) + """ + + def testGetAvailableRoomTypesResponseDataInner(self): + """Test GetAvailableRoomTypesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py new file mode 100644 index 0000000..89dd9f0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner + +class TestGetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner(unittest.TestCase): + """GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner: + """Test GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner` + """ + model = GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner() + if include_optional: + return GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner( + currency_code = '', + currency_symbol = '', + currency_position = 'before' + ) + else: + return GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner( + ) + """ + + def testGetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner(self): + """Test GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py new file mode 100644 index 0000000..4b0af0d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner + +class TestGetAvailableRoomTypesResponseDataInnerPropertyRoomsInner(unittest.TestCase): + """GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner: + """Test GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner` + """ + model = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner() + if include_optional: + return GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner( + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + room_type_description = '', + max_guests = 56, + adults_included = 56, + children_included = 56, + room_type_photos = [ + cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + thumb = '', + image = '', ) + ], + room_type_features = [ + '' + ], + room_rate = 1.337, + room_rate_id = '', + rate_plan_name_public = '', + rate_plan_name_private = '', + rooms_available = 56, + adults_extra_charge = [ + None + ], + children_extra_charge = [ + None + ], + room_rate_detailed = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + derived_type = 'fixed', + derived_value = 1.337, + individual_rooms = [ + cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( + room_id = '', + room_name = 1.337, + dorm_room_name = '', ) + ] + ) + else: + return GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner( + ) + """ + + def testGetAvailableRoomTypesResponseDataInnerPropertyRoomsInner(self): + """Test GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py new file mode 100644 index 0000000..a920912 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner + +class TestGetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner(unittest.TestCase): + """GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner: + """Test GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner` + """ + model = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner() + if include_optional: + return GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner( + room_id = '', + room_name = 1.337, + dorm_room_name = '' + ) + else: + return GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner( + ) + """ + + def testGetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner(self): + """Test GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py new file mode 100644 index 0000000..3e83a76 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner + +class TestGetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner(unittest.TestCase): + """GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner: + """Test GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner` + """ + model = GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner() + if include_optional: + return GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337 + ) + else: + return GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner( + ) + """ + + def testGetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner(self): + """Test GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py new file mode 100644 index 0000000..a0b9034 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse + +class TestGetCurrencySettingsResponse(unittest.TestCase): + """GetCurrencySettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCurrencySettingsResponse: + """Test GetCurrencySettingsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCurrencySettingsResponse` + """ + model = GetCurrencySettingsResponse() + if include_optional: + return GetCurrencySettingsResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_currency_settings_response_data.GetCurrencySettingsResponse_data( + default = '', + acceptable = [ + '' + ], + format = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format.GetCurrencySettingsResponse_data_format( + decimal = '', + thousand = '', ), + rates = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates.GetCurrencySettingsResponse_data_rates( + fixed = [ + cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( + currency = '', + rate = 1.337, ) + ], ), ), + message = '' + ) + else: + return GetCurrencySettingsResponse( + ) + """ + + def testGetCurrencySettingsResponse(self): + """Test GetCurrencySettingsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py new file mode 100644 index 0000000..1c1e10f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData + +class TestGetCurrencySettingsResponseData(unittest.TestCase): + """GetCurrencySettingsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCurrencySettingsResponseData: + """Test GetCurrencySettingsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCurrencySettingsResponseData` + """ + model = GetCurrencySettingsResponseData() + if include_optional: + return GetCurrencySettingsResponseData( + default = '', + acceptable = [ + '' + ], + format = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format.GetCurrencySettingsResponse_data_format( + decimal = '', + thousand = '', ), + rates = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates.GetCurrencySettingsResponse_data_rates( + fixed = [ + cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( + currency = '', + rate = 1.337, ) + ], ) + ) + else: + return GetCurrencySettingsResponseData( + ) + """ + + def testGetCurrencySettingsResponseData(self): + """Test GetCurrencySettingsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py new file mode 100644 index 0000000..5590533 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat + +class TestGetCurrencySettingsResponseDataFormat(unittest.TestCase): + """GetCurrencySettingsResponseDataFormat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCurrencySettingsResponseDataFormat: + """Test GetCurrencySettingsResponseDataFormat + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCurrencySettingsResponseDataFormat` + """ + model = GetCurrencySettingsResponseDataFormat() + if include_optional: + return GetCurrencySettingsResponseDataFormat( + decimal = '', + thousand = '' + ) + else: + return GetCurrencySettingsResponseDataFormat( + ) + """ + + def testGetCurrencySettingsResponseDataFormat(self): + """Test GetCurrencySettingsResponseDataFormat""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py new file mode 100644 index 0000000..80f0803 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates + +class TestGetCurrencySettingsResponseDataRates(unittest.TestCase): + """GetCurrencySettingsResponseDataRates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCurrencySettingsResponseDataRates: + """Test GetCurrencySettingsResponseDataRates + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCurrencySettingsResponseDataRates` + """ + model = GetCurrencySettingsResponseDataRates() + if include_optional: + return GetCurrencySettingsResponseDataRates( + fixed = [ + cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( + currency = '', + rate = 1.337, ) + ] + ) + else: + return GetCurrencySettingsResponseDataRates( + ) + """ + + def testGetCurrencySettingsResponseDataRates(self): + """Test GetCurrencySettingsResponseDataRates""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py new file mode 100644 index 0000000..2675c02 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner + +class TestGetCurrencySettingsResponseDataRatesFixedInner(unittest.TestCase): + """GetCurrencySettingsResponseDataRatesFixedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCurrencySettingsResponseDataRatesFixedInner: + """Test GetCurrencySettingsResponseDataRatesFixedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCurrencySettingsResponseDataRatesFixedInner` + """ + model = GetCurrencySettingsResponseDataRatesFixedInner() + if include_optional: + return GetCurrencySettingsResponseDataRatesFixedInner( + currency = '', + rate = 1.337 + ) + else: + return GetCurrencySettingsResponseDataRatesFixedInner( + ) + """ + + def testGetCurrencySettingsResponseDataRatesFixedInner(self): + """Test GetCurrencySettingsResponseDataRatesFixedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py b/cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py new file mode 100644 index 0000000..1d8d63a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse + +class TestGetCustomFieldsResponse(unittest.TestCase): + """GetCustomFieldsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCustomFieldsResponse: + """Test GetCustomFieldsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCustomFieldsResponse` + """ + model = GetCustomFieldsResponse() + if include_optional: + return GetCustomFieldsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner.GetCustomFieldsResponse_data_inner( + property_id = '', + name = '', + shortcode = '', + apply_to = 'reservation', + required = True, + is_personal = True, + max_characters = 56, + type = 'input', + displayed = reservation, ) + ], + message = '' + ) + else: + return GetCustomFieldsResponse( + ) + """ + + def testGetCustomFieldsResponse(self): + """Test GetCustomFieldsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py new file mode 100644 index 0000000..e743a50 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner + +class TestGetCustomFieldsResponseDataInner(unittest.TestCase): + """GetCustomFieldsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCustomFieldsResponseDataInner: + """Test GetCustomFieldsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCustomFieldsResponseDataInner` + """ + model = GetCustomFieldsResponseDataInner() + if include_optional: + return GetCustomFieldsResponseDataInner( + property_id = '', + name = '', + shortcode = '', + apply_to = 'reservation', + required = True, + is_personal = True, + max_characters = 56, + type = 'input', + displayed = reservation + ) + else: + return GetCustomFieldsResponseDataInner( + ) + """ + + def testGetCustomFieldsResponseDataInner(self): + """Test GetCustomFieldsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_dashboard_response.py b/cloudbeds_pms_v1_2/test/test_get_dashboard_response.py new file mode 100644 index 0000000..4d23e87 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_dashboard_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse + +class TestGetDashboardResponse(unittest.TestCase): + """GetDashboardResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDashboardResponse: + """Test GetDashboardResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDashboardResponse` + """ + model = GetDashboardResponse() + if include_optional: + return GetDashboardResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_dashboard_response_data.GetDashboardResponse_data( + rooms_occupied = 56, + percentage_occupied = 56, + arrivals = 56, + departures = 56, + in_house = 56, ), + message = '' + ) + else: + return GetDashboardResponse( + ) + """ + + def testGetDashboardResponse(self): + """Test GetDashboardResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py b/cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py new file mode 100644 index 0000000..84dbc09 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData + +class TestGetDashboardResponseData(unittest.TestCase): + """GetDashboardResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetDashboardResponseData: + """Test GetDashboardResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetDashboardResponseData` + """ + model = GetDashboardResponseData() + if include_optional: + return GetDashboardResponseData( + rooms_occupied = 56, + percentage_occupied = 56, + arrivals = 56, + departures = 56, + in_house = 56 + ) + else: + return GetDashboardResponseData( + ) + """ + + def testGetDashboardResponseData(self): + """Test GetDashboardResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py b/cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py new file mode 100644 index 0000000..01b586b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse + +class TestGetEmailScheduleResponse(unittest.TestCase): + """GetEmailScheduleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetEmailScheduleResponse: + """Test GetEmailScheduleResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetEmailScheduleResponse` + """ + model = GetEmailScheduleResponse() + if include_optional: + return GetEmailScheduleResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner.GetEmailScheduleResponse_data_inner( + email_schedule_id = '', + name = '', + email_template_id = '', + template_name = '', + is_active = True, ) + ] + ) + else: + return GetEmailScheduleResponse( + ) + """ + + def testGetEmailScheduleResponse(self): + """Test GetEmailScheduleResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py new file mode 100644 index 0000000..50972b7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner + +class TestGetEmailScheduleResponseDataInner(unittest.TestCase): + """GetEmailScheduleResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetEmailScheduleResponseDataInner: + """Test GetEmailScheduleResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetEmailScheduleResponseDataInner` + """ + model = GetEmailScheduleResponseDataInner() + if include_optional: + return GetEmailScheduleResponseDataInner( + email_schedule_id = '', + name = '', + email_template_id = '', + template_name = '', + is_active = True + ) + else: + return GetEmailScheduleResponseDataInner( + ) + """ + + def testGetEmailScheduleResponseDataInner(self): + """Test GetEmailScheduleResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_email_templates_response.py b/cloudbeds_pms_v1_2/test/test_get_email_templates_response.py new file mode 100644 index 0000000..07309e9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_email_templates_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse + +class TestGetEmailTemplatesResponse(unittest.TestCase): + """GetEmailTemplatesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetEmailTemplatesResponse: + """Test GetEmailTemplatesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetEmailTemplatesResponse` + """ + model = GetEmailTemplatesResponse() + if include_optional: + return GetEmailTemplatesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner.GetEmailTemplatesResponse_data_inner( + email_template_id = '', + name = '', + subject = '', + is_active = True, ) + ] + ) + else: + return GetEmailTemplatesResponse( + ) + """ + + def testGetEmailTemplatesResponse(self): + """Test GetEmailTemplatesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py new file mode 100644 index 0000000..61192b9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner + +class TestGetEmailTemplatesResponseDataInner(unittest.TestCase): + """GetEmailTemplatesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetEmailTemplatesResponseDataInner: + """Test GetEmailTemplatesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetEmailTemplatesResponseDataInner` + """ + model = GetEmailTemplatesResponseDataInner() + if include_optional: + return GetEmailTemplatesResponseDataInner( + email_template_id = '', + name = '', + subject = '', + is_active = True + ) + else: + return GetEmailTemplatesResponseDataInner( + ) + """ + + def testGetEmailTemplatesResponseDataInner(self): + """Test GetEmailTemplatesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_files_response.py b/cloudbeds_pms_v1_2/test/test_get_files_response.py new file mode 100644 index 0000000..fe40448 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_files_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse + +class TestGetFilesResponse(unittest.TestCase): + """GetFilesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetFilesResponse: + """Test GetFilesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetFilesResponse` + """ + model = GetFilesResponse() + if include_optional: + return GetFilesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_files_response_data_inner.GetFilesResponse_data_inner( + file_id = '', + name = '', + type = '', + source = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + url = '', ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetFilesResponse( + ) + """ + + def testGetFilesResponse(self): + """Test GetFilesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py new file mode 100644 index 0000000..a95cb82 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner + +class TestGetFilesResponseDataInner(unittest.TestCase): + """GetFilesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetFilesResponseDataInner: + """Test GetFilesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetFilesResponseDataInner` + """ + model = GetFilesResponseDataInner() + if include_optional: + return GetFilesResponseDataInner( + file_id = '', + name = '', + type = '', + source = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + url = '' + ) + else: + return GetFilesResponseDataInner( + ) + """ + + def testGetFilesResponseDataInner(self): + """Test GetFilesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_group_notes_response.py b/cloudbeds_pms_v1_2/test/test_get_group_notes_response.py new file mode 100644 index 0000000..2c36383 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_group_notes_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse + +class TestGetGroupNotesResponse(unittest.TestCase): + """GetGroupNotesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGroupNotesResponse: + """Test GetGroupNotesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGroupNotesResponse` + """ + model = GetGroupNotesResponse() + if include_optional: + return GetGroupNotesResponse( + success = True, + code = 56, + data = cloudbeds_pms_v1_2.models.get_group_notes_response_data.GetGroupNotesResponse_data( + id = '', + group_profile_id = '', + text = '', + created_by = '', + created_at = '', + updated_at = '', + archived = True, + archived_at = '', ) + ) + else: + return GetGroupNotesResponse( + ) + """ + + def testGetGroupNotesResponse(self): + """Test GetGroupNotesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py b/cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py new file mode 100644 index 0000000..04736bf --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData + +class TestGetGroupNotesResponseData(unittest.TestCase): + """GetGroupNotesResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGroupNotesResponseData: + """Test GetGroupNotesResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGroupNotesResponseData` + """ + model = GetGroupNotesResponseData() + if include_optional: + return GetGroupNotesResponseData( + id = '', + group_profile_id = '', + text = '', + created_by = '', + created_at = '', + updated_at = '', + archived = True, + archived_at = '' + ) + else: + return GetGroupNotesResponseData( + ) + """ + + def testGetGroupNotesResponseData(self): + """Test GetGroupNotesResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_groups_response.py b/cloudbeds_pms_v1_2/test/test_get_groups_response.py new file mode 100644 index 0000000..232b6b6 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_groups_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse + +class TestGetGroupsResponse(unittest.TestCase): + """GetGroupsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGroupsResponse: + """Test GetGroupsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGroupsResponse` + """ + model = GetGroupsResponse() + if include_optional: + return GetGroupsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_groups_response_data_inner.GetGroupsResponse_data_inner( + group_code = '', + name = '', + type = 'group', + status = 'open', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + source_id = '', + address1 = '', + address2 = '', + city = '', + zip = '', + state = '', ) + ] + ) + else: + return GetGroupsResponse( + ) + """ + + def testGetGroupsResponse(self): + """Test GetGroupsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py new file mode 100644 index 0000000..5c790e2 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner + +class TestGetGroupsResponseDataInner(unittest.TestCase): + """GetGroupsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGroupsResponseDataInner: + """Test GetGroupsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGroupsResponseDataInner` + """ + model = GetGroupsResponseDataInner() + if include_optional: + return GetGroupsResponseDataInner( + group_code = '', + name = '', + type = 'group', + status = 'open', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + source_id = '', + address1 = '', + address2 = '', + city = '', + zip = '', + state = '' + ) + else: + return GetGroupsResponseDataInner( + ) + """ + + def testGetGroupsResponseDataInner(self): + """Test GetGroupsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_list_response.py b/cloudbeds_pms_v1_2/test/test_get_guest_list_response.py new file mode 100644 index 0000000..6173529 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_list_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse + +class TestGetGuestListResponse(unittest.TestCase): + """GetGuestListResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestListResponse: + """Test GetGuestListResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestListResponse` + """ + model = GetGuestListResponse() + if include_optional: + return GetGuestListResponse( + success = True, + data = { + 'key' : cloudbeds_pms_v1_2.models.get_guest_list_response_data_value.GetGuestListResponse_data_value( + reservation_id = '', + guest_name = '', + guest_email = '', + guest_id = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_main_guest = True, + is_anonymized = True, + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_phone = '', + guest_cell_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + guest_opt_in = True, + guest_notes = [ + cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( + id = '', + note = '', ) + ], + status = 'in_progress', + is_merged = True, + new_guest_id = '', ) + }, + count = 56, + total = 56, + message = '' + ) + else: + return GetGuestListResponse( + ) + """ + + def testGetGuestListResponse(self): + """Test GetGuestListResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py b/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py new file mode 100644 index 0000000..a15ae6a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue + +class TestGetGuestListResponseDataValue(unittest.TestCase): + """GetGuestListResponseDataValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestListResponseDataValue: + """Test GetGuestListResponseDataValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestListResponseDataValue` + """ + model = GetGuestListResponseDataValue() + if include_optional: + return GetGuestListResponseDataValue( + reservation_id = '', + guest_name = '', + guest_email = '', + guest_id = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + is_main_guest = True, + is_anonymized = True, + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_phone = '', + guest_cell_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + guest_opt_in = True, + guest_notes = [ + cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( + id = '', + note = '', ) + ], + status = 'in_progress', + is_merged = True, + new_guest_id = '' + ) + else: + return GetGuestListResponseDataValue( + ) + """ + + def testGetGuestListResponseDataValue(self): + """Test GetGuestListResponseDataValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py b/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py new file mode 100644 index 0000000..5cf2821 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner + +class TestGetGuestListResponseDataValueGuestNotesInner(unittest.TestCase): + """GetGuestListResponseDataValueGuestNotesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestListResponseDataValueGuestNotesInner: + """Test GetGuestListResponseDataValueGuestNotesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestListResponseDataValueGuestNotesInner` + """ + model = GetGuestListResponseDataValueGuestNotesInner() + if include_optional: + return GetGuestListResponseDataValueGuestNotesInner( + id = '', + note = '' + ) + else: + return GetGuestListResponseDataValueGuestNotesInner( + ) + """ + + def testGetGuestListResponseDataValueGuestNotesInner(self): + """Test GetGuestListResponseDataValueGuestNotesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py b/cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py new file mode 100644 index 0000000..d5adc23 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse + +class TestGetGuestNotesResponse(unittest.TestCase): + """GetGuestNotesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestNotesResponse: + """Test GetGuestNotesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestNotesResponse` + """ + model = GetGuestNotesResponse() + if include_optional: + return GetGuestNotesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner.GetGuestNotesResponse_data_inner( + guest_note_id = '', + user_name = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_note = '', ) + ], + message = '' + ) + else: + return GetGuestNotesResponse( + ) + """ + + def testGetGuestNotesResponse(self): + """Test GetGuestNotesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py new file mode 100644 index 0000000..509bc3d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner + +class TestGetGuestNotesResponseDataInner(unittest.TestCase): + """GetGuestNotesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestNotesResponseDataInner: + """Test GetGuestNotesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestNotesResponseDataInner` + """ + model = GetGuestNotesResponseDataInner() + if include_optional: + return GetGuestNotesResponseDataInner( + guest_note_id = '', + user_name = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_note = '' + ) + else: + return GetGuestNotesResponseDataInner( + ) + """ + + def testGetGuestNotesResponseDataInner(self): + """Test GetGuestNotesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response.py b/cloudbeds_pms_v1_2/test/test_get_guest_response.py new file mode 100644 index 0000000..14c53f2 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse + +class TestGetGuestResponse(unittest.TestCase): + """GetGuestResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestResponse: + """Test GetGuestResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestResponse` + """ + model = GetGuestResponse() + if include_optional: + return GetGuestResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_guest_response_data.GetGuestResponse_data( + first_name = '', + last_name = '', + gender = 'M', + email = '', + phone = '', + cell_phone = '', + country = '', + address = '', + address2 = '', + city = '', + zip = '', + state = '', + birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_type = '', + document_number = '', + document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_issuing_country = '', + document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + special_requests = '', + tax_id = '', + company_tax_id = '', + company_name = '', + is_anonymized = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '', ) + ) + else: + return GetGuestResponse( + ) + """ + + def testGetGuestResponse(self): + """Test GetGuestResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py b/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py new file mode 100644 index 0000000..be33960 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData + +class TestGetGuestResponseData(unittest.TestCase): + """GetGuestResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestResponseData: + """Test GetGuestResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestResponseData` + """ + model = GetGuestResponseData() + if include_optional: + return GetGuestResponseData( + first_name = '', + last_name = '', + gender = 'M', + email = '', + phone = '', + cell_phone = '', + country = '', + address = '', + address2 = '', + city = '', + zip = '', + state = '', + birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_type = '', + document_number = '', + document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_issuing_country = '', + document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + special_requests = '', + tax_id = '', + company_tax_id = '', + company_name = '', + is_anonymized = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '' + ) + else: + return GetGuestResponseData( + ) + """ + + def testGetGuestResponseData(self): + """Test GetGuestResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py new file mode 100644 index 0000000..e5733d2 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner + +class TestGetGuestResponseDataCustomFieldsInner(unittest.TestCase): + """GetGuestResponseDataCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestResponseDataCustomFieldsInner: + """Test GetGuestResponseDataCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestResponseDataCustomFieldsInner` + """ + model = GetGuestResponseDataCustomFieldsInner() + if include_optional: + return GetGuestResponseDataCustomFieldsInner( + custom_field_name = '', + custom_field_value = '' + ) + else: + return GetGuestResponseDataCustomFieldsInner( + ) + """ + + def testGetGuestResponseDataCustomFieldsInner(self): + """Test GetGuestResponseDataCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py b/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py new file mode 100644 index 0000000..bd21eff --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse + +class TestGetGuestsByFilterResponse(unittest.TestCase): + """GetGuestsByFilterResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestsByFilterResponse: + """Test GetGuestsByFilterResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestsByFilterResponse` + """ + model = GetGuestsByFilterResponse() + if include_optional: + return GetGuestsByFilterResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner.GetGuestsByFilterResponse_data_inner( + reservation_id = '', + guest_name = '', + guest_id = '', + room_id = '', + room_name = '', + is_main_guest = True, + is_anonymized = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '', ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetGuestsByFilterResponse( + ) + """ + + def testGetGuestsByFilterResponse(self): + """Test GetGuestsByFilterResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py new file mode 100644 index 0000000..884a008 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner + +class TestGetGuestsByFilterResponseDataInner(unittest.TestCase): + """GetGuestsByFilterResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestsByFilterResponseDataInner: + """Test GetGuestsByFilterResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestsByFilterResponseDataInner` + """ + model = GetGuestsByFilterResponseDataInner() + if include_optional: + return GetGuestsByFilterResponseDataInner( + reservation_id = '', + guest_name = '', + guest_id = '', + room_id = '', + room_name = '', + is_main_guest = True, + is_anonymized = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '' + ) + else: + return GetGuestsByFilterResponseDataInner( + ) + """ + + def testGetGuestsByFilterResponseDataInner(self): + """Test GetGuestsByFilterResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py b/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py new file mode 100644 index 0000000..9f511c0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse + +class TestGetGuestsByStatusResponse(unittest.TestCase): + """GetGuestsByStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestsByStatusResponse: + """Test GetGuestsByStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestsByStatusResponse` + """ + model = GetGuestsByStatusResponse() + if include_optional: + return GetGuestsByStatusResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner.GetGuestsByStatusResponse_data_inner( + guest_id = '', + reservation_id = '', + sub_reservation_id = '', + reservation_created_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_type_id = '', + room_id = '', + room_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + current_status = 'canceled', + status_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + tax_id = '', + company_tax_id = '', + company_name = '', + is_anonymized = True, + is_deleted = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '', ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetGuestsByStatusResponse( + ) + """ + + def testGetGuestsByStatusResponse(self): + """Test GetGuestsByStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py new file mode 100644 index 0000000..1938541 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner + +class TestGetGuestsByStatusResponseDataInner(unittest.TestCase): + """GetGuestsByStatusResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestsByStatusResponseDataInner: + """Test GetGuestsByStatusResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestsByStatusResponseDataInner` + """ + model = GetGuestsByStatusResponseDataInner() + if include_optional: + return GetGuestsByStatusResponseDataInner( + guest_id = '', + reservation_id = '', + sub_reservation_id = '', + reservation_created_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_type_id = '', + room_id = '', + room_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + current_status = 'canceled', + status_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + tax_id = '', + company_tax_id = '', + company_name = '', + is_anonymized = True, + is_deleted = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '' + ) + else: + return GetGuestsByStatusResponseDataInner( + ) + """ + + def testGetGuestsByStatusResponseDataInner(self): + """Test GetGuestsByStatusResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py b/cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py new file mode 100644 index 0000000..aa37d56 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse + +class TestGetGuestsModifiedResponse(unittest.TestCase): + """GetGuestsModifiedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestsModifiedResponse: + """Test GetGuestsModifiedResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestsModifiedResponse` + """ + model = GetGuestsModifiedResponse() + if include_optional: + return GetGuestsModifiedResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner.GetGuestsModifiedResponse_data_inner( + guest_id = '', + reservation_id = '', + room_type_id = '', + room_id = '', + room_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + tax_id = '', + company_tax_id = '', + company_name = '', + is_anonymized = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '', ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetGuestsModifiedResponse( + ) + """ + + def testGetGuestsModifiedResponse(self): + """Test GetGuestsModifiedResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py new file mode 100644 index 0000000..3587685 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner + +class TestGetGuestsModifiedResponseDataInner(unittest.TestCase): + """GetGuestsModifiedResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestsModifiedResponseDataInner: + """Test GetGuestsModifiedResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestsModifiedResponseDataInner` + """ + model = GetGuestsModifiedResponseDataInner() + if include_optional: + return GetGuestsModifiedResponseDataInner( + guest_id = '', + reservation_id = '', + room_type_id = '', + room_id = '', + room_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + tax_id = '', + company_tax_id = '', + company_name = '', + is_anonymized = True, + guest_opt_in = True, + is_merged = True, + new_guest_id = '' + ) + else: + return GetGuestsModifiedResponseDataInner( + ) + """ + + def testGetGuestsModifiedResponseDataInner(self): + """Test GetGuestsModifiedResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py b/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py new file mode 100644 index 0000000..4060e96 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner + +class TestGetGuestsModifiedResponseDataInnerCustomFieldsInner(unittest.TestCase): + """GetGuestsModifiedResponseDataInnerCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGuestsModifiedResponseDataInnerCustomFieldsInner: + """Test GetGuestsModifiedResponseDataInnerCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGuestsModifiedResponseDataInnerCustomFieldsInner` + """ + model = GetGuestsModifiedResponseDataInnerCustomFieldsInner() + if include_optional: + return GetGuestsModifiedResponseDataInnerCustomFieldsInner( + custom_field_name = '', + custom_field_value = '' + ) + else: + return GetGuestsModifiedResponseDataInnerCustomFieldsInner( + ) + """ + + def testGetGuestsModifiedResponseDataInnerCustomFieldsInner(self): + """Test GetGuestsModifiedResponseDataInnerCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py new file mode 100644 index 0000000..6134a6b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse + +class TestGetHotelDetailsResponse(unittest.TestCase): + """GetHotelDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelDetailsResponse: + """Test GetHotelDetailsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelDetailsResponse` + """ + model = GetHotelDetailsResponse() + if include_optional: + return GetHotelDetailsResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_hotel_details_response_data.GetHotelDetailsResponse_data( + property_id = '', + organization_id = '', + property_name = '', + property_type = '', + property_image = [ + cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + thumb = '', + image = '', ) + ], + property_description = '', + property_currency = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( + currency_code = '', + currency_symbol = '', + currency_position = 'before', ), + property_primary_language = '', + property_additional_photos = [ + cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + thumb = '', + image = '', ) + ], + property_phone = '', + property_email = '', + property_address = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address.GetHotelDetailsResponse_data_propertyAddress( + property_address1 = '', + property_address2 = '', + property_city = '', + property_state = '', + property_zip = '', + property_country = '', + property_latitude = '', + property_longitude = '', ), + property_policy = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy.GetHotelDetailsResponse_data_propertyPolicy( + property_check_in_time = '', + property_check_out_time = '', + property_late_check_out_allowed = True, + property_late_check_out_type = 'value', + property_late_check_out_value = '', + property_terms_and_conditions = '', + property_full_payment_before_checkin = True, ), + property_amenities = [ + '' + ], + tax_id = '', + tax_id2 = '', + company_legal_name = '', ) + ) + else: + return GetHotelDetailsResponse( + ) + """ + + def testGetHotelDetailsResponse(self): + """Test GetHotelDetailsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py new file mode 100644 index 0000000..2d0fd70 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData + +class TestGetHotelDetailsResponseData(unittest.TestCase): + """GetHotelDetailsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelDetailsResponseData: + """Test GetHotelDetailsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelDetailsResponseData` + """ + model = GetHotelDetailsResponseData() + if include_optional: + return GetHotelDetailsResponseData( + property_id = '', + organization_id = '', + property_name = '', + property_type = '', + property_image = [ + cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + thumb = '', + image = '', ) + ], + property_description = '', + property_currency = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( + currency_code = '', + currency_symbol = '', + currency_position = 'before', ), + property_primary_language = '', + property_additional_photos = [ + cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + thumb = '', + image = '', ) + ], + property_phone = '', + property_email = '', + property_address = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address.GetHotelDetailsResponse_data_propertyAddress( + property_address1 = '', + property_address2 = '', + property_city = '', + property_state = '', + property_zip = '', + property_country = '', + property_latitude = '', + property_longitude = '', ), + property_policy = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy.GetHotelDetailsResponse_data_propertyPolicy( + property_check_in_time = '', + property_check_out_time = '', + property_late_check_out_allowed = True, + property_late_check_out_type = 'value', + property_late_check_out_value = '', + property_terms_and_conditions = '', + property_full_payment_before_checkin = True, ), + property_amenities = [ + '' + ], + tax_id = '', + tax_id2 = '', + company_legal_name = '' + ) + else: + return GetHotelDetailsResponseData( + ) + """ + + def testGetHotelDetailsResponseData(self): + """Test GetHotelDetailsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py new file mode 100644 index 0000000..42aa274 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress + +class TestGetHotelDetailsResponseDataPropertyAddress(unittest.TestCase): + """GetHotelDetailsResponseDataPropertyAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelDetailsResponseDataPropertyAddress: + """Test GetHotelDetailsResponseDataPropertyAddress + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelDetailsResponseDataPropertyAddress` + """ + model = GetHotelDetailsResponseDataPropertyAddress() + if include_optional: + return GetHotelDetailsResponseDataPropertyAddress( + property_address1 = '', + property_address2 = '', + property_city = '', + property_state = '', + property_zip = '', + property_country = '', + property_latitude = '', + property_longitude = '' + ) + else: + return GetHotelDetailsResponseDataPropertyAddress( + ) + """ + + def testGetHotelDetailsResponseDataPropertyAddress(self): + """Test GetHotelDetailsResponseDataPropertyAddress""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py new file mode 100644 index 0000000..a2dad78 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency + +class TestGetHotelDetailsResponseDataPropertyCurrency(unittest.TestCase): + """GetHotelDetailsResponseDataPropertyCurrency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelDetailsResponseDataPropertyCurrency: + """Test GetHotelDetailsResponseDataPropertyCurrency + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelDetailsResponseDataPropertyCurrency` + """ + model = GetHotelDetailsResponseDataPropertyCurrency() + if include_optional: + return GetHotelDetailsResponseDataPropertyCurrency( + currency_code = '', + currency_symbol = '', + currency_position = 'before' + ) + else: + return GetHotelDetailsResponseDataPropertyCurrency( + ) + """ + + def testGetHotelDetailsResponseDataPropertyCurrency(self): + """Test GetHotelDetailsResponseDataPropertyCurrency""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py new file mode 100644 index 0000000..22bd2f9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner + +class TestGetHotelDetailsResponseDataPropertyImageInner(unittest.TestCase): + """GetHotelDetailsResponseDataPropertyImageInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelDetailsResponseDataPropertyImageInner: + """Test GetHotelDetailsResponseDataPropertyImageInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelDetailsResponseDataPropertyImageInner` + """ + model = GetHotelDetailsResponseDataPropertyImageInner() + if include_optional: + return GetHotelDetailsResponseDataPropertyImageInner( + thumb = '', + image = '' + ) + else: + return GetHotelDetailsResponseDataPropertyImageInner( + ) + """ + + def testGetHotelDetailsResponseDataPropertyImageInner(self): + """Test GetHotelDetailsResponseDataPropertyImageInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py new file mode 100644 index 0000000..58786db --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy + +class TestGetHotelDetailsResponseDataPropertyPolicy(unittest.TestCase): + """GetHotelDetailsResponseDataPropertyPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelDetailsResponseDataPropertyPolicy: + """Test GetHotelDetailsResponseDataPropertyPolicy + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelDetailsResponseDataPropertyPolicy` + """ + model = GetHotelDetailsResponseDataPropertyPolicy() + if include_optional: + return GetHotelDetailsResponseDataPropertyPolicy( + property_check_in_time = '', + property_check_out_time = '', + property_late_check_out_allowed = True, + property_late_check_out_type = 'value', + property_late_check_out_value = '', + property_terms_and_conditions = '', + property_full_payment_before_checkin = True + ) + else: + return GetHotelDetailsResponseDataPropertyPolicy( + ) + """ + + def testGetHotelDetailsResponseDataPropertyPolicy(self): + """Test GetHotelDetailsResponseDataPropertyPolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotels_response.py b/cloudbeds_pms_v1_2/test/test_get_hotels_response.py new file mode 100644 index 0000000..d495910 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotels_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse + +class TestGetHotelsResponse(unittest.TestCase): + """GetHotelsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelsResponse: + """Test GetHotelsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelsResponse` + """ + model = GetHotelsResponse() + if include_optional: + return GetHotelsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_hotels_response_data_inner.GetHotelsResponse_data_inner( + property_id = '', + organization_id = '', + property_name = '', + property_image = '', + property_description = '', + property_timezone = '', + property_currency = [ + cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner.GetHotelsResponse_data_inner_propertyCurrency_inner( + currency_code = '', + currency_symbol = '', + currency_position = '', ) + ], ) + ], + count = 56, + total = 56 + ) + else: + return GetHotelsResponse( + ) + """ + + def testGetHotelsResponse(self): + """Test GetHotelsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py new file mode 100644 index 0000000..6d846e7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner + +class TestGetHotelsResponseDataInner(unittest.TestCase): + """GetHotelsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelsResponseDataInner: + """Test GetHotelsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelsResponseDataInner` + """ + model = GetHotelsResponseDataInner() + if include_optional: + return GetHotelsResponseDataInner( + property_id = '', + organization_id = '', + property_name = '', + property_image = '', + property_description = '', + property_timezone = '', + property_currency = [ + cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner.GetHotelsResponse_data_inner_propertyCurrency_inner( + currency_code = '', + currency_symbol = '', + currency_position = '', ) + ] + ) + else: + return GetHotelsResponseDataInner( + ) + """ + + def testGetHotelsResponseDataInner(self): + """Test GetHotelsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py new file mode 100644 index 0000000..3a179f6 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner + +class TestGetHotelsResponseDataInnerPropertyCurrencyInner(unittest.TestCase): + """GetHotelsResponseDataInnerPropertyCurrencyInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelsResponseDataInnerPropertyCurrencyInner: + """Test GetHotelsResponseDataInnerPropertyCurrencyInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelsResponseDataInnerPropertyCurrencyInner` + """ + model = GetHotelsResponseDataInnerPropertyCurrencyInner() + if include_optional: + return GetHotelsResponseDataInnerPropertyCurrencyInner( + currency_code = '', + currency_symbol = '', + currency_position = '' + ) + else: + return GetHotelsResponseDataInnerPropertyCurrencyInner( + ) + """ + + def testGetHotelsResponseDataInnerPropertyCurrencyInner(self): + """Test GetHotelsResponseDataInnerPropertyCurrencyInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py new file mode 100644 index 0000000..c9c1c3a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse + +class TestGetHouseAccountDetailsResponse(unittest.TestCase): + """GetHouseAccountDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponse: + """Test GetHouseAccountDetailsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponse` + """ + model = GetHouseAccountDetailsResponse() + if include_optional: + return GetHouseAccountDetailsResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_house_account_details_response_data.GetHouseAccountDetailsResponse_data( + total = [ + cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( + count = 56, + quantity = '', + debit = '', + credit = '', ) + ], + records = [ + cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( + property_id = '', + transaction_id = '', + user_name = '', + description = '', + notes = '', + quantity = '', + debit = '', + credit = '', + debit_formatter = '', + credit_formatted = '', + currency = '', + transaction_code = '', + parent_transaction_id = '', + transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], ) + ) + else: + return GetHouseAccountDetailsResponse( + ) + """ + + def testGetHouseAccountDetailsResponse(self): + """Test GetHouseAccountDetailsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py new file mode 100644 index 0000000..3724fe7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData + +class TestGetHouseAccountDetailsResponseData(unittest.TestCase): + """GetHouseAccountDetailsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseData: + """Test GetHouseAccountDetailsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponseData` + """ + model = GetHouseAccountDetailsResponseData() + if include_optional: + return GetHouseAccountDetailsResponseData( + total = [ + cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( + count = 56, + quantity = '', + debit = '', + credit = '', ) + ], + records = [ + cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( + property_id = '', + transaction_id = '', + user_name = '', + description = '', + notes = '', + quantity = '', + debit = '', + credit = '', + debit_formatter = '', + credit_formatted = '', + currency = '', + transaction_code = '', + parent_transaction_id = '', + transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return GetHouseAccountDetailsResponseData( + ) + """ + + def testGetHouseAccountDetailsResponseData(self): + """Test GetHouseAccountDetailsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py new file mode 100644 index 0000000..835261f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner + +class TestGetHouseAccountDetailsResponseDataRecordsInner(unittest.TestCase): + """GetHouseAccountDetailsResponseDataRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataRecordsInner: + """Test GetHouseAccountDetailsResponseDataRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataRecordsInner` + """ + model = GetHouseAccountDetailsResponseDataRecordsInner() + if include_optional: + return GetHouseAccountDetailsResponseDataRecordsInner( + property_id = '', + transaction_id = '', + user_name = '', + description = '', + notes = '', + quantity = '', + debit = '', + credit = '', + debit_formatter = '', + credit_formatted = '', + currency = '', + transaction_code = '', + parent_transaction_id = '', + transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return GetHouseAccountDetailsResponseDataRecordsInner( + ) + """ + + def testGetHouseAccountDetailsResponseDataRecordsInner(self): + """Test GetHouseAccountDetailsResponseDataRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py new file mode 100644 index 0000000..18ef96e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner + +class TestGetHouseAccountDetailsResponseDataTotalInner(unittest.TestCase): + """GetHouseAccountDetailsResponseDataTotalInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataTotalInner: + """Test GetHouseAccountDetailsResponseDataTotalInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataTotalInner` + """ + model = GetHouseAccountDetailsResponseDataTotalInner() + if include_optional: + return GetHouseAccountDetailsResponseDataTotalInner( + count = 56, + quantity = '', + debit = '', + credit = '' + ) + else: + return GetHouseAccountDetailsResponseDataTotalInner( + ) + """ + + def testGetHouseAccountDetailsResponseDataTotalInner(self): + """Test GetHouseAccountDetailsResponseDataTotalInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py b/cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py new file mode 100644 index 0000000..f4234b8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse + +class TestGetHouseAccountListResponse(unittest.TestCase): + """GetHouseAccountListResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountListResponse: + """Test GetHouseAccountListResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountListResponse` + """ + model = GetHouseAccountListResponse() + if include_optional: + return GetHouseAccountListResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner.GetHouseAccountListResponse_data_inner( + account_id = '', + property_id = '', + account_name = '', + account_status = 'open', + is_private = True, + user_name = '', ) + ] + ) + else: + return GetHouseAccountListResponse( + ) + """ + + def testGetHouseAccountListResponse(self): + """Test GetHouseAccountListResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py new file mode 100644 index 0000000..20cdfdd --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner + +class TestGetHouseAccountListResponseDataInner(unittest.TestCase): + """GetHouseAccountListResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountListResponseDataInner: + """Test GetHouseAccountListResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountListResponseDataInner` + """ + model = GetHouseAccountListResponseDataInner() + if include_optional: + return GetHouseAccountListResponseDataInner( + account_id = '', + property_id = '', + account_name = '', + account_status = 'open', + is_private = True, + user_name = '' + ) + else: + return GetHouseAccountListResponseDataInner( + ) + """ + + def testGetHouseAccountListResponseDataInner(self): + """Test GetHouseAccountListResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py b/cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py new file mode 100644 index 0000000..05cd608 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse + +class TestGetHousekeepersResponse(unittest.TestCase): + """GetHousekeepersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHousekeepersResponse: + """Test GetHousekeepersResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHousekeepersResponse` + """ + model = GetHousekeepersResponse() + if include_optional: + return GetHousekeepersResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner.GetHousekeepersResponse_data_inner( + property_id = '', + housekeeper_id = '', + name = '', ) + ], + message = '' + ) + else: + return GetHousekeepersResponse( + ) + """ + + def testGetHousekeepersResponse(self): + """Test GetHousekeepersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py new file mode 100644 index 0000000..9bbbbd3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner + +class TestGetHousekeepersResponseDataInner(unittest.TestCase): + """GetHousekeepersResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHousekeepersResponseDataInner: + """Test GetHousekeepersResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHousekeepersResponseDataInner` + """ + model = GetHousekeepersResponseDataInner() + if include_optional: + return GetHousekeepersResponseDataInner( + property_id = '', + housekeeper_id = '', + name = '' + ) + else: + return GetHousekeepersResponseDataInner( + ) + """ + + def testGetHousekeepersResponseDataInner(self): + """Test GetHousekeepersResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py b/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py new file mode 100644 index 0000000..e43ba06 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse + +class TestGetHousekeepingStatusResponse(unittest.TestCase): + """GetHousekeepingStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHousekeepingStatusResponse: + """Test GetHousekeepingStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHousekeepingStatusResponse` + """ + model = GetHousekeepingStatusResponse() + if include_optional: + return GetHousekeepingStatusResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner.GetHousekeepingStatusResponse_data_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_id = '', + room_name = '', + room_condition = 'dirty', + room_occupied = True, + room_blocked = True, + frontdesk_status = 'check-in', + housekeeper_id = '', + housekeeper = '', + do_not_disturb = True, + refused_service = True, + vacant_pickup = True, + room_comments = '', ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetHousekeepingStatusResponse( + ) + """ + + def testGetHousekeepingStatusResponse(self): + """Test GetHousekeepingStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py new file mode 100644 index 0000000..b59582f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner + +class TestGetHousekeepingStatusResponseDataInner(unittest.TestCase): + """GetHousekeepingStatusResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHousekeepingStatusResponseDataInner: + """Test GetHousekeepingStatusResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHousekeepingStatusResponseDataInner` + """ + model = GetHousekeepingStatusResponseDataInner() + if include_optional: + return GetHousekeepingStatusResponseDataInner( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_id = '', + room_name = '', + room_condition = 'dirty', + room_occupied = True, + room_blocked = True, + frontdesk_status = 'check-in', + housekeeper_id = '', + housekeeper = '', + do_not_disturb = True, + refused_service = True, + vacant_pickup = True, + room_comments = '' + ) + else: + return GetHousekeepingStatusResponseDataInner( + ) + """ + + def testGetHousekeepingStatusResponseDataInner(self): + """Test GetHousekeepingStatusResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response.py b/cloudbeds_pms_v1_2/test/test_get_invoice_response.py new file mode 100644 index 0000000..b707759 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_invoice_response.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse + +class TestGetInvoiceResponse(unittest.TestCase): + """GetInvoiceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetInvoiceResponse: + """Test GetInvoiceResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetInvoiceResponse` + """ + model = GetInvoiceResponse() + if include_optional: + return GetInvoiceResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_invoice_response_data.GetInvoiceResponse_data( + invoice_id = '', + reservation_id = '', + prefix = '', + number = 56, + suffix = '', + document_issue_date = '', + status = '', + billed_to = cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( + id = '', + type = 'guest', ), + items = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( + description = '', + type = '', + quantity = 56, + total_amount = '', + net_amount = '', + currency = '', + taxes = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + name = '', + amount = '', + code = '', + tax_id = '', ) + ], + fees = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + name = '', + amount = '', + code = '', + fee_id = '', ) + ], ) + ], + taxes = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + name = '', + amount = '', + code = '', + tax_id = '', ) + ], + fees = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + name = '', + amount = '', + code = '', + fee_id = '', ) + ], ) + ) + else: + return GetInvoiceResponse( + ) + """ + + def testGetInvoiceResponse(self): + """Test GetInvoiceResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py new file mode 100644 index 0000000..2933ec2 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData + +class TestGetInvoiceResponseData(unittest.TestCase): + """GetInvoiceResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetInvoiceResponseData: + """Test GetInvoiceResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetInvoiceResponseData` + """ + model = GetInvoiceResponseData() + if include_optional: + return GetInvoiceResponseData( + invoice_id = '', + reservation_id = '', + prefix = '', + number = 56, + suffix = '', + document_issue_date = '', + status = '', + billed_to = cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( + id = '', + type = 'guest', ), + items = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( + description = '', + type = '', + quantity = 56, + total_amount = '', + net_amount = '', + currency = '', + taxes = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + name = '', + amount = '', + code = '', + tax_id = '', ) + ], + fees = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + name = '', + amount = '', + code = '', + fee_id = '', ) + ], ) + ], + taxes = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + name = '', + amount = '', + code = '', + tax_id = '', ) + ], + fees = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + name = '', + amount = '', + code = '', + fee_id = '', ) + ] + ) + else: + return GetInvoiceResponseData( + ) + """ + + def testGetInvoiceResponseData(self): + """Test GetInvoiceResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py new file mode 100644 index 0000000..5702500 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo + +class TestGetInvoiceResponseDataBilledTo(unittest.TestCase): + """GetInvoiceResponseDataBilledTo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetInvoiceResponseDataBilledTo: + """Test GetInvoiceResponseDataBilledTo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetInvoiceResponseDataBilledTo` + """ + model = GetInvoiceResponseDataBilledTo() + if include_optional: + return GetInvoiceResponseDataBilledTo( + id = '', + type = 'guest' + ) + else: + return GetInvoiceResponseDataBilledTo( + ) + """ + + def testGetInvoiceResponseDataBilledTo(self): + """Test GetInvoiceResponseDataBilledTo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py new file mode 100644 index 0000000..5deb35e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner + +class TestGetInvoiceResponseDataItemsInner(unittest.TestCase): + """GetInvoiceResponseDataItemsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetInvoiceResponseDataItemsInner: + """Test GetInvoiceResponseDataItemsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetInvoiceResponseDataItemsInner` + """ + model = GetInvoiceResponseDataItemsInner() + if include_optional: + return GetInvoiceResponseDataItemsInner( + description = '', + type = '', + quantity = 56, + total_amount = '', + net_amount = '', + currency = '', + taxes = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + name = '', + amount = '', + code = '', + tax_id = '', ) + ], + fees = [ + cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + name = '', + amount = '', + code = '', + fee_id = '', ) + ] + ) + else: + return GetInvoiceResponseDataItemsInner( + ) + """ + + def testGetInvoiceResponseDataItemsInner(self): + """Test GetInvoiceResponseDataItemsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py new file mode 100644 index 0000000..e417d1e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner + +class TestGetInvoiceResponseDataItemsInnerFeesInner(unittest.TestCase): + """GetInvoiceResponseDataItemsInnerFeesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetInvoiceResponseDataItemsInnerFeesInner: + """Test GetInvoiceResponseDataItemsInnerFeesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetInvoiceResponseDataItemsInnerFeesInner` + """ + model = GetInvoiceResponseDataItemsInnerFeesInner() + if include_optional: + return GetInvoiceResponseDataItemsInnerFeesInner( + name = '', + amount = '', + code = '', + fee_id = '' + ) + else: + return GetInvoiceResponseDataItemsInnerFeesInner( + ) + """ + + def testGetInvoiceResponseDataItemsInnerFeesInner(self): + """Test GetInvoiceResponseDataItemsInnerFeesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py new file mode 100644 index 0000000..65c2101 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner + +class TestGetInvoiceResponseDataItemsInnerTaxesInner(unittest.TestCase): + """GetInvoiceResponseDataItemsInnerTaxesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetInvoiceResponseDataItemsInnerTaxesInner: + """Test GetInvoiceResponseDataItemsInnerTaxesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetInvoiceResponseDataItemsInnerTaxesInner` + """ + model = GetInvoiceResponseDataItemsInnerTaxesInner() + if include_optional: + return GetInvoiceResponseDataItemsInnerTaxesInner( + name = '', + amount = '', + code = '', + tax_id = '' + ) + else: + return GetInvoiceResponseDataItemsInnerTaxesInner( + ) + """ + + def testGetInvoiceResponseDataItemsInnerTaxesInner(self): + """Test GetInvoiceResponseDataItemsInnerTaxesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_item_categories_response.py b/cloudbeds_pms_v1_2/test/test_get_item_categories_response.py new file mode 100644 index 0000000..ee45c4d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_item_categories_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse + +class TestGetItemCategoriesResponse(unittest.TestCase): + """GetItemCategoriesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemCategoriesResponse: + """Test GetItemCategoriesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemCategoriesResponse` + """ + model = GetItemCategoriesResponse() + if include_optional: + return GetItemCategoriesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner.GetItemCategoriesResponse_data_inner( + category_id = '', + category_name = '', + category_code = '', + category_color = '', ) + ], + message = '' + ) + else: + return GetItemCategoriesResponse( + ) + """ + + def testGetItemCategoriesResponse(self): + """Test GetItemCategoriesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py new file mode 100644 index 0000000..eff2b42 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner + +class TestGetItemCategoriesResponseDataInner(unittest.TestCase): + """GetItemCategoriesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemCategoriesResponseDataInner: + """Test GetItemCategoriesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemCategoriesResponseDataInner` + """ + model = GetItemCategoriesResponseDataInner() + if include_optional: + return GetItemCategoriesResponseDataInner( + category_id = '', + category_name = '', + category_code = '', + category_color = '' + ) + else: + return GetItemCategoriesResponseDataInner( + ) + """ + + def testGetItemCategoriesResponseDataInner(self): + """Test GetItemCategoriesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response.py b/cloudbeds_pms_v1_2/test/test_get_item_response.py new file mode 100644 index 0000000..18234e5 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_item_response.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse + +class TestGetItemResponse(unittest.TestCase): + """GetItemResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemResponse: + """Test GetItemResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemResponse` + """ + model = GetItemResponse() + if include_optional: + return GetItemResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_item_response_data.GetItemResponse_data( + item_id = '', + item_type = 'product', + sku = '', + item_code = '', + name = '', + category_id = '', + category_name = '', + description = '', + price = 1.337, + stock_inventory = True, + item_quantity = 56, + reorder_threshold = 56, + reorder_needed = True, + stop_sell = 56, + stop_sell_met = True, + taxes = [ + cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + tax_name = '', + tax_value = 1.337, ) + ], + total_taxes = 1.337, + fees = [ + cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + fee_name = '', + fee_value = 1.337, ) + ], + total_fees = 1.337, + price_without_fees_and_taxes = 1.337, + grand_total = 1.337, ), + message = '' + ) + else: + return GetItemResponse( + ) + """ + + def testGetItemResponse(self): + """Test GetItemResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response_data.py b/cloudbeds_pms_v1_2/test/test_get_item_response_data.py new file mode 100644 index 0000000..1d7b6d2 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_item_response_data.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData + +class TestGetItemResponseData(unittest.TestCase): + """GetItemResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemResponseData: + """Test GetItemResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemResponseData` + """ + model = GetItemResponseData() + if include_optional: + return GetItemResponseData( + item_id = '', + item_type = 'product', + sku = '', + item_code = '', + name = '', + category_id = '', + category_name = '', + description = '', + price = 1.337, + stock_inventory = True, + item_quantity = 56, + reorder_threshold = 56, + reorder_needed = True, + stop_sell = 56, + stop_sell_met = True, + taxes = [ + cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + tax_name = '', + tax_value = 1.337, ) + ], + total_taxes = 1.337, + fees = [ + cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + fee_name = '', + fee_value = 1.337, ) + ], + total_fees = 1.337, + price_without_fees_and_taxes = 1.337, + grand_total = 1.337 + ) + else: + return GetItemResponseData( + ) + """ + + def testGetItemResponseData(self): + """Test GetItemResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py b/cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py new file mode 100644 index 0000000..d0f3e96 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner + +class TestGetItemResponseDataFeesInner(unittest.TestCase): + """GetItemResponseDataFeesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemResponseDataFeesInner: + """Test GetItemResponseDataFeesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemResponseDataFeesInner` + """ + model = GetItemResponseDataFeesInner() + if include_optional: + return GetItemResponseDataFeesInner( + fee_name = '', + fee_value = 1.337 + ) + else: + return GetItemResponseDataFeesInner( + ) + """ + + def testGetItemResponseDataFeesInner(self): + """Test GetItemResponseDataFeesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py b/cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py new file mode 100644 index 0000000..9ddfe1b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner + +class TestGetItemResponseDataTaxesInner(unittest.TestCase): + """GetItemResponseDataTaxesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemResponseDataTaxesInner: + """Test GetItemResponseDataTaxesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemResponseDataTaxesInner` + """ + model = GetItemResponseDataTaxesInner() + if include_optional: + return GetItemResponseDataTaxesInner( + tax_name = '', + tax_value = 1.337 + ) + else: + return GetItemResponseDataTaxesInner( + ) + """ + + def testGetItemResponseDataTaxesInner(self): + """Test GetItemResponseDataTaxesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_items_response.py b/cloudbeds_pms_v1_2/test/test_get_items_response.py new file mode 100644 index 0000000..51a60e1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_items_response.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse + +class TestGetItemsResponse(unittest.TestCase): + """GetItemsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemsResponse: + """Test GetItemsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemsResponse` + """ + model = GetItemsResponse() + if include_optional: + return GetItemsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_items_response_data_inner.GetItemsResponse_data_inner( + item_id = '', + item_type = 'product', + sku = '', + item_code = '', + name = '', + category_id = '', + category_name = '', + description = '', + price = 1.337, + stock_inventory = True, + item_quantity = 56, + reorder_threshold = 56, + reorder_needed = True, + stop_sell = 56, + stop_sell_met = True, + taxes = [ + cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + tax_name = '', + tax_value = 1.337, ) + ], + total_taxes = 1.337, + fees = [ + cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + fee_name = '', + fee_value = 1.337, ) + ], + total_fees = 1.337, + price_without_fees_and_taxes = 1.337, + grand_total = 1.337, ) + ], + message = '' + ) + else: + return GetItemsResponse( + ) + """ + + def testGetItemsResponse(self): + """Test GetItemsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py new file mode 100644 index 0000000..b9b9db8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner + +class TestGetItemsResponseDataInner(unittest.TestCase): + """GetItemsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetItemsResponseDataInner: + """Test GetItemsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetItemsResponseDataInner` + """ + model = GetItemsResponseDataInner() + if include_optional: + return GetItemsResponseDataInner( + item_id = '', + item_type = 'product', + sku = '', + item_code = '', + name = '', + category_id = '', + category_name = '', + description = '', + price = 1.337, + stock_inventory = True, + item_quantity = 56, + reorder_threshold = 56, + reorder_needed = True, + stop_sell = 56, + stop_sell_met = True, + taxes = [ + cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + tax_name = '', + tax_value = 1.337, ) + ], + total_taxes = 1.337, + fees = [ + cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + fee_name = '', + fee_value = 1.337, ) + ], + total_fees = 1.337, + price_without_fees_and_taxes = 1.337, + grand_total = 1.337 + ) + else: + return GetItemsResponseDataInner( + ) + """ + + def testGetItemsResponseDataInner(self): + """Test GetItemsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py b/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py new file mode 100644 index 0000000..87a6f22 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse + +class TestGetListAllotmentBlockNotesResponse(unittest.TestCase): + """GetListAllotmentBlockNotesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetListAllotmentBlockNotesResponse: + """Test GetListAllotmentBlockNotesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetListAllotmentBlockNotesResponse` + """ + model = GetListAllotmentBlockNotesResponse() + if include_optional: + return GetListAllotmentBlockNotesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner.GetListAllotmentBlockNotesResponse_data_inner( + id = '', + message = '', + created_by = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + archived_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', ) + ], + page_size = 56, + page_number = 56, + total = 56 + ) + else: + return GetListAllotmentBlockNotesResponse( + ) + """ + + def testGetListAllotmentBlockNotesResponse(self): + """Test GetListAllotmentBlockNotesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py new file mode 100644 index 0000000..ec4526a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner + +class TestGetListAllotmentBlockNotesResponseDataInner(unittest.TestCase): + """GetListAllotmentBlockNotesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetListAllotmentBlockNotesResponseDataInner: + """Test GetListAllotmentBlockNotesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetListAllotmentBlockNotesResponseDataInner` + """ + model = GetListAllotmentBlockNotesResponseDataInner() + if include_optional: + return GetListAllotmentBlockNotesResponseDataInner( + id = '', + message = '', + created_by = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + archived_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '' + ) + else: + return GetListAllotmentBlockNotesResponseDataInner( + ) + """ + + def testGetListAllotmentBlockNotesResponseDataInner(self): + """Test GetListAllotmentBlockNotesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_metadata_response.py b/cloudbeds_pms_v1_2/test/test_get_metadata_response.py new file mode 100644 index 0000000..83519c1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_metadata_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse + +class TestGetMetadataResponse(unittest.TestCase): + """GetMetadataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetMetadataResponse: + """Test GetMetadataResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetMetadataResponse` + """ + model = GetMetadataResponse() + if include_optional: + return GetMetadataResponse( + success = '', + data = cloudbeds_pms_v1_2.models.get_metadata_response_data.GetMetadataResponse_data( + api = cloudbeds_pms_v1_2.models.get_metadata_response_data_api.GetMetadataResponse_data_api( + url = '', ), ), + message = '' + ) + else: + return GetMetadataResponse( + ) + """ + + def testGetMetadataResponse(self): + """Test GetMetadataResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py b/cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py new file mode 100644 index 0000000..2d0304d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData + +class TestGetMetadataResponseData(unittest.TestCase): + """GetMetadataResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetMetadataResponseData: + """Test GetMetadataResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetMetadataResponseData` + """ + model = GetMetadataResponseData() + if include_optional: + return GetMetadataResponseData( + api = cloudbeds_pms_v1_2.models.get_metadata_response_data_api.GetMetadataResponse_data_api( + url = '', ) + ) + else: + return GetMetadataResponseData( + ) + """ + + def testGetMetadataResponseData(self): + """Test GetMetadataResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py b/cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py new file mode 100644 index 0000000..1d91466 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi + +class TestGetMetadataResponseDataApi(unittest.TestCase): + """GetMetadataResponseDataApi unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetMetadataResponseDataApi: + """Test GetMetadataResponseDataApi + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetMetadataResponseDataApi` + """ + model = GetMetadataResponseDataApi() + if include_optional: + return GetMetadataResponseDataApi( + url = '' + ) + else: + return GetMetadataResponseDataApi( + ) + """ + + def testGetMetadataResponseDataApi(self): + """Test GetMetadataResponseDataApi""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_packages_response.py b/cloudbeds_pms_v1_2/test/test_get_packages_response.py new file mode 100644 index 0000000..883124b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_packages_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse + +class TestGetPackagesResponse(unittest.TestCase): + """GetPackagesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPackagesResponse: + """Test GetPackagesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPackagesResponse` + """ + model = GetPackagesResponse() + if include_optional: + return GetPackagesResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_packages_response_data.GetPackagesResponse_data( + package_names = [ + '' + ], ), + message = '' + ) + else: + return GetPackagesResponse( + ) + """ + + def testGetPackagesResponse(self): + """Test GetPackagesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_packages_response_data.py b/cloudbeds_pms_v1_2/test/test_get_packages_response_data.py new file mode 100644 index 0000000..27fab95 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_packages_response_data.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData + +class TestGetPackagesResponseData(unittest.TestCase): + """GetPackagesResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPackagesResponseData: + """Test GetPackagesResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPackagesResponseData` + """ + model = GetPackagesResponseData() + if include_optional: + return GetPackagesResponseData( + package_names = [ + '' + ] + ) + else: + return GetPackagesResponseData( + ) + """ + + def testGetPackagesResponseData(self): + """Test GetPackagesResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py new file mode 100644 index 0000000..df57e6d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse + +class TestGetPaymentMethodsResponse(unittest.TestCase): + """GetPaymentMethodsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentMethodsResponse: + """Test GetPaymentMethodsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentMethodsResponse` + """ + model = GetPaymentMethodsResponse() + if include_optional: + return GetPaymentMethodsResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_payment_methods_response_data.GetPaymentMethodsResponse_data( + property_id = '', + methods = [ + cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( + type = '', + name = '', + card_types = [ + cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( + card_code = '', + card_name = '', ) + ], ) + ], + gateway = [ + cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( + name = '', + currency = '', ) + ], ) + ) + else: + return GetPaymentMethodsResponse( + ) + """ + + def testGetPaymentMethodsResponse(self): + """Test GetPaymentMethodsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py new file mode 100644 index 0000000..b822417 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData + +class TestGetPaymentMethodsResponseData(unittest.TestCase): + """GetPaymentMethodsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentMethodsResponseData: + """Test GetPaymentMethodsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentMethodsResponseData` + """ + model = GetPaymentMethodsResponseData() + if include_optional: + return GetPaymentMethodsResponseData( + property_id = '', + methods = [ + cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( + type = '', + name = '', + card_types = [ + cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( + card_code = '', + card_name = '', ) + ], ) + ], + gateway = [ + cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( + name = '', + currency = '', ) + ] + ) + else: + return GetPaymentMethodsResponseData( + ) + """ + + def testGetPaymentMethodsResponseData(self): + """Test GetPaymentMethodsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py new file mode 100644 index 0000000..40898cb --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner + +class TestGetPaymentMethodsResponseDataGatewayInner(unittest.TestCase): + """GetPaymentMethodsResponseDataGatewayInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentMethodsResponseDataGatewayInner: + """Test GetPaymentMethodsResponseDataGatewayInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentMethodsResponseDataGatewayInner` + """ + model = GetPaymentMethodsResponseDataGatewayInner() + if include_optional: + return GetPaymentMethodsResponseDataGatewayInner( + name = '', + currency = '' + ) + else: + return GetPaymentMethodsResponseDataGatewayInner( + ) + """ + + def testGetPaymentMethodsResponseDataGatewayInner(self): + """Test GetPaymentMethodsResponseDataGatewayInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py new file mode 100644 index 0000000..17c2768 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner + +class TestGetPaymentMethodsResponseDataMethodsInner(unittest.TestCase): + """GetPaymentMethodsResponseDataMethodsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentMethodsResponseDataMethodsInner: + """Test GetPaymentMethodsResponseDataMethodsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentMethodsResponseDataMethodsInner` + """ + model = GetPaymentMethodsResponseDataMethodsInner() + if include_optional: + return GetPaymentMethodsResponseDataMethodsInner( + type = '', + name = '', + card_types = [ + cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( + card_code = '', + card_name = '', ) + ] + ) + else: + return GetPaymentMethodsResponseDataMethodsInner( + ) + """ + + def testGetPaymentMethodsResponseDataMethodsInner(self): + """Test GetPaymentMethodsResponseDataMethodsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py new file mode 100644 index 0000000..709995e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner + +class TestGetPaymentMethodsResponseDataMethodsInnerCardTypesInner(unittest.TestCase): + """GetPaymentMethodsResponseDataMethodsInnerCardTypesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentMethodsResponseDataMethodsInnerCardTypesInner: + """Test GetPaymentMethodsResponseDataMethodsInnerCardTypesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentMethodsResponseDataMethodsInnerCardTypesInner` + """ + model = GetPaymentMethodsResponseDataMethodsInnerCardTypesInner() + if include_optional: + return GetPaymentMethodsResponseDataMethodsInnerCardTypesInner( + card_code = '', + card_name = '' + ) + else: + return GetPaymentMethodsResponseDataMethodsInnerCardTypesInner( + ) + """ + + def testGetPaymentMethodsResponseDataMethodsInnerCardTypesInner(self): + """Test GetPaymentMethodsResponseDataMethodsInnerCardTypesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py b/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py new file mode 100644 index 0000000..eea43db --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse + +class TestGetPaymentsCapabilitiesResponse(unittest.TestCase): + """GetPaymentsCapabilitiesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsCapabilitiesResponse: + """Test GetPaymentsCapabilitiesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsCapabilitiesResponse` + """ + model = GetPaymentsCapabilitiesResponse() + if include_optional: + return GetPaymentsCapabilitiesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner.GetPaymentsCapabilitiesResponse_data_inner( + cloudbeds_payments = True, + terminal = True, + tap_to_pay = True, + gateway = '', + pay_by_link = True, ) + ] + ) + else: + return GetPaymentsCapabilitiesResponse( + ) + """ + + def testGetPaymentsCapabilitiesResponse(self): + """Test GetPaymentsCapabilitiesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py new file mode 100644 index 0000000..08951b0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner + +class TestGetPaymentsCapabilitiesResponseDataInner(unittest.TestCase): + """GetPaymentsCapabilitiesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsCapabilitiesResponseDataInner: + """Test GetPaymentsCapabilitiesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsCapabilitiesResponseDataInner` + """ + model = GetPaymentsCapabilitiesResponseDataInner() + if include_optional: + return GetPaymentsCapabilitiesResponseDataInner( + cloudbeds_payments = True, + terminal = True, + tap_to_pay = True, + gateway = '', + pay_by_link = True + ) + else: + return GetPaymentsCapabilitiesResponseDataInner( + ) + """ + + def testGetPaymentsCapabilitiesResponseDataInner(self): + """Test GetPaymentsCapabilitiesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_response.py b/cloudbeds_pms_v1_2/test/test_get_payments_response.py new file mode 100644 index 0000000..59fa7a9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payments_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse + +class TestGetPaymentsResponse(unittest.TestCase): + """GetPaymentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsResponse: + """Test GetPaymentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsResponse` + """ + model = GetPaymentsResponse() + if include_optional: + return GetPaymentsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_payments_response_data_inner.GetPaymentsResponse_data_inner( + transaction_id = '', + payment_id = '', + property_id = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = '', + user_name = '', + room_id = '', + room_name = '', + guest_id = '', + guest_name = '', + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + reservation_id = '', + sub_reservation_id = '', + reservation_status = '', + house_account_id = '', + house_account_name = '', + description = '', + payment_method = '', + quantity = 56, + amount = 1.337, + currency = '', + is_posted = True, + is_voided = True, + is_deleted = True, + state = '', + is_allocated = True, + total_allocated = 1.337, + total_unallocated = 1.337, + payment_allocation = [ + cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( + type = '', + reference = '', + name = '', + amount = 1.337, + taxes = [ + '' + ], + fees = [ + '' + ], ) + ], ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetPaymentsResponse( + ) + """ + + def testGetPaymentsResponse(self): + """Test GetPaymentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py new file mode 100644 index 0000000..64da1ce --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner + +class TestGetPaymentsResponseDataInner(unittest.TestCase): + """GetPaymentsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsResponseDataInner: + """Test GetPaymentsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsResponseDataInner` + """ + model = GetPaymentsResponseDataInner() + if include_optional: + return GetPaymentsResponseDataInner( + transaction_id = '', + payment_id = '', + property_id = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = '', + user_name = '', + room_id = '', + room_name = '', + guest_id = '', + guest_name = '', + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + reservation_id = '', + sub_reservation_id = '', + reservation_status = '', + house_account_id = '', + house_account_name = '', + description = '', + payment_method = '', + quantity = 56, + amount = 1.337, + currency = '', + is_posted = True, + is_voided = True, + is_deleted = True, + state = '', + is_allocated = True, + total_allocated = 1.337, + total_unallocated = 1.337, + payment_allocation = [ + cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( + type = '', + reference = '', + name = '', + amount = 1.337, + taxes = [ + '' + ], + fees = [ + '' + ], ) + ] + ) + else: + return GetPaymentsResponseDataInner( + ) + """ + + def testGetPaymentsResponseDataInner(self): + """Test GetPaymentsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py new file mode 100644 index 0000000..891e79d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner + +class TestGetPaymentsResponseDataInnerPaymentAllocationInner(unittest.TestCase): + """GetPaymentsResponseDataInnerPaymentAllocationInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsResponseDataInnerPaymentAllocationInner: + """Test GetPaymentsResponseDataInnerPaymentAllocationInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsResponseDataInnerPaymentAllocationInner` + """ + model = GetPaymentsResponseDataInnerPaymentAllocationInner() + if include_optional: + return GetPaymentsResponseDataInnerPaymentAllocationInner( + type = '', + reference = '', + name = '', + amount = 1.337, + taxes = [ + '' + ], + fees = [ + '' + ] + ) + else: + return GetPaymentsResponseDataInnerPaymentAllocationInner( + ) + """ + + def testGetPaymentsResponseDataInnerPaymentAllocationInner(self): + """Test GetPaymentsResponseDataInnerPaymentAllocationInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py b/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py new file mode 100644 index 0000000..6eaa806 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse + +class TestGetRateJobsResponse(unittest.TestCase): + """GetRateJobsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRateJobsResponse: + """Test GetRateJobsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRateJobsResponse` + """ + model = GetRateJobsResponse() + if include_optional: + return GetRateJobsResponse( + success = True, + has_next_page = True, + next_page = '', + data = [ + cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner.GetRateJobsResponse_data_inner( + job_reference_id = '', + date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + status = '', + updates = [ + cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner.GetRateJobsResponse_data_inner_updates_inner( + rate_id = '', + action = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56, + message = '', ) + ], ) + ] + ) + else: + return GetRateJobsResponse( + ) + """ + + def testGetRateJobsResponse(self): + """Test GetRateJobsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py new file mode 100644 index 0000000..52fe650 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner + +class TestGetRateJobsResponseDataInner(unittest.TestCase): + """GetRateJobsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRateJobsResponseDataInner: + """Test GetRateJobsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRateJobsResponseDataInner` + """ + model = GetRateJobsResponseDataInner() + if include_optional: + return GetRateJobsResponseDataInner( + job_reference_id = '', + date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + status = '', + updates = [ + cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner.GetRateJobsResponse_data_inner_updates_inner( + rate_id = '', + action = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56, + message = '', ) + ] + ) + else: + return GetRateJobsResponseDataInner( + ) + """ + + def testGetRateJobsResponseDataInner(self): + """Test GetRateJobsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py new file mode 100644 index 0000000..17b9a17 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner + +class TestGetRateJobsResponseDataInnerUpdatesInner(unittest.TestCase): + """GetRateJobsResponseDataInnerUpdatesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRateJobsResponseDataInnerUpdatesInner: + """Test GetRateJobsResponseDataInnerUpdatesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRateJobsResponseDataInnerUpdatesInner` + """ + model = GetRateJobsResponseDataInnerUpdatesInner() + if include_optional: + return GetRateJobsResponseDataInnerUpdatesInner( + rate_id = '', + action = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56, + message = '' + ) + else: + return GetRateJobsResponseDataInnerUpdatesInner( + ) + """ + + def testGetRateJobsResponseDataInnerUpdatesInner(self): + """Test GetRateJobsResponseDataInnerUpdatesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py new file mode 100644 index 0000000..c3ed390 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse + +class TestGetRatePlansResponse(unittest.TestCase): + """GetRatePlansResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRatePlansResponse: + """Test GetRatePlansResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRatePlansResponse` + """ + model = GetRatePlansResponse() + if include_optional: + return GetRatePlansResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner.GetRatePlansResponse_data_inner( + rate_id = '', + is_derived = True, + room_rate = 1.337, + total_rate = 1.337, + rooms_available = 56, + room_type_id = '', + room_type_name = 56, + property_id = '', + rate_plan_id = '', + rate_plan_name_public = '', + rate_plan_name_private = '', + promo_code = '', + derived_type = 'fixed', + derived_value = 1.337, + base_rate = 1.337, + days_of_week = Sun, + add_ons = [ + cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( + add_on_id = '', + add_on_name = '', + item_id = '', + item_name = '', ) + ], + room_rate_detailed = [ + cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner.GetRatePlansResponse_data_inner_roomRateDetailed_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate_base = 1.337, + total_rate = 1.337, + rooms_available = 56, + closed_to_arrival = True, + closed_to_departure = True, + min_los = 56, + max_los = 56, + cut_off = 56, + last_minute_booking = 56, ) + ], ) + ], + message = '' + ) + else: + return GetRatePlansResponse( + ) + """ + + def testGetRatePlansResponse(self): + """Test GetRatePlansResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py new file mode 100644 index 0000000..e41478f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner + +class TestGetRatePlansResponseDataInner(unittest.TestCase): + """GetRatePlansResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRatePlansResponseDataInner: + """Test GetRatePlansResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRatePlansResponseDataInner` + """ + model = GetRatePlansResponseDataInner() + if include_optional: + return GetRatePlansResponseDataInner( + rate_id = '', + is_derived = True, + room_rate = 1.337, + total_rate = 1.337, + rooms_available = 56, + room_type_id = '', + room_type_name = 56, + property_id = '', + rate_plan_id = '', + rate_plan_name_public = '', + rate_plan_name_private = '', + promo_code = '', + derived_type = 'fixed', + derived_value = 1.337, + base_rate = 1.337, + days_of_week = Sun, + add_ons = [ + cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( + add_on_id = '', + add_on_name = '', + item_id = '', + item_name = '', ) + ], + room_rate_detailed = [ + cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner.GetRatePlansResponse_data_inner_roomRateDetailed_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate_base = 1.337, + total_rate = 1.337, + rooms_available = 56, + closed_to_arrival = True, + closed_to_departure = True, + min_los = 56, + max_los = 56, + cut_off = 56, + last_minute_booking = 56, ) + ] + ) + else: + return GetRatePlansResponseDataInner( + ) + """ + + def testGetRatePlansResponseDataInner(self): + """Test GetRatePlansResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py new file mode 100644 index 0000000..39be641 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner + +class TestGetRatePlansResponseDataInnerAddOnsInner(unittest.TestCase): + """GetRatePlansResponseDataInnerAddOnsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRatePlansResponseDataInnerAddOnsInner: + """Test GetRatePlansResponseDataInnerAddOnsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRatePlansResponseDataInnerAddOnsInner` + """ + model = GetRatePlansResponseDataInnerAddOnsInner() + if include_optional: + return GetRatePlansResponseDataInnerAddOnsInner( + add_on_id = '', + add_on_name = '', + item_id = '', + item_name = '' + ) + else: + return GetRatePlansResponseDataInnerAddOnsInner( + ) + """ + + def testGetRatePlansResponseDataInnerAddOnsInner(self): + """Test GetRatePlansResponseDataInnerAddOnsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py new file mode 100644 index 0000000..d4b3ace --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner + +class TestGetRatePlansResponseDataInnerRoomRateDetailedInner(unittest.TestCase): + """GetRatePlansResponseDataInnerRoomRateDetailedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRatePlansResponseDataInnerRoomRateDetailedInner: + """Test GetRatePlansResponseDataInnerRoomRateDetailedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRatePlansResponseDataInnerRoomRateDetailedInner` + """ + model = GetRatePlansResponseDataInnerRoomRateDetailedInner() + if include_optional: + return GetRatePlansResponseDataInnerRoomRateDetailedInner( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate_base = 1.337, + total_rate = 1.337, + rooms_available = 56, + closed_to_arrival = True, + closed_to_departure = True, + min_los = 56, + max_los = 56, + cut_off = 56, + last_minute_booking = 56 + ) + else: + return GetRatePlansResponseDataInnerRoomRateDetailedInner( + ) + """ + + def testGetRatePlansResponseDataInnerRoomRateDetailedInner(self): + """Test GetRatePlansResponseDataInnerRoomRateDetailedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_response.py b/cloudbeds_pms_v1_2/test/test_get_rate_response.py new file mode 100644 index 0000000..0f68101 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_response.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse + +class TestGetRateResponse(unittest.TestCase): + """GetRateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRateResponse: + """Test GetRateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRateResponse` + """ + model = GetRateResponse() + if include_optional: + return GetRateResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_rate_response_data.GetRateResponse_data( + rate_id = '', + is_derived = True, + room_rate = 1.337, + total_rate = 1.337, + rooms_available = 56, + days_of_week = [ + '' + ], + room_rate_detailed = [ + cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner.GetRateResponse_data_roomRateDetailed_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + total_rate = 1.337, + rooms_available = 56, + closed_to_arrival = True, + closed_to_departure = True, + min_los = 56, + max_los = 56, ) + ], ) + ) + else: + return GetRateResponse( + ) + """ + + def testGetRateResponse(self): + """Test GetRateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_response_data.py b/cloudbeds_pms_v1_2/test/test_get_rate_response_data.py new file mode 100644 index 0000000..628b87c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_response_data.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData + +class TestGetRateResponseData(unittest.TestCase): + """GetRateResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRateResponseData: + """Test GetRateResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRateResponseData` + """ + model = GetRateResponseData() + if include_optional: + return GetRateResponseData( + rate_id = '', + is_derived = True, + room_rate = 1.337, + total_rate = 1.337, + rooms_available = 56, + days_of_week = [ + '' + ], + room_rate_detailed = [ + cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner.GetRateResponse_data_roomRateDetailed_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + total_rate = 1.337, + rooms_available = 56, + closed_to_arrival = True, + closed_to_departure = True, + min_los = 56, + max_los = 56, ) + ] + ) + else: + return GetRateResponseData( + ) + """ + + def testGetRateResponseData(self): + """Test GetRateResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py b/cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py new file mode 100644 index 0000000..2376fd3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner + +class TestGetRateResponseDataRoomRateDetailedInner(unittest.TestCase): + """GetRateResponseDataRoomRateDetailedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRateResponseDataRoomRateDetailedInner: + """Test GetRateResponseDataRoomRateDetailedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRateResponseDataRoomRateDetailedInner` + """ + model = GetRateResponseDataRoomRateDetailedInner() + if include_optional: + return GetRateResponseDataRoomRateDetailedInner( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + total_rate = 1.337, + rooms_available = 56, + closed_to_arrival = True, + closed_to_departure = True, + min_los = 56, + max_los = 56 + ) + else: + return GetRateResponseDataRoomRateDetailedInner( + ) + """ + + def testGetRateResponseDataRoomRateDetailedInner(self): + """Test GetRateResponseDataRoomRateDetailedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py b/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py new file mode 100644 index 0000000..08b52da --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse + +class TestGetReservationAssignmentsResponse(unittest.TestCase): + """GetReservationAssignmentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationAssignmentsResponse: + """Test GetReservationAssignmentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationAssignmentsResponse` + """ + model = GetReservationAssignmentsResponse() + if include_optional: + return GetReservationAssignmentsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner.GetReservationAssignmentsResponse_data_inner( + guest_name = '', + reservation_id = '', + unassigned = 56, + assigned = [ + cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner.GetReservationAssignmentsResponse_data_inner_assigned_inner( + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + dorm_room_name = '', + room_name = '', + room_id = '', + sub_reservation_id = '', ) + ], ) + ], + message = '' + ) + else: + return GetReservationAssignmentsResponse( + ) + """ + + def testGetReservationAssignmentsResponse(self): + """Test GetReservationAssignmentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py new file mode 100644 index 0000000..10f0a3f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner + +class TestGetReservationAssignmentsResponseDataInner(unittest.TestCase): + """GetReservationAssignmentsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationAssignmentsResponseDataInner: + """Test GetReservationAssignmentsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationAssignmentsResponseDataInner` + """ + model = GetReservationAssignmentsResponseDataInner() + if include_optional: + return GetReservationAssignmentsResponseDataInner( + guest_name = '', + reservation_id = '', + unassigned = 56, + assigned = [ + cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner.GetReservationAssignmentsResponse_data_inner_assigned_inner( + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + dorm_room_name = '', + room_name = '', + room_id = '', + sub_reservation_id = '', ) + ] + ) + else: + return GetReservationAssignmentsResponseDataInner( + ) + """ + + def testGetReservationAssignmentsResponseDataInner(self): + """Test GetReservationAssignmentsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py new file mode 100644 index 0000000..020536a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner + +class TestGetReservationAssignmentsResponseDataInnerAssignedInner(unittest.TestCase): + """GetReservationAssignmentsResponseDataInnerAssignedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationAssignmentsResponseDataInnerAssignedInner: + """Test GetReservationAssignmentsResponseDataInnerAssignedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationAssignmentsResponseDataInnerAssignedInner` + """ + model = GetReservationAssignmentsResponseDataInnerAssignedInner() + if include_optional: + return GetReservationAssignmentsResponseDataInnerAssignedInner( + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + dorm_room_name = '', + room_name = '', + room_id = '', + sub_reservation_id = '' + ) + else: + return GetReservationAssignmentsResponseDataInnerAssignedInner( + ) + """ + + def testGetReservationAssignmentsResponseDataInnerAssignedInner(self): + """Test GetReservationAssignmentsResponseDataInnerAssignedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py new file mode 100644 index 0000000..2b2e8ab --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse + +class TestGetReservationInvoiceInformationResponse(unittest.TestCase): + """GetReservationInvoiceInformationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponse: + """Test GetReservationInvoiceInformationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponse` + """ + model = GetReservationInvoiceInformationResponse() + if include_optional: + return GetReservationInvoiceInformationResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner.GetReservationInvoiceInformationResponse_data_inner( + status = 'confirmed', + custom_fields = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + main_guest_details = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_country = '', + tax_id = '', + company_tax_id = '', + company_name = '', + guest_state = '', + guest_zip = '', + is_anonymyzed = True, ) + ], + reservation_rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( + room_type_name = '', + guest_name = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = 56, + children = 56, + nights = 56, + room_total = 1.337, + room_id = '', + room_name = '', + room_type_id = '', ) + ], + reservation_rooms_total = 1.337, + reservation_adjustments = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( + adjustment_description = '', + adjustment_room_name = '', + adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + adjustment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + adjustment_amount = 1.337, ) + ], + reservation_adjustments_total = 1.337, + reservation_payments = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( + payment_type = '', + payment_description = '', + payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + payment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + payment_amount = 1.337, + reservation_payments_total = 1.337, ) + ], + reservation_additional_products = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( + product_id = '', + sold_product_id = '', + item_code = '', + product_name = '', + product_price = 1.337, + product_quantity = 56, + product_sub_total = 1.337, + product_fees = 1.337, + product_taxes = 1.337, + product_total = 1.337, + product_note = 1.337, + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + reservation_additional_products_total = 1.337, + reservation_add_on_products = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( + sold_product_id = '', + product_name = '', + product_price = 1.337, + product_quantity = 56, + product_sub_total = 1.337, + product_fees = 1.337, + product_taxes = 1.337, + product_total = 1.337, + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + reservation_add_on_products_total = 1.337, + reservation_taxes = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + tax_name = '', + tax_amount = 1.337, ) + ], + reservation_taxes_total = 1.337, + reservation_fees = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + tax_name = '', + tax_amount = 1.337, ) + ], + reservation_fees_total = 1.337, + balance = 1.337, + balance_detailed = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, + original_currency_code = '', + original_currency_rate = 1.337, ) + ], ) + ], + message = '' + ) + else: + return GetReservationInvoiceInformationResponse( + ) + """ + + def testGetReservationInvoiceInformationResponse(self): + """Test GetReservationInvoiceInformationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py new file mode 100644 index 0000000..e02b71c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner + +class TestGetReservationInvoiceInformationResponseDataInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInner: + """Test GetReservationInvoiceInformationResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInner` + """ + model = GetReservationInvoiceInformationResponseDataInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInner( + status = 'confirmed', + custom_fields = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + main_guest_details = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_country = '', + tax_id = '', + company_tax_id = '', + company_name = '', + guest_state = '', + guest_zip = '', + is_anonymyzed = True, ) + ], + reservation_rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( + room_type_name = '', + guest_name = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = 56, + children = 56, + nights = 56, + room_total = 1.337, + room_id = '', + room_name = '', + room_type_id = '', ) + ], + reservation_rooms_total = 1.337, + reservation_adjustments = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( + adjustment_description = '', + adjustment_room_name = '', + adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + adjustment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + adjustment_amount = 1.337, ) + ], + reservation_adjustments_total = 1.337, + reservation_payments = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( + payment_type = '', + payment_description = '', + payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + payment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + payment_amount = 1.337, + reservation_payments_total = 1.337, ) + ], + reservation_additional_products = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( + product_id = '', + sold_product_id = '', + item_code = '', + product_name = '', + product_price = 1.337, + product_quantity = 56, + product_sub_total = 1.337, + product_fees = 1.337, + product_taxes = 1.337, + product_total = 1.337, + product_note = 1.337, + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + reservation_additional_products_total = 1.337, + reservation_add_on_products = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( + sold_product_id = '', + product_name = '', + product_price = 1.337, + product_quantity = 56, + product_sub_total = 1.337, + product_fees = 1.337, + product_taxes = 1.337, + product_total = 1.337, + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + reservation_add_on_products_total = 1.337, + reservation_taxes = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + tax_name = '', + tax_amount = 1.337, ) + ], + reservation_taxes_total = 1.337, + reservation_fees = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + tax_name = '', + tax_amount = 1.337, ) + ], + reservation_fees_total = 1.337, + balance = 1.337, + balance_detailed = [ + cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, + original_currency_code = '', + original_currency_rate = 1.337, ) + ] + ) + else: + return GetReservationInvoiceInformationResponseDataInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInner(self): + """Test GetReservationInvoiceInformationResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py new file mode 100644 index 0000000..8659703 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner + +class TestGetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner: + """Test GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, + original_currency_code = '', + original_currency_rate = 1.337 + ) + else: + return GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py new file mode 100644 index 0000000..f7639d3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner + +class TestGetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner: + """Test GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner( + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_country = '', + tax_id = '', + company_tax_id = '', + company_name = '', + guest_state = '', + guest_zip = '', + is_anonymyzed = True + ) + else: + return GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py new file mode 100644 index 0000000..c8d6c1f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner + +class TestGetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner: + """Test GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner( + sold_product_id = '', + product_name = '', + product_price = 1.337, + product_quantity = 56, + product_sub_total = 1.337, + product_fees = 1.337, + product_taxes = 1.337, + product_total = 1.337, + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py new file mode 100644 index 0000000..e118345 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner + +class TestGetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner: + """Test GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner( + product_id = '', + sold_product_id = '', + item_code = '', + product_name = '', + product_price = 1.337, + product_quantity = 56, + product_sub_total = 1.337, + product_fees = 1.337, + product_taxes = 1.337, + product_total = 1.337, + product_note = 1.337, + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py new file mode 100644 index 0000000..94dab96 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner + +class TestGetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner: + """Test GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner( + adjustment_description = '', + adjustment_room_name = '', + adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + adjustment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + adjustment_amount = 1.337 + ) + else: + return GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py new file mode 100644 index 0000000..de3177d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner + +class TestGetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner: + """Test GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner( + payment_type = '', + payment_description = '', + payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + payment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + payment_amount = 1.337, + reservation_payments_total = 1.337 + ) + else: + return GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py new file mode 100644 index 0000000..5d81220 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner + +class TestGetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner: + """Test GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner( + room_type_name = '', + guest_name = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = 56, + children = 56, + nights = 56, + room_total = 1.337, + room_id = '', + room_name = '', + room_type_id = '' + ) + else: + return GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py new file mode 100644 index 0000000..94ab1c0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner + +class TestGetReservationInvoiceInformationResponseDataInnerReservationTaxesInner(unittest.TestCase): + """GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner: + """Test GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner` + """ + model = GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner() + if include_optional: + return GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner( + tax_name = '', + tax_amount = 1.337 + ) + else: + return GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner( + ) + """ + + def testGetReservationInvoiceInformationResponseDataInnerReservationTaxesInner(self): + """Test GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py b/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py new file mode 100644 index 0000000..fbd04a3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse + +class TestGetReservationNotesResponse(unittest.TestCase): + """GetReservationNotesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationNotesResponse: + """Test GetReservationNotesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationNotesResponse` + """ + model = GetReservationNotesResponse() + if include_optional: + return GetReservationNotesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner.GetReservationNotesResponse_data_inner( + reservation_note_id = '', + user_name = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reservation_note = '', ) + ], + message = '' + ) + else: + return GetReservationNotesResponse( + ) + """ + + def testGetReservationNotesResponse(self): + """Test GetReservationNotesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py new file mode 100644 index 0000000..866b96c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner + +class TestGetReservationNotesResponseDataInner(unittest.TestCase): + """GetReservationNotesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationNotesResponseDataInner: + """Test GetReservationNotesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationNotesResponseDataInner` + """ + model = GetReservationNotesResponseDataInner() + if include_optional: + return GetReservationNotesResponseDataInner( + reservation_note_id = '', + user_name = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reservation_note = '' + ) + else: + return GetReservationNotesResponseDataInner( + ) + """ + + def testGetReservationNotesResponseDataInner(self): + """Test GetReservationNotesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response.py new file mode 100644 index 0000000..2f24ada --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse + +class TestGetReservationResponse(unittest.TestCase): + """GetReservationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponse: + """Test GetReservationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponse` + """ + model = GetReservationResponse() + if include_optional: + return GetReservationResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_reservation_response_data.GetReservationResponse_data( + property_id = '', + guest_name = '', + guest_email = '', + is_anonymized = True, + guest_list = { + 'key' : cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value.GetReservationResponse_data_guestList_value( + guest_id = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_status = 'in_progress', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + assigned_room = '', + is_anonymized = True, + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + is_main_guest = True, + custom_fields = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', ) + ], ) + }, + reservation_id = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + estimated_arrival_time = '', + source = '', + source_id = '', + third_party_identifier = '', + status = 'confirmed', + total = 1.337, + balance = 1.337, + balance_detailed = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, ) + ], + assigned = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( + room_type_name = '', + room_type_name_short = '', + room_type_is_virtual = True, + dorm_room_name = '', + room_type_id = '', + sub_reservation_id = '', + room_name = '', + room_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = '', + children = '', + daily_rates = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + room_total = 1.337, ) + ], + unassigned = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = '', + children = '', + room_total = 1.337, ) + ], + cards_on_file = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( + card_id = '', + card_number = '', + card_type = 'visa', ) + ], + custom_fields = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + allotment_block_code = '', + channel_provided_credit_card = True, ), + message = '' + ) + else: + return GetReservationResponse( + ) + """ + + def testGetReservationResponse(self): + """Test GetReservationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py new file mode 100644 index 0000000..fbb71fe --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData + +class TestGetReservationResponseData(unittest.TestCase): + """GetReservationResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseData: + """Test GetReservationResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseData` + """ + model = GetReservationResponseData() + if include_optional: + return GetReservationResponseData( + property_id = '', + guest_name = '', + guest_email = '', + is_anonymized = True, + guest_list = { + 'key' : cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value.GetReservationResponse_data_guestList_value( + guest_id = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_status = 'in_progress', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + assigned_room = '', + is_anonymized = True, + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + is_main_guest = True, + custom_fields = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', ) + ], ) + }, + reservation_id = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + estimated_arrival_time = '', + source = '', + source_id = '', + third_party_identifier = '', + status = 'confirmed', + total = 1.337, + balance = 1.337, + balance_detailed = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, ) + ], + assigned = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( + room_type_name = '', + room_type_name_short = '', + room_type_is_virtual = True, + dorm_room_name = '', + room_type_id = '', + sub_reservation_id = '', + room_name = '', + room_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = '', + children = '', + daily_rates = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + room_total = 1.337, ) + ], + unassigned = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = '', + children = '', + daily_rates = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + room_total = 1.337, ) + ], + cards_on_file = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( + card_id = '', + card_number = '', + card_type = 'visa', ) + ], + custom_fields = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + allotment_block_code = '', + channel_provided_credit_card = True + ) + else: + return GetReservationResponseData( + ) + """ + + def testGetReservationResponseData(self): + """Test GetReservationResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py new file mode 100644 index 0000000..ab11299 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner + +class TestGetReservationResponseDataAssignedInner(unittest.TestCase): + """GetReservationResponseDataAssignedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataAssignedInner: + """Test GetReservationResponseDataAssignedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataAssignedInner` + """ + model = GetReservationResponseDataAssignedInner() + if include_optional: + return GetReservationResponseDataAssignedInner( + room_type_name = '', + room_type_name_short = '', + room_type_is_virtual = True, + dorm_room_name = '', + room_type_id = '', + sub_reservation_id = '', + room_name = '', + room_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = '', + children = '', + daily_rates = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + room_total = 1.337 + ) + else: + return GetReservationResponseDataAssignedInner( + ) + """ + + def testGetReservationResponseDataAssignedInner(self): + """Test GetReservationResponseDataAssignedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py new file mode 100644 index 0000000..7742b64 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner + +class TestGetReservationResponseDataAssignedInnerDailyRatesInner(unittest.TestCase): + """GetReservationResponseDataAssignedInnerDailyRatesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataAssignedInnerDailyRatesInner: + """Test GetReservationResponseDataAssignedInnerDailyRatesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataAssignedInnerDailyRatesInner` + """ + model = GetReservationResponseDataAssignedInnerDailyRatesInner() + if include_optional: + return GetReservationResponseDataAssignedInnerDailyRatesInner( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337 + ) + else: + return GetReservationResponseDataAssignedInnerDailyRatesInner( + ) + """ + + def testGetReservationResponseDataAssignedInnerDailyRatesInner(self): + """Test GetReservationResponseDataAssignedInnerDailyRatesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py new file mode 100644 index 0000000..aec3f62 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner + +class TestGetReservationResponseDataBalanceDetailedInner(unittest.TestCase): + """GetReservationResponseDataBalanceDetailedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataBalanceDetailedInner: + """Test GetReservationResponseDataBalanceDetailedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataBalanceDetailedInner` + """ + model = GetReservationResponseDataBalanceDetailedInner() + if include_optional: + return GetReservationResponseDataBalanceDetailedInner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337 + ) + else: + return GetReservationResponseDataBalanceDetailedInner( + ) + """ + + def testGetReservationResponseDataBalanceDetailedInner(self): + """Test GetReservationResponseDataBalanceDetailedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py new file mode 100644 index 0000000..df9fd50 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner + +class TestGetReservationResponseDataCardsOnFileInner(unittest.TestCase): + """GetReservationResponseDataCardsOnFileInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataCardsOnFileInner: + """Test GetReservationResponseDataCardsOnFileInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataCardsOnFileInner` + """ + model = GetReservationResponseDataCardsOnFileInner() + if include_optional: + return GetReservationResponseDataCardsOnFileInner( + card_id = '', + card_number = '', + card_type = 'visa' + ) + else: + return GetReservationResponseDataCardsOnFileInner( + ) + """ + + def testGetReservationResponseDataCardsOnFileInner(self): + """Test GetReservationResponseDataCardsOnFileInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py new file mode 100644 index 0000000..f4bb72d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue + +class TestGetReservationResponseDataGuestListValue(unittest.TestCase): + """GetReservationResponseDataGuestListValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataGuestListValue: + """Test GetReservationResponseDataGuestListValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataGuestListValue` + """ + model = GetReservationResponseDataGuestListValue() + if include_optional: + return GetReservationResponseDataGuestListValue( + guest_id = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_status = 'in_progress', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + assigned_room = '', + is_anonymized = True, + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + is_main_guest = True, + custom_fields = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', ) + ] + ) + else: + return GetReservationResponseDataGuestListValue( + ) + """ + + def testGetReservationResponseDataGuestListValue(self): + """Test GetReservationResponseDataGuestListValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py new file mode 100644 index 0000000..165df8f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner + +class TestGetReservationResponseDataGuestListValueCustomFieldsInner(unittest.TestCase): + """GetReservationResponseDataGuestListValueCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataGuestListValueCustomFieldsInner: + """Test GetReservationResponseDataGuestListValueCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataGuestListValueCustomFieldsInner` + """ + model = GetReservationResponseDataGuestListValueCustomFieldsInner() + if include_optional: + return GetReservationResponseDataGuestListValueCustomFieldsInner( + custom_field_name = '', + custom_field_value = '' + ) + else: + return GetReservationResponseDataGuestListValueCustomFieldsInner( + ) + """ + + def testGetReservationResponseDataGuestListValueCustomFieldsInner(self): + """Test GetReservationResponseDataGuestListValueCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py new file mode 100644 index 0000000..c7e0b67 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner + +class TestGetReservationResponseDataGuestListValueRoomsInner(unittest.TestCase): + """GetReservationResponseDataGuestListValueRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataGuestListValueRoomsInner: + """Test GetReservationResponseDataGuestListValueRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataGuestListValueRoomsInner` + """ + model = GetReservationResponseDataGuestListValueRoomsInner() + if include_optional: + return GetReservationResponseDataGuestListValueRoomsInner( + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '' + ) + else: + return GetReservationResponseDataGuestListValueRoomsInner( + ) + """ + + def testGetReservationResponseDataGuestListValueRoomsInner(self): + """Test GetReservationResponseDataGuestListValueRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py new file mode 100644 index 0000000..026d4d3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner + +class TestGetReservationResponseDataGuestListValueUnassignedRoomsInner(unittest.TestCase): + """GetReservationResponseDataGuestListValueUnassignedRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataGuestListValueUnassignedRoomsInner: + """Test GetReservationResponseDataGuestListValueUnassignedRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataGuestListValueUnassignedRoomsInner` + """ + model = GetReservationResponseDataGuestListValueUnassignedRoomsInner() + if include_optional: + return GetReservationResponseDataGuestListValueUnassignedRoomsInner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '' + ) + else: + return GetReservationResponseDataGuestListValueUnassignedRoomsInner( + ) + """ + + def testGetReservationResponseDataGuestListValueUnassignedRoomsInner(self): + """Test GetReservationResponseDataGuestListValueUnassignedRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py new file mode 100644 index 0000000..f2bd349 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner + +class TestGetReservationResponseDataUnassignedInner(unittest.TestCase): + """GetReservationResponseDataUnassignedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataUnassignedInner: + """Test GetReservationResponseDataUnassignedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataUnassignedInner` + """ + model = GetReservationResponseDataUnassignedInner() + if include_optional: + return GetReservationResponseDataUnassignedInner( + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = '', + children = '', + daily_rates = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + room_total = 1.337 + ) + else: + return GetReservationResponseDataUnassignedInner( + ) + """ + + def testGetReservationResponseDataUnassignedInner(self): + """Test GetReservationResponseDataUnassignedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py b/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py new file mode 100644 index 0000000..bc9ffff --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse + +class TestGetReservationRoomDetailsResponse(unittest.TestCase): + """GetReservationRoomDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationRoomDetailsResponse: + """Test GetReservationRoomDetailsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationRoomDetailsResponse` + """ + model = GetReservationRoomDetailsResponse() + if include_optional: + return GetReservationRoomDetailsResponse( + success = True, + message = '', + data = cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data.GetReservationRoomDetailsResponse_data( + reservation_id = '', + sub_reservation_id = '', + room_id = '', + room_name = '', + dorm_room_name = '', + guest_id = '', + guest_name = '', + room_status = 'cancelled', + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + max_guests = 56, + adults = 56, + children = 56, + guests = [ + cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner.GetReservationRoomDetailsResponse_data_guests_inner( + guest_id = '', + guest_first_name = '', + guest_last_name = '', + is_main_guest = True, ) + ], ) + ) + else: + return GetReservationRoomDetailsResponse( + ) + """ + + def testGetReservationRoomDetailsResponse(self): + """Test GetReservationRoomDetailsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py b/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py new file mode 100644 index 0000000..655ed12 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData + +class TestGetReservationRoomDetailsResponseData(unittest.TestCase): + """GetReservationRoomDetailsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationRoomDetailsResponseData: + """Test GetReservationRoomDetailsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationRoomDetailsResponseData` + """ + model = GetReservationRoomDetailsResponseData() + if include_optional: + return GetReservationRoomDetailsResponseData( + reservation_id = '', + sub_reservation_id = '', + room_id = '', + room_name = '', + dorm_room_name = '', + guest_id = '', + guest_name = '', + room_status = 'cancelled', + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + max_guests = 56, + adults = 56, + children = 56, + guests = [ + cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner.GetReservationRoomDetailsResponse_data_guests_inner( + guest_id = '', + guest_first_name = '', + guest_last_name = '', + is_main_guest = True, ) + ] + ) + else: + return GetReservationRoomDetailsResponseData( + ) + """ + + def testGetReservationRoomDetailsResponseData(self): + """Test GetReservationRoomDetailsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py new file mode 100644 index 0000000..9de01db --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner + +class TestGetReservationRoomDetailsResponseDataGuestsInner(unittest.TestCase): + """GetReservationRoomDetailsResponseDataGuestsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationRoomDetailsResponseDataGuestsInner: + """Test GetReservationRoomDetailsResponseDataGuestsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationRoomDetailsResponseDataGuestsInner` + """ + model = GetReservationRoomDetailsResponseDataGuestsInner() + if include_optional: + return GetReservationRoomDetailsResponseDataGuestsInner( + guest_id = '', + guest_first_name = '', + guest_last_name = '', + is_main_guest = True + ) + else: + return GetReservationRoomDetailsResponseDataGuestsInner( + ) + """ + + def testGetReservationRoomDetailsResponseDataGuestsInner(self): + """Test GetReservationRoomDetailsResponseDataGuestsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response.py new file mode 100644 index 0000000..b792f1b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse + +class TestGetReservationsResponse(unittest.TestCase): + """GetReservationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsResponse: + """Test GetReservationsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsResponse` + """ + model = GetReservationsResponse() + if include_optional: + return GetReservationsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner.GetReservationsResponse_data_inner( + property_id = '', + reservation_id = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'not_confirmed', + guest_id = '', + profile_id = '', + guest_name = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + allotment_block_code = '', + adults = 56, + children = 56, + balance = 1.337, + source_name = '', + source_id = '', + third_party_identifier = '', + sub_reservation_id = '', + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner.GetReservationsResponse_data_inner_rooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', + guest_id = '', + guest_name = '', + adults = '', + children = '', + room_id = '', + room_name = '', + room_check_in = '', + room_check_out = '', + room_status = 'cancelled', ) + ], + guest_list = { + 'key' : cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + guest_id = '', + guest_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + assigned_room = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + unassigned_rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '', ) + ], + is_anonymized = True, + is_main_guest = True, ) + }, ) + ], + count = 56, + total = 56 + ) + else: + return GetReservationsResponse( + ) + """ + + def testGetReservationsResponse(self): + """Test GetReservationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py new file mode 100644 index 0000000..09c3a6f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner + +class TestGetReservationsResponseDataInner(unittest.TestCase): + """GetReservationsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsResponseDataInner: + """Test GetReservationsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsResponseDataInner` + """ + model = GetReservationsResponseDataInner() + if include_optional: + return GetReservationsResponseDataInner( + property_id = '', + reservation_id = '', + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'not_confirmed', + guest_id = '', + profile_id = '', + guest_name = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + allotment_block_code = '', + adults = 56, + children = 56, + balance = 1.337, + source_name = '', + source_id = '', + third_party_identifier = '', + sub_reservation_id = '', + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner.GetReservationsResponse_data_inner_rooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', + guest_id = '', + guest_name = '', + adults = '', + children = '', + room_id = '', + room_name = '', + room_check_in = '', + room_check_out = '', + room_status = 'cancelled', ) + ], + guest_list = { + 'key' : cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + guest_id = '', + guest_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + assigned_room = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + room_status = 'in_house', + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '', ) + ], + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + is_anonymized = True, + is_main_guest = True, ) + } + ) + else: + return GetReservationsResponseDataInner( + ) + """ + + def testGetReservationsResponseDataInner(self): + """Test GetReservationsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py new file mode 100644 index 0000000..15228af --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue + +class TestGetReservationsResponseDataInnerGuestListValue(unittest.TestCase): + """GetReservationsResponseDataInnerGuestListValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGuestListValue: + """Test GetReservationsResponseDataInnerGuestListValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsResponseDataInnerGuestListValue` + """ + model = GetReservationsResponseDataInnerGuestListValue() + if include_optional: + return GetReservationsResponseDataInnerGuestListValue( + guest_id = '', + guest_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + assigned_room = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + room_status = 'in_house', + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '', ) + ], + custom_fields = [ + cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + is_anonymized = True, + is_main_guest = True + ) + else: + return GetReservationsResponseDataInnerGuestListValue( + ) + """ + + def testGetReservationsResponseDataInnerGuestListValue(self): + """Test GetReservationsResponseDataInnerGuestListValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py new file mode 100644 index 0000000..9770f91 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner + +class TestGetReservationsResponseDataInnerGuestListValueRoomsInner(unittest.TestCase): + """GetReservationsResponseDataInnerGuestListValueRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGuestListValueRoomsInner: + """Test GetReservationsResponseDataInnerGuestListValueRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsResponseDataInnerGuestListValueRoomsInner` + """ + model = GetReservationsResponseDataInnerGuestListValueRoomsInner() + if include_optional: + return GetReservationsResponseDataInnerGuestListValueRoomsInner( + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + room_status = 'in_house', + sub_reservation_id = '' + ) + else: + return GetReservationsResponseDataInnerGuestListValueRoomsInner( + ) + """ + + def testGetReservationsResponseDataInnerGuestListValueRoomsInner(self): + """Test GetReservationsResponseDataInnerGuestListValueRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py new file mode 100644 index 0000000..16fad1a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner + +class TestGetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner(unittest.TestCase): + """GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner: + """Test GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner` + """ + model = GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner() + if include_optional: + return GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '' + ) + else: + return GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner( + ) + """ + + def testGetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner(self): + """Test GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..9930c4f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner + +class TestGetReservationsResponseDataInnerRoomsInner(unittest.TestCase): + """GetReservationsResponseDataInnerRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsResponseDataInnerRoomsInner: + """Test GetReservationsResponseDataInnerRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsResponseDataInnerRoomsInner` + """ + model = GetReservationsResponseDataInnerRoomsInner() + if include_optional: + return GetReservationsResponseDataInnerRoomsInner( + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + sub_reservation_id = '', + guest_id = '', + guest_name = '', + adults = '', + children = '', + room_id = '', + room_name = '', + room_check_in = '', + room_check_out = '', + room_status = 'cancelled' + ) + else: + return GetReservationsResponseDataInnerRoomsInner( + ) + """ + + def testGetReservationsResponseDataInnerRoomsInner(self): + """Test GetReservationsResponseDataInnerRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py new file mode 100644 index 0000000..bfd64fb --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse + +class TestGetReservationsWithRateDetailsResponse(unittest.TestCase): + """GetReservationsWithRateDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponse: + """Test GetReservationsWithRateDetailsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponse` + """ + model = GetReservationsWithRateDetailsResponse() + if include_optional: + return GetReservationsWithRateDetailsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner.GetReservationsWithRateDetailsResponse_data_inner( + reservation_id = '', + is_deleted = True, + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_created_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_cancelled = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_cancelled_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'confirmed', + reservation_check_in = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_id = '', + profile_id = '', + guest_country = 56, + source_name = '', + source = [ + cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( + name = '', + payment_collect = 'hotel', + source_id = '', + category = '', ) + ], + source_category = 56, + source_reservation_id = 56, + property_currency = 56, + balance_detailed = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, ) + ], + detailed_rates = [ + None + ], + rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( + room_type_id = '', + room_type_is_virtual = True, + room_type_name = '', + sub_reservation_id = '', + guest_id = '', + guest_name = '', + rate_id = '', + rate_name = '', + adults = '', + children = '', + room_id = '', + room_name = '', + room_check_in = '', + room_check_out = '', + room_status = 'cancelled', + detailed_room_rates = [ + None + ], ) + ], ) + ], + count = 56, + total = 56 + ) + else: + return GetReservationsWithRateDetailsResponse( + ) + """ + + def testGetReservationsWithRateDetailsResponse(self): + """Test GetReservationsWithRateDetailsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py new file mode 100644 index 0000000..015b270 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner + +class TestGetReservationsWithRateDetailsResponseDataInner(unittest.TestCase): + """GetReservationsWithRateDetailsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInner: + """Test GetReservationsWithRateDetailsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInner` + """ + model = GetReservationsWithRateDetailsResponseDataInner() + if include_optional: + return GetReservationsWithRateDetailsResponseDataInner( + reservation_id = '', + is_deleted = True, + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_created_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_modified_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_cancelled = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + date_cancelled_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = 'confirmed', + reservation_check_in = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_id = '', + profile_id = '', + guest_country = 56, + source_name = '', + source = [ + cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( + name = '', + payment_collect = 'hotel', + source_id = '', + category = '', ) + ], + source_category = 56, + source_reservation_id = 56, + property_currency = 56, + balance_detailed = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, ) + ], + detailed_rates = [ + None + ], + rooms = [ + cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( + room_type_id = '', + room_type_is_virtual = True, + room_type_name = '', + sub_reservation_id = '', + guest_id = '', + guest_name = '', + rate_id = '', + rate_name = '', + adults = '', + children = '', + room_id = '', + room_name = '', + room_check_in = '', + room_check_out = '', + room_status = 'cancelled', + detailed_room_rates = [ + None + ], ) + ] + ) + else: + return GetReservationsWithRateDetailsResponseDataInner( + ) + """ + + def testGetReservationsWithRateDetailsResponseDataInner(self): + """Test GetReservationsWithRateDetailsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..a4fe700 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner + +class TestGetReservationsWithRateDetailsResponseDataInnerRoomsInner(unittest.TestCase): + """GetReservationsWithRateDetailsResponseDataInnerRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerRoomsInner: + """Test GetReservationsWithRateDetailsResponseDataInnerRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerRoomsInner` + """ + model = GetReservationsWithRateDetailsResponseDataInnerRoomsInner() + if include_optional: + return GetReservationsWithRateDetailsResponseDataInnerRoomsInner( + room_type_id = '', + room_type_is_virtual = True, + room_type_name = '', + sub_reservation_id = '', + guest_id = '', + guest_name = '', + rate_id = '', + rate_name = '', + adults = '', + children = '', + room_id = '', + room_name = '', + room_check_in = '', + room_check_out = '', + room_status = 'cancelled', + detailed_room_rates = [ + None + ] + ) + else: + return GetReservationsWithRateDetailsResponseDataInnerRoomsInner( + ) + """ + + def testGetReservationsWithRateDetailsResponseDataInnerRoomsInner(self): + """Test GetReservationsWithRateDetailsResponseDataInnerRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py new file mode 100644 index 0000000..1de878b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner + +class TestGetReservationsWithRateDetailsResponseDataInnerSourceInner(unittest.TestCase): + """GetReservationsWithRateDetailsResponseDataInnerSourceInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerSourceInner: + """Test GetReservationsWithRateDetailsResponseDataInnerSourceInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerSourceInner` + """ + model = GetReservationsWithRateDetailsResponseDataInnerSourceInner() + if include_optional: + return GetReservationsWithRateDetailsResponseDataInnerSourceInner( + name = '', + payment_collect = 'hotel', + source_id = '', + category = '' + ) + else: + return GetReservationsWithRateDetailsResponseDataInnerSourceInner( + ) + """ + + def testGetReservationsWithRateDetailsResponseDataInnerSourceInner(self): + """Test GetReservationsWithRateDetailsResponseDataInnerSourceInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py b/cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py new file mode 100644 index 0000000..d210d8e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse + +class TestGetRoomBlocksResponse(unittest.TestCase): + """GetRoomBlocksResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomBlocksResponse: + """Test GetRoomBlocksResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomBlocksResponse` + """ + model = GetRoomBlocksResponse() + if include_optional: + return GetRoomBlocksResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner.GetRoomBlocksResponse_data_inner( + room_block_id = '', + room_block_type = 'blocked', + room_block_reason = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rooms = [ + cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( + room_id = '', + room_type_id = '', ) + ], + count = 56, ) + ], + message = '' + ) + else: + return GetRoomBlocksResponse( + ) + """ + + def testGetRoomBlocksResponse(self): + """Test GetRoomBlocksResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py new file mode 100644 index 0000000..f3255eb --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner + +class TestGetRoomBlocksResponseDataInner(unittest.TestCase): + """GetRoomBlocksResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInner: + """Test GetRoomBlocksResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomBlocksResponseDataInner` + """ + model = GetRoomBlocksResponseDataInner() + if include_optional: + return GetRoomBlocksResponseDataInner( + room_block_id = '', + room_block_type = 'blocked', + room_block_reason = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rooms = [ + cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( + room_id = '', + room_type_id = '', ) + ], + count = 56 + ) + else: + return GetRoomBlocksResponseDataInner( + ) + """ + + def testGetRoomBlocksResponseDataInner(self): + """Test GetRoomBlocksResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_room_types_response.py b/cloudbeds_pms_v1_2/test/test_get_room_types_response.py new file mode 100644 index 0000000..8870e89 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_room_types_response.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse + +class TestGetRoomTypesResponse(unittest.TestCase): + """GetRoomTypesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomTypesResponse: + """Test GetRoomTypesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomTypesResponse` + """ + model = GetRoomTypesResponse() + if include_optional: + return GetRoomTypesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_room_types_response_data_inner.GetRoomTypesResponse_data_inner( + room_type_id = '', + property_id = '', + room_type_name = '', + room_type_name_short = '', + room_type_description = '', + is_private = True, + max_guests = 56, + adults_included = 56, + children_included = 56, + room_type_photos = [ + '' + ], + room_type_features = [ + '' + ], + rooms_available = 56, + room_rate = 1.337, + room_type_units = 56, + room_type_unit_dorm_beds = 56, ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetRoomTypesResponse( + ) + """ + + def testGetRoomTypesResponse(self): + """Test GetRoomTypesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py new file mode 100644 index 0000000..d241a30 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner + +class TestGetRoomTypesResponseDataInner(unittest.TestCase): + """GetRoomTypesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomTypesResponseDataInner: + """Test GetRoomTypesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomTypesResponseDataInner` + """ + model = GetRoomTypesResponseDataInner() + if include_optional: + return GetRoomTypesResponseDataInner( + room_type_id = '', + property_id = '', + room_type_name = '', + room_type_name_short = '', + room_type_description = '', + is_private = True, + max_guests = 56, + adults_included = 56, + children_included = 56, + room_type_photos = [ + '' + ], + room_type_features = [ + '' + ], + rooms_available = 56, + room_rate = 1.337, + room_type_units = 56, + room_type_unit_dorm_beds = 56 + ) + else: + return GetRoomTypesResponseDataInner( + ) + """ + + def testGetRoomTypesResponseDataInner(self): + """Test GetRoomTypesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py new file mode 100644 index 0000000..4f64fa0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse + +class TestGetRoomsFeesAndTaxesResponse(unittest.TestCase): + """GetRoomsFeesAndTaxesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsFeesAndTaxesResponse: + """Test GetRoomsFeesAndTaxesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsFeesAndTaxesResponse` + """ + model = GetRoomsFeesAndTaxesResponse() + if include_optional: + return GetRoomsFeesAndTaxesResponse( + success = True, + data = cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data.GetRoomsFeesAndTaxesResponse_data( + fees = [ + cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner.GetRoomsFeesAndTaxesResponse_data_fees_inner( + fee_name = '', + fee_value = 1.337, + total_fees = 1.337, ) + ], + taxes = [ + cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner.GetRoomsFeesAndTaxesResponse_data_taxes_inner( + fee_name = '', + fee_value = '', + total_taxes = 1.337, ) + ], + rooms_total_without_taxes = 1.337, + grand_total = 1.337, ), + message = '' + ) + else: + return GetRoomsFeesAndTaxesResponse( + ) + """ + + def testGetRoomsFeesAndTaxesResponse(self): + """Test GetRoomsFeesAndTaxesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py new file mode 100644 index 0000000..0f6660a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData + +class TestGetRoomsFeesAndTaxesResponseData(unittest.TestCase): + """GetRoomsFeesAndTaxesResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsFeesAndTaxesResponseData: + """Test GetRoomsFeesAndTaxesResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsFeesAndTaxesResponseData` + """ + model = GetRoomsFeesAndTaxesResponseData() + if include_optional: + return GetRoomsFeesAndTaxesResponseData( + fees = [ + cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner.GetRoomsFeesAndTaxesResponse_data_fees_inner( + fee_name = '', + fee_value = 1.337, + total_fees = 1.337, ) + ], + taxes = [ + cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner.GetRoomsFeesAndTaxesResponse_data_taxes_inner( + fee_name = '', + fee_value = '', + total_taxes = 1.337, ) + ], + rooms_total_without_taxes = 1.337, + grand_total = 1.337 + ) + else: + return GetRoomsFeesAndTaxesResponseData( + ) + """ + + def testGetRoomsFeesAndTaxesResponseData(self): + """Test GetRoomsFeesAndTaxesResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py new file mode 100644 index 0000000..a66bb1c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner + +class TestGetRoomsFeesAndTaxesResponseDataFeesInner(unittest.TestCase): + """GetRoomsFeesAndTaxesResponseDataFeesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsFeesAndTaxesResponseDataFeesInner: + """Test GetRoomsFeesAndTaxesResponseDataFeesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsFeesAndTaxesResponseDataFeesInner` + """ + model = GetRoomsFeesAndTaxesResponseDataFeesInner() + if include_optional: + return GetRoomsFeesAndTaxesResponseDataFeesInner( + fee_name = '', + fee_value = 1.337, + total_fees = 1.337 + ) + else: + return GetRoomsFeesAndTaxesResponseDataFeesInner( + ) + """ + + def testGetRoomsFeesAndTaxesResponseDataFeesInner(self): + """Test GetRoomsFeesAndTaxesResponseDataFeesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py new file mode 100644 index 0000000..dd28ee5 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner + +class TestGetRoomsFeesAndTaxesResponseDataTaxesInner(unittest.TestCase): + """GetRoomsFeesAndTaxesResponseDataTaxesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsFeesAndTaxesResponseDataTaxesInner: + """Test GetRoomsFeesAndTaxesResponseDataTaxesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsFeesAndTaxesResponseDataTaxesInner` + """ + model = GetRoomsFeesAndTaxesResponseDataTaxesInner() + if include_optional: + return GetRoomsFeesAndTaxesResponseDataTaxesInner( + fee_name = '', + fee_value = '', + total_taxes = 1.337 + ) + else: + return GetRoomsFeesAndTaxesResponseDataTaxesInner( + ) + """ + + def testGetRoomsFeesAndTaxesResponseDataTaxesInner(self): + """Test GetRoomsFeesAndTaxesResponseDataTaxesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response.py b/cloudbeds_pms_v1_2/test/test_get_rooms_response.py new file mode 100644 index 0000000..9bb7ee6 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse + +class TestGetRoomsResponse(unittest.TestCase): + """GetRoomsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsResponse: + """Test GetRoomsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsResponse` + """ + model = GetRoomsResponse() + if include_optional: + return GetRoomsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_rooms_response_data_inner.GetRoomsResponse_data_inner( + property_id = '', + rooms = [ + cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner.GetRoomsResponse_data_inner_rooms_inner( + room_id = '', + room_name = '', + dorm_room_name = '', + room_description = '', + max_guests = 56, + is_private = True, + is_virtual = True, + room_blocked = True, + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + linked_room_ids = [ + '' + ], + linked_room_type_ids = [ + '' + ], + linked_room_type_qty = [ + cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( + room_type_id = '', + room_qty = 56, ) + ], ) + ], ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetRoomsResponse( + ) + """ + + def testGetRoomsResponse(self): + """Test GetRoomsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py new file mode 100644 index 0000000..316ae8e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner + +class TestGetRoomsResponseDataInner(unittest.TestCase): + """GetRoomsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsResponseDataInner: + """Test GetRoomsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsResponseDataInner` + """ + model = GetRoomsResponseDataInner() + if include_optional: + return GetRoomsResponseDataInner( + property_id = '', + rooms = [ + cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner.GetRoomsResponse_data_inner_rooms_inner( + room_id = '', + room_name = '', + dorm_room_name = '', + room_description = '', + max_guests = 56, + is_private = True, + is_virtual = True, + room_blocked = True, + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + linked_room_ids = [ + '' + ], + linked_room_type_ids = [ + '' + ], + linked_room_type_qty = [ + cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( + room_type_id = '', + room_qty = 56, ) + ], ) + ] + ) + else: + return GetRoomsResponseDataInner( + ) + """ + + def testGetRoomsResponseDataInner(self): + """Test GetRoomsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..a0854fd --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner + +class TestGetRoomsResponseDataInnerRoomsInner(unittest.TestCase): + """GetRoomsResponseDataInnerRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsResponseDataInnerRoomsInner: + """Test GetRoomsResponseDataInnerRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsResponseDataInnerRoomsInner` + """ + model = GetRoomsResponseDataInnerRoomsInner() + if include_optional: + return GetRoomsResponseDataInnerRoomsInner( + room_id = '', + room_name = '', + dorm_room_name = '', + room_description = '', + max_guests = 56, + is_private = True, + is_virtual = True, + room_blocked = True, + room_type_id = '', + room_type_name = '', + room_type_name_short = '', + linked_room_ids = [ + '' + ], + linked_room_type_ids = [ + '' + ], + linked_room_type_qty = [ + cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( + room_type_id = '', + room_qty = 56, ) + ] + ) + else: + return GetRoomsResponseDataInnerRoomsInner( + ) + """ + + def testGetRoomsResponseDataInnerRoomsInner(self): + """Test GetRoomsResponseDataInnerRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py new file mode 100644 index 0000000..51c2984 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner + +class TestGetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner(unittest.TestCase): + """GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner: + """Test GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner` + """ + model = GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner() + if include_optional: + return GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner( + room_type_id = '', + room_qty = 56 + ) + else: + return GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner( + ) + """ + + def testGetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner(self): + """Test GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py b/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py new file mode 100644 index 0000000..d7fd201 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse + +class TestGetRoomsUnassignedResponse(unittest.TestCase): + """GetRoomsUnassignedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsUnassignedResponse: + """Test GetRoomsUnassignedResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsUnassignedResponse` + """ + model = GetRoomsUnassignedResponse() + if include_optional: + return GetRoomsUnassignedResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner.GetRoomsUnassignedResponse_data_inner( + property_id = '', + rooms = [ + cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner.GetRoomsUnassignedResponse_data_inner_rooms_inner( + room_id = '', + room_name = '', + dorm_room_name = '', + room_description = '', + max_guests = 56, + is_private = True, + is_virtual = True, + room_blocked = True, + room_type_id = '', + room_type_name = '', + room_type_name_short = '', ) + ], ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetRoomsUnassignedResponse( + ) + """ + + def testGetRoomsUnassignedResponse(self): + """Test GetRoomsUnassignedResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py new file mode 100644 index 0000000..8a0ca21 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner + +class TestGetRoomsUnassignedResponseDataInner(unittest.TestCase): + """GetRoomsUnassignedResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsUnassignedResponseDataInner: + """Test GetRoomsUnassignedResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsUnassignedResponseDataInner` + """ + model = GetRoomsUnassignedResponseDataInner() + if include_optional: + return GetRoomsUnassignedResponseDataInner( + property_id = '', + rooms = [ + cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner.GetRoomsUnassignedResponse_data_inner_rooms_inner( + room_id = '', + room_name = '', + dorm_room_name = '', + room_description = '', + max_guests = 56, + is_private = True, + is_virtual = True, + room_blocked = True, + room_type_id = '', + room_type_name = '', + room_type_name_short = '', ) + ] + ) + else: + return GetRoomsUnassignedResponseDataInner( + ) + """ + + def testGetRoomsUnassignedResponseDataInner(self): + """Test GetRoomsUnassignedResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py new file mode 100644 index 0000000..d94068c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner + +class TestGetRoomsUnassignedResponseDataInnerRoomsInner(unittest.TestCase): + """GetRoomsUnassignedResponseDataInnerRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetRoomsUnassignedResponseDataInnerRoomsInner: + """Test GetRoomsUnassignedResponseDataInnerRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetRoomsUnassignedResponseDataInnerRoomsInner` + """ + model = GetRoomsUnassignedResponseDataInnerRoomsInner() + if include_optional: + return GetRoomsUnassignedResponseDataInnerRoomsInner( + room_id = '', + room_name = '', + dorm_room_name = '', + room_description = '', + max_guests = 56, + is_private = True, + is_virtual = True, + room_blocked = True, + room_type_id = '', + room_type_name = '', + room_type_name_short = '' + ) + else: + return GetRoomsUnassignedResponseDataInnerRoomsInner( + ) + """ + + def testGetRoomsUnassignedResponseDataInnerRoomsInner(self): + """Test GetRoomsUnassignedResponseDataInnerRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response.py b/cloudbeds_pms_v1_2/test/test_get_sources_response.py new file mode 100644 index 0000000..5ef16e8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_sources_response.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse + +class TestGetSourcesResponse(unittest.TestCase): + """GetSourcesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetSourcesResponse: + """Test GetSourcesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetSourcesResponse` + """ + model = GetSourcesResponse() + if include_optional: + return GetSourcesResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_sources_response_data_inner.GetSourcesResponse_data_inner( + property_id = '', + source_id = '', + source_name = '', + is_third_party = True, + status = True, + commission = 1.337, + payment_collect = 'hotel', + taxes = [ + cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner.GetSourcesResponse_data_inner_taxes_inner( + tax_id = '', + name = '', + amount = 1.337, + amount_type = 'percentage', + type = 'exclusive', ) + ], + fees = [ + cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner.GetSourcesResponse_data_inner_fees_inner( + fee_id = 56, + name = '', + amount = 1.337, + amount_type = 'percentage', + type = 'exclusive', ) + ], ) + ], + message = '' + ) + else: + return GetSourcesResponse( + ) + """ + + def testGetSourcesResponse(self): + """Test GetSourcesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py new file mode 100644 index 0000000..f8e3303 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner + +class TestGetSourcesResponseDataInner(unittest.TestCase): + """GetSourcesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetSourcesResponseDataInner: + """Test GetSourcesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetSourcesResponseDataInner` + """ + model = GetSourcesResponseDataInner() + if include_optional: + return GetSourcesResponseDataInner( + property_id = '', + source_id = '', + source_name = '', + is_third_party = True, + status = True, + commission = 1.337, + payment_collect = 'hotel', + taxes = [ + cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner.GetSourcesResponse_data_inner_taxes_inner( + tax_id = '', + name = '', + amount = 1.337, + amount_type = 'percentage', + type = 'exclusive', ) + ], + fees = [ + cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner.GetSourcesResponse_data_inner_fees_inner( + fee_id = 56, + name = '', + amount = 1.337, + amount_type = 'percentage', + type = 'exclusive', ) + ] + ) + else: + return GetSourcesResponseDataInner( + ) + """ + + def testGetSourcesResponseDataInner(self): + """Test GetSourcesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py b/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py new file mode 100644 index 0000000..9ea066e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner + +class TestGetSourcesResponseDataInnerFeesInner(unittest.TestCase): + """GetSourcesResponseDataInnerFeesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetSourcesResponseDataInnerFeesInner: + """Test GetSourcesResponseDataInnerFeesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetSourcesResponseDataInnerFeesInner` + """ + model = GetSourcesResponseDataInnerFeesInner() + if include_optional: + return GetSourcesResponseDataInnerFeesInner( + fee_id = 56, + name = '', + amount = 1.337, + amount_type = 'percentage', + type = 'exclusive' + ) + else: + return GetSourcesResponseDataInnerFeesInner( + ) + """ + + def testGetSourcesResponseDataInnerFeesInner(self): + """Test GetSourcesResponseDataInnerFeesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py b/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py new file mode 100644 index 0000000..56352f1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner + +class TestGetSourcesResponseDataInnerTaxesInner(unittest.TestCase): + """GetSourcesResponseDataInnerTaxesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetSourcesResponseDataInnerTaxesInner: + """Test GetSourcesResponseDataInnerTaxesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetSourcesResponseDataInnerTaxesInner` + """ + model = GetSourcesResponseDataInnerTaxesInner() + if include_optional: + return GetSourcesResponseDataInnerTaxesInner( + tax_id = '', + name = '', + amount = 1.337, + amount_type = 'percentage', + type = 'exclusive' + ) + else: + return GetSourcesResponseDataInnerTaxesInner( + ) + """ + + def testGetSourcesResponseDataInnerTaxesInner(self): + """Test GetSourcesResponseDataInnerTaxesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py new file mode 100644 index 0000000..2c6d289 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse + +class TestGetTaxesAndFeesResponse(unittest.TestCase): + """GetTaxesAndFeesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: + """Test GetTaxesAndFeesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponse` + """ + model = GetTaxesAndFeesResponse() + if include_optional: + return GetTaxesAndFeesResponse( + success = True, + message = '', + data = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner.GetTaxesAndFeesResponse_data_inner( + type = 'fee', + fee_id = 56, + tax_id = 56, + name = '', + code = '', + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + rate = 1.337, + percentage = 1.337, ) + ], + amount_type = 'percentage', + available_for = product, + fees_charged = [ + 56 + ], + inclusive_or_exclusive = 'inclusive', + is_deleted = True, + child_id = '', + created_at = '', + expired_at = '', ) + ], + total = 56 + ) + else: + return GetTaxesAndFeesResponse( + ) + """ + + def testGetTaxesAndFeesResponse(self): + """Test GetTaxesAndFeesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py new file mode 100644 index 0000000..51295a9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner + +class TestGetTaxesAndFeesResponseDataInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: + """Test GetTaxesAndFeesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInner` + """ + model = GetTaxesAndFeesResponseDataInner() + if include_optional: + return GetTaxesAndFeesResponseDataInner( + type = 'fee', + fee_id = 56, + tax_id = 56, + name = '', + code = '', + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + rate = 1.337, + percentage = 1.337, ) + ], + amount_type = 'percentage', + available_for = product, + fees_charged = [ + 56 + ], + inclusive_or_exclusive = 'inclusive', + is_deleted = True, + child_id = '', + created_at = '', + expired_at = '' + ) + else: + return GetTaxesAndFeesResponseDataInner( + ) + """ + + def testGetTaxesAndFeesResponseDataInner(self): + """Test GetTaxesAndFeesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py new file mode 100644 index 0000000..03514de --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner + +class TestGetTaxesAndFeesResponseDataInnerAmountRateBasedInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerAmountRateBasedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerAmountRateBasedInner: + """Test GetTaxesAndFeesResponseDataInnerAmountRateBasedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerAmountRateBasedInner` + """ + model = GetTaxesAndFeesResponseDataInnerAmountRateBasedInner() + if include_optional: + return GetTaxesAndFeesResponseDataInnerAmountRateBasedInner( + rate = 1.337, + percentage = 1.337 + ) + else: + return GetTaxesAndFeesResponseDataInnerAmountRateBasedInner( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerAmountRateBasedInner(self): + """Test GetTaxesAndFeesResponseDataInnerAmountRateBasedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_transactions_response.py b/cloudbeds_pms_v1_2/test/test_get_transactions_response.py new file mode 100644 index 0000000..4f49c37 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_transactions_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse + +class TestGetTransactionsResponse(unittest.TestCase): + """GetTransactionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTransactionsResponse: + """Test GetTransactionsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTransactionsResponse` + """ + model = GetTransactionsResponse() + if include_optional: + return GetTransactionsResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_transactions_response_data_inner.GetTransactionsResponse_data_inner( + property_id = '', + reservation_id = '', + sub_reservation_id = '', + house_account_id = '', + house_account_name = '', + guest_id = '', + property_name = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_name = '', + guest_name = '', + description = '', + category = '', + transaction_code = '', + notes = '', + quantity = 56, + amount = 1.337, + currency = '', + user_name = '', + transaction_type = 'debit', + transaction_category = 'adjustment', + item_category_name = '', + transaction_id = '', + parent_transaction_id = '', + card_type = '', + is_deleted = True, ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetTransactionsResponse( + ) + """ + + def testGetTransactionsResponse(self): + """Test GetTransactionsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py new file mode 100644 index 0000000..33e66e5 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner + +class TestGetTransactionsResponseDataInner(unittest.TestCase): + """GetTransactionsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTransactionsResponseDataInner: + """Test GetTransactionsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTransactionsResponseDataInner` + """ + model = GetTransactionsResponseDataInner() + if include_optional: + return GetTransactionsResponseDataInner( + property_id = '', + reservation_id = '', + sub_reservation_id = '', + house_account_id = '', + house_account_name = '', + guest_id = '', + property_name = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_name = '', + guest_name = '', + description = '', + category = '', + transaction_code = '', + notes = '', + quantity = 56, + amount = 1.337, + currency = '', + user_name = '', + transaction_type = 'debit', + transaction_category = 'adjustment', + item_category_name = '', + transaction_id = '', + parent_transaction_id = '', + card_type = '', + is_deleted = True + ) + else: + return GetTransactionsResponseDataInner( + ) + """ + + def testGetTransactionsResponseDataInner(self): + """Test GetTransactionsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_userinfo_response.py b/cloudbeds_pms_v1_2/test/test_get_userinfo_response.py new file mode 100644 index 0000000..61fb240 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_userinfo_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse + +class TestGetUserinfoResponse(unittest.TestCase): + """GetUserinfoResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUserinfoResponse: + """Test GetUserinfoResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUserinfoResponse` + """ + model = GetUserinfoResponse() + if include_optional: + return GetUserinfoResponse( + user_id = '', + first_name = '', + last_name = '', + email = '', + acl = [ + '' + ], + roles = [ + cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner.GetUserinfoResponse_roles_inner( + id = '', + name = '', + description = '', ) + ] + ) + else: + return GetUserinfoResponse( + ) + """ + + def testGetUserinfoResponse(self): + """Test GetUserinfoResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py b/cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py new file mode 100644 index 0000000..6da0be8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner + +class TestGetUserinfoResponseRolesInner(unittest.TestCase): + """GetUserinfoResponseRolesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUserinfoResponseRolesInner: + """Test GetUserinfoResponseRolesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUserinfoResponseRolesInner` + """ + model = GetUserinfoResponseRolesInner() + if include_optional: + return GetUserinfoResponseRolesInner( + id = '', + name = '', + description = '' + ) + else: + return GetUserinfoResponseRolesInner( + ) + """ + + def testGetUserinfoResponseRolesInner(self): + """Test GetUserinfoResponseRolesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_users_response.py b/cloudbeds_pms_v1_2/test/test_get_users_response.py new file mode 100644 index 0000000..4d8e0ee --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_users_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse + +class TestGetUsersResponse(unittest.TestCase): + """GetUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUsersResponse: + """Test GetUsersResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUsersResponse` + """ + model = GetUsersResponse() + if include_optional: + return GetUsersResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_users_response_data_inner.GetUsersResponse_data_inner( + user_id = '', + first_name = '', + last_name = '', + email = '', + language = '', + user_role = cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( + name = '', + description = '', ), + active = 'yes', + last_login = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + property_id = '', + organization_id = '', ) + ] + ) + else: + return GetUsersResponse( + ) + """ + + def testGetUsersResponse(self): + """Test GetUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py new file mode 100644 index 0000000..652704f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner + +class TestGetUsersResponseDataInner(unittest.TestCase): + """GetUsersResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUsersResponseDataInner: + """Test GetUsersResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUsersResponseDataInner` + """ + model = GetUsersResponseDataInner() + if include_optional: + return GetUsersResponseDataInner( + user_id = '', + first_name = '', + last_name = '', + email = '', + language = '', + user_role = cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( + name = '', + description = '', ), + active = 'yes', + last_login = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + property_id = '', + organization_id = '' + ) + else: + return GetUsersResponseDataInner( + ) + """ + + def testGetUsersResponseDataInner(self): + """Test GetUsersResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py b/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py new file mode 100644 index 0000000..b3d9033 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole + +class TestGetUsersResponseDataInnerUserRole(unittest.TestCase): + """GetUsersResponseDataInnerUserRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUsersResponseDataInnerUserRole: + """Test GetUsersResponseDataInnerUserRole + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUsersResponseDataInnerUserRole` + """ + model = GetUsersResponseDataInnerUserRole() + if include_optional: + return GetUsersResponseDataInnerUserRole( + name = '', + description = '' + ) + else: + return GetUsersResponseDataInnerUserRole( + ) + """ + + def testGetUsersResponseDataInnerUserRole(self): + """Test GetUsersResponseDataInnerUserRole""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response.py b/cloudbeds_pms_v1_2/test/test_get_webhooks_response.py new file mode 100644 index 0000000..f61b53a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_webhooks_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse + +class TestGetWebhooksResponse(unittest.TestCase): + """GetWebhooksResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWebhooksResponse: + """Test GetWebhooksResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetWebhooksResponse` + """ + model = GetWebhooksResponse() + if include_optional: + return GetWebhooksResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner.GetWebhooksResponse_data_inner( + id = '', + key = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key.GetWebhooksResponse_data_inner_key( + type = 'user', + id = '', ), + event = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event.GetWebhooksResponse_data_inner_event( + entity = '', + action = '', ), + owner = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner.GetWebhooksResponse_data_inner_owner( + type = '', + id = '', ), + subscription_type = '', + subscription_data = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data.GetWebhooksResponse_data_inner_subscriptionData( + endpoint = '', ), ) + ] + ) + else: + return GetWebhooksResponse( + ) + """ + + def testGetWebhooksResponse(self): + """Test GetWebhooksResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py new file mode 100644 index 0000000..af80595 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner + +class TestGetWebhooksResponseDataInner(unittest.TestCase): + """GetWebhooksResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWebhooksResponseDataInner: + """Test GetWebhooksResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetWebhooksResponseDataInner` + """ + model = GetWebhooksResponseDataInner() + if include_optional: + return GetWebhooksResponseDataInner( + id = '', + key = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key.GetWebhooksResponse_data_inner_key( + type = 'user', + id = '', ), + event = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event.GetWebhooksResponse_data_inner_event( + entity = '', + action = '', ), + owner = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner.GetWebhooksResponse_data_inner_owner( + type = '', + id = '', ), + subscription_type = '', + subscription_data = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data.GetWebhooksResponse_data_inner_subscriptionData( + endpoint = '', ) + ) + else: + return GetWebhooksResponseDataInner( + ) + """ + + def testGetWebhooksResponseDataInner(self): + """Test GetWebhooksResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py new file mode 100644 index 0000000..47ac7e1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent + +class TestGetWebhooksResponseDataInnerEvent(unittest.TestCase): + """GetWebhooksResponseDataInnerEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWebhooksResponseDataInnerEvent: + """Test GetWebhooksResponseDataInnerEvent + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetWebhooksResponseDataInnerEvent` + """ + model = GetWebhooksResponseDataInnerEvent() + if include_optional: + return GetWebhooksResponseDataInnerEvent( + entity = '', + action = '' + ) + else: + return GetWebhooksResponseDataInnerEvent( + ) + """ + + def testGetWebhooksResponseDataInnerEvent(self): + """Test GetWebhooksResponseDataInnerEvent""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py new file mode 100644 index 0000000..ca1e645 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey + +class TestGetWebhooksResponseDataInnerKey(unittest.TestCase): + """GetWebhooksResponseDataInnerKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWebhooksResponseDataInnerKey: + """Test GetWebhooksResponseDataInnerKey + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetWebhooksResponseDataInnerKey` + """ + model = GetWebhooksResponseDataInnerKey() + if include_optional: + return GetWebhooksResponseDataInnerKey( + type = 'user', + id = '' + ) + else: + return GetWebhooksResponseDataInnerKey( + ) + """ + + def testGetWebhooksResponseDataInnerKey(self): + """Test GetWebhooksResponseDataInnerKey""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py new file mode 100644 index 0000000..1f5ba92 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner + +class TestGetWebhooksResponseDataInnerOwner(unittest.TestCase): + """GetWebhooksResponseDataInnerOwner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWebhooksResponseDataInnerOwner: + """Test GetWebhooksResponseDataInnerOwner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetWebhooksResponseDataInnerOwner` + """ + model = GetWebhooksResponseDataInnerOwner() + if include_optional: + return GetWebhooksResponseDataInnerOwner( + type = '', + id = '' + ) + else: + return GetWebhooksResponseDataInnerOwner( + ) + """ + + def testGetWebhooksResponseDataInnerOwner(self): + """Test GetWebhooksResponseDataInnerOwner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py new file mode 100644 index 0000000..72bc686 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData + +class TestGetWebhooksResponseDataInnerSubscriptionData(unittest.TestCase): + """GetWebhooksResponseDataInnerSubscriptionData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetWebhooksResponseDataInnerSubscriptionData: + """Test GetWebhooksResponseDataInnerSubscriptionData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetWebhooksResponseDataInnerSubscriptionData` + """ + model = GetWebhooksResponseDataInnerSubscriptionData() + if include_optional: + return GetWebhooksResponseDataInnerSubscriptionData( + endpoint = '' + ) + else: + return GetWebhooksResponseDataInnerSubscriptionData( + ) + """ + + def testGetWebhooksResponseDataInnerSubscriptionData(self): + """Test GetWebhooksResponseDataInnerSubscriptionData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_groups_api.py b/cloudbeds_pms_v1_2/test/test_groups_api.py new file mode 100644 index 0000000..2ac86b2 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_groups_api.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.groups_api import GroupsApi + + +class TestGroupsApi(unittest.TestCase): + """GroupsApi unit test stubs""" + + def setUp(self) -> None: + self.api = GroupsApi() + + def tearDown(self) -> None: + pass + + def test_get_group_notes_get(self) -> None: + """Test case for get_group_notes_get + + getGroupNotes + """ + pass + + def test_get_groups_get(self) -> None: + """Test case for get_groups_get + + getGroups + """ + pass + + def test_patch_group_post(self) -> None: + """Test case for patch_group_post + + patchGroup + """ + pass + + def test_post_group_note_post(self) -> None: + """Test case for post_group_note_post + + postGroupNote + """ + pass + + def test_put_group_post(self) -> None: + """Test case for put_group_post + + putGroup + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_guest_api.py b/cloudbeds_pms_v1_2/test/test_guest_api.py new file mode 100644 index 0000000..811066e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_guest_api.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.guest_api import GuestApi + + +class TestGuestApi(unittest.TestCase): + """GuestApi unit test stubs""" + + def setUp(self) -> None: + self.api = GuestApi() + + def tearDown(self) -> None: + pass + + def test_delete_guest_note_delete(self) -> None: + """Test case for delete_guest_note_delete + + deleteGuestNote + """ + pass + + def test_get_guest_get(self) -> None: + """Test case for get_guest_get + + getGuest + """ + pass + + def test_get_guest_list_get(self) -> None: + """Test case for get_guest_list_get + + getGuestList + """ + pass + + def test_get_guest_notes_get(self) -> None: + """Test case for get_guest_notes_get + + getGuestNotes + """ + pass + + def test_get_guests_by_filter_get(self) -> None: + """Test case for get_guests_by_filter_get + + getGuestsByFilter + """ + pass + + def test_get_guests_by_status_get(self) -> None: + """Test case for get_guests_by_status_get + + getGuestsByStatus + """ + pass + + def test_get_guests_modified_get(self) -> None: + """Test case for get_guests_modified_get + + getGuestsModified + """ + pass + + def test_post_guest_document_post(self) -> None: + """Test case for post_guest_document_post + + postGuestDocument + """ + pass + + def test_post_guest_note_post(self) -> None: + """Test case for post_guest_note_post + + postGuestNote + """ + pass + + def test_post_guest_photo_post(self) -> None: + """Test case for post_guest_photo_post + + postGuestPhoto + """ + pass + + def test_post_guest_post(self) -> None: + """Test case for post_guest_post + + postGuest + """ + pass + + def test_post_guests_to_room_post(self) -> None: + """Test case for post_guests_to_room_post + + postGuestsToRoom + """ + pass + + def test_put_guest_note_put(self) -> None: + """Test case for put_guest_note_put + + putGuestNote + """ + pass + + def test_put_guest_put(self) -> None: + """Test case for put_guest_put + + putGuest + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_hotel_api.py b/cloudbeds_pms_v1_2/test/test_hotel_api.py new file mode 100644 index 0000000..92d00f7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_hotel_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.hotel_api import HotelApi + + +class TestHotelApi(unittest.TestCase): + """HotelApi unit test stubs""" + + def setUp(self) -> None: + self.api = HotelApi() + + def tearDown(self) -> None: + pass + + def test_get_files_get(self) -> None: + """Test case for get_files_get + + getFiles + """ + pass + + def test_get_hotel_details_get(self) -> None: + """Test case for get_hotel_details_get + + getHotelDetails + """ + pass + + def test_get_hotels_get(self) -> None: + """Test case for get_hotels_get + + getHotels + """ + pass + + def test_post_file_post(self) -> None: + """Test case for post_file_post + + postFile + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_house_account_api.py b/cloudbeds_pms_v1_2/test/test_house_account_api.py new file mode 100644 index 0000000..457fd25 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_house_account_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.house_account_api import HouseAccountApi + + +class TestHouseAccountApi(unittest.TestCase): + """HouseAccountApi unit test stubs""" + + def setUp(self) -> None: + self.api = HouseAccountApi() + + def tearDown(self) -> None: + pass + + def test_get_house_account_details_get(self) -> None: + """Test case for get_house_account_details_get + + getHouseAccountDetails + """ + pass + + def test_get_house_account_list_get(self) -> None: + """Test case for get_house_account_list_get + + getHouseAccountList + """ + pass + + def test_post_new_house_account_post(self) -> None: + """Test case for post_new_house_account_post + + postNewHouseAccount + """ + pass + + def test_put_house_account_status_put(self) -> None: + """Test case for put_house_account_status_put + + putHouseAccountStatus + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_housekeeping_api.py b/cloudbeds_pms_v1_2/test/test_housekeeping_api.py new file mode 100644 index 0000000..dfed730 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_housekeeping_api.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.housekeeping_api import HousekeepingApi + + +class TestHousekeepingApi(unittest.TestCase): + """HousekeepingApi unit test stubs""" + + def setUp(self) -> None: + self.api = HousekeepingApi() + + def tearDown(self) -> None: + pass + + def test_get_housekeepers_get(self) -> None: + """Test case for get_housekeepers_get + + getHousekeepers + """ + pass + + def test_get_housekeeping_status_get(self) -> None: + """Test case for get_housekeeping_status_get + + getHousekeepingStatus + """ + pass + + def test_post_housekeeper_post(self) -> None: + """Test case for post_housekeeper_post + + postHousekeeper + """ + pass + + def test_post_housekeeping_assignment_post(self) -> None: + """Test case for post_housekeeping_assignment_post + + postHousekeepingAssignment + """ + pass + + def test_post_housekeeping_status_post(self) -> None: + """Test case for post_housekeeping_status_post + + postHousekeepingStatus + """ + pass + + def test_put_housekeeper_put(self) -> None: + """Test case for put_housekeeper_put + + putHousekeeper + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_integration_api.py b/cloudbeds_pms_v1_2/test/test_integration_api.py new file mode 100644 index 0000000..6848ce0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_integration_api.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.integration_api import IntegrationApi + + +class TestIntegrationApi(unittest.TestCase): + """IntegrationApi unit test stubs""" + + def setUp(self) -> None: + self.api = IntegrationApi() + + def tearDown(self) -> None: + pass + + def test_delete_webhook_delete(self) -> None: + """Test case for delete_webhook_delete + + deleteWebhook + """ + pass + + def test_get_app_settings_get(self) -> None: + """Test case for get_app_settings_get + + getAppSettings + """ + pass + + def test_get_app_state_get(self) -> None: + """Test case for get_app_state_get + + getAppState + """ + pass + + def test_get_webhooks_get(self) -> None: + """Test case for get_webhooks_get + + getWebhooks + """ + pass + + def test_post_app_error_post(self) -> None: + """Test case for post_app_error_post + + postAppError + """ + pass + + def test_post_app_state_post(self) -> None: + """Test case for post_app_state_post + + postAppState + """ + pass + + def test_post_government_receipt_post(self) -> None: + """Test case for post_government_receipt_post + + postGovernmentReceipt + """ + pass + + def test_post_webhook_post(self) -> None: + """Test case for post_webhook_post + + postWebhook + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_invoices_api.py b/cloudbeds_pms_v1_2/test/test_invoices_api.py new file mode 100644 index 0000000..1191774 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_invoices_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.invoices_api import InvoicesApi + + +class TestInvoicesApi(unittest.TestCase): + """InvoicesApi unit test stubs""" + + def setUp(self) -> None: + self.api = InvoicesApi() + + def tearDown(self) -> None: + pass + + def test_get_invoice_get(self) -> None: + """Test case for get_invoice_get + + getInvoice + """ + pass + + def test_patch_invoice_post(self) -> None: + """Test case for patch_invoice_post + + patchInvoice + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_item_api.py b/cloudbeds_pms_v1_2/test/test_item_api.py new file mode 100644 index 0000000..ff0c8fa --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_item_api.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.item_api import ItemApi + + +class TestItemApi(unittest.TestCase): + """ItemApi unit test stubs""" + + def setUp(self) -> None: + self.api = ItemApi() + + def tearDown(self) -> None: + pass + + def test_append_custom_item_post(self) -> None: + """Test case for append_custom_item_post + + appendCustomItem + """ + pass + + def test_get_item_categories_get(self) -> None: + """Test case for get_item_categories_get + + getItemCategories + """ + pass + + def test_get_item_get(self) -> None: + """Test case for get_item_get + + getItem + """ + pass + + def test_get_items_get(self) -> None: + """Test case for get_items_get + + getItems + """ + pass + + def test_post_custom_item_post(self) -> None: + """Test case for post_custom_item_post + + postCustomItem + """ + pass + + def test_post_item_category_post(self) -> None: + """Test case for post_item_category_post + + postItemCategory + """ + pass + + def test_post_item_post(self) -> None: + """Test case for post_item_post + + postItem + """ + pass + + def test_post_items_to_inventory_post(self) -> None: + """Test case for post_items_to_inventory_post + + postItemsToInventory + """ + pass + + def test_post_void_item_post(self) -> None: + """Test case for post_void_item_post + + postVoidItem + """ + pass + + def test_put_item_to_inventory_put(self) -> None: + """Test case for put_item_to_inventory_put + + putItemToInventory + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_package_api.py b/cloudbeds_pms_v1_2/test/test_package_api.py new file mode 100644 index 0000000..e90ed3c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_package_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.package_api import PackageApi + + +class TestPackageApi(unittest.TestCase): + """PackageApi unit test stubs""" + + def setUp(self) -> None: + self.api = PackageApi() + + def tearDown(self) -> None: + pass + + def test_get_package_names_get(self) -> None: + """Test case for get_package_names_get + + getPackageNames + """ + pass + + def test_get_packages_get(self) -> None: + """Test case for get_packages_get + + getPackages + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_payment_api.py b/cloudbeds_pms_v1_2/test/test_payment_api.py new file mode 100644 index 0000000..c0d4a9f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_payment_api.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.payment_api import PaymentApi + + +class TestPaymentApi(unittest.TestCase): + """PaymentApi unit test stubs""" + + def setUp(self) -> None: + self.api = PaymentApi() + + def tearDown(self) -> None: + pass + + def test_get_payment_methods_get(self) -> None: + """Test case for get_payment_methods_get + + getPaymentMethods + """ + pass + + def test_get_payments_capabilities_get(self) -> None: + """Test case for get_payments_capabilities_get + + getPaymentsCapabilities + """ + pass + + def test_get_payments_get(self) -> None: + """Test case for get_payments_get + + getPayments + """ + pass + + def test_get_transactions_get(self) -> None: + """Test case for get_transactions_get + + getTransactions + """ + pass + + def test_post_charge_post(self) -> None: + """Test case for post_charge_post + + postCharge + """ + pass + + def test_post_credit_card_post(self) -> None: + """Test case for post_credit_card_post + + postCreditCard + """ + pass + + def test_post_custom_payment_method_post(self) -> None: + """Test case for post_custom_payment_method_post + + postCustomPaymentMethod + """ + pass + + def test_post_payment_post(self) -> None: + """Test case for post_payment_post + + postPayment + """ + pass + + def test_post_void_payment_post(self) -> None: + """Test case for post_void_payment_post + + postVoidPayment + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_access_token_response.py b/cloudbeds_pms_v1_2/test/test_post_access_token_response.py new file mode 100644 index 0000000..bd74717 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_access_token_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse + +class TestPostAccessTokenResponse(unittest.TestCase): + """PostAccessTokenResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAccessTokenResponse: + """Test PostAccessTokenResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAccessTokenResponse` + """ + model = PostAccessTokenResponse() + if include_optional: + return PostAccessTokenResponse( + access_token = '', + token_type = '', + expires_in = 56, + refresh_token = '', + resources = [ + cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner.PostAccessTokenResponse_resources_inner( + type = 'property', + id = '', ) + ] + ) + else: + return PostAccessTokenResponse( + ) + """ + + def testPostAccessTokenResponse(self): + """Test PostAccessTokenResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py b/cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py new file mode 100644 index 0000000..0957bea --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner + +class TestPostAccessTokenResponseResourcesInner(unittest.TestCase): + """PostAccessTokenResponseResourcesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAccessTokenResponseResourcesInner: + """Test PostAccessTokenResponseResourcesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAccessTokenResponseResourcesInner` + """ + model = PostAccessTokenResponseResourcesInner() + if include_optional: + return PostAccessTokenResponseResourcesInner( + type = 'property', + id = '' + ) + else: + return PostAccessTokenResponseResourcesInner( + ) + """ + + def testPostAccessTokenResponseResourcesInner(self): + """Test PostAccessTokenResponseResourcesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_adjustment_response.py b/cloudbeds_pms_v1_2/test/test_post_adjustment_response.py new file mode 100644 index 0000000..a041ab5 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_adjustment_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse + +class TestPostAdjustmentResponse(unittest.TestCase): + """PostAdjustmentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAdjustmentResponse: + """Test PostAdjustmentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAdjustmentResponse` + """ + model = PostAdjustmentResponse() + if include_optional: + return PostAdjustmentResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_adjustment_response_data.PostAdjustmentResponse_data( + adjustment_id = '', ), + message = '' + ) + else: + return PostAdjustmentResponse( + ) + """ + + def testPostAdjustmentResponse(self): + """Test PostAdjustmentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py b/cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py new file mode 100644 index 0000000..960466c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData + +class TestPostAdjustmentResponseData(unittest.TestCase): + """PostAdjustmentResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAdjustmentResponseData: + """Test PostAdjustmentResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAdjustmentResponseData` + """ + model = PostAdjustmentResponseData() + if include_optional: + return PostAdjustmentResponseData( + adjustment_id = '' + ) + else: + return PostAdjustmentResponseData( + ) + """ + + def testPostAdjustmentResponseData(self): + """Test PostAdjustmentResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_app_error_response.py b/cloudbeds_pms_v1_2/test/test_post_app_error_response.py new file mode 100644 index 0000000..f7ba659 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_app_error_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse + +class TestPostAppErrorResponse(unittest.TestCase): + """PostAppErrorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppErrorResponse: + """Test PostAppErrorResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppErrorResponse` + """ + model = PostAppErrorResponse() + if include_optional: + return PostAppErrorResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_app_error_response_data.PostAppErrorResponse_data( + error_id = '', ) + ) + else: + return PostAppErrorResponse( + ) + """ + + def testPostAppErrorResponse(self): + """Test PostAppErrorResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py b/cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py new file mode 100644 index 0000000..8eb8dec --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData + +class TestPostAppErrorResponseData(unittest.TestCase): + """PostAppErrorResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppErrorResponseData: + """Test PostAppErrorResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppErrorResponseData` + """ + model = PostAppErrorResponseData() + if include_optional: + return PostAppErrorResponseData( + error_id = '' + ) + else: + return PostAppErrorResponseData( + ) + """ + + def testPostAppErrorResponseData(self): + """Test PostAppErrorResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py b/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py new file mode 100644 index 0000000..6bf8120 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse + +class TestPostAppPropertySettingResponse(unittest.TestCase): + """PostAppPropertySettingResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppPropertySettingResponse: + """Test PostAppPropertySettingResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppPropertySettingResponse` + """ + model = PostAppPropertySettingResponse() + if include_optional: + return PostAppPropertySettingResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_app_property_setting_response_data.PostAppPropertySettingResponse_data( + id = '', + key = '', + value = '', ) + ) + else: + return PostAppPropertySettingResponse( + ) + """ + + def testPostAppPropertySettingResponse(self): + """Test PostAppPropertySettingResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py b/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py new file mode 100644 index 0000000..2bd0c1b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData + +class TestPostAppPropertySettingResponseData(unittest.TestCase): + """PostAppPropertySettingResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppPropertySettingResponseData: + """Test PostAppPropertySettingResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppPropertySettingResponseData` + """ + model = PostAppPropertySettingResponseData() + if include_optional: + return PostAppPropertySettingResponseData( + id = '', + key = '', + value = '' + ) + else: + return PostAppPropertySettingResponseData( + ) + """ + + def testPostAppPropertySettingResponseData(self): + """Test PostAppPropertySettingResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_app_state_response.py b/cloudbeds_pms_v1_2/test/test_post_app_state_response.py new file mode 100644 index 0000000..d6300db --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_app_state_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse + +class TestPostAppStateResponse(unittest.TestCase): + """PostAppStateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppStateResponse: + """Test PostAppStateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppStateResponse` + """ + model = PostAppStateResponse() + if include_optional: + return PostAppStateResponse( + success = True + ) + else: + return PostAppStateResponse( + ) + """ + + def testPostAppStateResponse(self): + """Test PostAppStateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py b/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py new file mode 100644 index 0000000..1da96fa --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse + +class TestPostAppendCustomItemResponse(unittest.TestCase): + """PostAppendCustomItemResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppendCustomItemResponse: + """Test PostAppendCustomItemResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppendCustomItemResponse` + """ + model = PostAppendCustomItemResponse() + if include_optional: + return PostAppendCustomItemResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_append_custom_item_response_data.PostAppendCustomItemResponse_data( + sold_product_id = '', + transaction_id = '', ) + ) + else: + return PostAppendCustomItemResponse( + ) + """ + + def testPostAppendCustomItemResponse(self): + """Test PostAppendCustomItemResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py b/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py new file mode 100644 index 0000000..372c469 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData + +class TestPostAppendCustomItemResponseData(unittest.TestCase): + """PostAppendCustomItemResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppendCustomItemResponseData: + """Test PostAppendCustomItemResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppendCustomItemResponseData` + """ + model = PostAppendCustomItemResponseData() + if include_optional: + return PostAppendCustomItemResponseData( + sold_product_id = '', + transaction_id = '' + ) + else: + return PostAppendCustomItemResponseData( + ) + """ + + def testPostAppendCustomItemResponseData(self): + """Test PostAppendCustomItemResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_card_response.py b/cloudbeds_pms_v1_2/test/test_post_card_response.py new file mode 100644 index 0000000..bc12796 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_card_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse + +class TestPostCardResponse(unittest.TestCase): + """PostCardResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCardResponse: + """Test PostCardResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCardResponse` + """ + model = PostCardResponse() + if include_optional: + return PostCardResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_card_response_data.PostCardResponse_data( + card_id = '', + card_number = '', + card_type = 'visa', + redirect_url = '', ) + ) + else: + return PostCardResponse( + ) + """ + + def testPostCardResponse(self): + """Test PostCardResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_card_response_data.py b/cloudbeds_pms_v1_2/test/test_post_card_response_data.py new file mode 100644 index 0000000..b7a1d12 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_card_response_data.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData + +class TestPostCardResponseData(unittest.TestCase): + """PostCardResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCardResponseData: + """Test PostCardResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCardResponseData` + """ + model = PostCardResponseData() + if include_optional: + return PostCardResponseData( + card_id = '', + card_number = '', + card_type = 'visa', + redirect_url = '' + ) + else: + return PostCardResponseData( + ) + """ + + def testPostCardResponseData(self): + """Test PostCardResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response.py b/cloudbeds_pms_v1_2/test/test_post_charge_response.py new file mode 100644 index 0000000..31202b9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_charge_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse + +class TestPostChargeResponse(unittest.TestCase): + """PostChargeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostChargeResponse: + """Test PostChargeResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostChargeResponse` + """ + model = PostChargeResponse() + if include_optional: + return PostChargeResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_charge_response_data.PostChargeResponse_data( + payment_id = '', + transaction_id = '', + payment_status = '', + payment_type = '', + next_action = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action.PostChargeResponse_data_nextAction( + type = '', + details = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( + url = '', + method = '', ), ), ) + ) + else: + return PostChargeResponse( + ) + """ + + def testPostChargeResponse(self): + """Test PostChargeResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response_data.py b/cloudbeds_pms_v1_2/test/test_post_charge_response_data.py new file mode 100644 index 0000000..4ea87c7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_charge_response_data.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData + +class TestPostChargeResponseData(unittest.TestCase): + """PostChargeResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostChargeResponseData: + """Test PostChargeResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostChargeResponseData` + """ + model = PostChargeResponseData() + if include_optional: + return PostChargeResponseData( + payment_id = '', + transaction_id = '', + payment_status = '', + payment_type = '', + next_action = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action.PostChargeResponse_data_nextAction( + type = '', + details = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( + url = '', + method = '', ), ) + ) + else: + return PostChargeResponseData( + ) + """ + + def testPostChargeResponseData(self): + """Test PostChargeResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py b/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py new file mode 100644 index 0000000..1b8d163 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction + +class TestPostChargeResponseDataNextAction(unittest.TestCase): + """PostChargeResponseDataNextAction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostChargeResponseDataNextAction: + """Test PostChargeResponseDataNextAction + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostChargeResponseDataNextAction` + """ + model = PostChargeResponseDataNextAction() + if include_optional: + return PostChargeResponseDataNextAction( + type = '', + details = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( + url = '', + method = '', ) + ) + else: + return PostChargeResponseDataNextAction( + ) + """ + + def testPostChargeResponseDataNextAction(self): + """Test PostChargeResponseDataNextAction""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py b/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py new file mode 100644 index 0000000..dc51e8f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails + +class TestPostChargeResponseDataNextActionDetails(unittest.TestCase): + """PostChargeResponseDataNextActionDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostChargeResponseDataNextActionDetails: + """Test PostChargeResponseDataNextActionDetails + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostChargeResponseDataNextActionDetails` + """ + model = PostChargeResponseDataNextActionDetails() + if include_optional: + return PostChargeResponseDataNextActionDetails( + url = '', + method = '' + ) + else: + return PostChargeResponseDataNextActionDetails( + ) + """ + + def testPostChargeResponseDataNextActionDetails(self): + """Test PostChargeResponseDataNextActionDetails""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py new file mode 100644 index 0000000..8962020 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse + +class TestPostCreateAllotmentBlockNotesResponse(unittest.TestCase): + """PostCreateAllotmentBlockNotesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockNotesResponse: + """Test PostCreateAllotmentBlockNotesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockNotesResponse` + """ + model = PostCreateAllotmentBlockNotesResponse() + if include_optional: + return PostCreateAllotmentBlockNotesResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data.PostCreateAllotmentBlockNotesResponse_data( + id = '', + text = '', + created_by = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + archived_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '', ) + ) + else: + return PostCreateAllotmentBlockNotesResponse( + ) + """ + + def testPostCreateAllotmentBlockNotesResponse(self): + """Test PostCreateAllotmentBlockNotesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py new file mode 100644 index 0000000..052e0f0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData + +class TestPostCreateAllotmentBlockNotesResponseData(unittest.TestCase): + """PostCreateAllotmentBlockNotesResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockNotesResponseData: + """Test PostCreateAllotmentBlockNotesResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockNotesResponseData` + """ + model = PostCreateAllotmentBlockNotesResponseData() + if include_optional: + return PostCreateAllotmentBlockNotesResponseData( + id = '', + text = '', + created_by = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + archived_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = '' + ) + else: + return PostCreateAllotmentBlockNotesResponseData( + ) + """ + + def testPostCreateAllotmentBlockNotesResponseData(self): + """Test PostCreateAllotmentBlockNotesResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py new file mode 100644 index 0000000..1d35238 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner + +class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInner(unittest.TestCase): + """PostCreateAllotmentBlockRequestAllotmentIntervalsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllotmentIntervalsInner: + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockRequestAllotmentIntervalsInner` + """ + model = PostCreateAllotmentBlockRequestAllotmentIntervalsInner() + if include_optional: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInner( + availability = [ + cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_allotted = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), + restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ] + ) + else: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInner( + ) + """ + + def testPostCreateAllotmentBlockRequestAllotmentIntervalsInner(self): + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py new file mode 100644 index 0000000..7cfecdf --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + +class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(unittest.TestCase): + """PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner: + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner` + """ + model = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner() + if include_optional: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_allotted = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), + restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ) + ) + else: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner( + ) + """ + + def testPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(self): + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py new file mode 100644 index 0000000..97c575c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + +class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(unittest.TestCase): + """PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing: + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing` + """ + model = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing() + if include_optional: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '' + ) + else: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing( + ) + """ + + def testPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(self): + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py new file mode 100644 index 0000000..4c3b0c7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + +class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(unittest.TestCase): + """PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions: + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions` + """ + model = PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions() + if include_optional: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56 + ) + else: + return PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions( + ) + """ + + def testPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(self): + """Test PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py new file mode 100644 index 0000000..a4a8fa3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease + +class TestPostCreateAllotmentBlockRequestAutoRelease(unittest.TestCase): + """PostCreateAllotmentBlockRequestAutoRelease unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAutoRelease: + """Test PostCreateAllotmentBlockRequestAutoRelease + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockRequestAutoRelease` + """ + model = PostCreateAllotmentBlockRequestAutoRelease() + if include_optional: + return PostCreateAllotmentBlockRequestAutoRelease( + release_type = 'all_dates', + days = 56, + release_time = '' + ) + else: + return PostCreateAllotmentBlockRequestAutoRelease( + ) + """ + + def testPostCreateAllotmentBlockRequestAutoRelease(self): + """Test PostCreateAllotmentBlockRequestAutoRelease""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py new file mode 100644 index 0000000..e5b543d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse + +class TestPostCreateAllotmentBlockResponse(unittest.TestCase): + """PostCreateAllotmentBlockResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponse: + """Test PostCreateAllotmentBlockResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockResponse` + """ + model = PostCreateAllotmentBlockResponse() + if include_optional: + return PostCreateAllotmentBlockResponse( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + success = True, + data = [ + cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner.PostCreateAllotmentBlockResponse_data_inner( + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + group_code = '', + is_auto_release = True, + auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + release_type = 'all_dates', + days = 56, + release_time = '', ), + allotment_intervals = [ + cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ], ) + ] + ) + else: + return PostCreateAllotmentBlockResponse( + ) + """ + + def testPostCreateAllotmentBlockResponse(self): + """Test PostCreateAllotmentBlockResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py new file mode 100644 index 0000000..ad631c4 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner + +class TestPostCreateAllotmentBlockResponseDataInner(unittest.TestCase): + """PostCreateAllotmentBlockResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDataInner: + """Test PostCreateAllotmentBlockResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockResponseDataInner` + """ + model = PostCreateAllotmentBlockResponseDataInner() + if include_optional: + return PostCreateAllotmentBlockResponseDataInner( + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + group_code = '', + is_auto_release = True, + auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + release_type = 'all_dates', + days = 56, + release_time = '', ), + allotment_intervals = [ + cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ] + ) + else: + return PostCreateAllotmentBlockResponseDataInner( + ) + """ + + def testPostCreateAllotmentBlockResponseDataInner(self): + """Test PostCreateAllotmentBlockResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..d8f88ab --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + +class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(unittest.TestCase): + """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner: + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner` + """ + model = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner() + if include_optional: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ) + ) + else: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner( + ) + """ + + def testPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(self): + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py new file mode 100644 index 0000000..51fa44d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability + +class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability(unittest.TestCase): + """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability: + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability` + """ + model = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability() + if include_optional: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ) + ) + else: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability( + ) + """ + + def testPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability(self): + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py new file mode 100644 index 0000000..a9b4e31 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing + +class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing(unittest.TestCase): + """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing: + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing` + """ + model = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing() + if include_optional: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '' + ) + else: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing( + ) + """ + + def testPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing(self): + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..2229bfe --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + +class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): + """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions: + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions` + """ + model = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions() + if include_optional: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56 + ) + else: + return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions( + ) + """ + + def testPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(self): + """Test PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py new file mode 100644 index 0000000..5f1e4eb --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease + +class TestPostCreateAllotmentBlockResponseDataInnerAutoRelease(unittest.TestCase): + """PostCreateAllotmentBlockResponseDataInnerAutoRelease unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDataInnerAutoRelease: + """Test PostCreateAllotmentBlockResponseDataInnerAutoRelease + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCreateAllotmentBlockResponseDataInnerAutoRelease` + """ + model = PostCreateAllotmentBlockResponseDataInnerAutoRelease() + if include_optional: + return PostCreateAllotmentBlockResponseDataInnerAutoRelease( + release_type = 'all_dates', + days = 56, + release_time = '' + ) + else: + return PostCreateAllotmentBlockResponseDataInnerAutoRelease( + ) + """ + + def testPostCreateAllotmentBlockResponseDataInnerAutoRelease(self): + """Test PostCreateAllotmentBlockResponseDataInnerAutoRelease""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_field_response.py b/cloudbeds_pms_v1_2/test/test_post_custom_field_response.py new file mode 100644 index 0000000..1ec9186 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_field_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse + +class TestPostCustomFieldResponse(unittest.TestCase): + """PostCustomFieldResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomFieldResponse: + """Test PostCustomFieldResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomFieldResponse` + """ + model = PostCustomFieldResponse() + if include_optional: + return PostCustomFieldResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_custom_field_response_data.PostCustomFieldResponse_data( + field_id = '', + name = '', + shortcode = '', ), + message = '' + ) + else: + return PostCustomFieldResponse( + ) + """ + + def testPostCustomFieldResponse(self): + """Test PostCustomFieldResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py b/cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py new file mode 100644 index 0000000..23bcc08 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData + +class TestPostCustomFieldResponseData(unittest.TestCase): + """PostCustomFieldResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomFieldResponseData: + """Test PostCustomFieldResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomFieldResponseData` + """ + model = PostCustomFieldResponseData() + if include_optional: + return PostCustomFieldResponseData( + field_id = '', + name = '', + shortcode = '' + ) + else: + return PostCustomFieldResponseData( + ) + """ + + def testPostCustomFieldResponseData(self): + """Test PostCustomFieldResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py new file mode 100644 index 0000000..517dd61 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner + +class TestPostCustomItemRequestItemsInner(unittest.TestCase): + """PostCustomItemRequestItemsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomItemRequestItemsInner: + """Test PostCustomItemRequestItemsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomItemRequestItemsInner` + """ + model = PostCustomItemRequestItemsInner() + if include_optional: + return PostCustomItemRequestItemsInner( + app_item_id = '', + item_sku = '', + item_quantity = 56, + item_price = 1.337, + item_name = '', + item_category_name = '', + item_note = '', + item_taxes = [ + cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner.PostCustomItemRequest_items_inner_itemTaxes_inner( + tax_name = '', + tax_value = 1.337, ) + ], + item_fees = [ + cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner.PostCustomItemRequest_items_inner_itemFees_inner( + fee_name = '', + fee_value = 1.337, ) + ] + ) + else: + return PostCustomItemRequestItemsInner( + ) + """ + + def testPostCustomItemRequestItemsInner(self): + """Test PostCustomItemRequestItemsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py new file mode 100644 index 0000000..7b7248e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner + +class TestPostCustomItemRequestItemsInnerItemFeesInner(unittest.TestCase): + """PostCustomItemRequestItemsInnerItemFeesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomItemRequestItemsInnerItemFeesInner: + """Test PostCustomItemRequestItemsInnerItemFeesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomItemRequestItemsInnerItemFeesInner` + """ + model = PostCustomItemRequestItemsInnerItemFeesInner() + if include_optional: + return PostCustomItemRequestItemsInnerItemFeesInner( + fee_name = '', + fee_value = 1.337 + ) + else: + return PostCustomItemRequestItemsInnerItemFeesInner( + ) + """ + + def testPostCustomItemRequestItemsInnerItemFeesInner(self): + """Test PostCustomItemRequestItemsInnerItemFeesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py new file mode 100644 index 0000000..3c078a3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner + +class TestPostCustomItemRequestItemsInnerItemTaxesInner(unittest.TestCase): + """PostCustomItemRequestItemsInnerItemTaxesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomItemRequestItemsInnerItemTaxesInner: + """Test PostCustomItemRequestItemsInnerItemTaxesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomItemRequestItemsInnerItemTaxesInner` + """ + model = PostCustomItemRequestItemsInnerItemTaxesInner() + if include_optional: + return PostCustomItemRequestItemsInnerItemTaxesInner( + tax_name = '', + tax_value = 1.337 + ) + else: + return PostCustomItemRequestItemsInnerItemTaxesInner( + ) + """ + + def testPostCustomItemRequestItemsInnerItemTaxesInner(self): + """Test PostCustomItemRequestItemsInnerItemTaxesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py new file mode 100644 index 0000000..4185ed6 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner + +class TestPostCustomItemRequestPaymentsInner(unittest.TestCase): + """PostCustomItemRequestPaymentsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomItemRequestPaymentsInner: + """Test PostCustomItemRequestPaymentsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomItemRequestPaymentsInner` + """ + model = PostCustomItemRequestPaymentsInner() + if include_optional: + return PostCustomItemRequestPaymentsInner( + payment_type = '', + card_type = '', + amount = 1.337, + notes = '' + ) + else: + return PostCustomItemRequestPaymentsInner( + ) + """ + + def testPostCustomItemRequestPaymentsInner(self): + """Test PostCustomItemRequestPaymentsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_response.py b/cloudbeds_pms_v1_2/test/test_post_custom_item_response.py new file mode 100644 index 0000000..96f5ee2 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_item_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse + +class TestPostCustomItemResponse(unittest.TestCase): + """PostCustomItemResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomItemResponse: + """Test PostCustomItemResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomItemResponse` + """ + model = PostCustomItemResponse() + if include_optional: + return PostCustomItemResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_custom_item_response_data.PostCustomItemResponse_data( + sold_product_id = '', + transaction_id = '', + notice = '', ) + ) + else: + return PostCustomItemResponse( + ) + """ + + def testPostCustomItemResponse(self): + """Test PostCustomItemResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py b/cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py new file mode 100644 index 0000000..a2a1154 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData + +class TestPostCustomItemResponseData(unittest.TestCase): + """PostCustomItemResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomItemResponseData: + """Test PostCustomItemResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomItemResponseData` + """ + model = PostCustomItemResponseData() + if include_optional: + return PostCustomItemResponseData( + sold_product_id = '', + transaction_id = '', + notice = '' + ) + else: + return PostCustomItemResponseData( + ) + """ + + def testPostCustomItemResponseData(self): + """Test PostCustomItemResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py b/cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py new file mode 100644 index 0000000..4991dd8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse + +class TestPostCustomPaymentMethodResponse(unittest.TestCase): + """PostCustomPaymentMethodResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCustomPaymentMethodResponse: + """Test PostCustomPaymentMethodResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCustomPaymentMethodResponse` + """ + model = PostCustomPaymentMethodResponse() + if include_optional: + return PostCustomPaymentMethodResponse( + success = True, + message = '' + ) + else: + return PostCustomPaymentMethodResponse( + ) + """ + + def testPostCustomPaymentMethodResponse(self): + """Test PostCustomPaymentMethodResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py b/cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py new file mode 100644 index 0000000..8792e5e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse + +class TestPostDeleteAllotmentBlockResponse(unittest.TestCase): + """PostDeleteAllotmentBlockResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostDeleteAllotmentBlockResponse: + """Test PostDeleteAllotmentBlockResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostDeleteAllotmentBlockResponse` + """ + model = PostDeleteAllotmentBlockResponse() + if include_optional: + return PostDeleteAllotmentBlockResponse( + success = True + ) + else: + return PostDeleteAllotmentBlockResponse( + ) + """ + + def testPostDeleteAllotmentBlockResponse(self): + """Test PostDeleteAllotmentBlockResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py b/cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py new file mode 100644 index 0000000..22454f7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse + +class TestPostDeleteAppPropertySettingsResponse(unittest.TestCase): + """PostDeleteAppPropertySettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostDeleteAppPropertySettingsResponse: + """Test PostDeleteAppPropertySettingsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostDeleteAppPropertySettingsResponse` + """ + model = PostDeleteAppPropertySettingsResponse() + if include_optional: + return PostDeleteAppPropertySettingsResponse( + success = True, + message = '' + ) + else: + return PostDeleteAppPropertySettingsResponse( + ) + """ + + def testPostDeleteAppPropertySettingsResponse(self): + """Test PostDeleteAppPropertySettingsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py b/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py new file mode 100644 index 0000000..c285326 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule + +class TestPostEmailScheduleRequestSchedule(unittest.TestCase): + """PostEmailScheduleRequestSchedule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostEmailScheduleRequestSchedule: + """Test PostEmailScheduleRequestSchedule + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostEmailScheduleRequestSchedule` + """ + model = PostEmailScheduleRequestSchedule() + if include_optional: + return PostEmailScheduleRequestSchedule( + reservation_status_change = cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change.PostEmailScheduleRequest_schedule_reservationStatusChange( + status = 'confirmed', ), + reservation_event = cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event.PostEmailScheduleRequest_schedule_reservationEvent( + event = 'after_booking', + days = 56, + time = '', ) + ) + else: + return PostEmailScheduleRequestSchedule( + ) + """ + + def testPostEmailScheduleRequestSchedule(self): + """Test PostEmailScheduleRequestSchedule""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py b/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py new file mode 100644 index 0000000..766ea0d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent + +class TestPostEmailScheduleRequestScheduleReservationEvent(unittest.TestCase): + """PostEmailScheduleRequestScheduleReservationEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostEmailScheduleRequestScheduleReservationEvent: + """Test PostEmailScheduleRequestScheduleReservationEvent + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostEmailScheduleRequestScheduleReservationEvent` + """ + model = PostEmailScheduleRequestScheduleReservationEvent() + if include_optional: + return PostEmailScheduleRequestScheduleReservationEvent( + event = 'after_booking', + days = 56, + time = '' + ) + else: + return PostEmailScheduleRequestScheduleReservationEvent( + ) + """ + + def testPostEmailScheduleRequestScheduleReservationEvent(self): + """Test PostEmailScheduleRequestScheduleReservationEvent""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py b/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py new file mode 100644 index 0000000..f9046d1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange + +class TestPostEmailScheduleRequestScheduleReservationStatusChange(unittest.TestCase): + """PostEmailScheduleRequestScheduleReservationStatusChange unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostEmailScheduleRequestScheduleReservationStatusChange: + """Test PostEmailScheduleRequestScheduleReservationStatusChange + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostEmailScheduleRequestScheduleReservationStatusChange` + """ + model = PostEmailScheduleRequestScheduleReservationStatusChange() + if include_optional: + return PostEmailScheduleRequestScheduleReservationStatusChange( + status = 'confirmed' + ) + else: + return PostEmailScheduleRequestScheduleReservationStatusChange( + ) + """ + + def testPostEmailScheduleRequestScheduleReservationStatusChange(self): + """Test PostEmailScheduleRequestScheduleReservationStatusChange""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py b/cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py new file mode 100644 index 0000000..5fd42f7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse + +class TestPostEmailScheduleResponse(unittest.TestCase): + """PostEmailScheduleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostEmailScheduleResponse: + """Test PostEmailScheduleResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostEmailScheduleResponse` + """ + model = PostEmailScheduleResponse() + if include_optional: + return PostEmailScheduleResponse( + success = True, + email_schedule_id = '', + message = '' + ) + else: + return PostEmailScheduleResponse( + ) + """ + + def testPostEmailScheduleResponse(self): + """Test PostEmailScheduleResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py b/cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py new file mode 100644 index 0000000..e3bb4f3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody + +class TestPostEmailTemplateRequestBody(unittest.TestCase): + """PostEmailTemplateRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostEmailTemplateRequestBody: + """Test PostEmailTemplateRequestBody + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostEmailTemplateRequestBody` + """ + model = PostEmailTemplateRequestBody() + if include_optional: + return PostEmailTemplateRequestBody( + en = '', + es = '', + ru = '', + pt_br = '' + ) + else: + return PostEmailTemplateRequestBody( + ) + """ + + def testPostEmailTemplateRequestBody(self): + """Test PostEmailTemplateRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py b/cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py new file mode 100644 index 0000000..db5e24d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject + +class TestPostEmailTemplateRequestSubject(unittest.TestCase): + """PostEmailTemplateRequestSubject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostEmailTemplateRequestSubject: + """Test PostEmailTemplateRequestSubject + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostEmailTemplateRequestSubject` + """ + model = PostEmailTemplateRequestSubject() + if include_optional: + return PostEmailTemplateRequestSubject( + en = '', + es = '', + ru = '', + pt_br = '' + ) + else: + return PostEmailTemplateRequestSubject( + ) + """ + + def testPostEmailTemplateRequestSubject(self): + """Test PostEmailTemplateRequestSubject""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_email_template_response.py b/cloudbeds_pms_v1_2/test/test_post_email_template_response.py new file mode 100644 index 0000000..711ec31 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_email_template_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse + +class TestPostEmailTemplateResponse(unittest.TestCase): + """PostEmailTemplateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostEmailTemplateResponse: + """Test PostEmailTemplateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostEmailTemplateResponse` + """ + model = PostEmailTemplateResponse() + if include_optional: + return PostEmailTemplateResponse( + success = True, + email_template_id = '', + message = '' + ) + else: + return PostEmailTemplateResponse( + ) + """ + + def testPostEmailTemplateResponse(self): + """Test PostEmailTemplateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_file_response.py b/cloudbeds_pms_v1_2/test/test_post_file_response.py new file mode 100644 index 0000000..58850c7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_file_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse + +class TestPostFileResponse(unittest.TestCase): + """PostFileResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostFileResponse: + """Test PostFileResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostFileResponse` + """ + model = PostFileResponse() + if include_optional: + return PostFileResponse( + success = True, + message = '', + data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + file_id = '', ) + ) + else: + return PostFileResponse( + ) + """ + + def testPostFileResponse(self): + """Test PostFileResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py b/cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py new file mode 100644 index 0000000..379453a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse + +class TestPostGovernmentReceiptResponse(unittest.TestCase): + """PostGovernmentReceiptResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGovernmentReceiptResponse: + """Test PostGovernmentReceiptResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGovernmentReceiptResponse` + """ + model = PostGovernmentReceiptResponse() + if include_optional: + return PostGovernmentReceiptResponse( + success = True, + message = '' + ) + else: + return PostGovernmentReceiptResponse( + ) + """ + + def testPostGovernmentReceiptResponse(self): + """Test PostGovernmentReceiptResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_group_note_response.py b/cloudbeds_pms_v1_2/test/test_post_group_note_response.py new file mode 100644 index 0000000..d0ae81d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_group_note_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse + +class TestPostGroupNoteResponse(unittest.TestCase): + """PostGroupNoteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGroupNoteResponse: + """Test PostGroupNoteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGroupNoteResponse` + """ + model = PostGroupNoteResponse() + if include_optional: + return PostGroupNoteResponse( + success = True, + code = 56, + data = [ + cloudbeds_pms_v1_2.models.post_group_note_response_data_inner.PostGroupNoteResponse_data_inner( + id = '', + group_profile_id = '', + text = '', + created_by = '', + created_at = '', + updated_at = '', + archived = '', + archived_at = '', ) + ] + ) + else: + return PostGroupNoteResponse( + ) + """ + + def testPostGroupNoteResponse(self): + """Test PostGroupNoteResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py new file mode 100644 index 0000000..df8bdd0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner + +class TestPostGroupNoteResponseDataInner(unittest.TestCase): + """PostGroupNoteResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGroupNoteResponseDataInner: + """Test PostGroupNoteResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGroupNoteResponseDataInner` + """ + model = PostGroupNoteResponseDataInner() + if include_optional: + return PostGroupNoteResponseDataInner( + id = '', + group_profile_id = '', + text = '', + created_by = '', + created_at = '', + updated_at = '', + archived = '', + archived_at = '' + ) + else: + return PostGroupNoteResponseDataInner( + ) + """ + + def testPostGroupNoteResponseDataInner(self): + """Test PostGroupNoteResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_document_response.py b/cloudbeds_pms_v1_2/test/test_post_guest_document_response.py new file mode 100644 index 0000000..0196b8a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_guest_document_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse + +class TestPostGuestDocumentResponse(unittest.TestCase): + """PostGuestDocumentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestDocumentResponse: + """Test PostGuestDocumentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestDocumentResponse` + """ + model = PostGuestDocumentResponse() + if include_optional: + return PostGuestDocumentResponse( + success = True, + message = '', + data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + file_id = '', ) + ) + else: + return PostGuestDocumentResponse( + ) + """ + + def testPostGuestDocumentResponse(self): + """Test PostGuestDocumentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py b/cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py new file mode 100644 index 0000000..36641e1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData + +class TestPostGuestDocumentResponseData(unittest.TestCase): + """PostGuestDocumentResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestDocumentResponseData: + """Test PostGuestDocumentResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestDocumentResponseData` + """ + model = PostGuestDocumentResponseData() + if include_optional: + return PostGuestDocumentResponseData( + file_id = '' + ) + else: + return PostGuestDocumentResponseData( + ) + """ + + def testPostGuestDocumentResponseData(self): + """Test PostGuestDocumentResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_note_response.py b/cloudbeds_pms_v1_2/test/test_post_guest_note_response.py new file mode 100644 index 0000000..2d4bcc1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_guest_note_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse + +class TestPostGuestNoteResponse(unittest.TestCase): + """PostGuestNoteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestNoteResponse: + """Test PostGuestNoteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestNoteResponse` + """ + model = PostGuestNoteResponse() + if include_optional: + return PostGuestNoteResponse( + success = True, + guest_note_id = '', + message = '' + ) + else: + return PostGuestNoteResponse( + ) + """ + + def testPostGuestNoteResponse(self): + """Test PostGuestNoteResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py b/cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py new file mode 100644 index 0000000..ab932a3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse + +class TestPostGuestPhotoResponse(unittest.TestCase): + """PostGuestPhotoResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestPhotoResponse: + """Test PostGuestPhotoResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestPhotoResponse` + """ + model = PostGuestPhotoResponse() + if include_optional: + return PostGuestPhotoResponse( + success = True, + message = '', + data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + file_id = '', ) + ) + else: + return PostGuestPhotoResponse( + ) + """ + + def testPostGuestPhotoResponse(self): + """Test PostGuestPhotoResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py b/cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py new file mode 100644 index 0000000..0bb78c7 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner + +class TestPostGuestRequestCustomFieldsInner(unittest.TestCase): + """PostGuestRequestCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestRequestCustomFieldsInner: + """Test PostGuestRequestCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestRequestCustomFieldsInner` + """ + model = PostGuestRequestCustomFieldsInner() + if include_optional: + return PostGuestRequestCustomFieldsInner( + custom_field_name = '', + custom_field_value = '' + ) + else: + return PostGuestRequestCustomFieldsInner( + ) + """ + + def testPostGuestRequestCustomFieldsInner(self): + """Test PostGuestRequestCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_response.py b/cloudbeds_pms_v1_2/test/test_post_guest_response.py new file mode 100644 index 0000000..f1db337 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_guest_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse + +class TestPostGuestResponse(unittest.TestCase): + """PostGuestResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestResponse: + """Test PostGuestResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestResponse` + """ + model = PostGuestResponse() + if include_optional: + return PostGuestResponse( + success = True, + guest_id = '', + message = '' + ) + else: + return PostGuestResponse( + ) + """ + + def testPostGuestResponse(self): + """Test PostGuestResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py b/cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py new file mode 100644 index 0000000..058a36e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse + +class TestPostGuestsToRoomResponse(unittest.TestCase): + """PostGuestsToRoomResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestsToRoomResponse: + """Test PostGuestsToRoomResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestsToRoomResponse` + """ + model = PostGuestsToRoomResponse() + if include_optional: + return PostGuestsToRoomResponse( + success = True, + message = '' + ) + else: + return PostGuestsToRoomResponse( + ) + """ + + def testPostGuestsToRoomResponse(self): + """Test PostGuestsToRoomResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py b/cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py new file mode 100644 index 0000000..0915616 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse + +class TestPostHousekeeperResponse(unittest.TestCase): + """PostHousekeeperResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostHousekeeperResponse: + """Test PostHousekeeperResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostHousekeeperResponse` + """ + model = PostHousekeeperResponse() + if include_optional: + return PostHousekeeperResponse( + success = True, + housekeeper_id = '', + message = '' + ) + else: + return PostHousekeeperResponse( + ) + """ + + def testPostHousekeeperResponse(self): + """Test PostHousekeeperResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py b/cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py new file mode 100644 index 0000000..69d1b78 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse + +class TestPostHousekeepingAssignmentResponse(unittest.TestCase): + """PostHousekeepingAssignmentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostHousekeepingAssignmentResponse: + """Test PostHousekeepingAssignmentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostHousekeepingAssignmentResponse` + """ + model = PostHousekeepingAssignmentResponse() + if include_optional: + return PostHousekeepingAssignmentResponse( + success = True, + message = '' + ) + else: + return PostHousekeepingAssignmentResponse( + ) + """ + + def testPostHousekeepingAssignmentResponse(self): + """Test PostHousekeepingAssignmentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py b/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py new file mode 100644 index 0000000..8d710b0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse + +class TestPostHousekeepingStatusResponse(unittest.TestCase): + """PostHousekeepingStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostHousekeepingStatusResponse: + """Test PostHousekeepingStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostHousekeepingStatusResponse` + """ + model = PostHousekeepingStatusResponse() + if include_optional: + return PostHousekeepingStatusResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data.PostHousekeepingStatusResponse_data( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_id = '', + room_condition = 'dirty', + room_comments = '', + do_not_disturb = True, + refused_service = True, + vacant_pickup = True, ), + message = '' + ) + else: + return PostHousekeepingStatusResponse( + ) + """ + + def testPostHousekeepingStatusResponse(self): + """Test PostHousekeepingStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py b/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py new file mode 100644 index 0000000..6251563 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData + +class TestPostHousekeepingStatusResponseData(unittest.TestCase): + """PostHousekeepingStatusResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostHousekeepingStatusResponseData: + """Test PostHousekeepingStatusResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostHousekeepingStatusResponseData` + """ + model = PostHousekeepingStatusResponseData() + if include_optional: + return PostHousekeepingStatusResponseData( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_id = '', + room_condition = 'dirty', + room_comments = '', + do_not_disturb = True, + refused_service = True, + vacant_pickup = True + ) + else: + return PostHousekeepingStatusResponseData( + ) + """ + + def testPostHousekeepingStatusResponseData(self): + """Test PostHousekeepingStatusResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_item_category_response.py b/cloudbeds_pms_v1_2/test/test_post_item_category_response.py new file mode 100644 index 0000000..d87375c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_item_category_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse + +class TestPostItemCategoryResponse(unittest.TestCase): + """PostItemCategoryResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemCategoryResponse: + """Test PostItemCategoryResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemCategoryResponse` + """ + model = PostItemCategoryResponse() + if include_optional: + return PostItemCategoryResponse( + success = True, + category_id = '', + message = '' + ) + else: + return PostItemCategoryResponse( + ) + """ + + def testPostItemCategoryResponse(self): + """Test PostItemCategoryResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py b/cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py new file mode 100644 index 0000000..a8f7929 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner + +class TestPostItemRequestPaymentsInner(unittest.TestCase): + """PostItemRequestPaymentsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemRequestPaymentsInner: + """Test PostItemRequestPaymentsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemRequestPaymentsInner` + """ + model = PostItemRequestPaymentsInner() + if include_optional: + return PostItemRequestPaymentsInner( + payment_type = '', + amount = 1.337, + notes = '' + ) + else: + return PostItemRequestPaymentsInner( + ) + """ + + def testPostItemRequestPaymentsInner(self): + """Test PostItemRequestPaymentsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_item_response.py b/cloudbeds_pms_v1_2/test/test_post_item_response.py new file mode 100644 index 0000000..24dc4a9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_item_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse + +class TestPostItemResponse(unittest.TestCase): + """PostItemResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemResponse: + """Test PostItemResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemResponse` + """ + model = PostItemResponse() + if include_optional: + return PostItemResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_item_response_data.PostItemResponse_data( + sold_product_id = '', + transaction_id = '', + transaction_status = '', + remaining_item_quantity = 56, + reorder_needed = True, + stop_sell_met = True, ), + message = '' + ) + else: + return PostItemResponse( + ) + """ + + def testPostItemResponse(self): + """Test PostItemResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_item_response_data.py b/cloudbeds_pms_v1_2/test/test_post_item_response_data.py new file mode 100644 index 0000000..e568de1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_item_response_data.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData + +class TestPostItemResponseData(unittest.TestCase): + """PostItemResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemResponseData: + """Test PostItemResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemResponseData` + """ + model = PostItemResponseData() + if include_optional: + return PostItemResponseData( + sold_product_id = '', + transaction_id = '', + transaction_status = '', + remaining_item_quantity = 56, + reorder_needed = True, + stop_sell_met = True + ) + else: + return PostItemResponseData( + ) + """ + + def testPostItemResponseData(self): + """Test PostItemResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py b/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py new file mode 100644 index 0000000..83c5263 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem + +class TestPostItemsToInventoryRequestItem(unittest.TestCase): + """PostItemsToInventoryRequestItem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemsToInventoryRequestItem: + """Test PostItemsToInventoryRequestItem + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemsToInventoryRequestItem` + """ + model = PostItemsToInventoryRequestItem() + if include_optional: + return PostItemsToInventoryRequestItem( + property_id = '', + item_name = '', + category_id = '', + item_type = 'product', + item_sku = '', + item_code = '', + item_description = '', + item_price = 1.337, + stock_inventory = True, + item_quantity = 56, + reorder_threshold = 56, + stop_sell_met = True, + stop_sell = 56 + ) + else: + return PostItemsToInventoryRequestItem( + ) + """ + + def testPostItemsToInventoryRequestItem(self): + """Test PostItemsToInventoryRequestItem""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py b/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py new file mode 100644 index 0000000..e3ea2da --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse + +class TestPostItemsToInventoryResponse(unittest.TestCase): + """PostItemsToInventoryResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemsToInventoryResponse: + """Test PostItemsToInventoryResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemsToInventoryResponse` + """ + model = PostItemsToInventoryResponse() + if include_optional: + return PostItemsToInventoryResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner.PostItemsToInventoryResponse_data_inner( + item_id = '', + item_sku = '', + item_name = '', ) + ], + message = '' + ) + else: + return PostItemsToInventoryResponse( + ) + """ + + def testPostItemsToInventoryResponse(self): + """Test PostItemsToInventoryResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py new file mode 100644 index 0000000..a4bad5b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner + +class TestPostItemsToInventoryResponseDataInner(unittest.TestCase): + """PostItemsToInventoryResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemsToInventoryResponseDataInner: + """Test PostItemsToInventoryResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemsToInventoryResponseDataInner` + """ + model = PostItemsToInventoryResponseDataInner() + if include_optional: + return PostItemsToInventoryResponseDataInner( + item_id = '', + item_sku = '', + item_name = '' + ) + else: + return PostItemsToInventoryResponseDataInner( + ) + """ + + def testPostItemsToInventoryResponseDataInner(self): + """Test PostItemsToInventoryResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py b/cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py new file mode 100644 index 0000000..da2c7ee --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse + +class TestPostNewHouseAccountResponse(unittest.TestCase): + """PostNewHouseAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostNewHouseAccountResponse: + """Test PostNewHouseAccountResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostNewHouseAccountResponse` + """ + model = PostNewHouseAccountResponse() + if include_optional: + return PostNewHouseAccountResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_new_house_account_response_data.PostNewHouseAccountResponse_data( + house_account_id = '', ), + message = '' + ) + else: + return PostNewHouseAccountResponse( + ) + """ + + def testPostNewHouseAccountResponse(self): + """Test PostNewHouseAccountResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py b/cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py new file mode 100644 index 0000000..c0f2a44 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData + +class TestPostNewHouseAccountResponseData(unittest.TestCase): + """PostNewHouseAccountResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostNewHouseAccountResponseData: + """Test PostNewHouseAccountResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostNewHouseAccountResponseData` + """ + model = PostNewHouseAccountResponseData() + if include_optional: + return PostNewHouseAccountResponseData( + house_account_id = '' + ) + else: + return PostNewHouseAccountResponseData( + ) + """ + + def testPostNewHouseAccountResponseData(self): + """Test PostNewHouseAccountResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_group_response.py b/cloudbeds_pms_v1_2/test/test_post_patch_group_response.py new file mode 100644 index 0000000..400e2c3 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_patch_group_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse + +class TestPostPatchGroupResponse(unittest.TestCase): + """PostPatchGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPatchGroupResponse: + """Test PostPatchGroupResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPatchGroupResponse` + """ + model = PostPatchGroupResponse() + if include_optional: + return PostPatchGroupResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner.PostPatchGroupResponse_data_inner( + group_code = '', + name = '', + type = 'group', + status = 'open', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + source_id = '', + address1 = '', + address2 = '', + city = '', + zip = '', + state = '', + id = '', + property_id = '', ) + ] + ) + else: + return PostPatchGroupResponse( + ) + """ + + def testPostPatchGroupResponse(self): + """Test PostPatchGroupResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py new file mode 100644 index 0000000..9b919ae --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner + +class TestPostPatchGroupResponseDataInner(unittest.TestCase): + """PostPatchGroupResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPatchGroupResponseDataInner: + """Test PostPatchGroupResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPatchGroupResponseDataInner` + """ + model = PostPatchGroupResponseDataInner() + if include_optional: + return PostPatchGroupResponseDataInner( + group_code = '', + name = '', + type = 'group', + status = 'open', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + source_id = '', + address1 = '', + address2 = '', + city = '', + zip = '', + state = '', + id = '', + property_id = '' + ) + else: + return PostPatchGroupResponseDataInner( + ) + """ + + def testPostPatchGroupResponseDataInner(self): + """Test PostPatchGroupResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py b/cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py new file mode 100644 index 0000000..257755e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse + +class TestPostPatchInvoiceResponse(unittest.TestCase): + """PostPatchInvoiceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPatchInvoiceResponse: + """Test PostPatchInvoiceResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPatchInvoiceResponse` + """ + model = PostPatchInvoiceResponse() + if include_optional: + return PostPatchInvoiceResponse( + success = True, + message = '' + ) + else: + return PostPatchInvoiceResponse( + ) + """ + + def testPostPatchInvoiceResponse(self): + """Test PostPatchInvoiceResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py new file mode 100644 index 0000000..14a1755 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner + +class TestPostPatchRateRequestRatesInner(unittest.TestCase): + """PostPatchRateRequestRatesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPatchRateRequestRatesInner: + """Test PostPatchRateRequestRatesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPatchRateRequestRatesInner` + """ + model = PostPatchRateRequestRatesInner() + if include_optional: + return PostPatchRateRequestRatesInner( + rate_id = '', + interval = cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval.PostPatchRateRequest_rates_inner_interval( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56, ) + ) + else: + return PostPatchRateRequestRatesInner( + ) + """ + + def testPostPatchRateRequestRatesInner(self): + """Test PostPatchRateRequestRatesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py new file mode 100644 index 0000000..313452e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval + +class TestPostPatchRateRequestRatesInnerInterval(unittest.TestCase): + """PostPatchRateRequestRatesInnerInterval unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPatchRateRequestRatesInnerInterval: + """Test PostPatchRateRequestRatesInnerInterval + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPatchRateRequestRatesInnerInterval` + """ + model = PostPatchRateRequestRatesInnerInterval() + if include_optional: + return PostPatchRateRequestRatesInnerInterval( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56 + ) + else: + return PostPatchRateRequestRatesInnerInterval( + ) + """ + + def testPostPatchRateRequestRatesInnerInterval(self): + """Test PostPatchRateRequestRatesInnerInterval""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py b/cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py new file mode 100644 index 0000000..2efc18e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse + +class TestPostPatchRateResponse(unittest.TestCase): + """PostPatchRateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPatchRateResponse: + """Test PostPatchRateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPatchRateResponse` + """ + model = PostPatchRateResponse() + if include_optional: + return PostPatchRateResponse( + success = True, + job_reference_id = '', + message = '' + ) + else: + return PostPatchRateResponse( + ) + """ + + def testPostPatchRateResponse(self): + """Test PostPatchRateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_payment_response.py b/cloudbeds_pms_v1_2/test/test_post_payment_response.py new file mode 100644 index 0000000..bd98cc6 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_payment_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse + +class TestPostPaymentResponse(unittest.TestCase): + """PostPaymentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPaymentResponse: + """Test PostPaymentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPaymentResponse` + """ + model = PostPaymentResponse() + if include_optional: + return PostPaymentResponse( + success = True, + payment_id = '', + transaction_id = '', + message = '' + ) + else: + return PostPaymentResponse( + ) + """ + + def testPostPaymentResponse(self): + """Test PostPaymentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py b/cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py new file mode 100644 index 0000000..987dec8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse + +class TestPostPutAppPropertySettingsResponse(unittest.TestCase): + """PostPutAppPropertySettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPutAppPropertySettingsResponse: + """Test PostPutAppPropertySettingsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPutAppPropertySettingsResponse` + """ + model = PostPutAppPropertySettingsResponse() + if include_optional: + return PostPutAppPropertySettingsResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_app_property_setting_response_data.PostAppPropertySettingResponse_data( + id = '', + key = '', + value = '', ) + ) + else: + return PostPutAppPropertySettingsResponse( + ) + """ + + def testPostPutAppPropertySettingsResponse(self): + """Test PostPutAppPropertySettingsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_put_group_response.py b/cloudbeds_pms_v1_2/test/test_post_put_group_response.py new file mode 100644 index 0000000..2b2275a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_put_group_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse + +class TestPostPutGroupResponse(unittest.TestCase): + """PostPutGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPutGroupResponse: + """Test PostPutGroupResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPutGroupResponse` + """ + model = PostPutGroupResponse() + if include_optional: + return PostPutGroupResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner.PostPatchGroupResponse_data_inner( + group_code = '', + name = '', + type = 'group', + status = 'open', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + source_id = '', + address1 = '', + address2 = '', + city = '', + zip = '', + state = '', + id = '', + property_id = '', ) + ] + ) + else: + return PostPutGroupResponse( + ) + """ + + def testPostPutGroupResponse(self): + """Test PostPutGroupResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py b/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py new file mode 100644 index 0000000..476ec16 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner + +class TestPostPutRateRequestRatesInner(unittest.TestCase): + """PostPutRateRequestRatesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPutRateRequestRatesInner: + """Test PostPutRateRequestRatesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPutRateRequestRatesInner` + """ + model = PostPutRateRequestRatesInner() + if include_optional: + return PostPutRateRequestRatesInner( + rate_id = '', + interval = [ + cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner.PostPutRateRequest_rates_inner_interval_inner( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ] + ) + else: + return PostPutRateRequestRatesInner( + ) + """ + + def testPostPutRateRequestRatesInner(self): + """Test PostPutRateRequestRatesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py new file mode 100644 index 0000000..9127118 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner + +class TestPostPutRateRequestRatesInnerIntervalInner(unittest.TestCase): + """PostPutRateRequestRatesInnerIntervalInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPutRateRequestRatesInnerIntervalInner: + """Test PostPutRateRequestRatesInnerIntervalInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPutRateRequestRatesInnerIntervalInner` + """ + model = PostPutRateRequestRatesInnerIntervalInner() + if include_optional: + return PostPutRateRequestRatesInnerIntervalInner( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337 + ) + else: + return PostPutRateRequestRatesInnerIntervalInner( + ) + """ + + def testPostPutRateRequestRatesInnerIntervalInner(self): + """Test PostPutRateRequestRatesInnerIntervalInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_put_rate_response.py b/cloudbeds_pms_v1_2/test/test_post_put_rate_response.py new file mode 100644 index 0000000..1bd9f28 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_put_rate_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse + +class TestPostPutRateResponse(unittest.TestCase): + """PostPutRateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPutRateResponse: + """Test PostPutRateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPutRateResponse` + """ + model = PostPutRateResponse() + if include_optional: + return PostPutRateResponse( + success = True, + job_reference_id = '', + message = '' + ) + else: + return PostPutRateResponse( + ) + """ + + def testPostPutRateResponse(self): + """Test PostPutRateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py b/cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py new file mode 100644 index 0000000..6b1b504 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse + +class TestPostReservationDocumentResponse(unittest.TestCase): + """PostReservationDocumentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationDocumentResponse: + """Test PostReservationDocumentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationDocumentResponse` + """ + model = PostReservationDocumentResponse() + if include_optional: + return PostReservationDocumentResponse( + success = True, + message = '', + data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + file_id = '', ) + ) + else: + return PostReservationDocumentResponse( + ) + """ + + def testPostReservationDocumentResponse(self): + """Test PostReservationDocumentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py b/cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py new file mode 100644 index 0000000..965ae87 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse + +class TestPostReservationNoteResponse(unittest.TestCase): + """PostReservationNoteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationNoteResponse: + """Test PostReservationNoteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationNoteResponse` + """ + model = PostReservationNoteResponse() + if include_optional: + return PostReservationNoteResponse( + success = True, + reservation_note_id = '', + message = '' + ) + else: + return PostReservationNoteResponse( + ) + """ + + def testPostReservationNoteResponse(self): + """Test PostReservationNoteResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py b/cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py new file mode 100644 index 0000000..6559b79 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner + +class TestPostReservationRequestAdultsInner(unittest.TestCase): + """PostReservationRequestAdultsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationRequestAdultsInner: + """Test PostReservationRequestAdultsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationRequestAdultsInner` + """ + model = PostReservationRequestAdultsInner() + if include_optional: + return PostReservationRequestAdultsInner( + room_type_id = '', + quantity = 56, + room_id = '' + ) + else: + return PostReservationRequestAdultsInner( + ) + """ + + def testPostReservationRequestAdultsInner(self): + """Test PostReservationRequestAdultsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py b/cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py new file mode 100644 index 0000000..dae008e --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner + +class TestPostReservationRequestChildrenInner(unittest.TestCase): + """PostReservationRequestChildrenInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationRequestChildrenInner: + """Test PostReservationRequestChildrenInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationRequestChildrenInner` + """ + model = PostReservationRequestChildrenInner() + if include_optional: + return PostReservationRequestChildrenInner( + room_type_id = '', + quantity = 56, + room_id = '' + ) + else: + return PostReservationRequestChildrenInner( + ) + """ + + def testPostReservationRequestChildrenInner(self): + """Test PostReservationRequestChildrenInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py new file mode 100644 index 0000000..4494b47 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner + +class TestPostReservationRequestCustomFieldsInner(unittest.TestCase): + """PostReservationRequestCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationRequestCustomFieldsInner: + """Test PostReservationRequestCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationRequestCustomFieldsInner` + """ + model = PostReservationRequestCustomFieldsInner() + if include_optional: + return PostReservationRequestCustomFieldsInner( + field_name = '', + field_value = '' + ) + else: + return PostReservationRequestCustomFieldsInner( + ) + """ + + def testPostReservationRequestCustomFieldsInner(self): + """Test PostReservationRequestCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py new file mode 100644 index 0000000..3137032 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner + +class TestPostReservationRequestRoomsInner(unittest.TestCase): + """PostReservationRequestRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationRequestRoomsInner: + """Test PostReservationRequestRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationRequestRoomsInner` + """ + model = PostReservationRequestRoomsInner() + if include_optional: + return PostReservationRequestRoomsInner( + room_type_id = '', + quantity = 56, + room_id = '', + room_rate_id = '' + ) + else: + return PostReservationRequestRoomsInner( + ) + """ + + def testPostReservationRequestRoomsInner(self): + """Test PostReservationRequestRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_response.py b/cloudbeds_pms_v1_2/test/test_post_reservation_response.py new file mode 100644 index 0000000..bc1f191 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_response.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse + +class TestPostReservationResponse(unittest.TestCase): + """PostReservationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationResponse: + """Test PostReservationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationResponse` + """ + model = PostReservationResponse() + if include_optional: + return PostReservationResponse( + success = True, + reservation_id = '', + status = 'not_confirmed', + guest_id = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + grand_total = 1.337, + unassigned = [ + cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner.PostReservationResponse_unassigned_inner( + sub_reservation_id = '', + room_type_name = '', + room_type_id = '', + adults = 56, + children = 56, + daily_rates = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + room_total = 1.337, ) + ], + message = '' + ) + else: + return PostReservationResponse( + ) + """ + + def testPostReservationResponse(self): + """Test PostReservationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py b/cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py new file mode 100644 index 0000000..f1f5b3f --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner + +class TestPostReservationResponseUnassignedInner(unittest.TestCase): + """PostReservationResponseUnassignedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationResponseUnassignedInner: + """Test PostReservationResponseUnassignedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationResponseUnassignedInner` + """ + model = PostReservationResponseUnassignedInner() + if include_optional: + return PostReservationResponseUnassignedInner( + sub_reservation_id = '', + room_type_name = '', + room_type_id = '', + adults = 56, + children = 56, + daily_rates = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], + room_total = 1.337 + ) + else: + return PostReservationResponseUnassignedInner( + ) + """ + + def testPostReservationResponseUnassignedInner(self): + """Test PostReservationResponseUnassignedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_room_assign_response.py b/cloudbeds_pms_v1_2/test/test_post_room_assign_response.py new file mode 100644 index 0000000..2a4df70 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_room_assign_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse + +class TestPostRoomAssignResponse(unittest.TestCase): + """PostRoomAssignResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomAssignResponse: + """Test PostRoomAssignResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomAssignResponse` + """ + model = PostRoomAssignResponse() + if include_optional: + return PostRoomAssignResponse( + success = True, + message = '' + ) + else: + return PostRoomAssignResponse( + ) + """ + + def testPostRoomAssignResponse(self): + """Test PostRoomAssignResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py new file mode 100644 index 0000000..b244087 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner + +class TestPostRoomBlockRequestRoomsInner(unittest.TestCase): + """PostRoomBlockRequestRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomBlockRequestRoomsInner: + """Test PostRoomBlockRequestRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomBlockRequestRoomsInner` + """ + model = PostRoomBlockRequestRoomsInner() + if include_optional: + return PostRoomBlockRequestRoomsInner( + room_id = '', + room_type_id = '' + ) + else: + return PostRoomBlockRequestRoomsInner( + ) + """ + + def testPostRoomBlockRequestRoomsInner(self): + """Test PostRoomBlockRequestRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_room_block_response.py b/cloudbeds_pms_v1_2/test/test_post_room_block_response.py new file mode 100644 index 0000000..d6f455a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_room_block_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse + +class TestPostRoomBlockResponse(unittest.TestCase): + """PostRoomBlockResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomBlockResponse: + """Test PostRoomBlockResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomBlockResponse` + """ + model = PostRoomBlockResponse() + if include_optional: + return PostRoomBlockResponse( + success = True, + property_id = '', + room_block_id = '', + room_block_type = 'blocked', + room_block_reason = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rooms = [ + cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( + room_id = '', + room_type_id = '', ) + ], + message = '' + ) + else: + return PostRoomBlockResponse( + ) + """ + + def testPostRoomBlockResponse(self): + """Test PostRoomBlockResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py new file mode 100644 index 0000000..c3308c8 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner + +class TestPostRoomBlockResponseRoomsInner(unittest.TestCase): + """PostRoomBlockResponseRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomBlockResponseRoomsInner: + """Test PostRoomBlockResponseRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomBlockResponseRoomsInner` + """ + model = PostRoomBlockResponseRoomsInner() + if include_optional: + return PostRoomBlockResponseRoomsInner( + room_id = '', + room_type_id = '' + ) + else: + return PostRoomBlockResponseRoomsInner( + ) + """ + + def testPostRoomBlockResponseRoomsInner(self): + """Test PostRoomBlockResponseRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py b/cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py new file mode 100644 index 0000000..fd55168 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse + +class TestPostRoomCheckInResponse(unittest.TestCase): + """PostRoomCheckInResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomCheckInResponse: + """Test PostRoomCheckInResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomCheckInResponse` + """ + model = PostRoomCheckInResponse() + if include_optional: + return PostRoomCheckInResponse( + success = True, + message = '' + ) + else: + return PostRoomCheckInResponse( + ) + """ + + def testPostRoomCheckInResponse(self): + """Test PostRoomCheckInResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py b/cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py new file mode 100644 index 0000000..ad13f45 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse + +class TestPostRoomCheckOutResponse(unittest.TestCase): + """PostRoomCheckOutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomCheckOutResponse: + """Test PostRoomCheckOutResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomCheckOutResponse` + """ + model = PostRoomCheckOutResponse() + if include_optional: + return PostRoomCheckOutResponse( + success = True, + message = '' + ) + else: + return PostRoomCheckOutResponse( + ) + """ + + def testPostRoomCheckOutResponse(self): + """Test PostRoomCheckOutResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py new file mode 100644 index 0000000..f80190b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse + +class TestPostUpdateAllotmentBlockNotesResponse(unittest.TestCase): + """PostUpdateAllotmentBlockNotesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockNotesResponse: + """Test PostUpdateAllotmentBlockNotesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockNotesResponse` + """ + model = PostUpdateAllotmentBlockNotesResponse() + if include_optional: + return PostUpdateAllotmentBlockNotesResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data.PostUpdateAllotmentBlockNotesResponse_data( + id = '', + text = '', + created_by = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + archived_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = True, ) + ) + else: + return PostUpdateAllotmentBlockNotesResponse( + ) + """ + + def testPostUpdateAllotmentBlockNotesResponse(self): + """Test PostUpdateAllotmentBlockNotesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py new file mode 100644 index 0000000..682c663 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData + +class TestPostUpdateAllotmentBlockNotesResponseData(unittest.TestCase): + """PostUpdateAllotmentBlockNotesResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockNotesResponseData: + """Test PostUpdateAllotmentBlockNotesResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockNotesResponseData` + """ + model = PostUpdateAllotmentBlockNotesResponseData() + if include_optional: + return PostUpdateAllotmentBlockNotesResponseData( + id = '', + text = '', + created_by = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + archived_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + status = True + ) + else: + return PostUpdateAllotmentBlockNotesResponseData( + ) + """ + + def testPostUpdateAllotmentBlockNotesResponseData(self): + """Test PostUpdateAllotmentBlockNotesResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py new file mode 100644 index 0000000..c5b121d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner + +class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInner(unittest.TestCase): + """PostUpdateAllotmentBlockRequestAllotmentIntervalsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllotmentIntervalsInner: + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockRequestAllotmentIntervalsInner` + """ + model = PostUpdateAllotmentBlockRequestAllotmentIntervalsInner() + if include_optional: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInner( + room_type_id = '', + availability = [ + cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( + block_allotted = 56, + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), + restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ] + ) + else: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInner( + ) + """ + + def testPostUpdateAllotmentBlockRequestAllotmentIntervalsInner(self): + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py new file mode 100644 index 0000000..78b3e30 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + +class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(unittest.TestCase): + """PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner: + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner` + """ + model = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner() + if include_optional: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner( + block_allotted = 56, + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), + restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ) + ) + else: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner( + ) + """ + + def testPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(self): + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py new file mode 100644 index 0000000..5cbbc99 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + +class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(unittest.TestCase): + """PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing: + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing` + """ + model = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing() + if include_optional: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '' + ) + else: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing( + ) + """ + + def testPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(self): + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py new file mode 100644 index 0000000..dc654ad --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + +class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(unittest.TestCase): + """PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions: + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions` + """ + model = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions() + if include_optional: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56 + ) + else: + return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions( + ) + """ + + def testPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(self): + """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py new file mode 100644 index 0000000..e179ea5 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease + +class TestPostUpdateAllotmentBlockRequestAutoRelease(unittest.TestCase): + """PostUpdateAllotmentBlockRequestAutoRelease unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAutoRelease: + """Test PostUpdateAllotmentBlockRequestAutoRelease + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockRequestAutoRelease` + """ + model = PostUpdateAllotmentBlockRequestAutoRelease() + if include_optional: + return PostUpdateAllotmentBlockRequestAutoRelease( + release_type = 'all_dates', + days = 56, + release_time = '' + ) + else: + return PostUpdateAllotmentBlockRequestAutoRelease( + ) + """ + + def testPostUpdateAllotmentBlockRequestAutoRelease(self): + """Test PostUpdateAllotmentBlockRequestAutoRelease""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py new file mode 100644 index 0000000..315cd56 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse + +class TestPostUpdateAllotmentBlockResponse(unittest.TestCase): + """PostUpdateAllotmentBlockResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponse: + """Test PostUpdateAllotmentBlockResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockResponse` + """ + model = PostUpdateAllotmentBlockResponse() + if include_optional: + return PostUpdateAllotmentBlockResponse( + success = True, + data = [ + cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner.PostUpdateAllotmentBlockResponse_data_inner( + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + group_code = '', + is_auto_release = True, + auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + release_type = 'all_dates', + days = 56, + release_time = '', ), + allotment_intervals = [ + cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + room_type_id = '', + availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ], ) + ] + ) + else: + return PostUpdateAllotmentBlockResponse( + ) + """ + + def testPostUpdateAllotmentBlockResponse(self): + """Test PostUpdateAllotmentBlockResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py new file mode 100644 index 0000000..3666573 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner + +class TestPostUpdateAllotmentBlockResponseDataInner(unittest.TestCase): + """PostUpdateAllotmentBlockResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDataInner: + """Test PostUpdateAllotmentBlockResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockResponseDataInner` + """ + model = PostUpdateAllotmentBlockResponseDataInner() + if include_optional: + return PostUpdateAllotmentBlockResponseDataInner( + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + group_code = '', + is_auto_release = True, + auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + release_type = 'all_dates', + days = 56, + release_time = '', ), + allotment_intervals = [ + cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + room_type_id = '', + availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ] + ) + else: + return PostUpdateAllotmentBlockResponseDataInner( + ) + """ + + def testPostUpdateAllotmentBlockResponseDataInner(self): + """Test PostUpdateAllotmentBlockResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..c66a2c4 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + +class TestPostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(unittest.TestCase): + """PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner: + """Test PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner` + """ + model = PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner() + if include_optional: + return PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner( + room_type_id = '', + availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ) + ) + else: + return PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner( + ) + """ + + def testPostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(self): + """Test PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..68c2344 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + +class TestPostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): + """PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions: + """Test PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions` + """ + model = PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions() + if include_optional: + return PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56 + ) + else: + return PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions( + ) + """ + + def testPostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(self): + """Test PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_void_item_response.py b/cloudbeds_pms_v1_2/test/test_post_void_item_response.py new file mode 100644 index 0000000..269ab9c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_void_item_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse + +class TestPostVoidItemResponse(unittest.TestCase): + """PostVoidItemResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostVoidItemResponse: + """Test PostVoidItemResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostVoidItemResponse` + """ + model = PostVoidItemResponse() + if include_optional: + return PostVoidItemResponse( + success = True, + message = '' + ) + else: + return PostVoidItemResponse( + ) + """ + + def testPostVoidItemResponse(self): + """Test PostVoidItemResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_void_payment_response.py b/cloudbeds_pms_v1_2/test/test_post_void_payment_response.py new file mode 100644 index 0000000..28e4c07 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_void_payment_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse + +class TestPostVoidPaymentResponse(unittest.TestCase): + """PostVoidPaymentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostVoidPaymentResponse: + """Test PostVoidPaymentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostVoidPaymentResponse` + """ + model = PostVoidPaymentResponse() + if include_optional: + return PostVoidPaymentResponse( + success = True, + message = '' + ) + else: + return PostVoidPaymentResponse( + ) + """ + + def testPostVoidPaymentResponse(self): + """Test PostVoidPaymentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_webhook_response.py b/cloudbeds_pms_v1_2/test/test_post_webhook_response.py new file mode 100644 index 0000000..1557f6b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_webhook_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse + +class TestPostWebhookResponse(unittest.TestCase): + """PostWebhookResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostWebhookResponse: + """Test PostWebhookResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostWebhookResponse` + """ + model = PostWebhookResponse() + if include_optional: + return PostWebhookResponse( + success = True, + data = cloudbeds_pms_v1_2.models.post_webhook_response_data.PostWebhookResponse_data( + subscription_id = '', ) + ) + else: + return PostWebhookResponse( + ) + """ + + def testPostWebhookResponse(self): + """Test PostWebhookResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py b/cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py new file mode 100644 index 0000000..e1057a9 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData + +class TestPostWebhookResponseData(unittest.TestCase): + """PostWebhookResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostWebhookResponseData: + """Test PostWebhookResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostWebhookResponseData` + """ + model = PostWebhookResponseData() + if include_optional: + return PostWebhookResponseData( + subscription_id = '' + ) + else: + return PostWebhookResponseData( + ) + """ + + def testPostWebhookResponseData(self): + """Test PostWebhookResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_guest_note_response.py b/cloudbeds_pms_v1_2/test/test_put_guest_note_response.py new file mode 100644 index 0000000..5f7d0f0 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_guest_note_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse + +class TestPutGuestNoteResponse(unittest.TestCase): + """PutGuestNoteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutGuestNoteResponse: + """Test PutGuestNoteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutGuestNoteResponse` + """ + model = PutGuestNoteResponse() + if include_optional: + return PutGuestNoteResponse( + success = True, + message = '' + ) + else: + return PutGuestNoteResponse( + ) + """ + + def testPutGuestNoteResponse(self): + """Test PutGuestNoteResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py b/cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py new file mode 100644 index 0000000..3890f2b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner + +class TestPutGuestRequestGuestCustomFieldsInner(unittest.TestCase): + """PutGuestRequestGuestCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutGuestRequestGuestCustomFieldsInner: + """Test PutGuestRequestGuestCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutGuestRequestGuestCustomFieldsInner` + """ + model = PutGuestRequestGuestCustomFieldsInner() + if include_optional: + return PutGuestRequestGuestCustomFieldsInner( + custom_field_name = '', + custom_field_value = '' + ) + else: + return PutGuestRequestGuestCustomFieldsInner( + ) + """ + + def testPutGuestRequestGuestCustomFieldsInner(self): + """Test PutGuestRequestGuestCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_guest_response.py b/cloudbeds_pms_v1_2/test/test_put_guest_response.py new file mode 100644 index 0000000..ad48890 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_guest_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse + +class TestPutGuestResponse(unittest.TestCase): + """PutGuestResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutGuestResponse: + """Test PutGuestResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutGuestResponse` + """ + model = PutGuestResponse() + if include_optional: + return PutGuestResponse( + success = True, + message = '' + ) + else: + return PutGuestResponse( + ) + """ + + def testPutGuestResponse(self): + """Test PutGuestResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py b/cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py new file mode 100644 index 0000000..5eb0b61 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse + +class TestPutHouseAccountStatusResponse(unittest.TestCase): + """PutHouseAccountStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutHouseAccountStatusResponse: + """Test PutHouseAccountStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutHouseAccountStatusResponse` + """ + model = PutHouseAccountStatusResponse() + if include_optional: + return PutHouseAccountStatusResponse( + success = True, + message = '' + ) + else: + return PutHouseAccountStatusResponse( + ) + """ + + def testPutHouseAccountStatusResponse(self): + """Test PutHouseAccountStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py b/cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py new file mode 100644 index 0000000..aceb32c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse + +class TestPutHousekeeperResponse(unittest.TestCase): + """PutHousekeeperResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutHousekeeperResponse: + """Test PutHousekeeperResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutHousekeeperResponse` + """ + model = PutHousekeeperResponse() + if include_optional: + return PutHousekeeperResponse( + success = True, + message = '' + ) + else: + return PutHousekeeperResponse( + ) + """ + + def testPutHousekeeperResponse(self): + """Test PutHousekeeperResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py b/cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py new file mode 100644 index 0000000..fdfb3bf --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse + +class TestPutItemToInventoryResponse(unittest.TestCase): + """PutItemToInventoryResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutItemToInventoryResponse: + """Test PutItemToInventoryResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutItemToInventoryResponse` + """ + model = PutItemToInventoryResponse() + if include_optional: + return PutItemToInventoryResponse( + success = True, + message = '' + ) + else: + return PutItemToInventoryResponse( + ) + """ + + def testPutItemToInventoryResponse(self): + """Test PutItemToInventoryResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py b/cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py new file mode 100644 index 0000000..0780db1 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse + +class TestPutReservationNoteResponse(unittest.TestCase): + """PutReservationNoteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutReservationNoteResponse: + """Test PutReservationNoteResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutReservationNoteResponse` + """ + model = PutReservationNoteResponse() + if include_optional: + return PutReservationNoteResponse( + success = True, + message = '' + ) + else: + return PutReservationNoteResponse( + ) + """ + + def testPutReservationNoteResponse(self): + """Test PutReservationNoteResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py new file mode 100644 index 0000000..ee14752 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner + +class TestPutReservationRequestCustomFieldsInner(unittest.TestCase): + """PutReservationRequestCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutReservationRequestCustomFieldsInner: + """Test PutReservationRequestCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutReservationRequestCustomFieldsInner` + """ + model = PutReservationRequestCustomFieldsInner() + if include_optional: + return PutReservationRequestCustomFieldsInner( + custom_field_name = '', + custom_field_value = '' + ) + else: + return PutReservationRequestCustomFieldsInner( + ) + """ + + def testPutReservationRequestCustomFieldsInner(self): + """Test PutReservationRequestCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py new file mode 100644 index 0000000..f4ce943 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner + +class TestPutReservationRequestRoomsInner(unittest.TestCase): + """PutReservationRequestRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutReservationRequestRoomsInner: + """Test PutReservationRequestRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutReservationRequestRoomsInner` + """ + model = PutReservationRequestRoomsInner() + if include_optional: + return PutReservationRequestRoomsInner( + sub_reservation_id = '', + room_type_id = '', + checkin_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + checkout_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + adults = 56, + children = 56, + rate_id = '' + ) + else: + return PutReservationRequestRoomsInner( + ) + """ + + def testPutReservationRequestRoomsInner(self): + """Test PutReservationRequestRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_response.py b/cloudbeds_pms_v1_2/test/test_put_reservation_response.py new file mode 100644 index 0000000..c8d318a --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_reservation_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse + +class TestPutReservationResponse(unittest.TestCase): + """PutReservationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutReservationResponse: + """Test PutReservationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutReservationResponse` + """ + model = PutReservationResponse() + if include_optional: + return PutReservationResponse( + success = True, + message = '', + data = None + ) + else: + return PutReservationResponse( + ) + """ + + def testPutReservationResponse(self): + """Test PutReservationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py new file mode 100644 index 0000000..c754e12 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner + +class TestPutRoomBlockRequestRoomsInner(unittest.TestCase): + """PutRoomBlockRequestRoomsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutRoomBlockRequestRoomsInner: + """Test PutRoomBlockRequestRoomsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutRoomBlockRequestRoomsInner` + """ + model = PutRoomBlockRequestRoomsInner() + if include_optional: + return PutRoomBlockRequestRoomsInner( + room_id = '', + room_type_id = '' + ) + else: + return PutRoomBlockRequestRoomsInner( + ) + """ + + def testPutRoomBlockRequestRoomsInner(self): + """Test PutRoomBlockRequestRoomsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_room_block_response.py b/cloudbeds_pms_v1_2/test/test_put_room_block_response.py new file mode 100644 index 0000000..de238ef --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_put_room_block_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse + +class TestPutRoomBlockResponse(unittest.TestCase): + """PutRoomBlockResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutRoomBlockResponse: + """Test PutRoomBlockResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutRoomBlockResponse` + """ + model = PutRoomBlockResponse() + if include_optional: + return PutRoomBlockResponse( + success = True, + property_id = '', + room_block_id = '', + room_block_type = 'blocked', + room_block_reason = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rooms = [ + cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( + room_id = '', + room_type_id = '', ) + ], + message = '' + ) + else: + return PutRoomBlockResponse( + ) + """ + + def testPutRoomBlockResponse(self): + """Test PutRoomBlockResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_rate_api.py b/cloudbeds_pms_v1_2/test/test_rate_api.py new file mode 100644 index 0000000..b936631 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_rate_api.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.rate_api import RateApi + + +class TestRateApi(unittest.TestCase): + """RateApi unit test stubs""" + + def setUp(self) -> None: + self.api = RateApi() + + def tearDown(self) -> None: + pass + + def test_get_rate_get(self) -> None: + """Test case for get_rate_get + + getRate + """ + pass + + def test_get_rate_jobs_get(self) -> None: + """Test case for get_rate_jobs_get + + getRateJobs + """ + pass + + def test_get_rate_plans_get(self) -> None: + """Test case for get_rate_plans_get + + getRatePlans + """ + pass + + def test_patch_rate_post(self) -> None: + """Test case for patch_rate_post + + patchRate + """ + pass + + def test_put_rate_post(self) -> None: + """Test case for put_rate_post + + putRate + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_reservation_api.py b/cloudbeds_pms_v1_2/test/test_reservation_api.py new file mode 100644 index 0000000..2250b2d --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_reservation_api.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.reservation_api import ReservationApi + + +class TestReservationApi(unittest.TestCase): + """ReservationApi unit test stubs""" + + def setUp(self) -> None: + self.api = ReservationApi() + + def tearDown(self) -> None: + pass + + def test_delete_reservation_note_delete(self) -> None: + """Test case for delete_reservation_note_delete + + deleteReservationNote + """ + pass + + def test_get_reservation_assignments_get(self) -> None: + """Test case for get_reservation_assignments_get + + getReservationAssignments + """ + pass + + def test_get_reservation_get(self) -> None: + """Test case for get_reservation_get + + getReservation + """ + pass + + def test_get_reservation_invoice_information_get(self) -> None: + """Test case for get_reservation_invoice_information_get + + getReservationInvoiceInformation + """ + pass + + def test_get_reservation_notes_get(self) -> None: + """Test case for get_reservation_notes_get + + getReservationNotes + """ + pass + + def test_get_reservations_get(self) -> None: + """Test case for get_reservations_get + + getReservations + """ + pass + + def test_get_reservations_with_rate_details_get(self) -> None: + """Test case for get_reservations_with_rate_details_get + + getReservationsWithRateDetails + """ + pass + + def test_get_sources_get(self) -> None: + """Test case for get_sources_get + + getSources + """ + pass + + def test_post_reservation_document_post(self) -> None: + """Test case for post_reservation_document_post + + postReservationDocument + """ + pass + + def test_post_reservation_note_post(self) -> None: + """Test case for post_reservation_note_post + + postReservationNote + """ + pass + + def test_post_reservation_post(self) -> None: + """Test case for post_reservation_post + + postReservation + """ + pass + + def test_put_reservation_note_put(self) -> None: + """Test case for put_reservation_note_put + + putReservationNote + """ + pass + + def test_put_reservation_put(self) -> None: + """Test case for put_reservation_put + + putReservation + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_room_api.py b/cloudbeds_pms_v1_2/test/test_room_api.py new file mode 100644 index 0000000..c0a2003 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_room_api.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.room_api import RoomApi + + +class TestRoomApi(unittest.TestCase): + """RoomApi unit test stubs""" + + def setUp(self) -> None: + self.api = RoomApi() + + def tearDown(self) -> None: + pass + + def test_delete_room_block_delete(self) -> None: + """Test case for delete_room_block_delete + + deleteRoomBlock + """ + pass + + def test_get_available_room_types_get(self) -> None: + """Test case for get_available_room_types_get + + getAvailableRoomTypes + """ + pass + + def test_get_reservation_room_details_get(self) -> None: + """Test case for get_reservation_room_details_get + + getReservationRoomDetails + """ + pass + + def test_get_room_blocks_get(self) -> None: + """Test case for get_room_blocks_get + + getRoomBlocks + """ + pass + + def test_get_room_types_get(self) -> None: + """Test case for get_room_types_get + + getRoomTypes + """ + pass + + def test_get_rooms_fees_and_taxes_get(self) -> None: + """Test case for get_rooms_fees_and_taxes_get + + getRoomsFeesAndTaxes + """ + pass + + def test_get_rooms_get(self) -> None: + """Test case for get_rooms_get + + getRooms + """ + pass + + def test_get_rooms_unassigned_get(self) -> None: + """Test case for get_rooms_unassigned_get + + getRoomsUnassigned + """ + pass + + def test_post_room_assign_post(self) -> None: + """Test case for post_room_assign_post + + postRoomAssign + """ + pass + + def test_post_room_block_post(self) -> None: + """Test case for post_room_block_post + + postRoomBlock + """ + pass + + def test_post_room_check_in_post(self) -> None: + """Test case for post_room_check_in_post + + postRoomCheckIn + """ + pass + + def test_post_room_check_out_post(self) -> None: + """Test case for post_room_check_out_post + + postRoomCheckOut + """ + pass + + def test_put_room_block_put(self) -> None: + """Test case for put_room_block_put + + putRoomBlock + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py b/cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py new file mode 100644 index 0000000..d6cd337 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.taxes_and_fees_api import TaxesAndFeesApi + + +class TestTaxesAndFeesApi(unittest.TestCase): + """TaxesAndFeesApi unit test stubs""" + + def setUp(self) -> None: + self.api = TaxesAndFeesApi() + + def tearDown(self) -> None: + pass + + def test_get_taxes_and_fees_get(self) -> None: + """Test case for get_taxes_and_fees_get + + getTaxesAndFees + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_user_api.py b/cloudbeds_pms_v1_2/test/test_user_api.py new file mode 100644 index 0000000..efa9567 --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_user_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.api.user_api import UserApi + + +class TestUserApi(unittest.TestCase): + """UserApi unit test stubs""" + + def setUp(self) -> None: + self.api = UserApi() + + def tearDown(self) -> None: + pass + + def test_get_users_get(self) -> None: + """Test case for get_users_get + + getUsers + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..af61fa5 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,21 @@ +{ + "generator-cli": { + "version": "7.9.0" + }, + "generatorName": "python", + "outputDir": ".", + "validateSpec": false, + "additionalProperties": { + "packageName": "cloudbeds_pms_v1_2", + "projectName": "Cloudbeds PMS V1.2", + "packageVersion": "1.0.0", + "packageDescription": "OpenAPI client for Cloudbeds PMS v1.2 API.", + "generateSourceCodeOnly": true, + "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" + }, + "files": { + "README_onlypackage.mustache": { + "destinationFilename": "README.md" + } + } +} diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ba5614b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = ["setuptools>=61.0.0"] +build-backend = "setuptools.build_meta" + +[project] +dynamic = ["version"] +name = "cloudbeds_pms_v1_2" +description = "OpenAPI client for Cloudbeds PMS v1.2 API." +readme = "README.md" +authors = [ + { name = "Cloudbeds"} +] +license = { file = "LICENSE" } +dependencies = [ + "urllib3 >= 1.25.3, < 3.0.0", + "python-dateutil >= 2.8.2, < 3.0.0", + "pydantic >= 2", + "typing-extensions >= 4.7.1", +] + +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + + "Topic :: Software Development :: Libraries :: Python Modules", +] + +requires-python = ">=3.8" + +[project.urls] +Documentation = "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1#README" +Repository = "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" + +[project.optional-dependencies] +testing = [ + "pytest", + "coverage" +] + +[dependency-groups] +dev = [ + "pytest", + "coverage" +] + +[tool.setuptools.packages.find] +where = ["."] + +[tool.setuptools.dynamic] +version = { file = "VERSION" } diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..49eef25 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,29 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile pyproject.toml --all-extras -o requirements.txt +annotated-types==0.7.0 + # via pydantic +coverage==7.6.10 + # via cloudbeds-pms (pyproject.toml) +iniconfig==2.0.0 + # via pytest +packaging==24.2 + # via pytest +pluggy==1.5.0 + # via pytest +pydantic==2.10.5 + # via cloudbeds-pms (pyproject.toml) +pydantic-core==2.27.2 + # via pydantic +pytest==8.3.4 + # via cloudbeds-pms (pyproject.toml) +python-dateutil==2.9.0.post0 + # via cloudbeds-pms (pyproject.toml) +six==1.17.0 + # via python-dateutil +typing-extensions==4.12.2 + # via + # cloudbeds-pms (pyproject.toml) + # pydantic + # pydantic-core +urllib3==2.3.0 + # via cloudbeds-pms (pyproject.toml) diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..b956d8a --- /dev/null +++ b/uv.lock @@ -0,0 +1,492 @@ +version = 1 +requires-python = ">=3.8" +resolution-markers = [ + "python_full_version >= '3.9'", + "python_full_version < '3.9'", +] + +[[package]] +name = "annotated-types" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.9'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 }, +] + +[[package]] +name = "cloudbeds-pms" +source = { editable = "." } +dependencies = [ + { name = "pydantic" }, + { name = "python-dateutil" }, + { name = "typing-extensions" }, + { name = "urllib3", version = "2.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" }, + { name = "urllib3", version = "2.3.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" }, +] + +[package.optional-dependencies] +testing = [ + { name = "coverage", version = "7.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" }, + { name = "coverage", version = "7.6.10", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" }, + { name = "pytest" }, +] + +[package.dev-dependencies] +dev = [ + { name = "coverage", version = "7.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" }, + { name = "coverage", version = "7.6.10", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" }, + { name = "pytest" }, +] + +[package.metadata] +requires-dist = [ + { name = "coverage", marker = "extra == 'testing'" }, + { name = "pydantic", specifier = ">=2" }, + { name = "pytest", marker = "extra == 'testing'" }, + { name = "python-dateutil", specifier = ">=2.8.2,<3.0.0" }, + { name = "typing-extensions", specifier = ">=4.7.1" }, + { name = "urllib3", specifier = ">=1.25.3,<3.0.0" }, +] + +[package.metadata.requires-dev] +dev = [ + { name = "coverage" }, + { name = "pytest" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, +] + +[[package]] +name = "coverage" +version = "7.6.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.9'", +] +sdist = { url = "https://files.pythonhosted.org/packages/f7/08/7e37f82e4d1aead42a7443ff06a1e406aabf7302c4f00a546e4b320b994c/coverage-7.6.1.tar.gz", hash = "sha256:953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d", size = 798791 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/61/eb7ce5ed62bacf21beca4937a90fe32545c91a3c8a42a30c6616d48fc70d/coverage-7.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b06079abebbc0e89e6163b8e8f0e16270124c154dc6e4a47b413dd538859af16", size = 206690 }, + { url = "https://files.pythonhosted.org/packages/7d/73/041928e434442bd3afde5584bdc3f932fb4562b1597629f537387cec6f3d/coverage-7.6.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cf4b19715bccd7ee27b6b120e7e9dd56037b9c0681dcc1adc9ba9db3d417fa36", size = 207127 }, + { url = "https://files.pythonhosted.org/packages/c7/c8/6ca52b5147828e45ad0242388477fdb90df2c6cbb9a441701a12b3c71bc8/coverage-7.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e61c0abb4c85b095a784ef23fdd4aede7a2628478e7baba7c5e3deba61070a02", size = 235654 }, + { url = "https://files.pythonhosted.org/packages/d5/da/9ac2b62557f4340270942011d6efeab9833648380109e897d48ab7c1035d/coverage-7.6.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd21f6ae3f08b41004dfb433fa895d858f3f5979e7762d052b12aef444e29afc", size = 233598 }, + { url = "https://files.pythonhosted.org/packages/53/23/9e2c114d0178abc42b6d8d5281f651a8e6519abfa0ef460a00a91f80879d/coverage-7.6.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f59d57baca39b32db42b83b2a7ba6f47ad9c394ec2076b084c3f029b7afca23", size = 234732 }, + { url = "https://files.pythonhosted.org/packages/0f/7e/a0230756fb133343a52716e8b855045f13342b70e48e8ad41d8a0d60ab98/coverage-7.6.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a1ac0ae2b8bd743b88ed0502544847c3053d7171a3cff9228af618a068ed9c34", size = 233816 }, + { url = "https://files.pythonhosted.org/packages/28/7c/3753c8b40d232b1e5eeaed798c875537cf3cb183fb5041017c1fdb7ec14e/coverage-7.6.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e6a08c0be454c3b3beb105c0596ebdc2371fab6bb90c0c0297f4e58fd7e1012c", size = 232325 }, + { url = "https://files.pythonhosted.org/packages/57/e3/818a2b2af5b7573b4b82cf3e9f137ab158c90ea750a8f053716a32f20f06/coverage-7.6.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:f5796e664fe802da4f57a168c85359a8fbf3eab5e55cd4e4569fbacecc903959", size = 233418 }, + { url = "https://files.pythonhosted.org/packages/c8/fb/4532b0b0cefb3f06d201648715e03b0feb822907edab3935112b61b885e2/coverage-7.6.1-cp310-cp310-win32.whl", hash = "sha256:7bb65125fcbef8d989fa1dd0e8a060999497629ca5b0efbca209588a73356232", size = 209343 }, + { url = "https://files.pythonhosted.org/packages/5a/25/af337cc7421eca1c187cc9c315f0a755d48e755d2853715bfe8c418a45fa/coverage-7.6.1-cp310-cp310-win_amd64.whl", hash = "sha256:3115a95daa9bdba70aea750db7b96b37259a81a709223c8448fa97727d546fe0", size = 210136 }, + { url = "https://files.pythonhosted.org/packages/ad/5f/67af7d60d7e8ce61a4e2ddcd1bd5fb787180c8d0ae0fbd073f903b3dd95d/coverage-7.6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7dea0889685db8550f839fa202744652e87c60015029ce3f60e006f8c4462c93", size = 206796 }, + { url = "https://files.pythonhosted.org/packages/e1/0e/e52332389e057daa2e03be1fbfef25bb4d626b37d12ed42ae6281d0a274c/coverage-7.6.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ed37bd3c3b063412f7620464a9ac1314d33100329f39799255fb8d3027da50d3", size = 207244 }, + { url = "https://files.pythonhosted.org/packages/aa/cd/766b45fb6e090f20f8927d9c7cb34237d41c73a939358bc881883fd3a40d/coverage-7.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d85f5e9a5f8b73e2350097c3756ef7e785f55bd71205defa0bfdaf96c31616ff", size = 239279 }, + { url = "https://files.pythonhosted.org/packages/70/6c/a9ccd6fe50ddaf13442a1e2dd519ca805cbe0f1fcd377fba6d8339b98ccb/coverage-7.6.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9bc572be474cafb617672c43fe989d6e48d3c83af02ce8de73fff1c6bb3c198d", size = 236859 }, + { url = "https://files.pythonhosted.org/packages/14/6f/8351b465febb4dbc1ca9929505202db909c5a635c6fdf33e089bbc3d7d85/coverage-7.6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c0420b573964c760df9e9e86d1a9a622d0d27f417e1a949a8a66dd7bcee7bc6", size = 238549 }, + { url = "https://files.pythonhosted.org/packages/68/3c/289b81fa18ad72138e6d78c4c11a82b5378a312c0e467e2f6b495c260907/coverage-7.6.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1f4aa8219db826ce6be7099d559f8ec311549bfc4046f7f9fe9b5cea5c581c56", size = 237477 }, + { url = "https://files.pythonhosted.org/packages/ed/1c/aa1efa6459d822bd72c4abc0b9418cf268de3f60eeccd65dc4988553bd8d/coverage-7.6.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:fc5a77d0c516700ebad189b587de289a20a78324bc54baee03dd486f0855d234", size = 236134 }, + { url = "https://files.pythonhosted.org/packages/fb/c8/521c698f2d2796565fe9c789c2ee1ccdae610b3aa20b9b2ef980cc253640/coverage-7.6.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b48f312cca9621272ae49008c7f613337c53fadca647d6384cc129d2996d1133", size = 236910 }, + { url = "https://files.pythonhosted.org/packages/7d/30/033e663399ff17dca90d793ee8a2ea2890e7fdf085da58d82468b4220bf7/coverage-7.6.1-cp311-cp311-win32.whl", hash = "sha256:1125ca0e5fd475cbbba3bb67ae20bd2c23a98fac4e32412883f9bcbaa81c314c", size = 209348 }, + { url = "https://files.pythonhosted.org/packages/20/05/0d1ccbb52727ccdadaa3ff37e4d2dc1cd4d47f0c3df9eb58d9ec8508ca88/coverage-7.6.1-cp311-cp311-win_amd64.whl", hash = "sha256:8ae539519c4c040c5ffd0632784e21b2f03fc1340752af711f33e5be83a9d6c6", size = 210230 }, + { url = "https://files.pythonhosted.org/packages/7e/d4/300fc921dff243cd518c7db3a4c614b7e4b2431b0d1145c1e274fd99bd70/coverage-7.6.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:95cae0efeb032af8458fc27d191f85d1717b1d4e49f7cb226cf526ff28179778", size = 206983 }, + { url = "https://files.pythonhosted.org/packages/e1/ab/6bf00de5327ecb8db205f9ae596885417a31535eeda6e7b99463108782e1/coverage-7.6.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5621a9175cf9d0b0c84c2ef2b12e9f5f5071357c4d2ea6ca1cf01814f45d2391", size = 207221 }, + { url = "https://files.pythonhosted.org/packages/92/8f/2ead05e735022d1a7f3a0a683ac7f737de14850395a826192f0288703472/coverage-7.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:260933720fdcd75340e7dbe9060655aff3af1f0c5d20f46b57f262ab6c86a5e8", size = 240342 }, + { url = "https://files.pythonhosted.org/packages/0f/ef/94043e478201ffa85b8ae2d2c79b4081e5a1b73438aafafccf3e9bafb6b5/coverage-7.6.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07e2ca0ad381b91350c0ed49d52699b625aab2b44b65e1b4e02fa9df0e92ad2d", size = 237371 }, + { url = "https://files.pythonhosted.org/packages/1f/0f/c890339dd605f3ebc269543247bdd43b703cce6825b5ed42ff5f2d6122c7/coverage-7.6.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c44fee9975f04b33331cb8eb272827111efc8930cfd582e0320613263ca849ca", size = 239455 }, + { url = "https://files.pythonhosted.org/packages/d1/04/7fd7b39ec7372a04efb0f70c70e35857a99b6a9188b5205efb4c77d6a57a/coverage-7.6.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:877abb17e6339d96bf08e7a622d05095e72b71f8afd8a9fefc82cf30ed944163", size = 238924 }, + { url = "https://files.pythonhosted.org/packages/ed/bf/73ce346a9d32a09cf369f14d2a06651329c984e106f5992c89579d25b27e/coverage-7.6.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3e0cadcf6733c09154b461f1ca72d5416635e5e4ec4e536192180d34ec160f8a", size = 237252 }, + { url = "https://files.pythonhosted.org/packages/86/74/1dc7a20969725e917b1e07fe71a955eb34bc606b938316bcc799f228374b/coverage-7.6.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c3c02d12f837d9683e5ab2f3d9844dc57655b92c74e286c262e0fc54213c216d", size = 238897 }, + { url = "https://files.pythonhosted.org/packages/b6/e9/d9cc3deceb361c491b81005c668578b0dfa51eed02cd081620e9a62f24ec/coverage-7.6.1-cp312-cp312-win32.whl", hash = "sha256:e05882b70b87a18d937ca6768ff33cc3f72847cbc4de4491c8e73880766718e5", size = 209606 }, + { url = "https://files.pythonhosted.org/packages/47/c8/5a2e41922ea6740f77d555c4d47544acd7dc3f251fe14199c09c0f5958d3/coverage-7.6.1-cp312-cp312-win_amd64.whl", hash = "sha256:b5d7b556859dd85f3a541db6a4e0167b86e7273e1cdc973e5b175166bb634fdb", size = 210373 }, + { url = "https://files.pythonhosted.org/packages/8c/f9/9aa4dfb751cb01c949c990d136a0f92027fbcc5781c6e921df1cb1563f20/coverage-7.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a4acd025ecc06185ba2b801f2de85546e0b8ac787cf9d3b06e7e2a69f925b106", size = 207007 }, + { url = "https://files.pythonhosted.org/packages/b9/67/e1413d5a8591622a46dd04ff80873b04c849268831ed5c304c16433e7e30/coverage-7.6.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a6d3adcf24b624a7b778533480e32434a39ad8fa30c315208f6d3e5542aeb6e9", size = 207269 }, + { url = "https://files.pythonhosted.org/packages/14/5b/9dec847b305e44a5634d0fb8498d135ab1d88330482b74065fcec0622224/coverage-7.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d0c212c49b6c10e6951362f7c6df3329f04c2b1c28499563d4035d964ab8e08c", size = 239886 }, + { url = "https://files.pythonhosted.org/packages/7b/b7/35760a67c168e29f454928f51f970342d23cf75a2bb0323e0f07334c85f3/coverage-7.6.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e81d7a3e58882450ec4186ca59a3f20a5d4440f25b1cff6f0902ad890e6748a", size = 237037 }, + { url = "https://files.pythonhosted.org/packages/f7/95/d2fd31f1d638df806cae59d7daea5abf2b15b5234016a5ebb502c2f3f7ee/coverage-7.6.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78b260de9790fd81e69401c2dc8b17da47c8038176a79092a89cb2b7d945d060", size = 239038 }, + { url = "https://files.pythonhosted.org/packages/6e/bd/110689ff5752b67924efd5e2aedf5190cbbe245fc81b8dec1abaffba619d/coverage-7.6.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a78d169acd38300060b28d600344a803628c3fd585c912cacc9ea8790fe96862", size = 238690 }, + { url = "https://files.pythonhosted.org/packages/d3/a8/08d7b38e6ff8df52331c83130d0ab92d9c9a8b5462f9e99c9f051a4ae206/coverage-7.6.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2c09f4ce52cb99dd7505cd0fc8e0e37c77b87f46bc9c1eb03fe3bc9991085388", size = 236765 }, + { url = "https://files.pythonhosted.org/packages/d6/6a/9cf96839d3147d55ae713eb2d877f4d777e7dc5ba2bce227167d0118dfe8/coverage-7.6.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6878ef48d4227aace338d88c48738a4258213cd7b74fd9a3d4d7582bb1d8a155", size = 238611 }, + { url = "https://files.pythonhosted.org/packages/74/e4/7ff20d6a0b59eeaab40b3140a71e38cf52547ba21dbcf1d79c5a32bba61b/coverage-7.6.1-cp313-cp313-win32.whl", hash = "sha256:44df346d5215a8c0e360307d46ffaabe0f5d3502c8a1cefd700b34baf31d411a", size = 209671 }, + { url = "https://files.pythonhosted.org/packages/35/59/1812f08a85b57c9fdb6d0b383d779e47b6f643bc278ed682859512517e83/coverage-7.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:8284cf8c0dd272a247bc154eb6c95548722dce90d098c17a883ed36e67cdb129", size = 210368 }, + { url = "https://files.pythonhosted.org/packages/9c/15/08913be1c59d7562a3e39fce20661a98c0a3f59d5754312899acc6cb8a2d/coverage-7.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:d3296782ca4eab572a1a4eca686d8bfb00226300dcefdf43faa25b5242ab8a3e", size = 207758 }, + { url = "https://files.pythonhosted.org/packages/c4/ae/b5d58dff26cade02ada6ca612a76447acd69dccdbb3a478e9e088eb3d4b9/coverage-7.6.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:502753043567491d3ff6d08629270127e0c31d4184c4c8d98f92c26f65019962", size = 208035 }, + { url = "https://files.pythonhosted.org/packages/b8/d7/62095e355ec0613b08dfb19206ce3033a0eedb6f4a67af5ed267a8800642/coverage-7.6.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6a89ecca80709d4076b95f89f308544ec8f7b4727e8a547913a35f16717856cb", size = 250839 }, + { url = "https://files.pythonhosted.org/packages/7c/1e/c2967cb7991b112ba3766df0d9c21de46b476d103e32bb401b1b2adf3380/coverage-7.6.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a318d68e92e80af8b00fa99609796fdbcdfef3629c77c6283566c6f02c6d6704", size = 246569 }, + { url = "https://files.pythonhosted.org/packages/8b/61/a7a6a55dd266007ed3b1df7a3386a0d760d014542d72f7c2c6938483b7bd/coverage-7.6.1-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13b0a73a0896988f053e4fbb7de6d93388e6dd292b0d87ee51d106f2c11b465b", size = 248927 }, + { url = "https://files.pythonhosted.org/packages/c8/fa/13a6f56d72b429f56ef612eb3bc5ce1b75b7ee12864b3bd12526ab794847/coverage-7.6.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4421712dbfc5562150f7554f13dde997a2e932a6b5f352edcce948a815efee6f", size = 248401 }, + { url = "https://files.pythonhosted.org/packages/75/06/0429c652aa0fb761fc60e8c6b291338c9173c6aa0f4e40e1902345b42830/coverage-7.6.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:166811d20dfea725e2e4baa71fffd6c968a958577848d2131f39b60043400223", size = 246301 }, + { url = "https://files.pythonhosted.org/packages/52/76/1766bb8b803a88f93c3a2d07e30ffa359467810e5cbc68e375ebe6906efb/coverage-7.6.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:225667980479a17db1048cb2bf8bfb39b8e5be8f164b8f6628b64f78a72cf9d3", size = 247598 }, + { url = "https://files.pythonhosted.org/packages/66/8b/f54f8db2ae17188be9566e8166ac6df105c1c611e25da755738025708d54/coverage-7.6.1-cp313-cp313t-win32.whl", hash = "sha256:170d444ab405852903b7d04ea9ae9b98f98ab6d7e63e1115e82620807519797f", size = 210307 }, + { url = "https://files.pythonhosted.org/packages/9f/b0/e0dca6da9170aefc07515cce067b97178cefafb512d00a87a1c717d2efd5/coverage-7.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:b9f222de8cded79c49bf184bdbc06630d4c58eec9459b939b4a690c82ed05657", size = 211453 }, + { url = "https://files.pythonhosted.org/packages/81/d0/d9e3d554e38beea5a2e22178ddb16587dbcbe9a1ef3211f55733924bf7fa/coverage-7.6.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6db04803b6c7291985a761004e9060b2bca08da6d04f26a7f2294b8623a0c1a0", size = 206674 }, + { url = "https://files.pythonhosted.org/packages/38/ea/cab2dc248d9f45b2b7f9f1f596a4d75a435cb364437c61b51d2eb33ceb0e/coverage-7.6.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:f1adfc8ac319e1a348af294106bc6a8458a0f1633cc62a1446aebc30c5fa186a", size = 207101 }, + { url = "https://files.pythonhosted.org/packages/ca/6f/f82f9a500c7c5722368978a5390c418d2a4d083ef955309a8748ecaa8920/coverage-7.6.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a95324a9de9650a729239daea117df21f4b9868ce32e63f8b650ebe6cef5595b", size = 236554 }, + { url = "https://files.pythonhosted.org/packages/a6/94/d3055aa33d4e7e733d8fa309d9adf147b4b06a82c1346366fc15a2b1d5fa/coverage-7.6.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b43c03669dc4618ec25270b06ecd3ee4fa94c7f9b3c14bae6571ca00ef98b0d3", size = 234440 }, + { url = "https://files.pythonhosted.org/packages/e4/6e/885bcd787d9dd674de4a7d8ec83faf729534c63d05d51d45d4fa168f7102/coverage-7.6.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8929543a7192c13d177b770008bc4e8119f2e1f881d563fc6b6305d2d0ebe9de", size = 235889 }, + { url = "https://files.pythonhosted.org/packages/f4/63/df50120a7744492710854860783d6819ff23e482dee15462c9a833cc428a/coverage-7.6.1-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:a09ece4a69cf399510c8ab25e0950d9cf2b42f7b3cb0374f95d2e2ff594478a6", size = 235142 }, + { url = "https://files.pythonhosted.org/packages/3a/5d/9d0acfcded2b3e9ce1c7923ca52ccc00c78a74e112fc2aee661125b7843b/coverage-7.6.1-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:9054a0754de38d9dbd01a46621636689124d666bad1936d76c0341f7d71bf569", size = 233805 }, + { url = "https://files.pythonhosted.org/packages/c4/56/50abf070cb3cd9b1dd32f2c88f083aab561ecbffbcd783275cb51c17f11d/coverage-7.6.1-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0dbde0f4aa9a16fa4d754356a8f2e36296ff4d83994b2c9d8398aa32f222f989", size = 234655 }, + { url = "https://files.pythonhosted.org/packages/25/ee/b4c246048b8485f85a2426ef4abab88e48c6e80c74e964bea5cd4cd4b115/coverage-7.6.1-cp38-cp38-win32.whl", hash = "sha256:da511e6ad4f7323ee5702e6633085fb76c2f893aaf8ce4c51a0ba4fc07580ea7", size = 209296 }, + { url = "https://files.pythonhosted.org/packages/5c/1c/96cf86b70b69ea2b12924cdf7cabb8ad10e6130eab8d767a1099fbd2a44f/coverage-7.6.1-cp38-cp38-win_amd64.whl", hash = "sha256:3f1156e3e8f2872197af3840d8ad307a9dd18e615dc64d9ee41696f287c57ad8", size = 210137 }, + { url = "https://files.pythonhosted.org/packages/19/d3/d54c5aa83268779d54c86deb39c1c4566e5d45c155369ca152765f8db413/coverage-7.6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:abd5fd0db5f4dc9289408aaf34908072f805ff7792632250dcb36dc591d24255", size = 206688 }, + { url = "https://files.pythonhosted.org/packages/a5/fe/137d5dca72e4a258b1bc17bb04f2e0196898fe495843402ce826a7419fe3/coverage-7.6.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:547f45fa1a93154bd82050a7f3cddbc1a7a4dd2a9bf5cb7d06f4ae29fe94eaf8", size = 207120 }, + { url = "https://files.pythonhosted.org/packages/78/5b/a0a796983f3201ff5485323b225d7c8b74ce30c11f456017e23d8e8d1945/coverage-7.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:645786266c8f18a931b65bfcefdbf6952dd0dea98feee39bd188607a9d307ed2", size = 235249 }, + { url = "https://files.pythonhosted.org/packages/4e/e1/76089d6a5ef9d68f018f65411fcdaaeb0141b504587b901d74e8587606ad/coverage-7.6.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9e0b2df163b8ed01d515807af24f63de04bebcecbd6c3bfeff88385789fdf75a", size = 233237 }, + { url = "https://files.pythonhosted.org/packages/9a/6f/eef79b779a540326fee9520e5542a8b428cc3bfa8b7c8f1022c1ee4fc66c/coverage-7.6.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:609b06f178fe8e9f89ef676532760ec0b4deea15e9969bf754b37f7c40326dbc", size = 234311 }, + { url = "https://files.pythonhosted.org/packages/75/e1/656d65fb126c29a494ef964005702b012f3498db1a30dd562958e85a4049/coverage-7.6.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:702855feff378050ae4f741045e19a32d57d19f3e0676d589df0575008ea5004", size = 233453 }, + { url = "https://files.pythonhosted.org/packages/68/6a/45f108f137941a4a1238c85f28fd9d048cc46b5466d6b8dda3aba1bb9d4f/coverage-7.6.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2bdb062ea438f22d99cba0d7829c2ef0af1d768d1e4a4f528087224c90b132cb", size = 231958 }, + { url = "https://files.pythonhosted.org/packages/9b/e7/47b809099168b8b8c72ae311efc3e88c8d8a1162b3ba4b8da3cfcdb85743/coverage-7.6.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:9c56863d44bd1c4fe2abb8a4d6f5371d197f1ac0ebdee542f07f35895fc07f36", size = 232938 }, + { url = "https://files.pythonhosted.org/packages/52/80/052222ba7058071f905435bad0ba392cc12006380731c37afaf3fe749b88/coverage-7.6.1-cp39-cp39-win32.whl", hash = "sha256:6e2cd258d7d927d09493c8df1ce9174ad01b381d4729a9d8d4e38670ca24774c", size = 209352 }, + { url = "https://files.pythonhosted.org/packages/b8/d8/1b92e0b3adcf384e98770a00ca095da1b5f7b483e6563ae4eb5e935d24a1/coverage-7.6.1-cp39-cp39-win_amd64.whl", hash = "sha256:06a737c882bd26d0d6ee7269b20b12f14a8704807a01056c80bb881a4b2ce6ca", size = 210153 }, + { url = "https://files.pythonhosted.org/packages/a5/2b/0354ed096bca64dc8e32a7cbcae28b34cb5ad0b1fe2125d6d99583313ac0/coverage-7.6.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:e9a6e0eb86070e8ccaedfbd9d38fec54864f3125ab95419970575b42af7541df", size = 198926 }, +] + +[[package]] +name = "coverage" +version = "7.6.10" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.9'", +] +sdist = { url = "https://files.pythonhosted.org/packages/84/ba/ac14d281f80aab516275012e8875991bb06203957aa1e19950139238d658/coverage-7.6.10.tar.gz", hash = "sha256:7fb105327c8f8f0682e29843e2ff96af9dcbe5bab8eeb4b398c6a33a16d80a23", size = 803868 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c5/12/2a2a923edf4ddabdffed7ad6da50d96a5c126dae7b80a33df7310e329a1e/coverage-7.6.10-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5c912978f7fbf47ef99cec50c4401340436d200d41d714c7a4766f377c5b7b78", size = 207982 }, + { url = "https://files.pythonhosted.org/packages/ca/49/6985dbca9c7be3f3cb62a2e6e492a0c88b65bf40579e16c71ae9c33c6b23/coverage-7.6.10-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a01ec4af7dfeb96ff0078ad9a48810bb0cc8abcb0115180c6013a6b26237626c", size = 208414 }, + { url = "https://files.pythonhosted.org/packages/35/93/287e8f1d1ed2646f4e0b2605d14616c9a8a2697d0d1b453815eb5c6cebdb/coverage-7.6.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3b204c11e2b2d883946fe1d97f89403aa1811df28ce0447439178cc7463448a", size = 236860 }, + { url = "https://files.pythonhosted.org/packages/de/e1/cfdb5627a03567a10031acc629b75d45a4ca1616e54f7133ca1fa366050a/coverage-7.6.10-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32ee6d8491fcfc82652a37109f69dee9a830e9379166cb73c16d8dc5c2915165", size = 234758 }, + { url = "https://files.pythonhosted.org/packages/6d/85/fc0de2bcda3f97c2ee9fe8568f7d48f7279e91068958e5b2cc19e0e5f600/coverage-7.6.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:675cefc4c06e3b4c876b85bfb7c59c5e2218167bbd4da5075cbe3b5790a28988", size = 235920 }, + { url = "https://files.pythonhosted.org/packages/79/73/ef4ea0105531506a6f4cf4ba571a214b14a884630b567ed65b3d9c1975e1/coverage-7.6.10-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f4f620668dbc6f5e909a0946a877310fb3d57aea8198bde792aae369ee1c23b5", size = 234986 }, + { url = "https://files.pythonhosted.org/packages/c6/4d/75afcfe4432e2ad0405c6f27adeb109ff8976c5e636af8604f94f29fa3fc/coverage-7.6.10-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:4eea95ef275de7abaef630c9b2c002ffbc01918b726a39f5a4353916ec72d2f3", size = 233446 }, + { url = "https://files.pythonhosted.org/packages/86/5b/efee56a89c16171288cafff022e8af44f8f94075c2d8da563c3935212871/coverage-7.6.10-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e2f0280519e42b0a17550072861e0bc8a80a0870de260f9796157d3fca2733c5", size = 234566 }, + { url = "https://files.pythonhosted.org/packages/f2/db/67770cceb4a64d3198bf2aa49946f411b85ec6b0a9b489e61c8467a4253b/coverage-7.6.10-cp310-cp310-win32.whl", hash = "sha256:bc67deb76bc3717f22e765ab3e07ee9c7a5e26b9019ca19a3b063d9f4b874244", size = 210675 }, + { url = "https://files.pythonhosted.org/packages/8d/27/e8bfc43f5345ec2c27bc8a1fa77cdc5ce9dcf954445e11f14bb70b889d14/coverage-7.6.10-cp310-cp310-win_amd64.whl", hash = "sha256:0f460286cb94036455e703c66988851d970fdfd8acc2a1122ab7f4f904e4029e", size = 211518 }, + { url = "https://files.pythonhosted.org/packages/85/d2/5e175fcf6766cf7501a8541d81778fd2f52f4870100e791f5327fd23270b/coverage-7.6.10-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ea3c8f04b3e4af80e17bab607c386a830ffc2fb88a5484e1df756478cf70d1d3", size = 208088 }, + { url = "https://files.pythonhosted.org/packages/4b/6f/06db4dc8fca33c13b673986e20e466fd936235a6ec1f0045c3853ac1b593/coverage-7.6.10-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:507a20fc863cae1d5720797761b42d2d87a04b3e5aeb682ef3b7332e90598f43", size = 208536 }, + { url = "https://files.pythonhosted.org/packages/0d/62/c6a0cf80318c1c1af376d52df444da3608eafc913b82c84a4600d8349472/coverage-7.6.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d37a84878285b903c0fe21ac8794c6dab58150e9359f1aaebbeddd6412d53132", size = 240474 }, + { url = "https://files.pythonhosted.org/packages/a3/59/750adafc2e57786d2e8739a46b680d4fb0fbc2d57fbcb161290a9f1ecf23/coverage-7.6.10-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a534738b47b0de1995f85f582d983d94031dffb48ab86c95bdf88dc62212142f", size = 237880 }, + { url = "https://files.pythonhosted.org/packages/2c/f8/ef009b3b98e9f7033c19deb40d629354aab1d8b2d7f9cfec284dbedf5096/coverage-7.6.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0d7a2bf79378d8fb8afaa994f91bfd8215134f8631d27eba3e0e2c13546ce994", size = 239750 }, + { url = "https://files.pythonhosted.org/packages/a6/e2/6622f3b70f5f5b59f705e680dae6db64421af05a5d1e389afd24dae62e5b/coverage-7.6.10-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6713ba4b4ebc330f3def51df1d5d38fad60b66720948112f114968feb52d3f99", size = 238642 }, + { url = "https://files.pythonhosted.org/packages/2d/10/57ac3f191a3c95c67844099514ff44e6e19b2915cd1c22269fb27f9b17b6/coverage-7.6.10-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ab32947f481f7e8c763fa2c92fd9f44eeb143e7610c4ca9ecd6a36adab4081bd", size = 237266 }, + { url = "https://files.pythonhosted.org/packages/ee/2d/7016f4ad9d553cabcb7333ed78ff9d27248ec4eba8dd21fa488254dff894/coverage-7.6.10-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7bbd8c8f1b115b892e34ba66a097b915d3871db7ce0e6b9901f462ff3a975377", size = 238045 }, + { url = "https://files.pythonhosted.org/packages/a7/fe/45af5c82389a71e0cae4546413266d2195c3744849669b0bab4b5f2c75da/coverage-7.6.10-cp311-cp311-win32.whl", hash = "sha256:299e91b274c5c9cdb64cbdf1b3e4a8fe538a7a86acdd08fae52301b28ba297f8", size = 210647 }, + { url = "https://files.pythonhosted.org/packages/db/11/3f8e803a43b79bc534c6a506674da9d614e990e37118b4506faf70d46ed6/coverage-7.6.10-cp311-cp311-win_amd64.whl", hash = "sha256:489a01f94aa581dbd961f306e37d75d4ba16104bbfa2b0edb21d29b73be83609", size = 211508 }, + { url = "https://files.pythonhosted.org/packages/86/77/19d09ea06f92fdf0487499283b1b7af06bc422ea94534c8fe3a4cd023641/coverage-7.6.10-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:27c6e64726b307782fa5cbe531e7647aee385a29b2107cd87ba7c0105a5d3853", size = 208281 }, + { url = "https://files.pythonhosted.org/packages/b6/67/5479b9f2f99fcfb49c0d5cf61912a5255ef80b6e80a3cddba39c38146cf4/coverage-7.6.10-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c56e097019e72c373bae32d946ecf9858fda841e48d82df7e81c63ac25554078", size = 208514 }, + { url = "https://files.pythonhosted.org/packages/15/d1/febf59030ce1c83b7331c3546d7317e5120c5966471727aa7ac157729c4b/coverage-7.6.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c7827a5bc7bdb197b9e066cdf650b2887597ad124dd99777332776f7b7c7d0d0", size = 241537 }, + { url = "https://files.pythonhosted.org/packages/4b/7e/5ac4c90192130e7cf8b63153fe620c8bfd9068f89a6d9b5f26f1550f7a26/coverage-7.6.10-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:204a8238afe787323a8b47d8be4df89772d5c1e4651b9ffa808552bdf20e1d50", size = 238572 }, + { url = "https://files.pythonhosted.org/packages/dc/03/0334a79b26ecf59958f2fe9dd1f5ab3e2f88db876f5071933de39af09647/coverage-7.6.10-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e67926f51821b8e9deb6426ff3164870976fe414d033ad90ea75e7ed0c2e5022", size = 240639 }, + { url = "https://files.pythonhosted.org/packages/d7/45/8a707f23c202208d7b286d78ad6233f50dcf929319b664b6cc18a03c1aae/coverage-7.6.10-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e78b270eadb5702938c3dbe9367f878249b5ef9a2fcc5360ac7bff694310d17b", size = 240072 }, + { url = "https://files.pythonhosted.org/packages/66/02/603ce0ac2d02bc7b393279ef618940b4a0535b0868ee791140bda9ecfa40/coverage-7.6.10-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:714f942b9c15c3a7a5fe6876ce30af831c2ad4ce902410b7466b662358c852c0", size = 238386 }, + { url = "https://files.pythonhosted.org/packages/04/62/4e6887e9be060f5d18f1dd58c2838b2d9646faf353232dec4e2d4b1c8644/coverage-7.6.10-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:abb02e2f5a3187b2ac4cd46b8ced85a0858230b577ccb2c62c81482ca7d18852", size = 240054 }, + { url = "https://files.pythonhosted.org/packages/5c/74/83ae4151c170d8bd071924f212add22a0e62a7fe2b149edf016aeecad17c/coverage-7.6.10-cp312-cp312-win32.whl", hash = "sha256:55b201b97286cf61f5e76063f9e2a1d8d2972fc2fcfd2c1272530172fd28c359", size = 210904 }, + { url = "https://files.pythonhosted.org/packages/c3/54/de0893186a221478f5880283119fc40483bc460b27c4c71d1b8bba3474b9/coverage-7.6.10-cp312-cp312-win_amd64.whl", hash = "sha256:e4ae5ac5e0d1e4edfc9b4b57b4cbecd5bc266a6915c500f358817a8496739247", size = 211692 }, + { url = "https://files.pythonhosted.org/packages/25/6d/31883d78865529257bf847df5789e2ae80e99de8a460c3453dbfbe0db069/coverage-7.6.10-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:05fca8ba6a87aabdd2d30d0b6c838b50510b56cdcfc604d40760dae7153b73d9", size = 208308 }, + { url = "https://files.pythonhosted.org/packages/70/22/3f2b129cc08de00c83b0ad6252e034320946abfc3e4235c009e57cfeee05/coverage-7.6.10-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9e80eba8801c386f72e0712a0453431259c45c3249f0009aff537a517b52942b", size = 208565 }, + { url = "https://files.pythonhosted.org/packages/97/0a/d89bc2d1cc61d3a8dfe9e9d75217b2be85f6c73ebf1b9e3c2f4e797f4531/coverage-7.6.10-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a372c89c939d57abe09e08c0578c1d212e7a678135d53aa16eec4430adc5e690", size = 241083 }, + { url = "https://files.pythonhosted.org/packages/4c/81/6d64b88a00c7a7aaed3a657b8eaa0931f37a6395fcef61e53ff742b49c97/coverage-7.6.10-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ec22b5e7fe7a0fa8509181c4aac1db48f3dd4d3a566131b313d1efc102892c18", size = 238235 }, + { url = "https://files.pythonhosted.org/packages/9a/0b/7797d4193f5adb4b837207ed87fecf5fc38f7cc612b369a8e8e12d9fa114/coverage-7.6.10-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26bcf5c4df41cad1b19c84af71c22cbc9ea9a547fc973f1f2cc9a290002c8b3c", size = 240220 }, + { url = "https://files.pythonhosted.org/packages/65/4d/6f83ca1bddcf8e51bf8ff71572f39a1c73c34cf50e752a952c34f24d0a60/coverage-7.6.10-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4e4630c26b6084c9b3cb53b15bd488f30ceb50b73c35c5ad7871b869cb7365fd", size = 239847 }, + { url = "https://files.pythonhosted.org/packages/30/9d/2470df6aa146aff4c65fee0f87f58d2164a67533c771c9cc12ffcdb865d5/coverage-7.6.10-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2396e8116db77789f819d2bc8a7e200232b7a282c66e0ae2d2cd84581a89757e", size = 237922 }, + { url = "https://files.pythonhosted.org/packages/08/dd/723fef5d901e6a89f2507094db66c091449c8ba03272861eaefa773ad95c/coverage-7.6.10-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:79109c70cc0882e4d2d002fe69a24aa504dec0cc17169b3c7f41a1d341a73694", size = 239783 }, + { url = "https://files.pythonhosted.org/packages/3d/f7/64d3298b2baf261cb35466000628706ce20a82d42faf9b771af447cd2b76/coverage-7.6.10-cp313-cp313-win32.whl", hash = "sha256:9e1747bab246d6ff2c4f28b4d186b205adced9f7bd9dc362051cc37c4a0c7bd6", size = 210965 }, + { url = "https://files.pythonhosted.org/packages/d5/58/ec43499a7fc681212fe7742fe90b2bc361cdb72e3181ace1604247a5b24d/coverage-7.6.10-cp313-cp313-win_amd64.whl", hash = "sha256:254f1a3b1eef5f7ed23ef265eaa89c65c8c5b6b257327c149db1ca9d4a35f25e", size = 211719 }, + { url = "https://files.pythonhosted.org/packages/ab/c9/f2857a135bcff4330c1e90e7d03446b036b2363d4ad37eb5e3a47bbac8a6/coverage-7.6.10-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2ccf240eb719789cedbb9fd1338055de2761088202a9a0b73032857e53f612fe", size = 209050 }, + { url = "https://files.pythonhosted.org/packages/aa/b3/f840e5bd777d8433caa9e4a1eb20503495709f697341ac1a8ee6a3c906ad/coverage-7.6.10-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:0c807ca74d5a5e64427c8805de15b9ca140bba13572d6d74e262f46f50b13273", size = 209321 }, + { url = "https://files.pythonhosted.org/packages/85/7d/125a5362180fcc1c03d91850fc020f3831d5cda09319522bcfa6b2b70be7/coverage-7.6.10-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2bcfa46d7709b5a7ffe089075799b902020b62e7ee56ebaed2f4bdac04c508d8", size = 252039 }, + { url = "https://files.pythonhosted.org/packages/a9/9c/4358bf3c74baf1f9bddd2baf3756b54c07f2cfd2535f0a47f1e7757e54b3/coverage-7.6.10-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e0de1e902669dccbf80b0415fb6b43d27edca2fbd48c74da378923b05316098", size = 247758 }, + { url = "https://files.pythonhosted.org/packages/cf/c7/de3eb6fc5263b26fab5cda3de7a0f80e317597a4bad4781859f72885f300/coverage-7.6.10-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f7b444c42bbc533aaae6b5a2166fd1a797cdb5eb58ee51a92bee1eb94a1e1cb", size = 250119 }, + { url = "https://files.pythonhosted.org/packages/3e/e6/43de91f8ba2ec9140c6a4af1102141712949903dc732cf739167cfa7a3bc/coverage-7.6.10-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b330368cb99ef72fcd2dc3ed260adf67b31499584dc8a20225e85bfe6f6cfed0", size = 249597 }, + { url = "https://files.pythonhosted.org/packages/08/40/61158b5499aa2adf9e37bc6d0117e8f6788625b283d51e7e0c53cf340530/coverage-7.6.10-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:9a7cfb50515f87f7ed30bc882f68812fd98bc2852957df69f3003d22a2aa0abf", size = 247473 }, + { url = "https://files.pythonhosted.org/packages/50/69/b3f2416725621e9f112e74e8470793d5b5995f146f596f133678a633b77e/coverage-7.6.10-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6f93531882a5f68c28090f901b1d135de61b56331bba82028489bc51bdd818d2", size = 248737 }, + { url = "https://files.pythonhosted.org/packages/3c/6e/fe899fb937657db6df31cc3e61c6968cb56d36d7326361847440a430152e/coverage-7.6.10-cp313-cp313t-win32.whl", hash = "sha256:89d76815a26197c858f53c7f6a656686ec392b25991f9e409bcef020cd532312", size = 211611 }, + { url = "https://files.pythonhosted.org/packages/1c/55/52f5e66142a9d7bc93a15192eba7a78513d2abf6b3558d77b4ca32f5f424/coverage-7.6.10-cp313-cp313t-win_amd64.whl", hash = "sha256:54a5f0f43950a36312155dae55c505a76cd7f2b12d26abeebbe7a0b36dbc868d", size = 212781 }, + { url = "https://files.pythonhosted.org/packages/40/41/473617aadf9a1c15bc2d56be65d90d7c29bfa50a957a67ef96462f7ebf8e/coverage-7.6.10-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:656c82b8a0ead8bba147de9a89bda95064874c91a3ed43a00e687f23cc19d53a", size = 207978 }, + { url = "https://files.pythonhosted.org/packages/10/f6/480586607768b39a30e6910a3c4522139094ac0f1677028e1f4823688957/coverage-7.6.10-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ccc2b70a7ed475c68ceb548bf69cec1e27305c1c2606a5eb7c3afff56a1b3b27", size = 208415 }, + { url = "https://files.pythonhosted.org/packages/f1/af/439bb760f817deff6f4d38fe7da08d9dd7874a560241f1945bc3b4446550/coverage-7.6.10-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5e37dc41d57ceba70956fa2fc5b63c26dba863c946ace9705f8eca99daecdc4", size = 236452 }, + { url = "https://files.pythonhosted.org/packages/d0/13/481f4ceffcabe29ee2332e60efb52e4694f54a402f3ada2bcec10bb32e43/coverage-7.6.10-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0aa9692b4fdd83a4647eeb7db46410ea1322b5ed94cd1715ef09d1d5922ba87f", size = 234374 }, + { url = "https://files.pythonhosted.org/packages/c5/59/4607ea9d6b1b73e905c7656da08d0b00cdf6e59f2293ec259e8914160025/coverage-7.6.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa744da1820678b475e4ba3dfd994c321c5b13381d1041fe9c608620e6676e25", size = 235505 }, + { url = "https://files.pythonhosted.org/packages/85/60/d66365723b9b7f29464b11d024248ed3523ce5aab958e4ad8c43f3f4148b/coverage-7.6.10-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:c0b1818063dc9e9d838c09e3a473c1422f517889436dd980f5d721899e66f315", size = 234616 }, + { url = "https://files.pythonhosted.org/packages/74/f8/2cf7a38e7d81b266f47dfcf137fecd8fa66c7bdbd4228d611628d8ca3437/coverage-7.6.10-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:59af35558ba08b758aec4d56182b222976330ef8d2feacbb93964f576a7e7a90", size = 233099 }, + { url = "https://files.pythonhosted.org/packages/50/2b/bff6c1c6b63c4396ea7ecdbf8db1788b46046c681b8fcc6ec77db9f4ea49/coverage-7.6.10-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:7ed2f37cfce1ce101e6dffdfd1c99e729dd2ffc291d02d3e2d0af8b53d13840d", size = 234089 }, + { url = "https://files.pythonhosted.org/packages/bf/b5/baace1c754d546a67779358341aa8d2f7118baf58cac235db457e1001d1b/coverage-7.6.10-cp39-cp39-win32.whl", hash = "sha256:4bcc276261505d82f0ad426870c3b12cb177752834a633e737ec5ee79bbdff18", size = 210701 }, + { url = "https://files.pythonhosted.org/packages/b1/bf/9e1e95b8b20817398ecc5a1e8d3e05ff404e1b9fb2185cd71561698fe2a2/coverage-7.6.10-cp39-cp39-win_amd64.whl", hash = "sha256:457574f4599d2b00f7f637a0700a6422243b3565509457b2dbd3f50703e11f59", size = 211482 }, + { url = "https://files.pythonhosted.org/packages/a1/70/de81bfec9ed38a64fc44a77c7665e20ca507fc3265597c28b0d989e4082e/coverage-7.6.10-pp39.pp310-none-any.whl", hash = "sha256:fd34e7b3405f0cc7ab03d54a334c17a9e802897580d964bd8c2001f4b9fd488f", size = 200223 }, +] + +[[package]] +name = "exceptiongroup" +version = "1.2.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/09/35/2495c4ac46b980e4ca1f6ad6db102322ef3ad2410b79fdde159a4b0f3b92/exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc", size = 28883 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b", size = 16453 }, +] + +[[package]] +name = "iniconfig" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3", size = 4646 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374", size = 5892 }, +] + +[[package]] +name = "packaging" +version = "24.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 }, +] + +[[package]] +name = "pluggy" +version = "1.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1", size = 67955 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669", size = 20556 }, +] + +[[package]] +name = "pydantic" +version = "2.10.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6a/c7/ca334c2ef6f2e046b1144fe4bb2a5da8a4c574e7f2ebf7e16b34a6a2fa92/pydantic-2.10.5.tar.gz", hash = "sha256:278b38dbbaec562011d659ee05f63346951b3a248a6f3642e1bc68894ea2b4ff", size = 761287 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/26/82663c79010b28eddf29dcdd0ea723439535fa917fce5905885c0e9ba562/pydantic-2.10.5-py3-none-any.whl", hash = "sha256:4dd4e322dbe55472cb7ca7e73f4b63574eecccf2835ffa2af9021ce113c83c53", size = 431426 }, +] + +[[package]] +name = "pydantic-core" +version = "2.27.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/fc/01/f3e5ac5e7c25833db5eb555f7b7ab24cd6f8c322d3a3ad2d67a952dc0abc/pydantic_core-2.27.2.tar.gz", hash = "sha256:eb026e5a4c1fee05726072337ff51d1efb6f59090b7da90d30ea58625b1ffb39", size = 413443 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3a/bc/fed5f74b5d802cf9a03e83f60f18864e90e3aed7223adaca5ffb7a8d8d64/pydantic_core-2.27.2-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2d367ca20b2f14095a8f4fa1210f5a7b78b8a20009ecced6b12818f455b1e9fa", size = 1895938 }, + { url = "https://files.pythonhosted.org/packages/71/2a/185aff24ce844e39abb8dd680f4e959f0006944f4a8a0ea372d9f9ae2e53/pydantic_core-2.27.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:491a2b73db93fab69731eaee494f320faa4e093dbed776be1a829c2eb222c34c", size = 1815684 }, + { url = "https://files.pythonhosted.org/packages/c3/43/fafabd3d94d159d4f1ed62e383e264f146a17dd4d48453319fd782e7979e/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7969e133a6f183be60e9f6f56bfae753585680f3b7307a8e555a948d443cc05a", size = 1829169 }, + { url = "https://files.pythonhosted.org/packages/a2/d1/f2dfe1a2a637ce6800b799aa086d079998959f6f1215eb4497966efd2274/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3de9961f2a346257caf0aa508a4da705467f53778e9ef6fe744c038119737ef5", size = 1867227 }, + { url = "https://files.pythonhosted.org/packages/7d/39/e06fcbcc1c785daa3160ccf6c1c38fea31f5754b756e34b65f74e99780b5/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e2bb4d3e5873c37bb3dd58714d4cd0b0e6238cebc4177ac8fe878f8b3aa8e74c", size = 2037695 }, + { url = "https://files.pythonhosted.org/packages/7a/67/61291ee98e07f0650eb756d44998214231f50751ba7e13f4f325d95249ab/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:280d219beebb0752699480fe8f1dc61ab6615c2046d76b7ab7ee38858de0a4e7", size = 2741662 }, + { url = "https://files.pythonhosted.org/packages/32/90/3b15e31b88ca39e9e626630b4c4a1f5a0dfd09076366f4219429e6786076/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47956ae78b6422cbd46f772f1746799cbb862de838fd8d1fbd34a82e05b0983a", size = 1993370 }, + { url = "https://files.pythonhosted.org/packages/ff/83/c06d333ee3a67e2e13e07794995c1535565132940715931c1c43bfc85b11/pydantic_core-2.27.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:14d4a5c49d2f009d62a2a7140d3064f686d17a5d1a268bc641954ba181880236", size = 1996813 }, + { url = "https://files.pythonhosted.org/packages/7c/f7/89be1c8deb6e22618a74f0ca0d933fdcb8baa254753b26b25ad3acff8f74/pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:337b443af21d488716f8d0b6164de833e788aa6bd7e3a39c005febc1284f4962", size = 2005287 }, + { url = "https://files.pythonhosted.org/packages/b7/7d/8eb3e23206c00ef7feee17b83a4ffa0a623eb1a9d382e56e4aa46fd15ff2/pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:03d0f86ea3184a12f41a2d23f7ccb79cdb5a18e06993f8a45baa8dfec746f0e9", size = 2128414 }, + { url = "https://files.pythonhosted.org/packages/4e/99/fe80f3ff8dd71a3ea15763878d464476e6cb0a2db95ff1c5c554133b6b83/pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7041c36f5680c6e0f08d922aed302e98b3745d97fe1589db0a3eebf6624523af", size = 2155301 }, + { url = "https://files.pythonhosted.org/packages/2b/a3/e50460b9a5789ca1451b70d4f52546fa9e2b420ba3bfa6100105c0559238/pydantic_core-2.27.2-cp310-cp310-win32.whl", hash = "sha256:50a68f3e3819077be2c98110c1f9dcb3817e93f267ba80a2c05bb4f8799e2ff4", size = 1816685 }, + { url = "https://files.pythonhosted.org/packages/57/4c/a8838731cb0f2c2a39d3535376466de6049034d7b239c0202a64aaa05533/pydantic_core-2.27.2-cp310-cp310-win_amd64.whl", hash = "sha256:e0fd26b16394ead34a424eecf8a31a1f5137094cabe84a1bcb10fa6ba39d3d31", size = 1982876 }, + { url = "https://files.pythonhosted.org/packages/c2/89/f3450af9d09d44eea1f2c369f49e8f181d742f28220f88cc4dfaae91ea6e/pydantic_core-2.27.2-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:8e10c99ef58cfdf2a66fc15d66b16c4a04f62bca39db589ae8cba08bc55331bc", size = 1893421 }, + { url = "https://files.pythonhosted.org/packages/9e/e3/71fe85af2021f3f386da42d291412e5baf6ce7716bd7101ea49c810eda90/pydantic_core-2.27.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:26f32e0adf166a84d0cb63be85c562ca8a6fa8de28e5f0d92250c6b7e9e2aff7", size = 1814998 }, + { url = "https://files.pythonhosted.org/packages/a6/3c/724039e0d848fd69dbf5806894e26479577316c6f0f112bacaf67aa889ac/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8c19d1ea0673cd13cc2f872f6c9ab42acc4e4f492a7ca9d3795ce2b112dd7e15", size = 1826167 }, + { url = "https://files.pythonhosted.org/packages/2b/5b/1b29e8c1fb5f3199a9a57c1452004ff39f494bbe9bdbe9a81e18172e40d3/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5e68c4446fe0810e959cdff46ab0a41ce2f2c86d227d96dc3847af0ba7def306", size = 1865071 }, + { url = "https://files.pythonhosted.org/packages/89/6c/3985203863d76bb7d7266e36970d7e3b6385148c18a68cc8915fd8c84d57/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d9640b0059ff4f14d1f37321b94061c6db164fbe49b334b31643e0528d100d99", size = 2036244 }, + { url = "https://files.pythonhosted.org/packages/0e/41/f15316858a246b5d723f7d7f599f79e37493b2e84bfc789e58d88c209f8a/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:40d02e7d45c9f8af700f3452f329ead92da4c5f4317ca9b896de7ce7199ea459", size = 2737470 }, + { url = "https://files.pythonhosted.org/packages/a8/7c/b860618c25678bbd6d1d99dbdfdf0510ccb50790099b963ff78a124b754f/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c1fd185014191700554795c99b347d64f2bb637966c4cfc16998a0ca700d048", size = 1992291 }, + { url = "https://files.pythonhosted.org/packages/bf/73/42c3742a391eccbeab39f15213ecda3104ae8682ba3c0c28069fbcb8c10d/pydantic_core-2.27.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d81d2068e1c1228a565af076598f9e7451712700b673de8f502f0334f281387d", size = 1994613 }, + { url = "https://files.pythonhosted.org/packages/94/7a/941e89096d1175d56f59340f3a8ebaf20762fef222c298ea96d36a6328c5/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:1a4207639fb02ec2dbb76227d7c751a20b1a6b4bc52850568e52260cae64ca3b", size = 2002355 }, + { url = "https://files.pythonhosted.org/packages/6e/95/2359937a73d49e336a5a19848713555605d4d8d6940c3ec6c6c0ca4dcf25/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:3de3ce3c9ddc8bbd88f6e0e304dea0e66d843ec9de1b0042b0911c1663ffd474", size = 2126661 }, + { url = "https://files.pythonhosted.org/packages/2b/4c/ca02b7bdb6012a1adef21a50625b14f43ed4d11f1fc237f9d7490aa5078c/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:30c5f68ded0c36466acede341551106821043e9afaad516adfb6e8fa80a4e6a6", size = 2153261 }, + { url = "https://files.pythonhosted.org/packages/72/9d/a241db83f973049a1092a079272ffe2e3e82e98561ef6214ab53fe53b1c7/pydantic_core-2.27.2-cp311-cp311-win32.whl", hash = "sha256:c70c26d2c99f78b125a3459f8afe1aed4d9687c24fd677c6a4436bc042e50d6c", size = 1812361 }, + { url = "https://files.pythonhosted.org/packages/e8/ef/013f07248041b74abd48a385e2110aa3a9bbfef0fbd97d4e6d07d2f5b89a/pydantic_core-2.27.2-cp311-cp311-win_amd64.whl", hash = "sha256:08e125dbdc505fa69ca7d9c499639ab6407cfa909214d500897d02afb816e7cc", size = 1982484 }, + { url = "https://files.pythonhosted.org/packages/10/1c/16b3a3e3398fd29dca77cea0a1d998d6bde3902fa2706985191e2313cc76/pydantic_core-2.27.2-cp311-cp311-win_arm64.whl", hash = "sha256:26f0d68d4b235a2bae0c3fc585c585b4ecc51382db0e3ba402a22cbc440915e4", size = 1867102 }, + { url = "https://files.pythonhosted.org/packages/d6/74/51c8a5482ca447871c93e142d9d4a92ead74de6c8dc5e66733e22c9bba89/pydantic_core-2.27.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9e0c8cfefa0ef83b4da9588448b6d8d2a2bf1a53c3f1ae5fca39eb3061e2f0b0", size = 1893127 }, + { url = "https://files.pythonhosted.org/packages/d3/f3/c97e80721735868313c58b89d2de85fa80fe8dfeeed84dc51598b92a135e/pydantic_core-2.27.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:83097677b8e3bd7eaa6775720ec8e0405f1575015a463285a92bfdfe254529ef", size = 1811340 }, + { url = "https://files.pythonhosted.org/packages/9e/91/840ec1375e686dbae1bd80a9e46c26a1e0083e1186abc610efa3d9a36180/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:172fce187655fece0c90d90a678424b013f8fbb0ca8b036ac266749c09438cb7", size = 1822900 }, + { url = "https://files.pythonhosted.org/packages/f6/31/4240bc96025035500c18adc149aa6ffdf1a0062a4b525c932065ceb4d868/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:519f29f5213271eeeeb3093f662ba2fd512b91c5f188f3bb7b27bc5973816934", size = 1869177 }, + { url = "https://files.pythonhosted.org/packages/fa/20/02fbaadb7808be578317015c462655c317a77a7c8f0ef274bc016a784c54/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:05e3a55d124407fffba0dd6b0c0cd056d10e983ceb4e5dbd10dda135c31071d6", size = 2038046 }, + { url = "https://files.pythonhosted.org/packages/06/86/7f306b904e6c9eccf0668248b3f272090e49c275bc488a7b88b0823444a4/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9c3ed807c7b91de05e63930188f19e921d1fe90de6b4f5cd43ee7fcc3525cb8c", size = 2685386 }, + { url = "https://files.pythonhosted.org/packages/8d/f0/49129b27c43396581a635d8710dae54a791b17dfc50c70164866bbf865e3/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6fb4aadc0b9a0c063206846d603b92030eb6f03069151a625667f982887153e2", size = 1997060 }, + { url = "https://files.pythonhosted.org/packages/0d/0f/943b4af7cd416c477fd40b187036c4f89b416a33d3cc0ab7b82708a667aa/pydantic_core-2.27.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:28ccb213807e037460326424ceb8b5245acb88f32f3d2777427476e1b32c48c4", size = 2004870 }, + { url = "https://files.pythonhosted.org/packages/35/40/aea70b5b1a63911c53a4c8117c0a828d6790483f858041f47bab0b779f44/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:de3cd1899e2c279b140adde9357c4495ed9d47131b4a4eaff9052f23398076b3", size = 1999822 }, + { url = "https://files.pythonhosted.org/packages/f2/b3/807b94fd337d58effc5498fd1a7a4d9d59af4133e83e32ae39a96fddec9d/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:220f892729375e2d736b97d0e51466252ad84c51857d4d15f5e9692f9ef12be4", size = 2130364 }, + { url = "https://files.pythonhosted.org/packages/fc/df/791c827cd4ee6efd59248dca9369fb35e80a9484462c33c6649a8d02b565/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a0fcd29cd6b4e74fe8ddd2c90330fd8edf2e30cb52acda47f06dd615ae72da57", size = 2158303 }, + { url = "https://files.pythonhosted.org/packages/9b/67/4e197c300976af185b7cef4c02203e175fb127e414125916bf1128b639a9/pydantic_core-2.27.2-cp312-cp312-win32.whl", hash = "sha256:1e2cb691ed9834cd6a8be61228471d0a503731abfb42f82458ff27be7b2186fc", size = 1834064 }, + { url = "https://files.pythonhosted.org/packages/1f/ea/cd7209a889163b8dcca139fe32b9687dd05249161a3edda62860430457a5/pydantic_core-2.27.2-cp312-cp312-win_amd64.whl", hash = "sha256:cc3f1a99a4f4f9dd1de4fe0312c114e740b5ddead65bb4102884b384c15d8bc9", size = 1989046 }, + { url = "https://files.pythonhosted.org/packages/bc/49/c54baab2f4658c26ac633d798dab66b4c3a9bbf47cff5284e9c182f4137a/pydantic_core-2.27.2-cp312-cp312-win_arm64.whl", hash = "sha256:3911ac9284cd8a1792d3cb26a2da18f3ca26c6908cc434a18f730dc0db7bfa3b", size = 1885092 }, + { url = "https://files.pythonhosted.org/packages/41/b1/9bc383f48f8002f99104e3acff6cba1231b29ef76cfa45d1506a5cad1f84/pydantic_core-2.27.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7d14bd329640e63852364c306f4d23eb744e0f8193148d4044dd3dacdaacbd8b", size = 1892709 }, + { url = "https://files.pythonhosted.org/packages/10/6c/e62b8657b834f3eb2961b49ec8e301eb99946245e70bf42c8817350cbefc/pydantic_core-2.27.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82f91663004eb8ed30ff478d77c4d1179b3563df6cdb15c0817cd1cdaf34d154", size = 1811273 }, + { url = "https://files.pythonhosted.org/packages/ba/15/52cfe49c8c986e081b863b102d6b859d9defc63446b642ccbbb3742bf371/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:71b24c7d61131bb83df10cc7e687433609963a944ccf45190cfc21e0887b08c9", size = 1823027 }, + { url = "https://files.pythonhosted.org/packages/b1/1c/b6f402cfc18ec0024120602bdbcebc7bdd5b856528c013bd4d13865ca473/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fa8e459d4954f608fa26116118bb67f56b93b209c39b008277ace29937453dc9", size = 1868888 }, + { url = "https://files.pythonhosted.org/packages/bd/7b/8cb75b66ac37bc2975a3b7de99f3c6f355fcc4d89820b61dffa8f1e81677/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ce8918cbebc8da707ba805b7fd0b382816858728ae7fe19a942080c24e5b7cd1", size = 2037738 }, + { url = "https://files.pythonhosted.org/packages/c8/f1/786d8fe78970a06f61df22cba58e365ce304bf9b9f46cc71c8c424e0c334/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eda3f5c2a021bbc5d976107bb302e0131351c2ba54343f8a496dc8783d3d3a6a", size = 2685138 }, + { url = "https://files.pythonhosted.org/packages/a6/74/d12b2cd841d8724dc8ffb13fc5cef86566a53ed358103150209ecd5d1999/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bd8086fa684c4775c27f03f062cbb9eaa6e17f064307e86b21b9e0abc9c0f02e", size = 1997025 }, + { url = "https://files.pythonhosted.org/packages/a0/6e/940bcd631bc4d9a06c9539b51f070b66e8f370ed0933f392db6ff350d873/pydantic_core-2.27.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8d9b3388db186ba0c099a6d20f0604a44eabdeef1777ddd94786cdae158729e4", size = 2004633 }, + { url = "https://files.pythonhosted.org/packages/50/cc/a46b34f1708d82498c227d5d80ce615b2dd502ddcfd8376fc14a36655af1/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7a66efda2387de898c8f38c0cf7f14fca0b51a8ef0b24bfea5849f1b3c95af27", size = 1999404 }, + { url = "https://files.pythonhosted.org/packages/ca/2d/c365cfa930ed23bc58c41463bae347d1005537dc8db79e998af8ba28d35e/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:18a101c168e4e092ab40dbc2503bdc0f62010e95d292b27827871dc85450d7ee", size = 2130130 }, + { url = "https://files.pythonhosted.org/packages/f4/d7/eb64d015c350b7cdb371145b54d96c919d4db516817f31cd1c650cae3b21/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ba5dd002f88b78a4215ed2f8ddbdf85e8513382820ba15ad5ad8955ce0ca19a1", size = 2157946 }, + { url = "https://files.pythonhosted.org/packages/a4/99/bddde3ddde76c03b65dfd5a66ab436c4e58ffc42927d4ff1198ffbf96f5f/pydantic_core-2.27.2-cp313-cp313-win32.whl", hash = "sha256:1ebaf1d0481914d004a573394f4be3a7616334be70261007e47c2a6fe7e50130", size = 1834387 }, + { url = "https://files.pythonhosted.org/packages/71/47/82b5e846e01b26ac6f1893d3c5f9f3a2eb6ba79be26eef0b759b4fe72946/pydantic_core-2.27.2-cp313-cp313-win_amd64.whl", hash = "sha256:953101387ecf2f5652883208769a79e48db18c6df442568a0b5ccd8c2723abee", size = 1990453 }, + { url = "https://files.pythonhosted.org/packages/51/b2/b2b50d5ecf21acf870190ae5d093602d95f66c9c31f9d5de6062eb329ad1/pydantic_core-2.27.2-cp313-cp313-win_arm64.whl", hash = "sha256:ac4dbfd1691affb8f48c2c13241a2e3b60ff23247cbcf981759c768b6633cf8b", size = 1885186 }, + { url = "https://files.pythonhosted.org/packages/43/53/13e9917fc69c0a4aea06fd63ed6a8d6cda9cf140ca9584d49c1650b0ef5e/pydantic_core-2.27.2-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:d3e8d504bdd3f10835468f29008d72fc8359d95c9c415ce6e767203db6127506", size = 1899595 }, + { url = "https://files.pythonhosted.org/packages/f4/20/26c549249769ed84877f862f7bb93f89a6ee08b4bee1ed8781616b7fbb5e/pydantic_core-2.27.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:521eb9b7f036c9b6187f0b47318ab0d7ca14bd87f776240b90b21c1f4f149320", size = 1775010 }, + { url = "https://files.pythonhosted.org/packages/35/eb/8234e05452d92d2b102ffa1b56d801c3567e628fdc63f02080fdfc68fd5e/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:85210c4d99a0114f5a9481b44560d7d1e35e32cc5634c656bc48e590b669b145", size = 1830727 }, + { url = "https://files.pythonhosted.org/packages/8f/df/59f915c8b929d5f61e5a46accf748a87110ba145156f9326d1a7d28912b2/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d716e2e30c6f140d7560ef1538953a5cd1a87264c737643d481f2779fc247fe1", size = 1868393 }, + { url = "https://files.pythonhosted.org/packages/d5/52/81cf4071dca654d485c277c581db368b0c95b2b883f4d7b736ab54f72ddf/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f66d89ba397d92f840f8654756196d93804278457b5fbede59598a1f9f90b228", size = 2040300 }, + { url = "https://files.pythonhosted.org/packages/9c/00/05197ce1614f5c08d7a06e1d39d5d8e704dc81971b2719af134b844e2eaf/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:669e193c1c576a58f132e3158f9dfa9662969edb1a250c54d8fa52590045f046", size = 2738785 }, + { url = "https://files.pythonhosted.org/packages/f7/a3/5f19bc495793546825ab160e530330c2afcee2281c02b5ffafd0b32ac05e/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fdbe7629b996647b99c01b37f11170a57ae675375b14b8c13b8518b8320ced5", size = 1996493 }, + { url = "https://files.pythonhosted.org/packages/ed/e8/e0102c2ec153dc3eed88aea03990e1b06cfbca532916b8a48173245afe60/pydantic_core-2.27.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d262606bf386a5ba0b0af3b97f37c83d7011439e3dc1a9298f21efb292e42f1a", size = 1998544 }, + { url = "https://files.pythonhosted.org/packages/fb/a3/4be70845b555bd80aaee9f9812a7cf3df81550bce6dadb3cfee9c5d8421d/pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:cabb9bcb7e0d97f74df8646f34fc76fbf793b7f6dc2438517d7a9e50eee4f14d", size = 2007449 }, + { url = "https://files.pythonhosted.org/packages/e3/9f/b779ed2480ba355c054e6d7ea77792467631d674b13d8257085a4bc7dcda/pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_armv7l.whl", hash = "sha256:d2d63f1215638d28221f664596b1ccb3944f6e25dd18cd3b86b0a4c408d5ebb9", size = 2129460 }, + { url = "https://files.pythonhosted.org/packages/a0/f0/a6ab0681f6e95260c7fbf552874af7302f2ea37b459f9b7f00698f875492/pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:bca101c00bff0adb45a833f8451b9105d9df18accb8743b08107d7ada14bd7da", size = 2159609 }, + { url = "https://files.pythonhosted.org/packages/8a/2b/e1059506795104349712fbca647b18b3f4a7fd541c099e6259717441e1e0/pydantic_core-2.27.2-cp38-cp38-win32.whl", hash = "sha256:f6f8e111843bbb0dee4cb6594cdc73e79b3329b526037ec242a3e49012495b3b", size = 1819886 }, + { url = "https://files.pythonhosted.org/packages/aa/6d/df49c17f024dfc58db0bacc7b03610058018dd2ea2eaf748ccbada4c3d06/pydantic_core-2.27.2-cp38-cp38-win_amd64.whl", hash = "sha256:fd1aea04935a508f62e0d0ef1f5ae968774a32afc306fb8545e06f5ff5cdf3ad", size = 1980773 }, + { url = "https://files.pythonhosted.org/packages/27/97/3aef1ddb65c5ccd6eda9050036c956ff6ecbfe66cb7eb40f280f121a5bb0/pydantic_core-2.27.2-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:c10eb4f1659290b523af58fa7cffb452a61ad6ae5613404519aee4bfbf1df993", size = 1896475 }, + { url = "https://files.pythonhosted.org/packages/ad/d3/5668da70e373c9904ed2f372cb52c0b996426f302e0dee2e65634c92007d/pydantic_core-2.27.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ef592d4bad47296fb11f96cd7dc898b92e795032b4894dfb4076cfccd43a9308", size = 1772279 }, + { url = "https://files.pythonhosted.org/packages/8a/9e/e44b8cb0edf04a2f0a1f6425a65ee089c1d6f9c4c2dcab0209127b6fdfc2/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c61709a844acc6bf0b7dce7daae75195a10aac96a596ea1b776996414791ede4", size = 1829112 }, + { url = "https://files.pythonhosted.org/packages/1c/90/1160d7ac700102effe11616e8119e268770f2a2aa5afb935f3ee6832987d/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:42c5f762659e47fdb7b16956c71598292f60a03aa92f8b6351504359dbdba6cf", size = 1866780 }, + { url = "https://files.pythonhosted.org/packages/ee/33/13983426df09a36d22c15980008f8d9c77674fc319351813b5a2739b70f3/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4c9775e339e42e79ec99c441d9730fccf07414af63eac2f0e48e08fd38a64d76", size = 2037943 }, + { url = "https://files.pythonhosted.org/packages/01/d7/ced164e376f6747e9158c89988c293cd524ab8d215ae4e185e9929655d5c/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:57762139821c31847cfb2df63c12f725788bd9f04bc2fb392790959b8f70f118", size = 2740492 }, + { url = "https://files.pythonhosted.org/packages/8b/1f/3dc6e769d5b7461040778816aab2b00422427bcaa4b56cc89e9c653b2605/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0d1e85068e818c73e048fe28cfc769040bb1f475524f4745a5dc621f75ac7630", size = 1995714 }, + { url = "https://files.pythonhosted.org/packages/07/d7/a0bd09bc39283530b3f7c27033a814ef254ba3bd0b5cfd040b7abf1fe5da/pydantic_core-2.27.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:097830ed52fd9e427942ff3b9bc17fab52913b2f50f2880dc4a5611446606a54", size = 1997163 }, + { url = "https://files.pythonhosted.org/packages/2d/bb/2db4ad1762e1c5699d9b857eeb41959191980de6feb054e70f93085e1bcd/pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:044a50963a614ecfae59bb1eaf7ea7efc4bc62f49ed594e18fa1e5d953c40e9f", size = 2005217 }, + { url = "https://files.pythonhosted.org/packages/53/5f/23a5a3e7b8403f8dd8fc8a6f8b49f6b55c7d715b77dcf1f8ae919eeb5628/pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:4e0b4220ba5b40d727c7f879eac379b822eee5d8fff418e9d3381ee45b3b0362", size = 2127899 }, + { url = "https://files.pythonhosted.org/packages/c2/ae/aa38bb8dd3d89c2f1d8362dd890ee8f3b967330821d03bbe08fa01ce3766/pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5e4f4bb20d75e9325cc9696c6802657b58bc1dbbe3022f32cc2b2b632c3fbb96", size = 2155726 }, + { url = "https://files.pythonhosted.org/packages/98/61/4f784608cc9e98f70839187117ce840480f768fed5d386f924074bf6213c/pydantic_core-2.27.2-cp39-cp39-win32.whl", hash = "sha256:cca63613e90d001b9f2f9a9ceb276c308bfa2a43fafb75c8031c4f66039e8c6e", size = 1817219 }, + { url = "https://files.pythonhosted.org/packages/57/82/bb16a68e4a1a858bb3768c2c8f1ff8d8978014e16598f001ea29a25bf1d1/pydantic_core-2.27.2-cp39-cp39-win_amd64.whl", hash = "sha256:77d1bca19b0f7021b3a982e6f903dcd5b2b06076def36a652e3907f596e29f67", size = 1985382 }, + { url = "https://files.pythonhosted.org/packages/46/72/af70981a341500419e67d5cb45abe552a7c74b66326ac8877588488da1ac/pydantic_core-2.27.2-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:2bf14caea37e91198329b828eae1618c068dfb8ef17bb33287a7ad4b61ac314e", size = 1891159 }, + { url = "https://files.pythonhosted.org/packages/ad/3d/c5913cccdef93e0a6a95c2d057d2c2cba347815c845cda79ddd3c0f5e17d/pydantic_core-2.27.2-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:b0cb791f5b45307caae8810c2023a184c74605ec3bcbb67d13846c28ff731ff8", size = 1768331 }, + { url = "https://files.pythonhosted.org/packages/f6/f0/a3ae8fbee269e4934f14e2e0e00928f9346c5943174f2811193113e58252/pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:688d3fd9fcb71f41c4c015c023d12a79d1c4c0732ec9eb35d96e3388a120dcf3", size = 1822467 }, + { url = "https://files.pythonhosted.org/packages/d7/7a/7bbf241a04e9f9ea24cd5874354a83526d639b02674648af3f350554276c/pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d591580c34f4d731592f0e9fe40f9cc1b430d297eecc70b962e93c5c668f15f", size = 1979797 }, + { url = "https://files.pythonhosted.org/packages/4f/5f/4784c6107731f89e0005a92ecb8a2efeafdb55eb992b8e9d0a2be5199335/pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:82f986faf4e644ffc189a7f1aafc86e46ef70372bb153e7001e8afccc6e54133", size = 1987839 }, + { url = "https://files.pythonhosted.org/packages/6d/a7/61246562b651dff00de86a5f01b6e4befb518df314c54dec187a78d81c84/pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:bec317a27290e2537f922639cafd54990551725fc844249e64c523301d0822fc", size = 1998861 }, + { url = "https://files.pythonhosted.org/packages/86/aa/837821ecf0c022bbb74ca132e117c358321e72e7f9702d1b6a03758545e2/pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:0296abcb83a797db256b773f45773da397da75a08f5fcaef41f2044adec05f50", size = 2116582 }, + { url = "https://files.pythonhosted.org/packages/81/b0/5e74656e95623cbaa0a6278d16cf15e10a51f6002e3ec126541e95c29ea3/pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:0d75070718e369e452075a6017fbf187f788e17ed67a3abd47fa934d001863d9", size = 2151985 }, + { url = "https://files.pythonhosted.org/packages/63/37/3e32eeb2a451fddaa3898e2163746b0cffbbdbb4740d38372db0490d67f3/pydantic_core-2.27.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:7e17b560be3c98a8e3aa66ce828bdebb9e9ac6ad5466fba92eb74c4c95cb1151", size = 2004715 }, + { url = "https://files.pythonhosted.org/packages/29/0e/dcaea00c9dbd0348b723cae82b0e0c122e0fa2b43fa933e1622fd237a3ee/pydantic_core-2.27.2-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c33939a82924da9ed65dab5a65d427205a73181d8098e79b6b426bdf8ad4e656", size = 1891733 }, + { url = "https://files.pythonhosted.org/packages/86/d3/e797bba8860ce650272bda6383a9d8cad1d1c9a75a640c9d0e848076f85e/pydantic_core-2.27.2-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:00bad2484fa6bda1e216e7345a798bd37c68fb2d97558edd584942aa41b7d278", size = 1768375 }, + { url = "https://files.pythonhosted.org/packages/41/f7/f847b15fb14978ca2b30262548f5fc4872b2724e90f116393eb69008299d/pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c817e2b40aba42bac6f457498dacabc568c3b7a986fc9ba7c8d9d260b71485fb", size = 1822307 }, + { url = "https://files.pythonhosted.org/packages/9c/63/ed80ec8255b587b2f108e514dc03eed1546cd00f0af281e699797f373f38/pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:251136cdad0cb722e93732cb45ca5299fb56e1344a833640bf93b2803f8d1bfd", size = 1979971 }, + { url = "https://files.pythonhosted.org/packages/a9/6d/6d18308a45454a0de0e975d70171cadaf454bc7a0bf86b9c7688e313f0bb/pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d2088237af596f0a524d3afc39ab3b036e8adb054ee57cbb1dcf8e09da5b29cc", size = 1987616 }, + { url = "https://files.pythonhosted.org/packages/82/8a/05f8780f2c1081b800a7ca54c1971e291c2d07d1a50fb23c7e4aef4ed403/pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:d4041c0b966a84b4ae7a09832eb691a35aec90910cd2dbe7a208de59be77965b", size = 1998943 }, + { url = "https://files.pythonhosted.org/packages/5e/3e/fe5b6613d9e4c0038434396b46c5303f5ade871166900b357ada4766c5b7/pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:8083d4e875ebe0b864ffef72a4304827015cff328a1be6e22cc850753bfb122b", size = 2116654 }, + { url = "https://files.pythonhosted.org/packages/db/ad/28869f58938fad8cc84739c4e592989730bfb69b7c90a8fff138dff18e1e/pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f141ee28a0ad2123b6611b6ceff018039df17f32ada8b534e6aa039545a3efb2", size = 2152292 }, + { url = "https://files.pythonhosted.org/packages/a1/0c/c5c5cd3689c32ed1fe8c5d234b079c12c281c051759770c05b8bed6412b5/pydantic_core-2.27.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7d0c8399fcc1848491f00e0314bd59fb34a9c008761bcb422a057670c3f65e35", size = 2004961 }, +] + +[[package]] +name = "pytest" +version = "8.3.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/05/35/30e0d83068951d90a01852cb1cef56e5d8a09d20c7f511634cc2f7e0372a/pytest-8.3.4.tar.gz", hash = "sha256:965370d062bce11e73868e0335abac31b4d3de0e82f4007408d242b4f8610761", size = 1445919 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl", hash = "sha256:50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6", size = 343083 }, +] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892 }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050 }, +] + +[[package]] +name = "tomli" +version = "2.2.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077 }, + { url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429 }, + { url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067 }, + { url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030 }, + { url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898 }, + { url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894 }, + { url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319 }, + { url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273 }, + { url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310 }, + { url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309 }, + { url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762 }, + { url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453 }, + { url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486 }, + { url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349 }, + { url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159 }, + { url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243 }, + { url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645 }, + { url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584 }, + { url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875 }, + { url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418 }, + { url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708 }, + { url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582 }, + { url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543 }, + { url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691 }, + { url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170 }, + { url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530 }, + { url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666 }, + { url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954 }, + { url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724 }, + { url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383 }, + { url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257 }, +] + +[[package]] +name = "typing-extensions" +version = "4.12.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 }, +] + +[[package]] +name = "urllib3" +version = "2.2.3" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.9'", +] +sdist = { url = "https://files.pythonhosted.org/packages/ed/63/22ba4ebfe7430b76388e7cd448d5478814d3032121827c12a2cc287e2260/urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9", size = 300677 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac", size = 126338 }, +] + +[[package]] +name = "urllib3" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.9'", +] +sdist = { url = "https://files.pythonhosted.org/packages/aa/63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66/urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d", size = 307268 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c8/19/4ec628951a74043532ca2cf5d97b7b14863931476d117c471e8e2b1eb39f/urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df", size = 128369 }, +] From 667afa5ffc6178cd52db88521b50c763b0a3e7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Mon, 20 Jan 2025 15:59:45 +0100 Subject: [PATCH 02/46] feat: add package file --- PACKAGE | 1 + 1 file changed, 1 insertion(+) create mode 100644 PACKAGE diff --git a/PACKAGE b/PACKAGE new file mode 100644 index 0000000..aa69045 --- /dev/null +++ b/PACKAGE @@ -0,0 +1 @@ +cloudbeds_pms_v1_2 From b3545843ad669509922629a0fb61a59a607cbc80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Mon, 20 Jan 2025 16:10:03 +0100 Subject: [PATCH 03/46] feat: add input spec to openapitools.json --- openapitools.json | 1 + 1 file changed, 1 insertion(+) diff --git a/openapitools.json b/openapitools.json index af61fa5..a16b431 100644 --- a/openapitools.json +++ b/openapitools.json @@ -3,6 +3,7 @@ "version": "7.9.0" }, "generatorName": "python", + "inputSpec": "public_accessa/api/v1.2/docs/cb-v1.2-openapi-3.0.1.yaml", "outputDir": ".", "validateSpec": false, "additionalProperties": { From c5eb17b9175b651f228db33e5c55618475a2da52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Thu, 30 Jan 2025 14:10:15 +0100 Subject: [PATCH 04/46] ci: add publish.yaml to v1 as well --- .github/workflows/publish.yaml | 141 +++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..c5086c9 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,141 @@ +name: Publish new version + +on: + workflow_dispatch: + inputs: + version: + description: 'The version to release' + required: false + default: "" + +permissions: + contents: write + +jobs: + generate-api-docs: + name: Update version and build python module + runs-on: default + permissions: + id-token: write + contents: read + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Get GH app token + id: gh-app-token + uses: cloudbeds/composite-actions/gh-app-token@v2 + + - name: Get API docs + env: + GITHUB_TOKEN: ${{ steps.gh-app-token.outputs.github-token }} + run: | + MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name') + echo "Latest MFD tag: $MFD_TAG" + gh api /repos/cloudbeds/mfd/tarball/$MFD_TAG | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api' + + - name: Get next version + id: get_next_version + run: | + if [ -n "${{ github.event.inputs.version }}" ]; then + echo "next_version=${{ github.event.inputs.version }}" >> $GITHUB_ENV + echo "Version provided: ${{ github.event.inputs.version }}" + else + current_version=$(cat VERSION) + echo "Current version: $current_version" + + IFS='.' read -r major minor patch <<< "$current_version" + minor=$((minor + 1)) + next_version="$major.$minor.$patch" + echo "Next version: $next_version" + + echo "next_version=$next_version" >> $GITHUB_ENV + fi + + - name: Setup Java + uses: actions/setup-java@v4 + with: + java-version: 23 + distribution: corretto + + - name: Install OpenAPI generator + run: | + curl -s https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.9.0/openapi-generator-cli-$(cat .openapi-generator/VERSION).jar -o openapi-generator-cli.jar + + - name: Bump version in VERSION and openapitools.json + run: | + echo ${{ env.next_version }} > VERSION + sed -i 's/"packageVersion": "[0-9]*\.[0-9]*\.[0-9]*"/"packageVersion": "${{ env.next_version }}"/' openapitools.json + + - name: Generate API docs + run: | + java -jar openapi-generator-cli.jar generate -c openapitools.json + + - name: Update repository with new version + if: github.event.inputs.version == '' + run: | + git config --global user.name "github-actions" + git config --global user.email "github-actions@users.noreply.github.com" + git add VERSION openapitools.json $(cat PACKAGE) README.md .openapi-generator/FILES + git commit -m "Bump version to ${{ env.next_version }}" + git push + + build-release: + name: Build release distribution + runs-on: default + needs: generate-api-docs + env: + UV_VERSION: 0.5.21 + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version-file: .python-version + + - name: Build release distributions + run: | + pip install "uv==${{ env.UV_VERSION }}" + uv sync --locked --no-dev + uv build + + - name: Upload distributions + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Create Release + id: create_release + if: github.event.inputs.version == '' + env: + GITHUB_TOKEN: ${{ github.token }} + run: >- + gh release create $(cat VERSION) + --notes $(cat VERSION) + --target ${{ github.ref_name }} + --title $(cat VERSION) + + pypi-publish: + name: Publish to PyPI + runs-on: default + needs: build-release + environment: + name: pypi + permissions: + id-token: write + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ From ca8a476417beca14c7d515946aa797b5ea66cfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Thu, 30 Jan 2025 14:14:22 +0100 Subject: [PATCH 05/46] fix: update lock file --- uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uv.lock b/uv.lock index b956d8a..3844bcc 100644 --- a/uv.lock +++ b/uv.lock @@ -18,7 +18,7 @@ wheels = [ ] [[package]] -name = "cloudbeds-pms" +name = "cloudbeds-pms-v1-2" source = { editable = "." } dependencies = [ { name = "pydantic" }, From 48b10299eea002679d16652b3c53caecdb4e0938 Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Thu, 30 Jan 2025 14:47:32 +0100 Subject: [PATCH 06/46] ci: backport changes in main --- .github/workflows/publish.yaml | 28 +++++++++++++++++++--------- .gitignore | 3 +++ 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c5086c9..51ff40e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -19,12 +19,18 @@ jobs: id-token: write contents: read steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Get GH app token id: gh-app-token uses: cloudbeds/composite-actions/gh-app-token@v2 + with: + app_id: 391670 + aws_role_arn: arn:aws:iam::048781935247:role/GH-APP-OIDC-CBMyFrontDesk + aws_ssm_param_name: /github/app/CBMyFrontDesk/private-key + + - name: Checkout code + uses: actions/checkout@v4 + with: + token: ${{ steps.gh-app-token.outputs.github-token }} - name: Get API docs env: @@ -37,9 +43,9 @@ jobs: - name: Get next version id: get_next_version run: | - if [ -n "${{ github.event.inputs.version }}" ]; then - echo "next_version=${{ github.event.inputs.version }}" >> $GITHUB_ENV - echo "Version provided: ${{ github.event.inputs.version }}" + if [ -n "${{ inputs.version }}" ]; then + echo "next_version=${{ inputs.version }}" >> $GITHUB_ENV + echo "Version provided: ${{ inputs.version }}" else current_version=$(cat VERSION) echo "Current version: $current_version" @@ -71,11 +77,15 @@ jobs: run: | java -jar openapi-generator-cli.jar generate -c openapitools.json - - name: Update repository with new version - if: github.event.inputs.version == '' + - name: Git Setup + if: inputs.version == '' run: | git config --global user.name "github-actions" git config --global user.email "github-actions@users.noreply.github.com" + + - name: Update repository with new version + if: inputs.version == '' + run: | git add VERSION openapitools.json $(cat PACKAGE) README.md .openapi-generator/FILES git commit -m "Bump version to ${{ env.next_version }}" git push @@ -111,7 +121,7 @@ jobs: - name: Create Release id: create_release - if: github.event.inputs.version == '' + if: inputs.version == '' env: GITHUB_TOKEN: ${{ github.token }} run: >- diff --git a/.gitignore b/.gitignore index 6b562ea..f8352a5 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ wheels/ # Virtual environments .venv .idea + +public_accessa/ +*.jar From 83f9db1de17b4823935e8e82b7a6429ddd552689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Thu, 30 Jan 2025 21:32:48 +0100 Subject: [PATCH 07/46] chore: backport changes for openapi generator version and pytyped from main --- .github/workflows/publish.yaml | 4 +++- .openapi-generator/VERSION | 2 +- cloudbeds_pms_v1_2/py.typed | 0 openapitools.json | 2 +- pyproject.toml | 3 +++ 5 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 cloudbeds_pms_v1_2/py.typed diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 51ff40e..0abe23b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -66,7 +66,8 @@ jobs: - name: Install OpenAPI generator run: | - curl -s https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.9.0/openapi-generator-cli-$(cat .openapi-generator/VERSION).jar -o openapi-generator-cli.jar + OPENAPI_GENERATOR_VERSION=$(cat .openapi-generator/VERSION) + curl -s https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$OPENAPI_GENERATOR_VERSION/openapi-generator-cli-$OPENAPI_GENERATOR_VERSION.jar -o openapi-generator-cli.jar - name: Bump version in VERSION and openapitools.json run: | @@ -75,6 +76,7 @@ jobs: - name: Generate API docs run: | + find $(cat PACKAGE) -mindepth 1 ! -name 'py.typed' -delete java -jar openapi-generator-cli.jar generate -c openapitools.json - name: Git Setup diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 4bc5d61..b23eb27 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.9.0 +7.11.0 diff --git a/cloudbeds_pms_v1_2/py.typed b/cloudbeds_pms_v1_2/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/openapitools.json b/openapitools.json index a16b431..0c7f90d 100644 --- a/openapitools.json +++ b/openapitools.json @@ -1,6 +1,6 @@ { "generator-cli": { - "version": "7.9.0" + "version": "7.11.0" }, "generatorName": "python", "inputSpec": "public_accessa/api/v1.2/docs/cb-v1.2-openapi-3.0.1.yaml", diff --git a/pyproject.toml b/pyproject.toml index ba5614b..fd76f3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,3 +58,6 @@ where = ["."] [tool.setuptools.dynamic] version = { file = "VERSION" } + +[tool.setuptools.package-data] +"cloudbeds_pms_v1_2" = ["py.typed"] From 627f1e73db43c6d513fb4b92dd4a1685ff2bde9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Fri, 31 Jan 2025 13:37:36 +0100 Subject: [PATCH 08/46] chore: backport runners change from main -> use ubuntu latest instead of our default runners --- .github/workflows/publish.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0abe23b..9ff8517 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -14,7 +14,7 @@ permissions: jobs: generate-api-docs: name: Update version and build python module - runs-on: default + runs-on: ubuntu-latest permissions: id-token: write contents: read @@ -94,7 +94,7 @@ jobs: build-release: name: Build release distribution - runs-on: default + runs-on: ubuntu-latest needs: generate-api-docs env: UV_VERSION: 0.5.21 @@ -134,7 +134,7 @@ jobs: pypi-publish: name: Publish to PyPI - runs-on: default + runs-on: ubuntu-latest needs: build-release environment: name: pypi From 1f3ef6fbba886a2931b60d8f7dfa9cfd6b69a4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Fri, 31 Jan 2025 13:57:32 +0100 Subject: [PATCH 09/46] fix: inline org action that gets a token for aws --- .github/workflows/publish.yaml | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9ff8517..4e9c73b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -19,13 +19,34 @@ jobs: id-token: write contents: read steps: - - name: Get GH app token - id: gh-app-token - uses: cloudbeds/composite-actions/gh-app-token@v2 + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::048781935247:role/GH-APP-OIDC-CBMyFrontDesk + aws-region: us-west-2 + + - name: Get app private key from SSM and apply mask + id: app-private-key + shell: bash + run: | + aws ssm get-parameter --name /github/app/CBMyFrontDesk/private-key --output text --with-decryption --query Parameter.Value > private.key + echo "APP_PRIVATE_KEY<> $GITHUB_ENV + cat private.key >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV + while read -r line; + do + if [[ -n "${line}" ]]; then + echo "::add-mask::${line}" + fi + done < private.key + rm private.key + + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@v2 with: app_id: 391670 - aws_role_arn: arn:aws:iam::048781935247:role/GH-APP-OIDC-CBMyFrontDesk - aws_ssm_param_name: /github/app/CBMyFrontDesk/private-key + private_key: ${{ env.APP_PRIVATE_KEY }} - name: Checkout code uses: actions/checkout@v4 From f574b2ca75a7ec5def4f7c789e8c0cac3aadeaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Fri, 31 Jan 2025 14:18:49 +0100 Subject: [PATCH 10/46] fix: refactor app private key to be output instead of being in env Co-authored-by: Emmanuel Rodriguez <56197+potyl@users.noreply.github.com> --- .github/workflows/publish.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4e9c73b..4b8a0fc 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -30,9 +30,11 @@ jobs: shell: bash run: | aws ssm get-parameter --name /github/app/CBMyFrontDesk/private-key --output text --with-decryption --query Parameter.Value > private.key - echo "APP_PRIVATE_KEY<> $GITHUB_ENV - cat private.key >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV + { + echo "key<> $GITHUB_OUTPUT while read -r line; do if [[ -n "${line}" ]]; then @@ -46,7 +48,7 @@ jobs: uses: tibdex/github-app-token@v2 with: app_id: 391670 - private_key: ${{ env.APP_PRIVATE_KEY }} + private_key: ${{ steps.app-private-key.outputs.key }} - name: Checkout code uses: actions/checkout@v4 From 2e7d2b8db7c236a8d079852c4b9fc842580b2fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Fri, 31 Jan 2025 14:26:56 +0100 Subject: [PATCH 11/46] fix: replace how we get github app token --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4b8a0fc..dde096f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -53,11 +53,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - token: ${{ steps.gh-app-token.outputs.github-token }} + token: ${{ steps.generate_token.outputs.token }} - name: Get API docs env: - GITHUB_TOKEN: ${{ steps.gh-app-token.outputs.github-token }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} run: | MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name') echo "Latest MFD tag: $MFD_TAG" From 48605912bf3862926079158147a7298429e3674b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Fri, 31 Jan 2025 14:32:29 +0100 Subject: [PATCH 12/46] fix: replace underscores with dashes in ids, removed unused ids --- .github/workflows/publish.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index dde096f..90a205f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -44,7 +44,7 @@ jobs: rm private.key - name: Generate token - id: generate_token + id: generate-token uses: tibdex/github-app-token@v2 with: app_id: 391670 @@ -53,18 +53,17 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - token: ${{ steps.generate_token.outputs.token }} + token: ${{ steps.generate-token.outputs.token }} - name: Get API docs env: - GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} run: | MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name') echo "Latest MFD tag: $MFD_TAG" gh api /repos/cloudbeds/mfd/tarball/$MFD_TAG | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api' - name: Get next version - id: get_next_version run: | if [ -n "${{ inputs.version }}" ]; then echo "next_version=${{ inputs.version }}" >> $GITHUB_ENV @@ -145,7 +144,6 @@ jobs: path: dist/ - name: Create Release - id: create_release if: inputs.version == '' env: GITHUB_TOKEN: ${{ github.token }} From af8ccefa08693bc3e183fd3dd1c2ad80cf1c1795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Fri, 31 Jan 2025 14:49:38 +0100 Subject: [PATCH 13/46] chore: backport custom mfd version to v1 --- .github/workflows/publish.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 90a205f..177ae0d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,6 +7,10 @@ on: description: 'The version to release' required: false default: "" + mfd-tag: + description: 'The MFD tag to use for API docs' + required: false + default: "" permissions: contents: write @@ -59,7 +63,10 @@ jobs: env: GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} run: | - MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name') + MFD_TAG='${{ inputs.mfd-tag }}' + if [[ -z "${MFD_TAG}" ]]; then + MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name') + fi echo "Latest MFD tag: $MFD_TAG" gh api /repos/cloudbeds/mfd/tarball/$MFD_TAG | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api' From 260da2578ac1faea34c088786e449f6013721d76 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 31 Jan 2025 13:56:29 +0000 Subject: [PATCH 14/46] Bump version to 1.1.0 --- README.md | 6 +- VERSION | 2 +- cloudbeds_pms_v1_2/__init__.py | 2 +- cloudbeds_pms_v1_2/api/groups_api.py | 90 ++++---- cloudbeds_pms_v1_2/api/guest_api.py | 85 ++++++++ cloudbeds_pms_v1_2/api/reservation_api.py | 17 ++ cloudbeds_pms_v1_2/api_client.py | 4 +- cloudbeds_pms_v1_2/configuration.py | 193 ++++++++++++++---- .../docs/GetGroupsResponseDataInner.md | 1 + cloudbeds_pms_v1_2/docs/GroupsApi.md | 34 +-- cloudbeds_pms_v1_2/docs/GuestApi.md | 14 +- cloudbeds_pms_v1_2/docs/ReservationApi.md | 6 +- cloudbeds_pms_v1_2/exceptions.py | 17 ++ .../models/get_groups_response_data_inner.py | 16 +- .../test/test_get_groups_response.py | 3 +- .../test_get_groups_response_data_inner.py | 3 +- openapitools.json | 2 +- 17 files changed, 379 insertions(+), 116 deletions(-) diff --git a/README.md b/README.md index b2e4749..d029395 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ The `cloudbeds_pms_v1_2` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.2 -- Package version: 1.0.0 -- Generator version: 7.9.0 +- Package version: 1.1.0 +- Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. -Python 3.7+ +Python 3.8+ ## Installation & Usage diff --git a/VERSION b/VERSION index 3eefcb9..9084fa2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.1.0 diff --git a/cloudbeds_pms_v1_2/__init__.py b/cloudbeds_pms_v1_2/__init__.py index b3c3da0..fee0ded 100644 --- a/cloudbeds_pms_v1_2/__init__.py +++ b/cloudbeds_pms_v1_2/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.0.0" +__version__ = "1.1.0" # import apis into sdk package from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi diff --git a/cloudbeds_pms_v1_2/api/groups_api.py b/cloudbeds_pms_v1_2/api/groups_api.py index c6ecc5d..e2624c2 100644 --- a/cloudbeds_pms_v1_2/api/groups_api.py +++ b/cloudbeds_pms_v1_2/api/groups_api.py @@ -363,13 +363,13 @@ def _get_group_notes_get_serialize( def get_groups_get( self, property_id: Annotated[StrictStr, Field(description="Property ID")], - group_code: Annotated[StrictStr, Field(description="Unique ID for a group")], - type: Annotated[StrictStr, Field(description="The type of group")], - status: Annotated[StrictStr, Field(description="Group status")], - created_from: Annotated[datetime, Field(description="Datetime (lower limit) to be queried")], - created_to: Annotated[datetime, Field(description="Datetime (upper limit) to be queried")], - page_size: Annotated[StrictInt, Field(description="Number of groups to return per page (min: 1, max: 100)")], - page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + group_code: Annotated[Optional[StrictStr], Field(description="Unique ID for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of groups to return per page (min: 1, max: 100)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -385,23 +385,23 @@ def get_groups_get( ) -> GetGroupsResponse: """getGroups - Returns groups of allotment block + Returns the groups for a property :param property_id: Property ID (required) :type property_id: str - :param group_code: Unique ID for a group (required) + :param group_code: Unique ID for a group :type group_code: str - :param type: The type of group (required) + :param type: The type of group :type type: str - :param status: Group status (required) + :param status: Group status :type status: str - :param created_from: Datetime (lower limit) to be queried (required) + :param created_from: Datetime (lower limit) to be queried :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried (required) + :param created_to: Datetime (upper limit) to be queried :type created_to: datetime - :param page_size: Number of groups to return per page (min: 1, max: 100) (required) + :param page_size: Number of groups to return per page (min: 1, max: 100) :type page_size: int - :param page_number: Which page in the results to access (required) + :param page_number: Which page in the results to access :type page_number: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -458,13 +458,13 @@ def get_groups_get( def get_groups_get_with_http_info( self, property_id: Annotated[StrictStr, Field(description="Property ID")], - group_code: Annotated[StrictStr, Field(description="Unique ID for a group")], - type: Annotated[StrictStr, Field(description="The type of group")], - status: Annotated[StrictStr, Field(description="Group status")], - created_from: Annotated[datetime, Field(description="Datetime (lower limit) to be queried")], - created_to: Annotated[datetime, Field(description="Datetime (upper limit) to be queried")], - page_size: Annotated[StrictInt, Field(description="Number of groups to return per page (min: 1, max: 100)")], - page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + group_code: Annotated[Optional[StrictStr], Field(description="Unique ID for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of groups to return per page (min: 1, max: 100)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -480,23 +480,23 @@ def get_groups_get_with_http_info( ) -> ApiResponse[GetGroupsResponse]: """getGroups - Returns groups of allotment block + Returns the groups for a property :param property_id: Property ID (required) :type property_id: str - :param group_code: Unique ID for a group (required) + :param group_code: Unique ID for a group :type group_code: str - :param type: The type of group (required) + :param type: The type of group :type type: str - :param status: Group status (required) + :param status: Group status :type status: str - :param created_from: Datetime (lower limit) to be queried (required) + :param created_from: Datetime (lower limit) to be queried :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried (required) + :param created_to: Datetime (upper limit) to be queried :type created_to: datetime - :param page_size: Number of groups to return per page (min: 1, max: 100) (required) + :param page_size: Number of groups to return per page (min: 1, max: 100) :type page_size: int - :param page_number: Which page in the results to access (required) + :param page_number: Which page in the results to access :type page_number: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -553,13 +553,13 @@ def get_groups_get_with_http_info( def get_groups_get_without_preload_content( self, property_id: Annotated[StrictStr, Field(description="Property ID")], - group_code: Annotated[StrictStr, Field(description="Unique ID for a group")], - type: Annotated[StrictStr, Field(description="The type of group")], - status: Annotated[StrictStr, Field(description="Group status")], - created_from: Annotated[datetime, Field(description="Datetime (lower limit) to be queried")], - created_to: Annotated[datetime, Field(description="Datetime (upper limit) to be queried")], - page_size: Annotated[StrictInt, Field(description="Number of groups to return per page (min: 1, max: 100)")], - page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + group_code: Annotated[Optional[StrictStr], Field(description="Unique ID for a group")] = None, + type: Annotated[Optional[StrictStr], Field(description="The type of group")] = None, + status: Annotated[Optional[StrictStr], Field(description="Group status")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of groups to return per page (min: 1, max: 100)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -575,23 +575,23 @@ def get_groups_get_without_preload_content( ) -> RESTResponseType: """getGroups - Returns groups of allotment block + Returns the groups for a property :param property_id: Property ID (required) :type property_id: str - :param group_code: Unique ID for a group (required) + :param group_code: Unique ID for a group :type group_code: str - :param type: The type of group (required) + :param type: The type of group :type type: str - :param status: Group status (required) + :param status: Group status :type status: str - :param created_from: Datetime (lower limit) to be queried (required) + :param created_from: Datetime (lower limit) to be queried :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried (required) + :param created_to: Datetime (upper limit) to be queried :type created_to: datetime - :param page_size: Number of groups to return per page (min: 1, max: 100) (required) + :param page_size: Number of groups to return per page (min: 1, max: 100) :type page_size: int - :param page_number: Which page in the results to access (required) + :param page_number: Which page in the results to access :type page_number: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/cloudbeds_pms_v1_2/api/guest_api.py b/cloudbeds_pms_v1_2/api/guest_api.py index 382737b..9442bab 100644 --- a/cloudbeds_pms_v1_2/api/guest_api.py +++ b/cloudbeds_pms_v1_2/api/guest_api.py @@ -661,6 +661,11 @@ def get_guest_list_get( check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest First Name")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Last Name")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Phone Number")] = None, + guest_cell_phone: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Cell Phone Number")] = None, status: Annotated[Optional[StrictStr], Field(description="Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed")] = None, sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, @@ -698,6 +703,16 @@ def get_guest_list_get( :type check_out_from: date :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date :type check_out_to: date + :param guest_first_name: Filters guests result based on Guest First Name + :type guest_first_name: str + :param guest_last_name: Filters guests result based on Guest Last Name + :type guest_last_name: str + :param guest_email: Filters guests result based on Guest Email + :type guest_email: str + :param guest_phone: Filters guests result based on Guest Phone Number + :type guest_phone: str + :param guest_cell_phone: Filters guests result based on Guest Cell Phone Number + :type guest_cell_phone: str :param status: Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed :type status: str :param sort_by: Sort By parameter @@ -740,6 +755,11 @@ def get_guest_list_get( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, @@ -776,6 +796,11 @@ def get_guest_list_get_with_http_info( check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest First Name")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Last Name")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Phone Number")] = None, + guest_cell_phone: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Cell Phone Number")] = None, status: Annotated[Optional[StrictStr], Field(description="Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed")] = None, sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, @@ -813,6 +838,16 @@ def get_guest_list_get_with_http_info( :type check_out_from: date :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date :type check_out_to: date + :param guest_first_name: Filters guests result based on Guest First Name + :type guest_first_name: str + :param guest_last_name: Filters guests result based on Guest Last Name + :type guest_last_name: str + :param guest_email: Filters guests result based on Guest Email + :type guest_email: str + :param guest_phone: Filters guests result based on Guest Phone Number + :type guest_phone: str + :param guest_cell_phone: Filters guests result based on Guest Cell Phone Number + :type guest_cell_phone: str :param status: Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed :type status: str :param sort_by: Sort By parameter @@ -855,6 +890,11 @@ def get_guest_list_get_with_http_info( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, @@ -891,6 +931,11 @@ def get_guest_list_get_without_preload_content( check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest First Name")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Last Name")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Phone Number")] = None, + guest_cell_phone: Annotated[Optional[StrictStr], Field(description="Filters guests result based on Guest Cell Phone Number")] = None, status: Annotated[Optional[StrictStr], Field(description="Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed")] = None, sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, @@ -928,6 +973,16 @@ def get_guest_list_get_without_preload_content( :type check_out_from: date :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date :type check_out_to: date + :param guest_first_name: Filters guests result based on Guest First Name + :type guest_first_name: str + :param guest_last_name: Filters guests result based on Guest Last Name + :type guest_last_name: str + :param guest_email: Filters guests result based on Guest Email + :type guest_email: str + :param guest_phone: Filters guests result based on Guest Phone Number + :type guest_phone: str + :param guest_cell_phone: Filters guests result based on Guest Cell Phone Number + :type guest_cell_phone: str :param status: Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed :type status: str :param sort_by: Sort By parameter @@ -970,6 +1025,11 @@ def get_guest_list_get_without_preload_content( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_email=guest_email, + guest_phone=guest_phone, + guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, @@ -1001,6 +1061,11 @@ def _get_guest_list_get_serialize( check_in_to, check_out_from, check_out_to, + guest_first_name, + guest_last_name, + guest_email, + guest_phone, + guest_cell_phone, status, sort_by, include_guest_info, @@ -1111,6 +1176,26 @@ def _get_guest_list_get_serialize( else: _query_params.append(('checkOutTo', check_out_to)) + if guest_first_name is not None: + + _query_params.append(('guestFirstName', guest_first_name)) + + if guest_last_name is not None: + + _query_params.append(('guestLastName', guest_last_name)) + + if guest_email is not None: + + _query_params.append(('guestEmail', guest_email)) + + if guest_phone is not None: + + _query_params.append(('guestPhone', guest_phone)) + + if guest_cell_phone is not None: + + _query_params.append(('guestCellPhone', guest_cell_phone)) + if status is not None: _query_params.append(('status', status)) diff --git a/cloudbeds_pms_v1_2/api/reservation_api.py b/cloudbeds_pms_v1_2/api/reservation_api.py index 7c917dd..582cfcc 100644 --- a/cloudbeds_pms_v1_2/api/reservation_api.py +++ b/cloudbeds_pms_v1_2/api/reservation_api.py @@ -1512,6 +1512,7 @@ def get_reservations_get( rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, @@ -1572,6 +1573,8 @@ def get_reservations_get( :type first_name: str :param last_name: Filters reservation with the supplied primary guest last name. :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str :param sort_by_recent: Sort response results by most recent action :type sort_by_recent: bool :param page_number: Results page number @@ -1621,6 +1624,7 @@ def get_reservations_get( rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, + guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size, @@ -1667,6 +1671,7 @@ def get_reservations_get_with_http_info( rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, @@ -1727,6 +1732,8 @@ def get_reservations_get_with_http_info( :type first_name: str :param last_name: Filters reservation with the supplied primary guest last name. :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str :param sort_by_recent: Sort response results by most recent action :type sort_by_recent: bool :param page_number: Results page number @@ -1776,6 +1783,7 @@ def get_reservations_get_with_http_info( rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, + guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size, @@ -1822,6 +1830,7 @@ def get_reservations_get_without_preload_content( rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, @@ -1882,6 +1891,8 @@ def get_reservations_get_without_preload_content( :type first_name: str :param last_name: Filters reservation with the supplied primary guest last name. :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str :param sort_by_recent: Sort response results by most recent action :type sort_by_recent: bool :param page_number: Results page number @@ -1931,6 +1942,7 @@ def get_reservations_get_without_preload_content( rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, + guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size, @@ -1972,6 +1984,7 @@ def _get_reservations_get_serialize( rate_plan_id, first_name, last_name, + guest_id, sort_by_recent, page_number, page_size, @@ -2149,6 +2162,10 @@ def _get_reservations_get_serialize( _query_params.append(('lastName', last_name)) + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + if sort_by_recent is not None: _query_params.append(('sortByRecent', sort_by_recent)) diff --git a/cloudbeds_pms_v1_2/api_client.py b/cloudbeds_pms_v1_2/api_client.py index 91e7c73..3fa7738 100644 --- a/cloudbeds_pms_v1_2/api_client.py +++ b/cloudbeds_pms_v1_2/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.user_agent = 'OpenAPI-Generator/1.1.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -517,7 +517,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' diff --git a/cloudbeds_pms_v1_2/configuration.py b/cloudbeds_pms_v1_2/configuration.py index 3bafd70..25b5168 100644 --- a/cloudbeds_pms_v1_2/configuration.py +++ b/cloudbeds_pms_v1_2/configuration.py @@ -13,14 +13,16 @@ import copy +import http.client as httplib import logging from logging import FileHandler import multiprocessing import sys -from typing import Optional +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing_extensions import NotRequired, Self + import urllib3 -import http.client as httplib JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', @@ -28,6 +30,108 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } +ServerVariablesT = Dict[str, str] + +GenericAuthSetting = TypedDict( + "GenericAuthSetting", + { + "type": str, + "in": str, + "key": str, + "value": str, + }, +) + + +OAuth2AuthSetting = TypedDict( + "OAuth2AuthSetting", + { + "type": Literal["oauth2"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +APIKeyAuthSetting = TypedDict( + "APIKeyAuthSetting", + { + "type": Literal["api_key"], + "in": str, + "key": str, + "value": Optional[str], + }, +) + + +BasicAuthSetting = TypedDict( + "BasicAuthSetting", + { + "type": Literal["basic"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": Optional[str], + }, +) + + +BearerFormatAuthSetting = TypedDict( + "BearerFormatAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "format": Literal["JWT"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +BearerAuthSetting = TypedDict( + "BearerAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +HTTPSignatureAuthSetting = TypedDict( + "HTTPSignatureAuthSetting", + { + "type": Literal["http-signature"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": None, + }, +) + + +AuthSettings = TypedDict( + "AuthSettings", + { + "api_key": APIKeyAuthSetting, + "OAuth2": OAuth2AuthSetting, + }, + total=False, +) + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] + + class Configuration: """This class contains various settings of the API client. @@ -81,20 +185,26 @@ class Configuration: Cookie: JSESSIONID abc123 """ - _default = None - - def __init__(self, host=None, - api_key=None, api_key_prefix=None, - username=None, password=None, - access_token=None, - server_index=None, server_variables=None, - server_operation_index=None, server_operation_variables=None, - ignore_operation_servers=False, - ssl_ca_cert=None, - retries=None, - *, - debug: Optional[bool] = None - ) -> None: + _default: ClassVar[Optional[Self]] = None + + def __init__( + self, + host: Optional[str]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, + username: Optional[str]=None, + password: Optional[str]=None, + access_token: Optional[str]=None, + server_index: Optional[int]=None, + server_variables: Optional[ServerVariablesT]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + ignore_operation_servers: bool=False, + ssl_ca_cert: Optional[str]=None, + retries: Optional[int] = None, + *, + debug: Optional[bool] = None, + ) -> None: """Constructor """ self._base_path = "https://api.cloudbeds.com/api/v1.2" if host is None else host @@ -218,7 +328,7 @@ def __init__(self, host=None, """date format """ - def __deepcopy__(self, memo): + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -232,11 +342,11 @@ def __deepcopy__(self, memo): result.debug = self.debug return result - def __setattr__(self, name, value): + def __setattr__(self, name: str, value: Any) -> None: object.__setattr__(self, name, value) @classmethod - def set_default(cls, default): + def set_default(cls, default: Optional[Self]) -> None: """Set default instance of configuration. It stores default configuration, which can be @@ -247,7 +357,7 @@ def set_default(cls, default): cls._default = default @classmethod - def get_default_copy(cls): + def get_default_copy(cls) -> Self: """Deprecated. Please use `get_default` instead. Deprecated. Please use `get_default` instead. @@ -257,7 +367,7 @@ def get_default_copy(cls): return cls.get_default() @classmethod - def get_default(cls): + def get_default(cls) -> Self: """Return the default configuration. This method returns newly created, based on default constructor, @@ -267,11 +377,11 @@ def get_default(cls): :return: The configuration object. """ if cls._default is None: - cls._default = Configuration() + cls._default = cls() return cls._default @property - def logger_file(self): + def logger_file(self) -> Optional[str]: """The logger file. If the logger_file is None, then add stream handler and remove file @@ -283,7 +393,7 @@ def logger_file(self): return self.__logger_file @logger_file.setter - def logger_file(self, value): + def logger_file(self, value: Optional[str]) -> None: """The logger file. If the logger_file is None, then add stream handler and remove file @@ -302,7 +412,7 @@ def logger_file(self, value): logger.addHandler(self.logger_file_handler) @property - def debug(self): + def debug(self) -> bool: """Debug status :param value: The debug status, True or False. @@ -311,7 +421,7 @@ def debug(self): return self.__debug @debug.setter - def debug(self, value): + def debug(self, value: bool) -> None: """Debug status :param value: The debug status, True or False. @@ -333,7 +443,7 @@ def debug(self, value): httplib.HTTPConnection.debuglevel = 0 @property - def logger_format(self): + def logger_format(self) -> str: """The logger format. The logger_formatter will be updated when sets logger_format. @@ -344,7 +454,7 @@ def logger_format(self): return self.__logger_format @logger_format.setter - def logger_format(self, value): + def logger_format(self, value: str) -> None: """The logger format. The logger_formatter will be updated when sets logger_format. @@ -355,7 +465,7 @@ def logger_format(self, value): self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix(self, identifier, alias=None): + def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. @@ -372,7 +482,9 @@ def get_api_key_with_prefix(self, identifier, alias=None): else: return key - def get_basic_auth_token(self): + return None + + def get_basic_auth_token(self) -> Optional[str]: """Gets HTTP basic authentication header (string). :return: The token for basic HTTP authentication. @@ -387,12 +499,12 @@ def get_basic_auth_token(self): basic_auth=username + ':' + password ).get('authorization') - def auth_settings(self): + def auth_settings(self)-> AuthSettings: """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ - auth = {} + auth: AuthSettings = {} if 'api_key' in self.api_key: auth['api_key'] = { 'type': 'api_key', @@ -411,7 +523,7 @@ def auth_settings(self): } return auth - def to_debug_report(self): + def to_debug_report(self) -> str: """Gets the essential information for debugging. :return: The report for debugging. @@ -420,10 +532,10 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.2\n"\ - "SDK Package Version: 1.0.0".\ + "SDK Package Version: 1.1.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self): + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -435,7 +547,12 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT]=None, + servers: Optional[List[HostSetting]]=None, + ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings :param variables: hash of variable and the corresponding value @@ -475,12 +592,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): return url @property - def host(self): + def host(self) -> str: """Return generated host.""" return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter - def host(self, value): + def host(self, value: str) -> None: """Fix base path.""" self._base_path = value self.server_index = None diff --git a/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md index cbdde7c..e26c8f8 100644 --- a/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md +++ b/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **zip** | **str** | Zip | [optional] **state** | **str** | State | [optional] +**commission_type** | **str** | Commission type | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/GroupsApi.md b/cloudbeds_pms_v1_2/docs/GroupsApi.md index fa61fb3..ef20c75 100644 --- a/cloudbeds_pms_v1_2/docs/GroupsApi.md +++ b/cloudbeds_pms_v1_2/docs/GroupsApi.md @@ -100,11 +100,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_groups_get** -> GetGroupsResponse get_groups_get(property_id, group_code, type, status, created_from, created_to, page_size, page_number) +> GetGroupsResponse get_groups_get(property_id, group_code=group_code, type=type, status=status, created_from=created_from, created_to=created_to, page_size=page_size, page_number=page_number) getGroups -Returns groups of allotment block +Returns the groups for a property ### Example @@ -141,17 +141,17 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) property_id = 'property_id_example' # str | Property ID - group_code = 'group_code_example' # str | Unique ID for a group - type = 'type_example' # str | The type of group - status = 'status_example' # str | Group status - created_from = '2013-10-20T19:20:30+01:00' # datetime | Datetime (lower limit) to be queried - created_to = '2013-10-20T19:20:30+01:00' # datetime | Datetime (upper limit) to be queried - page_size = 56 # int | Number of groups to return per page (min: 1, max: 100) - page_number = 56 # int | Which page in the results to access + group_code = 'group_code_example' # str | Unique ID for a group (optional) + type = 'type_example' # str | The type of group (optional) + status = 'status_example' # str | Group status (optional) + created_from = '2013-10-20T19:20:30+01:00' # datetime | Datetime (lower limit) to be queried (optional) + created_to = '2013-10-20T19:20:30+01:00' # datetime | Datetime (upper limit) to be queried (optional) + page_size = 56 # int | Number of groups to return per page (min: 1, max: 100) (optional) + page_number = 56 # int | Which page in the results to access (optional) try: # getGroups - api_response = api_instance.get_groups_get(property_id, group_code, type, status, created_from, created_to, page_size, page_number) + api_response = api_instance.get_groups_get(property_id, group_code=group_code, type=type, status=status, created_from=created_from, created_to=created_to, page_size=page_size, page_number=page_number) print("The response of GroupsApi->get_groups_get:\n") pprint(api_response) except Exception as e: @@ -166,13 +166,13 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | - **group_code** | **str**| Unique ID for a group | - **type** | **str**| The type of group | - **status** | **str**| Group status | - **created_from** | **datetime**| Datetime (lower limit) to be queried | - **created_to** | **datetime**| Datetime (upper limit) to be queried | - **page_size** | **int**| Number of groups to return per page (min: 1, max: 100) | - **page_number** | **int**| Which page in the results to access | + **group_code** | **str**| Unique ID for a group | [optional] + **type** | **str**| The type of group | [optional] + **status** | **str**| Group status | [optional] + **created_from** | **datetime**| Datetime (lower limit) to be queried | [optional] + **created_to** | **datetime**| Datetime (upper limit) to be queried | [optional] + **page_size** | **int**| Number of groups to return per page (min: 1, max: 100) | [optional] + **page_number** | **int**| Which page in the results to access | [optional] ### Return type diff --git a/cloudbeds_pms_v1_2/docs/GuestApi.md b/cloudbeds_pms_v1_2/docs/GuestApi.md index a16f158..1c5d7e2 100644 --- a/cloudbeds_pms_v1_2/docs/GuestApi.md +++ b/cloudbeds_pms_v1_2/docs/GuestApi.md @@ -193,7 +193,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_guest_list_get** -> GetGuestListResponse get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) +> GetGuestListResponse get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) getGuestList @@ -240,6 +240,11 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: check_in_to = '2013-10-20' # date | Filters guests result to return only guests with check-in date range ending on this date (optional) check_out_from = '2013-10-20' # date | Filters guests result to return only guests with check-out date range starting on this date (optional) check_out_to = '2013-10-20' # date | Filters guests result to return only guests with check-out date range ending on this date (optional) + guest_first_name = 'guest_first_name_example' # str | Filters guests result based on Guest First Name (optional) + guest_last_name = 'guest_last_name_example' # str | Filters guests result based on Guest Last Name (optional) + guest_email = 'guest_email_example' # str | Filters guests result based on Guest Email (optional) + guest_phone = 'guest_phone_example' # str | Filters guests result based on Guest Phone Number (optional) + guest_cell_phone = 'guest_cell_phone_example' # str | Filters guests result based on Guest Cell Phone Number (optional) status = 'status_example' # str | Reservation status
If more than one, send as comma-separated values. i.e. in_progress,confirmed (optional) sort_by = modification # str | Sort By parameter (optional) (default to modification) include_guest_info = False # bool | If API response should return with more of Guest's information (optional) (default to False) @@ -249,7 +254,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: try: # getGuestList - api_response = api_instance.get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) + api_response = api_instance.get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) print("The response of GuestApi->get_guest_list_get:\n") pprint(api_response) except Exception as e: @@ -270,6 +275,11 @@ Name | Type | Description | Notes **check_in_to** | **date**| Filters guests result to return only guests with check-in date range ending on this date | [optional] **check_out_from** | **date**| Filters guests result to return only guests with check-out date range starting on this date | [optional] **check_out_to** | **date**| Filters guests result to return only guests with check-out date range ending on this date | [optional] + **guest_first_name** | **str**| Filters guests result based on Guest First Name | [optional] + **guest_last_name** | **str**| Filters guests result based on Guest Last Name | [optional] + **guest_email** | **str**| Filters guests result based on Guest Email | [optional] + **guest_phone** | **str**| Filters guests result based on Guest Phone Number | [optional] + **guest_cell_phone** | **str**| Filters guests result based on Guest Cell Phone Number | [optional] **status** | **str**| Reservation status <br /> If more than one, send as comma-separated values. i.e. in_progress,confirmed | [optional] **sort_by** | **str**| Sort By parameter | [optional] [default to modification] **include_guest_info** | **bool**| If API response should return with more of Guest's information | [optional] [default to False] diff --git a/cloudbeds_pms_v1_2/docs/ReservationApi.md b/cloudbeds_pms_v1_2/docs/ReservationApi.md index 8fe8357..4ebaab4 100644 --- a/cloudbeds_pms_v1_2/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_2/docs/ReservationApi.md @@ -442,7 +442,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_reservations_get** -> GetReservationsResponse get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) +> GetReservationsResponse get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) getReservations @@ -502,13 +502,14 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: rate_plan_id = 'rate_plan_id_example' # str | Filters reservation with the supplied rate plan ID. (optional) first_name = 'first_name_example' # str | Filters reservation with the supplied primary guest first name. (optional) last_name = 'last_name_example' # str | Filters reservation with the supplied primary guest last name. (optional) + guest_id = 'guest_id_example' # str | Filters reservation with the supplied Guest ID (Including additional guests). (optional) sort_by_recent = True # bool | Sort response results by most recent action (optional) page_number = 1 # int | Results page number (optional) (default to 1) page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) try: # getReservations - api_response = api_instance.get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) + api_response = api_instance.get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) print("The response of ReservationApi->get_reservations_get:\n") pprint(api_response) except Exception as e: @@ -542,6 +543,7 @@ Name | Type | Description | Notes **rate_plan_id** | **str**| Filters reservation with the supplied rate plan ID. | [optional] **first_name** | **str**| Filters reservation with the supplied primary guest first name. | [optional] **last_name** | **str**| Filters reservation with the supplied primary guest last name. | [optional] + **guest_id** | **str**| Filters reservation with the supplied Guest ID (Including additional guests). | [optional] **sort_by_recent** | **bool**| Sort response results by most recent action | [optional] **page_number** | **int**| Results page number | [optional] [default to 1] **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] diff --git a/cloudbeds_pms_v1_2/exceptions.py b/cloudbeds_pms_v1_2/exceptions.py index 30991c3..9f86f84 100644 --- a/cloudbeds_pms_v1_2/exceptions.py +++ b/cloudbeds_pms_v1_2/exceptions.py @@ -150,6 +150,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -188,6 +195,16 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py index 6c81fae..3ab0400 100644 --- a/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py @@ -38,7 +38,8 @@ class GetGroupsResponseDataInner(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") zip: Optional[StrictStr] = Field(default=None, description="Zip") state: Optional[StrictStr] = Field(default=None, description="State") - __properties: ClassVar[List[str]] = ["groupCode", "name", "type", "status", "created", "sourceID", "address1", "address2", "city", "zip", "state"] + commission_type: Optional[StrictStr] = Field(default=None, description="Commission type", alias="commissionType") + __properties: ClassVar[List[str]] = ["groupCode", "name", "type", "status", "created", "sourceID", "address1", "address2", "city", "zip", "state", "commissionType"] @field_validator('type') def type_validate_enum(cls, value): @@ -60,6 +61,16 @@ def status_validate_enum(cls, value): raise ValueError("must be one of enum values ('open', 'closed')") return value + @field_validator('commission_type') + def commission_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['fixed', 'percent']): + raise ValueError("must be one of enum values ('fixed', 'percent')") + return value + model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -121,7 +132,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "address2": obj.get("address2"), "city": obj.get("city"), "zip": obj.get("zip"), - "state": obj.get("state") + "state": obj.get("state"), + "commissionType": obj.get("commissionType") }) return _obj diff --git a/cloudbeds_pms_v1_2/test/test_get_groups_response.py b/cloudbeds_pms_v1_2/test/test_get_groups_response.py index 232b6b6..c0f9328 100644 --- a/cloudbeds_pms_v1_2/test/test_get_groups_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_groups_response.py @@ -48,7 +48,8 @@ def make_instance(self, include_optional) -> GetGroupsResponse: address2 = '', city = '', zip = '', - state = '', ) + state = '', + commission_type = 'fixed', ) ] ) else: diff --git a/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py index 5c790e2..c50b423 100644 --- a/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py @@ -45,7 +45,8 @@ def make_instance(self, include_optional) -> GetGroupsResponseDataInner: address2 = '', city = '', zip = '', - state = '' + state = '', + commission_type = 'fixed' ) else: return GetGroupsResponseDataInner( diff --git a/openapitools.json b/openapitools.json index 0c7f90d..e3d4828 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_2", "projectName": "Cloudbeds PMS V1.2", - "packageVersion": "1.0.0", + "packageVersion": "1.1.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.2 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From a6c5e6fd8b84c7236158373d148714ac9188f8ce Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 12 Mar 2025 10:10:39 +0000 Subject: [PATCH 15/46] Bump version to 1.2.0 --- .openapi-generator/FILES | 12 +- README.md | 6 +- VERSION | 2 +- cloudbeds_pms_v1_2/__init__.py | 6 +- .../api/allotment_blocks_api.py | 194 +++++++++++++++--- cloudbeds_pms_v1_2/api/housekeeping_api.py | 12 +- cloudbeds_pms_v1_2/api/payment_api.py | 52 +++++ cloudbeds_pms_v1_2/api/reservation_api.py | 15 ++ cloudbeds_pms_v1_2/api_client.py | 2 +- cloudbeds_pms_v1_2/configuration.py | 2 +- cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md | 46 +++-- ...llotmentIntervalsInnerAvailabilityInner.md | 2 + .../docs/GetAppPropertySettingsResponse.md | 2 +- .../GetAppPropertySettingsResponseData.md | 32 +++ ...GetAppPropertySettingsResponseDataInner.md | 31 --- ...GetAppPropertySettingsResponseDataOneOf.md | 31 +++ .../docs/GetReservationResponseData.md | 1 + ...ervationResponseDataGroupInventoryInner.md | 32 +++ .../docs/GetReservationsResponseDataInner.md | 1 + .../GetRoomsResponseDataInnerRoomsInner.md | 1 + .../docs/GetTransactionsResponse.md | 1 + .../docs/GetTransactionsResponseDataInner.md | 1 + cloudbeds_pms_v1_2/docs/HousekeepingApi.md | 4 +- cloudbeds_pms_v1_2/docs/PaymentApi.md | 8 +- .../PostHousekeepingStatusResponseData.md | 2 +- .../PostPatchRateRequestRatesInnerInterval.md | 1 + .../PutReservationRequestCustomFieldsInner.md | 2 +- cloudbeds_pms_v1_2/docs/ReservationApi.md | 6 +- cloudbeds_pms_v1_2/models/__init__.py | 4 +- ...ment_intervals_inner_availability_inner.py | 8 +- .../get_app_property_settings_response.py | 14 +- ...get_app_property_settings_response_data.py | 140 +++++++++++++ ...property_settings_response_data_one_of.py} | 8 +- .../models/get_reservation_response_data.py | 19 +- ...ion_response_data_group_inventory_inner.py | 114 ++++++++++ .../get_reservations_response_data_inner.py | 17 +- ...t_rooms_response_data_inner_rooms_inner.py | 4 +- .../models/get_transactions_response.py | 4 +- .../get_transactions_response_data_inner.py | 6 +- .../post_housekeeping_status_response_data.py | 6 +- ...patch_rate_request_rates_inner_interval.py | 15 +- ...reservation_request_custom_fields_inner.py | 2 +- .../test_get_allotment_blocks_response.py | 4 +- ...et_allotment_blocks_response_data_inner.py | 4 +- ...se_data_inner_allotment_intervals_inner.py | 4 +- ...ment_intervals_inner_availability_inner.py | 4 +- ...test_get_app_property_settings_response.py | 7 +- ...get_app_property_settings_response_data.py | 53 +++++ ...property_settings_response_data_one_of.py} | 22 +- .../test/test_get_reservation_response.py | 9 +- .../test_get_reservation_response_data.py | 9 +- ...ion_response_data_group_inventory_inner.py | 54 +++++ .../test/test_get_reservations_response.py | 7 + ...st_get_reservations_response_data_inner.py | 7 + .../test/test_get_rooms_response.py | 1 + .../test_get_rooms_response_data_inner.py | 1 + ...t_rooms_response_data_inner_rooms_inner.py | 1 + .../test/test_get_transactions_response.py | 4 +- ...st_get_transactions_response_data_inner.py | 3 +- ...est_post_patch_rate_request_rates_inner.py | 9 +- ...patch_rate_request_rates_inner_interval.py | 9 +- openapitools.json | 2 +- 62 files changed, 922 insertions(+), 160 deletions(-) create mode 100644 cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md create mode 100644 cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md create mode 100644 cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py rename cloudbeds_pms_v1_2/models/{get_app_property_settings_response_data_inner.py => get_app_property_settings_response_data_one_of.py} (96%) create mode 100644 cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py create mode 100644 cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py rename cloudbeds_pms_v1_2/test/{test_get_app_property_settings_response_data_inner.py => test_get_app_property_settings_response_data_one_of.py} (82%) create mode 100644 cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 343f921..fe5fdec 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -51,7 +51,8 @@ cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInn cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md -cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md +cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md cloudbeds_pms_v1_2/docs/GetAppStateResponse.md @@ -177,6 +178,7 @@ cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md +cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md @@ -389,7 +391,8 @@ cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_int cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py cloudbeds_pms_v1_2/models/get_app_property_settings_response.py -cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py +cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py +cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py cloudbeds_pms_v1_2/models/get_app_settings_response.py cloudbeds_pms_v1_2/models/get_app_settings_response_data.py cloudbeds_pms_v1_2/models/get_app_state_response.py @@ -515,6 +518,7 @@ cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py @@ -720,7 +724,8 @@ cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_ cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py -cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py +cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py cloudbeds_pms_v1_2/test/test_get_app_settings_response.py cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py cloudbeds_pms_v1_2/test/test_get_app_state_response.py @@ -846,6 +851,7 @@ cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py diff --git a/README.md b/README.md index d029395..69414e9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_2` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.2 -- Package version: 1.1.0 +- Package version: 1.2.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -221,7 +221,8 @@ Class | Method | HTTP request | Description - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md) - [GetAllotmentBlocksResponseDataInnerAutoReleaseInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md) - [GetAppPropertySettingsResponse](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md) - - [GetAppPropertySettingsResponseDataInner](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md) + - [GetAppPropertySettingsResponseData](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md) + - [GetAppPropertySettingsResponseDataOneOf](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md) - [GetAppSettingsResponse](cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md) - [GetAppSettingsResponseData](cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md) - [GetAppStateResponse](cloudbeds_pms_v1_2/docs/GetAppStateResponse.md) @@ -347,6 +348,7 @@ Class | Method | HTTP request | Description - [GetReservationResponseDataAssignedInnerDailyRatesInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md) - [GetReservationResponseDataBalanceDetailedInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md) - [GetReservationResponseDataCardsOnFileInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md) + - [GetReservationResponseDataGroupInventoryInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md) - [GetReservationResponseDataGuestListValue](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md) - [GetReservationResponseDataGuestListValueCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md) - [GetReservationResponseDataGuestListValueRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md) diff --git a/VERSION b/VERSION index 9084fa2..26aaba0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.0 +1.2.0 diff --git a/cloudbeds_pms_v1_2/__init__.py b/cloudbeds_pms_v1_2/__init__.py index fee0ded..c3e6c3a 100644 --- a/cloudbeds_pms_v1_2/__init__.py +++ b/cloudbeds_pms_v1_2/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.1.0" +__version__ = "1.2.0" # import apis into sdk package from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi @@ -69,7 +69,8 @@ from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse @@ -195,6 +196,7 @@ from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner diff --git a/cloudbeds_pms_v1_2/api/allotment_blocks_api.py b/cloudbeds_pms_v1_2/api/allotment_blocks_api.py index 5a20c26..54bfad6 100644 --- a/cloudbeds_pms_v1_2/api/allotment_blocks_api.py +++ b/cloudbeds_pms_v1_2/api/allotment_blocks_api.py @@ -16,7 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt, StrictStr, field_validator +from datetime import date +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse @@ -360,8 +361,10 @@ def create_allotment_block_post( group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="The rate plan ID. Required if rateType is \\\"rate_plan\\\".")] = None, allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + allow_overbooking: Annotated[Optional[StrictBool], Field(description="If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking.")] = None, auto_release: Optional[PostCreateAllotmentBlockRequestAutoRelease] = None, allotment_intervals: Annotated[Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, _request_timeout: Union[ @@ -387,10 +390,14 @@ def create_allotment_block_post( :type allotment_block_name: str :param rate_type: The rate type for the associated intervals :type rate_type: str + :param rate_plan_id: The rate plan ID. Required if rateType is \\\"rate_plan\\\". + :type rate_plan_id: str :param allotment_type: The allotment type :type allotment_type: str :param allotment_block_status: The status for the allotment block under :type allotment_block_status: str + :param allow_overbooking: If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. + :type allow_overbooking: bool :param auto_release: :type auto_release: PostCreateAllotmentBlockRequestAutoRelease :param allotment_intervals: The day-based data for the allotment block. @@ -421,8 +428,10 @@ def create_allotment_block_post( group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, + rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, + allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals, _request_auth=_request_auth, @@ -451,8 +460,10 @@ def create_allotment_block_post_with_http_info( group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="The rate plan ID. Required if rateType is \\\"rate_plan\\\".")] = None, allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + allow_overbooking: Annotated[Optional[StrictBool], Field(description="If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking.")] = None, auto_release: Optional[PostCreateAllotmentBlockRequestAutoRelease] = None, allotment_intervals: Annotated[Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, _request_timeout: Union[ @@ -478,10 +489,14 @@ def create_allotment_block_post_with_http_info( :type allotment_block_name: str :param rate_type: The rate type for the associated intervals :type rate_type: str + :param rate_plan_id: The rate plan ID. Required if rateType is \\\"rate_plan\\\". + :type rate_plan_id: str :param allotment_type: The allotment type :type allotment_type: str :param allotment_block_status: The status for the allotment block under :type allotment_block_status: str + :param allow_overbooking: If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. + :type allow_overbooking: bool :param auto_release: :type auto_release: PostCreateAllotmentBlockRequestAutoRelease :param allotment_intervals: The day-based data for the allotment block. @@ -512,8 +527,10 @@ def create_allotment_block_post_with_http_info( group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, + rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, + allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals, _request_auth=_request_auth, @@ -542,8 +559,10 @@ def create_allotment_block_post_without_preload_content( group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="The rate plan ID. Required if rateType is \\\"rate_plan\\\".")] = None, allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, + allow_overbooking: Annotated[Optional[StrictBool], Field(description="If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking.")] = None, auto_release: Optional[PostCreateAllotmentBlockRequestAutoRelease] = None, allotment_intervals: Annotated[Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]], Field(description="The day-based data for the allotment block.")] = None, _request_timeout: Union[ @@ -569,10 +588,14 @@ def create_allotment_block_post_without_preload_content( :type allotment_block_name: str :param rate_type: The rate type for the associated intervals :type rate_type: str + :param rate_plan_id: The rate plan ID. Required if rateType is \\\"rate_plan\\\". + :type rate_plan_id: str :param allotment_type: The allotment type :type allotment_type: str :param allotment_block_status: The status for the allotment block under :type allotment_block_status: str + :param allow_overbooking: If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. + :type allow_overbooking: bool :param auto_release: :type auto_release: PostCreateAllotmentBlockRequestAutoRelease :param allotment_intervals: The day-based data for the allotment block. @@ -603,8 +626,10 @@ def create_allotment_block_post_without_preload_content( group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, + rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, + allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals, _request_auth=_request_auth, @@ -628,8 +653,10 @@ def _create_allotment_block_post_serialize( group_code, allotment_block_name, rate_type, + rate_plan_id, allotment_type, allotment_block_status, + allow_overbooking, auto_release, allotment_intervals, _request_auth, @@ -663,10 +690,14 @@ def _create_allotment_block_post_serialize( _form_params.append(('allotmentBlockName', allotment_block_name)) if rate_type is not None: _form_params.append(('rateType', rate_type)) + if rate_plan_id is not None: + _form_params.append(('ratePlanId', rate_plan_id)) if allotment_type is not None: _form_params.append(('allotmentType', allotment_type)) if allotment_block_status is not None: _form_params.append(('allotmentBlockStatus', allotment_block_status)) + if allow_overbooking is not None: + _form_params.append(('allowOverbooking', allow_overbooking)) if auto_release is not None: _form_params.append(('autoRelease', auto_release)) if allotment_intervals is not None: @@ -999,11 +1030,15 @@ def _delete_allotment_block_post_serialize( def get_allotment_blocks_get( self, property_id: Annotated[StrictStr, Field(description="Property ID (optional, by default all authorized properties will be included)")], - allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], - group_code: Annotated[StrictStr, Field(description="A group profile code")], - allotment_block_status: Annotated[StrictStr, Field(description="Allotment block status(es)")], - page_size: Annotated[StrictInt, Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")], - page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="Allotment block name")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, + allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, + start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, + end_date: Annotated[Optional[date], Field(description="Interval start date")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1023,16 +1058,24 @@ def get_allotment_blocks_get( :param property_id: Property ID (optional, by default all authorized properties will be included) (required) :type property_id: str - :param allotment_block_code: Allotment block code (required) + :param allotment_block_code: Allotment block code :type allotment_block_code: str - :param group_code: A group profile code (required) + :param allotment_block_name: Allotment block name + :type allotment_block_name: str + :param group_code: A group profile code :type group_code: str - :param allotment_block_status: Allotment block status(es) (required) + :param allotment_block_status: Allotment block status(es) :type allotment_block_status: str - :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) (required) + :param allotment_block_type: The type of allotment block + :type allotment_block_type: str + :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) :type page_size: int - :param page_number: Which page in the results to access (required) + :param page_number: Which page in the results to access :type page_number: int + :param start_date: Interval start date + :type start_date: date + :param end_date: Interval start date + :type end_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1058,10 +1101,14 @@ def get_allotment_blocks_get( _param = self._get_allotment_blocks_get_serialize( property_id=property_id, allotment_block_code=allotment_block_code, + allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, + allotment_block_type=allotment_block_type, page_size=page_size, page_number=page_number, + start_date=start_date, + end_date=end_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1086,11 +1133,15 @@ def get_allotment_blocks_get( def get_allotment_blocks_get_with_http_info( self, property_id: Annotated[StrictStr, Field(description="Property ID (optional, by default all authorized properties will be included)")], - allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], - group_code: Annotated[StrictStr, Field(description="A group profile code")], - allotment_block_status: Annotated[StrictStr, Field(description="Allotment block status(es)")], - page_size: Annotated[StrictInt, Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")], - page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="Allotment block name")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, + allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, + start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, + end_date: Annotated[Optional[date], Field(description="Interval start date")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1110,16 +1161,24 @@ def get_allotment_blocks_get_with_http_info( :param property_id: Property ID (optional, by default all authorized properties will be included) (required) :type property_id: str - :param allotment_block_code: Allotment block code (required) + :param allotment_block_code: Allotment block code :type allotment_block_code: str - :param group_code: A group profile code (required) + :param allotment_block_name: Allotment block name + :type allotment_block_name: str + :param group_code: A group profile code :type group_code: str - :param allotment_block_status: Allotment block status(es) (required) + :param allotment_block_status: Allotment block status(es) :type allotment_block_status: str - :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) (required) + :param allotment_block_type: The type of allotment block + :type allotment_block_type: str + :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) :type page_size: int - :param page_number: Which page in the results to access (required) + :param page_number: Which page in the results to access :type page_number: int + :param start_date: Interval start date + :type start_date: date + :param end_date: Interval start date + :type end_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1145,10 +1204,14 @@ def get_allotment_blocks_get_with_http_info( _param = self._get_allotment_blocks_get_serialize( property_id=property_id, allotment_block_code=allotment_block_code, + allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, + allotment_block_type=allotment_block_type, page_size=page_size, page_number=page_number, + start_date=start_date, + end_date=end_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1173,11 +1236,15 @@ def get_allotment_blocks_get_with_http_info( def get_allotment_blocks_get_without_preload_content( self, property_id: Annotated[StrictStr, Field(description="Property ID (optional, by default all authorized properties will be included)")], - allotment_block_code: Annotated[StrictStr, Field(description="Allotment block code")], - group_code: Annotated[StrictStr, Field(description="A group profile code")], - allotment_block_status: Annotated[StrictStr, Field(description="Allotment block status(es)")], - page_size: Annotated[StrictInt, Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")], - page_number: Annotated[StrictInt, Field(description="Which page in the results to access")], + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code")] = None, + allotment_block_name: Annotated[Optional[StrictStr], Field(description="Allotment block name")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, + allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, + allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, + start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, + end_date: Annotated[Optional[date], Field(description="Interval start date")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1197,16 +1264,24 @@ def get_allotment_blocks_get_without_preload_content( :param property_id: Property ID (optional, by default all authorized properties will be included) (required) :type property_id: str - :param allotment_block_code: Allotment block code (required) + :param allotment_block_code: Allotment block code :type allotment_block_code: str - :param group_code: A group profile code (required) + :param allotment_block_name: Allotment block name + :type allotment_block_name: str + :param group_code: A group profile code :type group_code: str - :param allotment_block_status: Allotment block status(es) (required) + :param allotment_block_status: Allotment block status(es) :type allotment_block_status: str - :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) (required) + :param allotment_block_type: The type of allotment block + :type allotment_block_type: str + :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) :type page_size: int - :param page_number: Which page in the results to access (required) + :param page_number: Which page in the results to access :type page_number: int + :param start_date: Interval start date + :type start_date: date + :param end_date: Interval start date + :type end_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1232,10 +1307,14 @@ def get_allotment_blocks_get_without_preload_content( _param = self._get_allotment_blocks_get_serialize( property_id=property_id, allotment_block_code=allotment_block_code, + allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, + allotment_block_type=allotment_block_type, page_size=page_size, page_number=page_number, + start_date=start_date, + end_date=end_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1256,10 +1335,14 @@ def _get_allotment_blocks_get_serialize( self, property_id, allotment_block_code, + allotment_block_name, group_code, allotment_block_status, + allotment_block_type, page_size, page_number, + start_date, + end_date, _request_auth, _content_type, _headers, @@ -1290,6 +1373,10 @@ def _get_allotment_blocks_get_serialize( _query_params.append(('allotmentBlockCode', allotment_block_code)) + if allotment_block_name is not None: + + _query_params.append(('allotmentBlockName', allotment_block_name)) + if group_code is not None: _query_params.append(('groupCode', group_code)) @@ -1298,6 +1385,10 @@ def _get_allotment_blocks_get_serialize( _query_params.append(('allotmentBlockStatus', allotment_block_status)) + if allotment_block_type is not None: + + _query_params.append(('allotmentBlockType', allotment_block_type)) + if page_size is not None: _query_params.append(('pageSize', page_size)) @@ -1306,6 +1397,32 @@ def _get_allotment_blocks_get_serialize( _query_params.append(('pageNumber', page_number)) + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + # process the header parameters # process the form parameters # process the body parameter @@ -2016,6 +2133,7 @@ def update_allotment_block_post( self, allotment_block_code: Annotated[Optional[StrictStr], Field(description="The allotment block code identifying the allotment block to update")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + allow_overbooking: Annotated[Optional[StrictBool], Field(description="If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking.")] = None, allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, auto_release: Optional[PostUpdateAllotmentBlockRequestAutoRelease] = None, @@ -2041,6 +2159,8 @@ def update_allotment_block_post( :type allotment_block_code: str :param allotment_block_name: The name for the allotment block :type allotment_block_name: str + :param allow_overbooking: If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. + :type allow_overbooking: bool :param allotment_type: The allotment type :type allotment_type: str :param allotment_block_status: The status for the allotment block under @@ -2074,6 +2194,7 @@ def update_allotment_block_post( _param = self._update_allotment_block_post_serialize( allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, + allow_overbooking=allow_overbooking, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, @@ -2103,6 +2224,7 @@ def update_allotment_block_post_with_http_info( self, allotment_block_code: Annotated[Optional[StrictStr], Field(description="The allotment block code identifying the allotment block to update")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + allow_overbooking: Annotated[Optional[StrictBool], Field(description="If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking.")] = None, allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, auto_release: Optional[PostUpdateAllotmentBlockRequestAutoRelease] = None, @@ -2128,6 +2250,8 @@ def update_allotment_block_post_with_http_info( :type allotment_block_code: str :param allotment_block_name: The name for the allotment block :type allotment_block_name: str + :param allow_overbooking: If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. + :type allow_overbooking: bool :param allotment_type: The allotment type :type allotment_type: str :param allotment_block_status: The status for the allotment block under @@ -2161,6 +2285,7 @@ def update_allotment_block_post_with_http_info( _param = self._update_allotment_block_post_serialize( allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, + allow_overbooking=allow_overbooking, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, @@ -2190,6 +2315,7 @@ def update_allotment_block_post_without_preload_content( self, allotment_block_code: Annotated[Optional[StrictStr], Field(description="The allotment block code identifying the allotment block to update")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, + allow_overbooking: Annotated[Optional[StrictBool], Field(description="If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking.")] = None, allotment_type: Annotated[Optional[StrictStr], Field(description="The allotment type")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="The status for the allotment block under")] = None, auto_release: Optional[PostUpdateAllotmentBlockRequestAutoRelease] = None, @@ -2215,6 +2341,8 @@ def update_allotment_block_post_without_preload_content( :type allotment_block_code: str :param allotment_block_name: The name for the allotment block :type allotment_block_name: str + :param allow_overbooking: If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. + :type allow_overbooking: bool :param allotment_type: The allotment type :type allotment_type: str :param allotment_block_status: The status for the allotment block under @@ -2248,6 +2376,7 @@ def update_allotment_block_post_without_preload_content( _param = self._update_allotment_block_post_serialize( allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, + allow_overbooking=allow_overbooking, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, @@ -2272,6 +2401,7 @@ def _update_allotment_block_post_serialize( self, allotment_block_code, allotment_block_name, + allow_overbooking, allotment_type, allotment_block_status, auto_release, @@ -2305,6 +2435,8 @@ def _update_allotment_block_post_serialize( _form_params.append(('allotmentBlockCode', allotment_block_code)) if allotment_block_name is not None: _form_params.append(('allotmentBlockName', allotment_block_name)) + if allow_overbooking is not None: + _form_params.append(('allowOverbooking', allow_overbooking)) if allotment_type is not None: _form_params.append(('allotmentType', allotment_type)) if allotment_block_status is not None: diff --git a/cloudbeds_pms_v1_2/api/housekeeping_api.py b/cloudbeds_pms_v1_2/api/housekeeping_api.py index d384442..cb4bccd 100644 --- a/cloudbeds_pms_v1_2/api/housekeeping_api.py +++ b/cloudbeds_pms_v1_2/api/housekeeping_api.py @@ -1308,7 +1308,7 @@ def post_housekeeping_status_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, - room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled.")] = None, do_not_disturb: Annotated[Optional[StrictBool], Field(description="New \\\"do not disturb\\\" status")] = None, room_comments: Annotated[Optional[StrictStr], Field(description="New room comments.")] = None, refused_service: Annotated[Optional[StrictBool], Field(description="New \\\"refused service\\\" status")] = None, @@ -1334,7 +1334,7 @@ def post_housekeeping_status_post( :type property_id: str :param room_id: Room ID :type room_id: str - :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition + :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled. :type room_condition: str :param do_not_disturb: New \\\"do not disturb\\\" status :type do_not_disturb: bool @@ -1399,7 +1399,7 @@ def post_housekeeping_status_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, - room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled.")] = None, do_not_disturb: Annotated[Optional[StrictBool], Field(description="New \\\"do not disturb\\\" status")] = None, room_comments: Annotated[Optional[StrictStr], Field(description="New room comments.")] = None, refused_service: Annotated[Optional[StrictBool], Field(description="New \\\"refused service\\\" status")] = None, @@ -1425,7 +1425,7 @@ def post_housekeeping_status_post_with_http_info( :type property_id: str :param room_id: Room ID :type room_id: str - :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition + :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled. :type room_condition: str :param do_not_disturb: New \\\"do not disturb\\\" status :type do_not_disturb: bool @@ -1490,7 +1490,7 @@ def post_housekeeping_status_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Room ID")] = None, - room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition")] = None, + room_condition: Annotated[Optional[StrictStr], Field(description="New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled.")] = None, do_not_disturb: Annotated[Optional[StrictBool], Field(description="New \\\"do not disturb\\\" status")] = None, room_comments: Annotated[Optional[StrictStr], Field(description="New room comments.")] = None, refused_service: Annotated[Optional[StrictBool], Field(description="New \\\"refused service\\\" status")] = None, @@ -1516,7 +1516,7 @@ def post_housekeeping_status_post_without_preload_content( :type property_id: str :param room_id: Room ID :type room_id: str - :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition + :param room_condition: New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled. :type room_condition: str :param do_not_disturb: New \\\"do not disturb\\\" status :type do_not_disturb: bool diff --git a/cloudbeds_pms_v1_2/api/payment_api.py b/cloudbeds_pms_v1_2/api/payment_api.py index 13cc490..3cd42e2 100644 --- a/cloudbeds_pms_v1_2/api/payment_api.py +++ b/cloudbeds_pms_v1_2/api/payment_api.py @@ -1029,6 +1029,8 @@ def get_transactions_get( results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, @@ -1083,6 +1085,10 @@ def get_transactions_get( :type modified_from: date :param modified_to: Superior limit date, used to filter transactions result :type modified_to: date + :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_from: date + :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_to: date :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. :type created_from: datetime :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. @@ -1135,6 +1141,8 @@ def get_transactions_get( results_to=results_to, modified_from=modified_from, modified_to=modified_to, + service_date_from=service_date_from, + service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, @@ -1180,6 +1188,8 @@ def get_transactions_get_with_http_info( results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, @@ -1234,6 +1244,10 @@ def get_transactions_get_with_http_info( :type modified_from: date :param modified_to: Superior limit date, used to filter transactions result :type modified_to: date + :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_from: date + :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_to: date :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. :type created_from: datetime :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. @@ -1286,6 +1300,8 @@ def get_transactions_get_with_http_info( results_to=results_to, modified_from=modified_from, modified_to=modified_to, + service_date_from=service_date_from, + service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, @@ -1331,6 +1347,8 @@ def get_transactions_get_without_preload_content( results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, @@ -1385,6 +1403,10 @@ def get_transactions_get_without_preload_content( :type modified_from: date :param modified_to: Superior limit date, used to filter transactions result :type modified_to: date + :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_from: date + :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_to: date :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. :type created_from: datetime :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. @@ -1437,6 +1459,8 @@ def get_transactions_get_without_preload_content( results_to=results_to, modified_from=modified_from, modified_to=modified_to, + service_date_from=service_date_from, + service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, @@ -1477,6 +1501,8 @@ def _get_transactions_get_serialize( results_to, modified_from, modified_to, + service_date_from, + service_date_to, created_from, created_to, transaction_filter, @@ -1602,6 +1628,32 @@ def _get_transactions_get_serialize( else: _query_params.append(('modifiedTo', modified_to)) + if service_date_from is not None: + if isinstance(service_date_from, date): + _query_params.append( + ( + 'serviceDateFrom', + service_date_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('serviceDateFrom', service_date_from)) + + if service_date_to is not None: + if isinstance(service_date_to, date): + _query_params.append( + ( + 'serviceDateTo', + service_date_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('serviceDateTo', service_date_to)) + if created_from is not None: if isinstance(created_from, datetime): _query_params.append( diff --git a/cloudbeds_pms_v1_2/api/reservation_api.py b/cloudbeds_pms_v1_2/api/reservation_api.py index 582cfcc..b11785f 100644 --- a/cloudbeds_pms_v1_2/api/reservation_api.py +++ b/cloudbeds_pms_v1_2/api/reservation_api.py @@ -3652,6 +3652,7 @@ def post_reservation_post( custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ @@ -3715,6 +3716,8 @@ def post_reservation_post( :type promo_code: str :param allotment_block_code: Allotment block code to add reservation to allotment block. :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str :param date_created: Date reservation was made. Defaults to current date if omitted. :type date_created: datetime :param send_email_confirmation: Send confirmation email to guest. @@ -3764,6 +3767,7 @@ def post_reservation_post( custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, + group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, @@ -3811,6 +3815,7 @@ def post_reservation_post_with_http_info( custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ @@ -3874,6 +3879,8 @@ def post_reservation_post_with_http_info( :type promo_code: str :param allotment_block_code: Allotment block code to add reservation to allotment block. :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str :param date_created: Date reservation was made. Defaults to current date if omitted. :type date_created: datetime :param send_email_confirmation: Send confirmation email to guest. @@ -3923,6 +3930,7 @@ def post_reservation_post_with_http_info( custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, + group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, @@ -3970,6 +3978,7 @@ def post_reservation_post_without_preload_content( custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ @@ -4033,6 +4042,8 @@ def post_reservation_post_without_preload_content( :type promo_code: str :param allotment_block_code: Allotment block code to add reservation to allotment block. :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str :param date_created: Date reservation was made. Defaults to current date if omitted. :type date_created: datetime :param send_email_confirmation: Send confirmation email to guest. @@ -4082,6 +4093,7 @@ def post_reservation_post_without_preload_content( custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, + group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, @@ -4124,6 +4136,7 @@ def _post_reservation_post_serialize( custom_fields, promo_code, allotment_block_code, + group_code, date_created, send_email_confirmation, _request_auth, @@ -4198,6 +4211,8 @@ def _post_reservation_post_serialize( _form_params.append(('promoCode', promo_code)) if allotment_block_code is not None: _form_params.append(('allotmentBlockCode', allotment_block_code)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) if date_created is not None: _form_params.append(('dateCreated', date_created)) if send_email_confirmation is not None: diff --git a/cloudbeds_pms_v1_2/api_client.py b/cloudbeds_pms_v1_2/api_client.py index 3fa7738..e9ad4c2 100644 --- a/cloudbeds_pms_v1_2/api_client.py +++ b/cloudbeds_pms_v1_2/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.1.0/python' + self.user_agent = 'OpenAPI-Generator/1.2.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_2/configuration.py b/cloudbeds_pms_v1_2/configuration.py index 25b5168..e8025cc 100644 --- a/cloudbeds_pms_v1_2/configuration.py +++ b/cloudbeds_pms_v1_2/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.2\n"\ - "SDK Package Version: 1.1.0".\ + "SDK Package Version: 1.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md b/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md index ca35d64..6f0ec85 100644 --- a/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md +++ b/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md @@ -100,7 +100,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_allotment_block_post** -> PostCreateAllotmentBlockResponse create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) +> PostCreateAllotmentBlockResponse create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals) createAllotmentBlock @@ -145,14 +145,16 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: group_code = 'group_code_example' # str | The unique identifier of the group profile the allotment block should be created (optional) allotment_block_name = 'allotment_block_name_example' # str | The name for the allotment block (optional) rate_type = 'rate_type_example' # str | The rate type for the associated intervals (optional) + rate_plan_id = 'rate_plan_id_example' # str | The rate plan ID. Required if rateType is \\\"rate_plan\\\". (optional) allotment_type = 'allotment_type_example' # str | The allotment type (optional) allotment_block_status = 'allotment_block_status_example' # str | The status for the allotment block under (optional) + allow_overbooking = True # bool | If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. (optional) auto_release = cloudbeds_pms_v1_2.PostCreateAllotmentBlockRequestAutoRelease() # PostCreateAllotmentBlockRequestAutoRelease | (optional) allotment_intervals = [cloudbeds_pms_v1_2.PostCreateAllotmentBlockRequestAllotmentIntervalsInner()] # List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner] | The day-based data for the allotment block. (optional) try: # createAllotmentBlock - api_response = api_instance.create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) + api_response = api_instance.create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals) print("The response of AllotmentBlocksApi->create_allotment_block_post:\n") pprint(api_response) except Exception as e: @@ -169,8 +171,10 @@ Name | Type | Description | Notes **group_code** | **str**| The unique identifier of the group profile the allotment block should be created | [optional] **allotment_block_name** | **str**| The name for the allotment block | [optional] **rate_type** | **str**| The rate type for the associated intervals | [optional] + **rate_plan_id** | **str**| The rate plan ID. Required if rateType is \\\"rate_plan\\\". | [optional] **allotment_type** | **str**| The allotment type | [optional] **allotment_block_status** | **str**| The status for the allotment block under | [optional] + **allow_overbooking** | **bool**| If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. | [optional] **auto_release** | [**PostCreateAllotmentBlockRequestAutoRelease**](PostCreateAllotmentBlockRequestAutoRelease.md)| | [optional] **allotment_intervals** | [**List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner]**](PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md)| The day-based data for the allotment block. | [optional] @@ -278,7 +282,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_allotment_blocks_get** -> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code, group_code, allotment_block_status, page_size, page_number) +> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) getAllotmentBlocks @@ -319,15 +323,19 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) property_id = 'property_id_example' # str | Property ID (optional, by default all authorized properties will be included) - allotment_block_code = 'allotment_block_code_example' # str | Allotment block code - group_code = 'group_code_example' # str | A group profile code - allotment_block_status = 'allotment_block_status_example' # str | Allotment block status(es) - page_size = 56 # int | Number of allotment blocks to return per page (min: 1, max: 100) - page_number = 56 # int | Which page in the results to access + allotment_block_code = 'allotment_block_code_example' # str | Allotment block code (optional) + allotment_block_name = 'allotment_block_name_example' # str | Allotment block name (optional) + group_code = 'group_code_example' # str | A group profile code (optional) + allotment_block_status = 'allotment_block_status_example' # str | Allotment block status(es) (optional) + allotment_block_type = 'allotment_block_type_example' # str | The type of allotment block (optional) + page_size = 56 # int | Number of allotment blocks to return per page (min: 1, max: 100) (optional) + page_number = 56 # int | Which page in the results to access (optional) + start_date = '2013-10-20' # date | Interval start date (optional) + end_date = '2013-10-20' # date | Interval start date (optional) try: # getAllotmentBlocks - api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code, group_code, allotment_block_status, page_size, page_number) + api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) print("The response of AllotmentBlocksApi->get_allotment_blocks_get:\n") pprint(api_response) except Exception as e: @@ -342,11 +350,15 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID (optional, by default all authorized properties will be included) | - **allotment_block_code** | **str**| Allotment block code | - **group_code** | **str**| A group profile code | - **allotment_block_status** | **str**| Allotment block status(es) | - **page_size** | **int**| Number of allotment blocks to return per page (min: 1, max: 100) | - **page_number** | **int**| Which page in the results to access | + **allotment_block_code** | **str**| Allotment block code | [optional] + **allotment_block_name** | **str**| Allotment block name | [optional] + **group_code** | **str**| A group profile code | [optional] + **allotment_block_status** | **str**| Allotment block status(es) | [optional] + **allotment_block_type** | **str**| The type of allotment block | [optional] + **page_size** | **int**| Number of allotment blocks to return per page (min: 1, max: 100) | [optional] + **page_number** | **int**| Which page in the results to access | [optional] + **start_date** | **date**| Interval start date | [optional] + **end_date** | **date**| Interval start date | [optional] ### Return type @@ -550,7 +562,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_allotment_block_post** -> PostUpdateAllotmentBlockResponse update_allotment_block_post(allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) +> PostUpdateAllotmentBlockResponse update_allotment_block_post(allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, allow_overbooking=allow_overbooking, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) updateAllotmentBlock @@ -594,6 +606,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) allotment_block_code = 'allotment_block_code_example' # str | The allotment block code identifying the allotment block to update (optional) allotment_block_name = 'allotment_block_name_example' # str | The name for the allotment block (optional) + allow_overbooking = True # bool | If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. (optional) allotment_type = 'allotment_type_example' # str | The allotment type (optional) allotment_block_status = 'allotment_block_status_example' # str | The status for the allotment block under (optional) auto_release = cloudbeds_pms_v1_2.PostUpdateAllotmentBlockRequestAutoRelease() # PostUpdateAllotmentBlockRequestAutoRelease | (optional) @@ -601,7 +614,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: try: # updateAllotmentBlock - api_response = api_instance.update_allotment_block_post(allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) + api_response = api_instance.update_allotment_block_post(allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, allow_overbooking=allow_overbooking, allotment_type=allotment_type, allotment_block_status=allotment_block_status, auto_release=auto_release, allotment_intervals=allotment_intervals) print("The response of AllotmentBlocksApi->update_allotment_block_post:\n") pprint(api_response) except Exception as e: @@ -617,6 +630,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **allotment_block_code** | **str**| The allotment block code identifying the allotment block to update | [optional] **allotment_block_name** | **str**| The name for the allotment block | [optional] + **allow_overbooking** | **bool**| If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. | [optional] **allotment_type** | **str**| The allotment type | [optional] **allotment_block_status** | **str**| The status for the allotment block under | [optional] **auto_release** | [**PostUpdateAllotmentBlockRequestAutoRelease**](PostUpdateAllotmentBlockRequestAutoRelease.md)| | [optional] diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md index 5ac77e3..4c502e0 100644 --- a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md +++ b/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **block_confirmed** | **int** | Number of units booked for the room type for this day | [optional] **rate** | **str** | the price | [optional] **guest_pricing** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) | | [optional] +**split_block_allotted** | **int** | Number of split units available for the room type this day | [optional] +**split_block_confirmed** | **int** | Number of split units blocked for the room type this day | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md index a4d3dc4..a9cd456 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md +++ b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Success | [optional] -**data** | [**List[GetAppPropertySettingsResponseDataInner]**](GetAppPropertySettingsResponseDataInner.md) | Data | [optional] +**data** | [**GetAppPropertySettingsResponseData**](GetAppPropertySettingsResponseData.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md new file mode 100644 index 0000000..b252369 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md @@ -0,0 +1,32 @@ +# GetAppPropertySettingsResponseData + +Data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID | [optional] +**key** | **str** | Key | [optional] +**value** | **str** | Value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppPropertySettingsResponseData from a JSON string +get_app_property_settings_response_data_instance = GetAppPropertySettingsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetAppPropertySettingsResponseData.to_json()) + +# convert the object into a dict +get_app_property_settings_response_data_dict = get_app_property_settings_response_data_instance.to_dict() +# create an instance of GetAppPropertySettingsResponseData from a dict +get_app_property_settings_response_data_from_dict = GetAppPropertySettingsResponseData.from_dict(get_app_property_settings_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md deleted file mode 100644 index da4d63c..0000000 --- a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataInner.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetAppPropertySettingsResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | ID | [optional] -**key** | **str** | Key | [optional] -**value** | **str** | Value | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAppPropertySettingsResponseDataInner from a JSON string -get_app_property_settings_response_data_inner_instance = GetAppPropertySettingsResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetAppPropertySettingsResponseDataInner.to_json()) - -# convert the object into a dict -get_app_property_settings_response_data_inner_dict = get_app_property_settings_response_data_inner_instance.to_dict() -# create an instance of GetAppPropertySettingsResponseDataInner from a dict -get_app_property_settings_response_data_inner_from_dict = GetAppPropertySettingsResponseDataInner.from_dict(get_app_property_settings_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md new file mode 100644 index 0000000..9361d35 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md @@ -0,0 +1,31 @@ +# GetAppPropertySettingsResponseDataOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID | [optional] +**key** | **str** | Key | [optional] +**value** | **str** | Value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppPropertySettingsResponseDataOneOf from a JSON string +get_app_property_settings_response_data_one_of_instance = GetAppPropertySettingsResponseDataOneOf.from_json(json) +# print the JSON string representation of the object +print(GetAppPropertySettingsResponseDataOneOf.to_json()) + +# convert the object into a dict +get_app_property_settings_response_data_one_of_dict = get_app_property_settings_response_data_one_of_instance.to_dict() +# create an instance of GetAppPropertySettingsResponseDataOneOf from a dict +get_app_property_settings_response_data_one_of_from_dict = GetAppPropertySettingsResponseDataOneOf.from_dict(get_app_property_settings_response_data_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md index 0d505f5..c0b2618 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md @@ -30,6 +30,7 @@ Name | Type | Description | Notes **end_date** | **date** | Last reservation check-out date | [optional] **allotment_block_code** | **str** | Allotment block code | [optional] **channel_provided_credit_card** | **bool** | Whether a credit card was provided by the channel. Only included for reservations originating from OTAs. | [optional] +**group_inventory** | [**List[GetReservationResponseDataGroupInventoryInner]**](GetReservationResponseDataGroupInventoryInner.md) | Aggregate allotment block information | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md new file mode 100644 index 0000000..8b0227d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md @@ -0,0 +1,32 @@ +# GetReservationResponseDataGroupInventoryInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sub_reservation_id** | **str** | Sub Reservation ID of the specific assigned room | [optional] +**allotment_block_code** | **str** | Allotment block code | [optional] +**start_date** | **date** | Check-In date of the room | [optional] +**end_date** | **date** | Check-Out date of the room | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataGroupInventoryInner from a JSON string +get_reservation_response_data_group_inventory_inner_instance = GetReservationResponseDataGroupInventoryInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataGroupInventoryInner.to_json()) + +# convert the object into a dict +get_reservation_response_data_group_inventory_inner_dict = get_reservation_response_data_group_inventory_inner_instance.to_dict() +# create an instance of GetReservationResponseDataGroupInventoryInner from a dict +get_reservation_response_data_group_inventory_inner_from_dict = GetReservationResponseDataGroupInventoryInner.from_dict(get_reservation_response_data_group_inventory_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md index fffa5be..39a9f95 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md +++ b/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **source_name** | **str** | Source of reservation | [optional] **source_id** | **str** | Booking source unique id | [optional] **third_party_identifier** | **str** | | [optional] +**group_inventory** | [**List[GetReservationResponseDataGroupInventoryInner]**](GetReservationResponseDataGroupInventoryInner.md) | Aggregate allotment block information | [optional] **sub_reservation_id** | **str** | If roomID or roomName are given, the respective subReservationID (to that room) is informed. | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of reservation custom fields. Only returned if \"includeCustomFields\" is true | [optional] **rooms** | [**List[GetReservationsResponseDataInnerRoomsInner]**](GetReservationsResponseDataInnerRoomsInner.md) | Array with rooms information. Only returned if \"includeAllRooms\" is true | [optional] diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md index b960c78..c972629 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **room_type_id** | **str** | Room type ID | [optional] **room_type_name** | **str** | Room type Name | [optional] **room_type_name_short** | **str** | Room type Short Name | [optional] +**doorlock_id** | **str** | The doorlock ID for the room | [optional] **linked_room_ids** | **List[str]** | List of linked room IDs for this room (including nested relations). Only returned if includeRoomRelations is set to true | [optional] **linked_room_type_ids** | **List[str]** | List of linked room type IDs. Only returned if includeRoomRelations is set to true | [optional] **linked_room_type_qty** | [**List[GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner]**](GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md) | Data about linked rooms count, grouped by room type. Only returned if includeRoomRelations is set to true | [optional] diff --git a/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md b/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md index 4569488..6122205 100644 --- a/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md +++ b/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Returns if the request could be completed | [optional] **data** | [**List[GetTransactionsResponseDataInner]**](GetTransactionsResponseDataInner.md) | Transaction list covering the date range specified | [optional] +**cloudbeds_accounting** | **bool** | if true it means the data comes from the new accounting solution | [optional] **count** | **int** | Number of results returned, based on pagination and filter parameters | [optional] **total** | **int** | Total count of results, based on filter parameters | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] diff --git a/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md index e9214f7..bd6e646 100644 --- a/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md +++ b/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md @@ -37,6 +37,7 @@ Name | Type | Description | Notes **parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] **card_type** | **str** | Abbreviated name of credit card type | [optional] **is_deleted** | **bool** | | [optional] +**service_date** | **str** | will represent the date when a product or service is delivered | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/HousekeepingApi.md b/cloudbeds_pms_v1_2/docs/HousekeepingApi.md index 6b46ad1..d72e66d 100644 --- a/cloudbeds_pms_v1_2/docs/HousekeepingApi.md +++ b/cloudbeds_pms_v1_2/docs/HousekeepingApi.md @@ -405,7 +405,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) room_id = 'room_id_example' # str | Room ID (optional) - room_condition = 'room_condition_example' # str | New room condition. If no optional parameters are sent, will switch from current room condition (optional) + room_condition = 'room_condition_example' # str | New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled. (optional) do_not_disturb = True # bool | New \\\"do not disturb\\\" status (optional) room_comments = 'room_comments_example' # str | New room comments. (optional) refused_service = True # bool | New \\\"refused service\\\" status (optional) @@ -429,7 +429,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] **room_id** | **str**| Room ID | [optional] - **room_condition** | **str**| New room condition. If no optional parameters are sent, will switch from current room condition | [optional] + **room_condition** | **str**| New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled. | [optional] **do_not_disturb** | **bool**| New \\\"do not disturb\\\" status | [optional] **room_comments** | **str**| New room comments. | [optional] **refused_service** | **bool**| New \\\"refused service\\\" status | [optional] diff --git a/cloudbeds_pms_v1_2/docs/PaymentApi.md b/cloudbeds_pms_v1_2/docs/PaymentApi.md index 5bdadb9..39e0ea3 100644 --- a/cloudbeds_pms_v1_2/docs/PaymentApi.md +++ b/cloudbeds_pms_v1_2/docs/PaymentApi.md @@ -280,7 +280,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_transactions_get** -> GetTransactionsResponse get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) +> GetTransactionsResponse get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) getTransactions @@ -335,6 +335,8 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: results_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (posted transaction date) (optional) modified_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (optional) modified_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (optional) + service_date_from = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) + service_date_to = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) created_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. (optional) created_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. (optional) transaction_filter = 'simple_transactions,adjustments,adjustments_voids,voids,refunds' # str | Transaction filter is used to filter transactions result (optional) (default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds') @@ -345,7 +347,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: try: # getTransactions - api_response = api_instance.get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) + api_response = api_instance.get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) print("The response of PaymentApi->get_transactions_get:\n") pprint(api_response) except Exception as e: @@ -374,6 +376,8 @@ Name | Type | Description | Notes **results_to** | **date**| Superior limit date, used to filter transactions result (posted transaction date) | [optional] **modified_from** | **date**| Inferior limit date, used to filter transactions result | [optional] **modified_to** | **date**| Superior limit date, used to filter transactions result | [optional] + **service_date_from** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] + **service_date_to** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] **created_from** | **datetime**| Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. | [optional] **created_to** | **datetime**| Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. | [optional] **transaction_filter** | **str**| Transaction filter is used to filter transactions result | [optional] [default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds'] diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md b/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md index 3a452eb..7b5ef6a 100644 --- a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md +++ b/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **var_date** | **date** | Date for last date/time that the room condition changed | [optional] **room_id** | **str** | ID of room | [optional] -**room_condition** | **str** | New room condition | [optional] +**room_condition** | **str** | New room condition. \"inspected\" status is available only if the property has the feature enabled. | [optional] **room_comments** | **str** | New room comments. | [optional] **do_not_disturb** | **bool** | New \"do not disturb\" status | [optional] **refused_service** | **bool** | New \"refused service\" status | [optional] diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md index a43471d..c165307 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md +++ b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **closed_to_departure** | **bool** | Whether it is closed to departure. | [optional] **cut_off** | **int** | Cut off time for the selected date. | [optional] **last_minute_booking** | **int** | Last minute bookings. | [optional] +**guest_pricing** | [**PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md b/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md index 3ee5a05..08598a3 100644 --- a/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md +++ b/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**custom_field_name** | **str** | Internal custom field reference. Must match the registered name in backend. Pay Attention | [optional] +**custom_field_name** | **str** | Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention | [optional] **custom_field_value** | **str** | Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/ReservationApi.md b/cloudbeds_pms_v1_2/docs/ReservationApi.md index 4ebaab4..b3f4a9c 100644 --- a/cloudbeds_pms_v1_2/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_2/docs/ReservationApi.md @@ -932,7 +932,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_reservation_post** -> PostReservationResponse post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, date_created=date_created, send_email_confirmation=send_email_confirmation) +> PostReservationResponse post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation) postReservation @@ -998,12 +998,13 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: custom_fields = [cloudbeds_pms_v1_2.PostReservationRequestCustomFieldsInner()] # List[PostReservationRequestCustomFieldsInner] | Array with custom fields information (optional) promo_code = 'promo_code_example' # str | Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". (optional) allotment_block_code = 'allotment_block_code_example' # str | Allotment block code to add reservation to allotment block. (optional) + group_code = 'group_code_example' # str | Code from the Aggregate Allotment block the reservation will be added to. (optional) date_created = '2013-10-20T19:20:30+01:00' # datetime | Date reservation was made. Defaults to current date if omitted. (optional) send_email_confirmation = True # bool | Send confirmation email to guest. (optional) (default to True) try: # postReservation - api_response = api_instance.post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, date_created=date_created, send_email_confirmation=send_email_confirmation) + api_response = api_instance.post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation) print("The response of ReservationApi->post_reservation_post:\n") pprint(api_response) except Exception as e: @@ -1039,6 +1040,7 @@ Name | Type | Description | Notes **custom_fields** | [**List[PostReservationRequestCustomFieldsInner]**](PostReservationRequestCustomFieldsInner.md)| Array with custom fields information | [optional] **promo_code** | **str**| Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". | [optional] **allotment_block_code** | **str**| Allotment block code to add reservation to allotment block. | [optional] + **group_code** | **str**| Code from the Aggregate Allotment block the reservation will be added to. | [optional] **date_created** | **datetime**| Date reservation was made. Defaults to current date if omitted. | [optional] **send_email_confirmation** | **bool**| Send confirmation email to guest. | [optional] [default to True] diff --git a/cloudbeds_pms_v1_2/models/__init__.py b/cloudbeds_pms_v1_2/models/__init__.py index 9423397..d916e7a 100644 --- a/cloudbeds_pms_v1_2/models/__init__.py +++ b/cloudbeds_pms_v1_2/models/__init__.py @@ -30,7 +30,8 @@ from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse @@ -156,6 +157,7 @@ from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py index a935618..1425e79 100644 --- a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py @@ -34,7 +34,9 @@ class GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInne block_confirmed: Optional[StrictInt] = Field(default=None, description="Number of units booked for the room type for this day", alias="blockConfirmed") rate: Optional[StrictStr] = Field(default=None, description="the price") guest_pricing: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing] = Field(default=None, alias="guestPricing") - __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing"] + split_block_allotted: Optional[StrictInt] = Field(default=None, description="Number of split units available for the room type this day", alias="splitBlockAllotted") + split_block_confirmed: Optional[StrictInt] = Field(default=None, description="Number of split units blocked for the room type this day", alias="splitBlockConfirmed") + __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing", "splitBlockAllotted", "splitBlockConfirmed"] model_config = ConfigDict( populate_by_name=True, @@ -95,7 +97,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "blockAllotted": obj.get("blockAllotted"), "blockConfirmed": obj.get("blockConfirmed"), "rate": obj.get("rate"), - "guestPricing": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None + "guestPricing": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None, + "splitBlockAllotted": obj.get("splitBlockAllotted"), + "splitBlockConfirmed": obj.get("splitBlockConfirmed") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py b/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py index 8bf0d4f..91af0db 100644 --- a/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py +++ b/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class GetAppPropertySettingsResponse(BaseModel): GetAppPropertySettingsResponse """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Success") - data: Optional[List[GetAppPropertySettingsResponseDataInner]] = Field(default=None, description="Data") + data: Optional[GetAppPropertySettingsResponseData] = None __properties: ClassVar[List[str]] = ["success", "data"] model_config = ConfigDict( @@ -70,13 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of data if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items + _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -90,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), - "data": [GetAppPropertySettingsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + "data": GetAppPropertySettingsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py b/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py new file mode 100644 index 0000000..f6a7fad --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETAPPPROPERTYSETTINGSRESPONSEDATA_ONE_OF_SCHEMAS = ["GetAppPropertySettingsResponseDataOneOf", "List[GetAppPropertySettingsResponseDataOneOf]"] + +class GetAppPropertySettingsResponseData(BaseModel): + """ + Data + """ + # data type: GetAppPropertySettingsResponseDataOneOf + oneof_schema_1_validator: Optional[GetAppPropertySettingsResponseDataOneOf] = None + # data type: List[GetAppPropertySettingsResponseDataOneOf] + oneof_schema_2_validator: Optional[List[GetAppPropertySettingsResponseDataOneOf]] = None + actual_instance: Optional[Union[GetAppPropertySettingsResponseDataOneOf, List[GetAppPropertySettingsResponseDataOneOf]]] = None + one_of_schemas: Set[str] = { "GetAppPropertySettingsResponseDataOneOf", "List[GetAppPropertySettingsResponseDataOneOf]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetAppPropertySettingsResponseData.model_construct() + error_messages = [] + match = 0 + # validate data type: GetAppPropertySettingsResponseDataOneOf + if not isinstance(v, GetAppPropertySettingsResponseDataOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetAppPropertySettingsResponseDataOneOf`") + else: + match += 1 + # validate data type: List[GetAppPropertySettingsResponseDataOneOf] + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetAppPropertySettingsResponseData with oneOf schemas: GetAppPropertySettingsResponseDataOneOf, List[GetAppPropertySettingsResponseDataOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetAppPropertySettingsResponseData with oneOf schemas: GetAppPropertySettingsResponseDataOneOf, List[GetAppPropertySettingsResponseDataOneOf]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into GetAppPropertySettingsResponseDataOneOf + try: + instance.actual_instance = GetAppPropertySettingsResponseDataOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[GetAppPropertySettingsResponseDataOneOf] + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetAppPropertySettingsResponseData with oneOf schemas: GetAppPropertySettingsResponseDataOneOf, List[GetAppPropertySettingsResponseDataOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetAppPropertySettingsResponseData with oneOf schemas: GetAppPropertySettingsResponseDataOneOf, List[GetAppPropertySettingsResponseDataOneOf]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetAppPropertySettingsResponseDataOneOf, List[GetAppPropertySettingsResponseDataOneOf]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py rename to cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py index 441199b..a8d60aa 100644 --- a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_inner.py +++ b/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class GetAppPropertySettingsResponseDataInner(BaseModel): +class GetAppPropertySettingsResponseDataOneOf(BaseModel): """ - GetAppPropertySettingsResponseDataInner + GetAppPropertySettingsResponseDataOneOf """ # noqa: E501 id: Optional[StrictStr] = Field(default=None, description="ID") key: Optional[StrictStr] = Field(default=None, description="Key") @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAppPropertySettingsResponseDataInner from a JSON string""" + """Create an instance of GetAppPropertySettingsResponseDataOneOf from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAppPropertySettingsResponseDataInner from a dict""" + """Create an instance of GetAppPropertySettingsResponseDataOneOf from a dict""" if obj is None: return None diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data.py index 9e472aa..923e894 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data.py +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data.py @@ -23,6 +23,7 @@ from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner @@ -57,7 +58,8 @@ class GetReservationResponseData(BaseModel): end_date: Optional[date] = Field(default=None, description="Last reservation check-out date", alias="endDate") allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") channel_provided_credit_card: Optional[StrictBool] = Field(default=None, description="Whether a credit card was provided by the channel. Only included for reservations originating from OTAs.", alias="channelProvidedCreditCard") - __properties: ClassVar[List[str]] = ["propertyID", "guestName", "guestEmail", "isAnonymized", "guestList", "reservationID", "dateCreated", "dateModified", "estimatedArrivalTime", "source", "sourceID", "thirdPartyIdentifier", "status", "total", "balance", "balanceDetailed", "assigned", "unassigned", "cardsOnFile", "customFields", "startDate", "endDate", "allotmentBlockCode", "channelProvidedCreditCard"] + group_inventory: Optional[List[GetReservationResponseDataGroupInventoryInner]] = Field(default=None, description="Aggregate allotment block information", alias="groupInventory") + __properties: ClassVar[List[str]] = ["propertyID", "guestName", "guestEmail", "isAnonymized", "guestList", "reservationID", "dateCreated", "dateModified", "estimatedArrivalTime", "source", "sourceID", "thirdPartyIdentifier", "status", "total", "balance", "balanceDetailed", "assigned", "unassigned", "cardsOnFile", "customFields", "startDate", "endDate", "allotmentBlockCode", "channelProvidedCreditCard", "groupInventory"] @field_validator('status') def status_validate_enum(cls, value): @@ -150,6 +152,13 @@ def to_dict(self) -> Dict[str, Any]: if _item_custom_fields: _items.append(_item_custom_fields.to_dict()) _dict['customFields'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in group_inventory (list) + _items = [] + if self.group_inventory: + for _item_group_inventory in self.group_inventory: + if _item_group_inventory: + _items.append(_item_group_inventory.to_dict()) + _dict['groupInventory'] = _items # set to None if estimated_arrival_time (nullable) is None # and model_fields_set contains the field if self.estimated_arrival_time is None and "estimated_arrival_time" in self.model_fields_set: @@ -165,6 +174,11 @@ def to_dict(self) -> Dict[str, Any]: if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: _dict['allotmentBlockCode'] = None + # set to None if group_inventory (nullable) is None + # and model_fields_set contains the field + if self.group_inventory is None and "group_inventory" in self.model_fields_set: + _dict['groupInventory'] = None + return _dict @classmethod @@ -205,7 +219,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), "allotmentBlockCode": obj.get("allotmentBlockCode"), - "channelProvidedCreditCard": obj.get("channelProvidedCreditCard") + "channelProvidedCreditCard": obj.get("channelProvidedCreditCard"), + "groupInventory": [GetReservationResponseDataGroupInventoryInner.from_dict(_item) for _item in obj["groupInventory"]] if obj.get("groupInventory") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py b/cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py new file mode 100644 index 0000000..d31ad43 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataGroupInventoryInner(BaseModel): + """ + GetReservationResponseDataGroupInventoryInner + """ # noqa: E501 + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") + allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + start_date: Optional[date] = Field(default=None, description="Check-In date of the room", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Check-Out date of the room", alias="endDate") + __properties: ClassVar[List[str]] = ["subReservationID", "allotmentBlockCode", "startDate", "endDate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGroupInventoryInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if allotment_block_code (nullable) is None + # and model_fields_set contains the field + if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: + _dict['allotmentBlockCode'] = None + + # set to None if start_date (nullable) is None + # and model_fields_set contains the field + if self.start_date is None and "start_date" in self.model_fields_set: + _dict['startDate'] = None + + # set to None if end_date (nullable) is None + # and model_fields_set contains the field + if self.end_date is None and "end_date" in self.model_fields_set: + _dict['endDate'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataGroupInventoryInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subReservationID": obj.get("subReservationID"), + "allotmentBlockCode": obj.get("allotmentBlockCode"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py index f3c4ccc..9e0b7e9 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner from typing import Optional, Set @@ -47,11 +48,12 @@ class GetReservationsResponseDataInner(BaseModel): source_name: Optional[StrictStr] = Field(default=None, description="Source of reservation", alias="sourceName") source_id: Optional[StrictStr] = Field(default=None, description="Booking source unique id", alias="sourceID") third_party_identifier: Optional[StrictStr] = Field(default=None, alias="thirdPartyIdentifier") + group_inventory: Optional[List[GetReservationResponseDataGroupInventoryInner]] = Field(default=None, description="Aggregate allotment block information", alias="groupInventory") sub_reservation_id: Optional[StrictStr] = Field(default=None, description="If roomID or roomName are given, the respective subReservationID (to that room) is informed.", alias="subReservationID") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of reservation custom fields. Only returned if \"includeCustomFields\" is true", alias="customFields") rooms: Optional[List[GetReservationsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information. Only returned if \"includeAllRooms\" is true") guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "subReservationID", "customFields", "rooms", "guestList"] + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "groupInventory", "subReservationID", "customFields", "rooms", "guestList"] @field_validator('status') def status_validate_enum(cls, value): @@ -102,6 +104,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in group_inventory (list) + _items = [] + if self.group_inventory: + for _item_group_inventory in self.group_inventory: + if _item_group_inventory: + _items.append(_item_group_inventory.to_dict()) + _dict['groupInventory'] = _items # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) _items = [] if self.custom_fields: @@ -128,6 +137,11 @@ def to_dict(self) -> Dict[str, Any]: if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: _dict['allotmentBlockCode'] = None + # set to None if group_inventory (nullable) is None + # and model_fields_set contains the field + if self.group_inventory is None and "group_inventory" in self.model_fields_set: + _dict['groupInventory'] = None + # set to None if sub_reservation_id (nullable) is None # and model_fields_set contains the field if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: @@ -172,6 +186,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sourceName": obj.get("sourceName"), "sourceID": obj.get("sourceID"), "thirdPartyIdentifier": obj.get("thirdPartyIdentifier"), + "groupInventory": [GetReservationResponseDataGroupInventoryInner.from_dict(_item) for _item in obj["groupInventory"]] if obj.get("groupInventory") is not None else None, "subReservationID": obj.get("subReservationID"), "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, "rooms": [GetReservationsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py index 682e5dd..87893b8 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py @@ -38,10 +38,11 @@ class GetRoomsResponseDataInnerRoomsInner(BaseModel): room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") room_type_name: Optional[StrictStr] = Field(default=None, description="Room type Name", alias="roomTypeName") room_type_name_short: Optional[StrictStr] = Field(default=None, description="Room type Short Name", alias="roomTypeNameShort") + doorlock_id: Optional[StrictStr] = Field(default=None, description="The doorlock ID for the room", alias="doorlockID") linked_room_ids: Optional[List[StrictStr]] = Field(default=None, description="List of linked room IDs for this room (including nested relations). Only returned if includeRoomRelations is set to true", alias="linkedRoomIDs") linked_room_type_ids: Optional[List[StrictStr]] = Field(default=None, description="List of linked room type IDs. Only returned if includeRoomRelations is set to true", alias="linkedRoomTypeIDs") linked_room_type_qty: Optional[List[GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner]] = Field(default=None, description="Data about linked rooms count, grouped by room type. Only returned if includeRoomRelations is set to true", alias="linkedRoomTypeQty") - __properties: ClassVar[List[str]] = ["roomID", "roomName", "dormRoomName", "roomDescription", "maxGuests", "isPrivate", "isVirtual", "roomBlocked", "roomTypeID", "roomTypeName", "roomTypeNameShort", "linkedRoomIDs", "linkedRoomTypeIDs", "linkedRoomTypeQty"] + __properties: ClassVar[List[str]] = ["roomID", "roomName", "dormRoomName", "roomDescription", "maxGuests", "isPrivate", "isVirtual", "roomBlocked", "roomTypeID", "roomTypeName", "roomTypeNameShort", "doorlockID", "linkedRoomIDs", "linkedRoomTypeIDs", "linkedRoomTypeQty"] model_config = ConfigDict( populate_by_name=True, @@ -127,6 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "roomTypeID": obj.get("roomTypeID"), "roomTypeName": obj.get("roomTypeName"), "roomTypeNameShort": obj.get("roomTypeNameShort"), + "doorlockID": obj.get("doorlockID"), "linkedRoomIDs": obj.get("linkedRoomIDs"), "linkedRoomTypeIDs": obj.get("linkedRoomTypeIDs"), "linkedRoomTypeQty": [GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.from_dict(_item) for _item in obj["linkedRoomTypeQty"]] if obj.get("linkedRoomTypeQty") is not None else None diff --git a/cloudbeds_pms_v1_2/models/get_transactions_response.py b/cloudbeds_pms_v1_2/models/get_transactions_response.py index 938ba8a..a4574b0 100644 --- a/cloudbeds_pms_v1_2/models/get_transactions_response.py +++ b/cloudbeds_pms_v1_2/models/get_transactions_response.py @@ -29,10 +29,11 @@ class GetTransactionsResponse(BaseModel): """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") data: Optional[List[GetTransactionsResponseDataInner]] = Field(default=None, description="Transaction list covering the date range specified") + cloudbeds_accounting: Optional[StrictBool] = Field(default=None, description="if true it means the data comes from the new accounting solution", alias="cloudbedsAccounting") count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination and filter parameters") total: Optional[StrictInt] = Field(default=None, description="Total count of results, based on filter parameters") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + __properties: ClassVar[List[str]] = ["success", "data", "cloudbedsAccounting", "count", "total", "message"] model_config = ConfigDict( populate_by_name=True, @@ -99,6 +100,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), "data": [GetTransactionsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "cloudbedsAccounting": obj.get("cloudbedsAccounting"), "count": obj.get("count"), "total": obj.get("total"), "message": obj.get("message") diff --git a/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py index 36e360a..f8fad71 100644 --- a/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py +++ b/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py @@ -59,7 +59,8 @@ class GetTransactionsResponseDataInner(BaseModel): parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted"] + service_date: Optional[StrictStr] = Field(default=None, description="will represent the date when a product or service is delivered", alias="serviceDate") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted", "serviceDate"] @field_validator('transaction_type') def transaction_type_validate_enum(cls, value): @@ -173,7 +174,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "transactionID": obj.get("transactionID"), "parentTransactionID": obj.get("parentTransactionID"), "cardType": obj.get("cardType"), - "isDeleted": obj.get("isDeleted") + "isDeleted": obj.get("isDeleted"), + "serviceDate": obj.get("serviceDate") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py b/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py index bbd3100..1a87e86 100644 --- a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py +++ b/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py @@ -29,7 +29,7 @@ class PostHousekeepingStatusResponseData(BaseModel): """ # noqa: E501 var_date: Optional[date] = Field(default=None, description="Date for last date/time that the room condition changed", alias="date") room_id: Optional[StrictStr] = Field(default=None, description="ID of room", alias="roomID") - room_condition: Optional[StrictStr] = Field(default=None, description="New room condition", alias="roomCondition") + room_condition: Optional[StrictStr] = Field(default=None, description="New room condition. \"inspected\" status is available only if the property has the feature enabled.", alias="roomCondition") room_comments: Optional[StrictStr] = Field(default=None, description="New room comments.", alias="roomComments") do_not_disturb: Optional[StrictBool] = Field(default=None, description="New \"do not disturb\" status", alias="doNotDisturb") refused_service: Optional[StrictBool] = Field(default=None, description="New \"refused service\" status", alias="refusedService") @@ -42,8 +42,8 @@ def room_condition_validate_enum(cls, value): if value is None: return value - if value not in set(['dirty', 'clean']): - raise ValueError("must be one of enum values ('dirty', 'clean')") + if value not in set(['dirty', 'clean', 'inspected']): + raise ValueError("must be one of enum values ('dirty', 'clean', 'inspected')") return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py index 80f5e40..5d583a4 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py +++ b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py @@ -20,6 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from typing import Optional, Set from typing_extensions import Self @@ -36,7 +37,8 @@ class PostPatchRateRequestRatesInnerInterval(BaseModel): closed_to_departure: Optional[StrictBool] = Field(default=None, description="Whether it is closed to departure.", alias="closedToDeparture") cut_off: Optional[StrictInt] = Field(default=None, description="Cut off time for the selected date.", alias="cutOff") last_minute_booking: Optional[StrictInt] = Field(default=None, description="Last minute bookings.", alias="lastMinuteBooking") - __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking"] + guest_pricing: Optional[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing] = Field(default=None, alias="guestPricing") + __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking", "guestPricing"] model_config = ConfigDict( populate_by_name=True, @@ -77,6 +79,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of guest_pricing + if self.guest_pricing: + _dict['guestPricing'] = self.guest_pricing.to_dict() # set to None if max_los (nullable) is None # and model_fields_set contains the field if self.max_los is None and "max_los" in self.model_fields_set: @@ -107,6 +112,11 @@ def to_dict(self) -> Dict[str, Any]: if self.last_minute_booking is None and "last_minute_booking" in self.model_fields_set: _dict['lastMinuteBooking'] = None + # set to None if guest_pricing (nullable) is None + # and model_fields_set contains the field + if self.guest_pricing is None and "guest_pricing" in self.model_fields_set: + _dict['guestPricing'] = None + return _dict @classmethod @@ -127,7 +137,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "closedToArrival": obj.get("closedToArrival"), "closedToDeparture": obj.get("closedToDeparture"), "cutOff": obj.get("cutOff"), - "lastMinuteBooking": obj.get("lastMinuteBooking") + "lastMinuteBooking": obj.get("lastMinuteBooking"), + "guestPricing": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py index 78a4f19..7b98d09 100644 --- a/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py +++ b/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py @@ -26,7 +26,7 @@ class PutReservationRequestCustomFieldsInner(BaseModel): """ PutReservationRequestCustomFieldsInner """ # noqa: E501 - custom_field_name: Optional[StrictStr] = Field(default=None, description="Internal custom field reference. Must match the registered name in backend. Pay Attention", alias="customFieldName") + custom_field_name: Optional[StrictStr] = Field(default=None, description="Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention", alias="customFieldName") custom_field_value: Optional[StrictStr] = Field(default=None, description="Custom field value. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected.", alias="customFieldValue") __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py index 42e90f0..74e7507 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py @@ -75,7 +75,9 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: adult3 = '', child1 = '', child2 = '', - child3 = '', ), ) + child3 = '', ), + split_block_allotted = 56, + split_block_confirmed = 56, ) ], restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py index b344053..ca9611e 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py @@ -70,7 +70,9 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner adult3 = '', child1 = '', child2 = '', - child3 = '', ), ) + child3 = '', ), + split_block_allotted = 56, + split_block_confirmed = 56, ) ], restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py index fe2cf67..b40f1ab 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -51,7 +51,9 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner adult3 = '', child1 = '', child2 = '', - child3 = '', ), ) + child3 = '', ), + split_block_allotted = 56, + split_block_confirmed = 56, ) ], restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py index fba7d19..cd7eace 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py @@ -46,7 +46,9 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner adult3 = '', child1 = '', child2 = '', - child3 = '', ) + child3 = '', ), + split_block_allotted = 56, + split_block_confirmed = 56 ) else: return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner( diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py index a263572..522cf9e 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py @@ -36,12 +36,7 @@ def make_instance(self, include_optional) -> GetAppPropertySettingsResponse: if include_optional: return GetAppPropertySettingsResponse( success = True, - data = [ - cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner.GetAppPropertySettingsResponse_data_inner( - id = '', - key = '', - value = '', ) - ] + data = None ) else: return GetAppPropertySettingsResponse( diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py new file mode 100644 index 0000000..3ee5e3b --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData + +class TestGetAppPropertySettingsResponseData(unittest.TestCase): + """GetAppPropertySettingsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppPropertySettingsResponseData: + """Test GetAppPropertySettingsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppPropertySettingsResponseData` + """ + model = GetAppPropertySettingsResponseData() + if include_optional: + return GetAppPropertySettingsResponseData( + id = '', + key = '', + value = '' + ) + else: + return GetAppPropertySettingsResponseData( + ) + """ + + def testGetAppPropertySettingsResponseData(self): + """Test GetAppPropertySettingsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py similarity index 82% rename from cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py rename to cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py index 0817eef..4ad5874 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_inner import GetAppPropertySettingsResponseDataInner +from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf -class TestGetAppPropertySettingsResponseDataInner(unittest.TestCase): - """GetAppPropertySettingsResponseDataInner unit test stubs""" +class TestGetAppPropertySettingsResponseDataOneOf(unittest.TestCase): + """GetAppPropertySettingsResponseDataOneOf unit test stubs""" def setUp(self): pass @@ -25,27 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetAppPropertySettingsResponseDataInner: - """Test GetAppPropertySettingsResponseDataInner + def make_instance(self, include_optional) -> GetAppPropertySettingsResponseDataOneOf: + """Test GetAppPropertySettingsResponseDataOneOf include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetAppPropertySettingsResponseDataInner` + # uncomment below to create an instance of `GetAppPropertySettingsResponseDataOneOf` """ - model = GetAppPropertySettingsResponseDataInner() + model = GetAppPropertySettingsResponseDataOneOf() if include_optional: - return GetAppPropertySettingsResponseDataInner( + return GetAppPropertySettingsResponseDataOneOf( id = '', key = '', value = '' ) else: - return GetAppPropertySettingsResponseDataInner( + return GetAppPropertySettingsResponseDataOneOf( ) """ - def testGetAppPropertySettingsResponseDataInner(self): - """Test GetAppPropertySettingsResponseDataInner""" + def testGetAppPropertySettingsResponseDataOneOf(self): + """Test GetAppPropertySettingsResponseDataOneOf""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response.py index 2f24ada..635c44e 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response.py @@ -160,7 +160,14 @@ def make_instance(self, include_optional) -> GetReservationResponse: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), allotment_block_code = '', - channel_provided_credit_card = True, ), + channel_provided_credit_card = True, + group_inventory = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + sub_reservation_id = '', + allotment_block_code = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) + ], ), message = '' ) else: diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py index fbb71fe..bb2d941 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py @@ -163,7 +163,14 @@ def make_instance(self, include_optional) -> GetReservationResponseData: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), allotment_block_code = '', - channel_provided_credit_card = True + channel_provided_credit_card = True, + group_inventory = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + sub_reservation_id = '', + allotment_block_code = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) + ] ) else: return GetReservationResponseData( diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py new file mode 100644 index 0000000..899750c --- /dev/null +++ b/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner + +class TestGetReservationResponseDataGroupInventoryInner(unittest.TestCase): + """GetReservationResponseDataGroupInventoryInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataGroupInventoryInner: + """Test GetReservationResponseDataGroupInventoryInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataGroupInventoryInner` + """ + model = GetReservationResponseDataGroupInventoryInner() + if include_optional: + return GetReservationResponseDataGroupInventoryInner( + sub_reservation_id = '', + allotment_block_code = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date() + ) + else: + return GetReservationResponseDataGroupInventoryInner( + ) + """ + + def testGetReservationResponseDataGroupInventoryInner(self): + """Test GetReservationResponseDataGroupInventoryInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response.py index b792f1b..f409679 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response.py @@ -55,6 +55,13 @@ def make_instance(self, include_optional) -> GetReservationsResponse: source_name = '', source_id = '', third_party_identifier = '', + group_inventory = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + sub_reservation_id = '', + allotment_block_code = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) + ], sub_reservation_id = '', custom_fields = [ cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py index 09c3a6f..39b7915 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py @@ -52,6 +52,13 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: source_name = '', source_id = '', third_party_identifier = '', + group_inventory = [ + cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + sub_reservation_id = '', + allotment_block_code = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) + ], sub_reservation_id = '', custom_fields = [ cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response.py b/cloudbeds_pms_v1_2/test/test_get_rooms_response.py index 9bb7ee6..f027957 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_response.py @@ -52,6 +52,7 @@ def make_instance(self, include_optional) -> GetRoomsResponse: room_type_id = '', room_type_name = '', room_type_name_short = '', + doorlock_id = '', linked_room_ids = [ '' ], diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py index 316ae8e..d999e5c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> GetRoomsResponseDataInner: room_type_id = '', room_type_name = '', room_type_name_short = '', + doorlock_id = '', linked_room_ids = [ '' ], diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py index a0854fd..9c1b67f 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> GetRoomsResponseDataInnerRoomsInner room_type_id = '', room_type_name = '', room_type_name_short = '', + doorlock_id = '', linked_room_ids = [ '' ], diff --git a/cloudbeds_pms_v1_2/test/test_get_transactions_response.py b/cloudbeds_pms_v1_2/test/test_get_transactions_response.py index 4f49c37..6f8dcc6 100644 --- a/cloudbeds_pms_v1_2/test/test_get_transactions_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_transactions_response.py @@ -69,8 +69,10 @@ def make_instance(self, include_optional) -> GetTransactionsResponse: transaction_id = '', parent_transaction_id = '', card_type = '', - is_deleted = True, ) + is_deleted = True, + service_date = '', ) ], + cloudbeds_accounting = True, count = 56, total = 56, message = '' diff --git a/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py index 33e66e5..5fc903d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py @@ -66,7 +66,8 @@ def make_instance(self, include_optional) -> GetTransactionsResponseDataInner: transaction_id = '', parent_transaction_id = '', card_type = '', - is_deleted = True + is_deleted = True, + service_date = '' ) else: return GetTransactionsResponseDataInner( diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py index 14a1755..fc6a3f2 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py +++ b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py @@ -45,7 +45,14 @@ def make_instance(self, include_optional) -> PostPatchRateRequestRatesInner: closed_to_arrival = True, closed_to_departure = True, cut_off = 56, - last_minute_booking = 56, ) + last_minute_booking = 56, + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ) ) else: return PostPatchRateRequestRatesInner( diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py index 313452e..298250b 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py +++ b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py @@ -43,7 +43,14 @@ def make_instance(self, include_optional) -> PostPatchRateRequestRatesInnerInter closed_to_arrival = True, closed_to_departure = True, cut_off = 56, - last_minute_booking = 56 + last_minute_booking = 56, + guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ) ) else: return PostPatchRateRequestRatesInnerInterval( diff --git a/openapitools.json b/openapitools.json index e3d4828..0edc3bb 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_2", "projectName": "Cloudbeds PMS V1.2", - "packageVersion": "1.1.0", + "packageVersion": "1.2.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.2 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From dd4a5e8b114dac410e6d0ed491710c32b58402f6 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 17 Apr 2025 11:05:45 +0000 Subject: [PATCH 16/46] Bump version to 1.3.0 --- .openapi-generator/FILES | 54 +- README.md | 26 +- VERSION | 2 +- cloudbeds_pms_v1_2/__init__.py | 20 +- cloudbeds_pms_v1_2/api/adjustment_api.py | 564 -------- cloudbeds_pms_v1_2/api/guest_api.py | 48 +- cloudbeds_pms_v1_2/api/hotel_api.py | 38 +- cloudbeds_pms_v1_2/api/house_account_api.py | 335 ----- cloudbeds_pms_v1_2/api/payment_api.py | 1148 ----------------- cloudbeds_pms_v1_2/api_client.py | 2 +- cloudbeds_pms_v1_2/configuration.py | 2 +- cloudbeds_pms_v1_2/docs/AdjustmentApi.md | 170 --- .../docs/GetAdjustmentResponse.md | 30 - .../docs/GetAdjustmentResponseData.md | 42 - .../docs/GetAdjustmentsResponse.md | 30 - .../docs/GetAdjustmentsResponseData.md | 37 - .../docs/GetGuestResponseData.md | 6 +- .../docs/GetGuestResponseDataBirthDate.md | 29 + ...GuestResponseDataDocumentExpirationDate.md | 29 + .../GetGuestResponseDataDocumentIssueDate.md | 29 + .../docs/GetHouseAccountDetailsResponse.md | 30 - .../GetHouseAccountDetailsResponseData.md | 31 - ...eAccountDetailsResponseDataRecordsInner.md | 43 - ...useAccountDetailsResponseDataTotalInner.md | 32 - .../docs/GetPaymentsResponse.md | 33 - .../docs/GetPaymentsResponseDataInner.md | 59 - ...ResponseDataInnerPaymentAllocationInner.md | 34 - .../docs/GetRateResponseData.md | 4 +- .../docs/GetRoomTypesResponse.md | 3 - .../docs/GetRoomTypesResponseDataInner.md | 6 - .../docs/GetTaxesAndFeesResponseDataInner.md | 2 + ...AndFeesResponseDataInnerDateRangesInner.md | 33 + ...sAndFeesResponseDataInnerRoomTypesInner.md | 30 + .../docs/GetTransactionsResponse.md | 34 - .../docs/GetTransactionsResponseDataInner.md | 61 - cloudbeds_pms_v1_2/docs/GuestApi.md | 16 +- cloudbeds_pms_v1_2/docs/HotelApi.md | 14 +- cloudbeds_pms_v1_2/docs/HouseAccountApi.md | 89 -- cloudbeds_pms_v1_2/docs/PaymentApi.md | 228 ---- .../PostPatchRateRequestRatesInnerInterval.md | 1 + cloudbeds_pms_v1_2/models/__init__.py | 18 +- .../models/get_adjustment_response_data.py | 112 -- .../models/get_adjustments_response.py | 93 -- .../models/get_adjustments_response_data.py | 102 -- .../models/get_guest_response_data.py | 25 +- .../get_guest_response_data_birth_date.py | 144 +++ ..._response_data_document_expiration_date.py | 144 +++ ...guest_response_data_document_issue_date.py | 144 +++ .../get_house_account_details_response.py | 93 -- ...get_house_account_details_response_data.py | 105 -- ...unt_details_response_data_records_inner.py | 116 -- ...count_details_response_data_total_inner.py | 93 -- .../models/get_payments_response.py | 108 -- .../get_payments_response_data_inner.py | 231 ---- .../models/get_rate_response_data.py | 4 +- .../models/get_room_types_response.py | 17 +- .../get_room_types_response_data_inner.py | 30 +- .../get_taxes_and_fees_response_data_inner.py | 34 +- ..._response_data_inner_date_ranges_inner.py} | 71 +- ...s_response_data_inner_room_types_inner.py} | 24 +- .../models/get_transactions_response.py | 110 -- .../get_transactions_response_data_inner.py | 182 --- ...patch_rate_request_rates_inner_interval.py | 9 +- .../test/test_adjustment_api.py | 14 - .../test/test_get_adjustment_response.py | 65 - .../test/test_get_guest_response.py | 6 +- .../test/test_get_guest_response_data.py | 6 +- ...est_get_guest_response_data_birth_date.py} | 30 +- ...response_data_document_expiration_date.py} | 32 +- ...uest_response_data_document_issue_date.py} | 35 +- ...test_get_house_account_details_response.py | 77 -- ...get_house_account_details_response_data.py | 75 -- ...unt_details_response_data_records_inner.py | 65 - .../test/test_get_payments_response.py | 100 -- .../test_get_payments_response_data_inner.py | 93 -- .../test/test_get_room_types_response.py | 17 +- ...test_get_room_types_response_data_inner.py | 12 +- .../test/test_get_taxes_and_fees_response.py | 14 +- ..._get_taxes_and_fees_response_data_inner.py | 19 +- ..._response_data_inner_date_ranges_inner.py} | 37 +- ...s_response_data_inner_room_types_inner.py} | 28 +- .../test/test_get_transactions_response.py | 91 -- ...st_get_transactions_response_data_inner.py | 83 -- .../test/test_house_account_api.py | 7 - cloudbeds_pms_v1_2/test/test_payment_api.py | 14 - ...est_post_patch_rate_request_rates_inner.py | 1 + ...patch_rate_request_rates_inner_interval.py | 1 + openapitools.json | 2 +- 88 files changed, 911 insertions(+), 5446 deletions(-) delete mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md create mode 100644 cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md create mode 100644 cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md delete mode 100644 cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_2/models/get_adjustment_response_data.py delete mode 100644 cloudbeds_pms_v1_2/models/get_adjustments_response.py delete mode 100644 cloudbeds_pms_v1_2/models/get_adjustments_response_data.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py create mode 100644 cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py delete mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response.py delete mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py delete mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py delete mode 100644 cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py delete mode 100644 cloudbeds_pms_v1_2/models/get_payments_response.py delete mode 100644 cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py rename cloudbeds_pms_v1_2/models/{get_payments_response_data_inner_payment_allocation_inner.py => get_taxes_and_fees_response_data_inner_date_ranges_inner.py} (61%) rename cloudbeds_pms_v1_2/models/{get_adjustment_response.py => get_taxes_and_fees_response_data_inner_room_types_inner.py} (80%) delete mode 100644 cloudbeds_pms_v1_2/models/get_transactions_response.py delete mode 100644 cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_2/test/test_get_adjustment_response.py rename cloudbeds_pms_v1_2/test/{test_get_adjustments_response_data.py => test_get_guest_response_data_birth_date.py} (72%) rename cloudbeds_pms_v1_2/test/{test_get_adjustments_response.py => test_get_guest_response_data_document_expiration_date.py} (69%) rename cloudbeds_pms_v1_2/test/{test_get_adjustment_response_data.py => test_get_guest_response_data_document_issue_date.py} (69%) delete mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py delete mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py delete mode 100644 cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py delete mode 100644 cloudbeds_pms_v1_2/test/test_get_payments_response.py delete mode 100644 cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py rename cloudbeds_pms_v1_2/test/{test_get_payments_response_data_inner_payment_allocation_inner.py => test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py} (66%) rename cloudbeds_pms_v1_2/test/{test_get_house_account_details_response_data_total_inner.py => test_get_taxes_and_fees_response_data_inner_room_types_inner.py} (72%) delete mode 100644 cloudbeds_pms_v1_2/test/test_get_transactions_response.py delete mode 100644 cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fe5fdec..a0db7c5 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -40,10 +40,6 @@ cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md cloudbeds_pms_v1_2/docs/EmailsApi.md -cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md -cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md -cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md -cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md @@ -89,7 +85,10 @@ cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md cloudbeds_pms_v1_2/docs/GetGuestResponse.md cloudbeds_pms_v1_2/docs/GetGuestResponseData.md +cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md +cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md +cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md @@ -106,10 +105,6 @@ cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md cloudbeds_pms_v1_2/docs/GetHotelsResponse.md cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md -cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md -cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md -cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md -cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md @@ -144,9 +139,6 @@ cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md -cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md @@ -219,8 +211,8 @@ cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md -cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md -cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md +cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md cloudbeds_pms_v1_2/docs/GetUsersResponse.md @@ -380,10 +372,6 @@ cloudbeds_pms_v1_2/models/delete_guest_note_response.py cloudbeds_pms_v1_2/models/delete_reservation_note_response.py cloudbeds_pms_v1_2/models/delete_room_block_response.py cloudbeds_pms_v1_2/models/delete_webhook_response.py -cloudbeds_pms_v1_2/models/get_adjustment_response.py -cloudbeds_pms_v1_2/models/get_adjustment_response_data.py -cloudbeds_pms_v1_2/models/get_adjustments_response.py -cloudbeds_pms_v1_2/models/get_adjustments_response_data.py cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -429,7 +417,10 @@ cloudbeds_pms_v1_2/models/get_guest_notes_response.py cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py cloudbeds_pms_v1_2/models/get_guest_response.py cloudbeds_pms_v1_2/models/get_guest_response_data.py +cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py cloudbeds_pms_v1_2/models/get_guests_by_status_response.py @@ -446,10 +437,6 @@ cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py cloudbeds_pms_v1_2/models/get_hotels_response.py cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_2/models/get_house_account_details_response.py -cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py -cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py -cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py cloudbeds_pms_v1_2/models/get_house_account_list_response.py cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py cloudbeds_pms_v1_2/models/get_housekeepers_response.py @@ -484,9 +471,6 @@ cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_2/models/get_payments_response.py -cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py -cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py cloudbeds_pms_v1_2/models/get_rate_jobs_response.py cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py @@ -559,8 +543,8 @@ cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_2/models/get_transactions_response.py -cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py +cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py cloudbeds_pms_v1_2/models/get_userinfo_response.py cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py cloudbeds_pms_v1_2/models/get_users_response.py @@ -713,10 +697,6 @@ cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py cloudbeds_pms_v1_2/test/test_delete_room_block_response.py cloudbeds_pms_v1_2/test/test_delete_webhook_response.py cloudbeds_pms_v1_2/test/test_emails_api.py -cloudbeds_pms_v1_2/test/test_get_adjustment_response.py -cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py -cloudbeds_pms_v1_2/test/test_get_adjustments_response.py -cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -762,7 +742,10 @@ cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py cloudbeds_pms_v1_2/test/test_get_guest_response.py cloudbeds_pms_v1_2/test/test_get_guest_response_data.py +cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py @@ -779,10 +762,6 @@ cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py cloudbeds_pms_v1_2/test/test_get_hotels_response.py cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py -cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py -cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py -cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py @@ -817,9 +796,6 @@ cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_payments_response.py -cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py @@ -892,8 +868,8 @@ cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_2/test/test_get_transactions_response.py -cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py +cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py cloudbeds_pms_v1_2/test/test_get_userinfo_response.py cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py cloudbeds_pms_v1_2/test/test_get_users_response.py diff --git a/README.md b/README.md index 69414e9..a3daa13 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_2` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.2 -- Package version: 1.2.0 +- Package version: 1.3.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -79,8 +79,6 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AdjustmentApi* | [**delete_adjustment_delete**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment -*AdjustmentApi* | [**get_adjustment_get**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment -*AdjustmentApi* | [**get_adjustments_get**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments *AdjustmentApi* | [**post_adjustment_post**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment *AllotmentBlocksApi* | [**create_allotment_block_notes_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#create_allotment_block_notes_post) | **POST** /createAllotmentBlockNotes | createAllotmentBlockNotes *AllotmentBlocksApi* | [**create_allotment_block_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#create_allotment_block_post) | **POST** /createAllotmentBlock | createAllotmentBlock @@ -127,7 +125,6 @@ Class | Method | HTTP request | Description *HotelApi* | [**get_hotel_details_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_hotel_details_get) | **GET** /getHotelDetails | getHotelDetails *HotelApi* | [**get_hotels_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_hotels_get) | **GET** /getHotels | getHotels *HotelApi* | [**post_file_post**](cloudbeds_pms_v1_2/docs/HotelApi.md#post_file_post) | **POST** /postFile | postFile -*HouseAccountApi* | [**get_house_account_details_get**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails *HouseAccountApi* | [**get_house_account_list_get**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList *HouseAccountApi* | [**post_new_house_account_post**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount *HouseAccountApi* | [**put_house_account_status_put**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus @@ -161,8 +158,6 @@ Class | Method | HTTP request | Description *PackageApi* | [**get_packages_get**](cloudbeds_pms_v1_2/docs/PackageApi.md#get_packages_get) | **GET** /getPackages | getPackages *PaymentApi* | [**get_payment_methods_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods *PaymentApi* | [**get_payments_capabilities_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities -*PaymentApi* | [**get_payments_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments -*PaymentApi* | [**get_transactions_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions *PaymentApi* | [**post_charge_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge *PaymentApi* | [**post_credit_card_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard *PaymentApi* | [**post_custom_payment_method_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod @@ -210,10 +205,6 @@ Class | Method | HTTP request | Description - [DeleteReservationNoteResponse](cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md) - [DeleteRoomBlockResponse](cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md) - [DeleteWebhookResponse](cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md) - - [GetAdjustmentResponse](cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md) - - [GetAdjustmentResponseData](cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md) - - [GetAdjustmentsResponse](cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md) - - [GetAdjustmentsResponseData](cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md) - [GetAllotmentBlocksResponse](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md) - [GetAllotmentBlocksResponseDataInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md) - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md) @@ -259,7 +250,10 @@ Class | Method | HTTP request | Description - [GetGuestNotesResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md) - [GetGuestResponse](cloudbeds_pms_v1_2/docs/GetGuestResponse.md) - [GetGuestResponseData](cloudbeds_pms_v1_2/docs/GetGuestResponseData.md) + - [GetGuestResponseDataBirthDate](cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md) - [GetGuestResponseDataCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md) + - [GetGuestResponseDataDocumentExpirationDate](cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md) + - [GetGuestResponseDataDocumentIssueDate](cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md) - [GetGuestsByFilterResponse](cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md) - [GetGuestsByFilterResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md) - [GetGuestsByStatusResponse](cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md) @@ -276,10 +270,6 @@ Class | Method | HTTP request | Description - [GetHotelsResponse](cloudbeds_pms_v1_2/docs/GetHotelsResponse.md) - [GetHotelsResponseDataInner](cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md) - [GetHotelsResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md) - - [GetHouseAccountDetailsResponse](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md) - - [GetHouseAccountDetailsResponseData](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md) - - [GetHouseAccountDetailsResponseDataRecordsInner](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md) - - [GetHouseAccountDetailsResponseDataTotalInner](cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md) - [GetHouseAccountListResponse](cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md) - [GetHouseAccountListResponseDataInner](cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md) - [GetHousekeepersResponse](cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md) @@ -314,9 +304,6 @@ Class | Method | HTTP request | Description - [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) - [GetPaymentsCapabilitiesResponse](cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md) - [GetPaymentsCapabilitiesResponseDataInner](cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md) - - [GetPaymentsResponse](cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md) - - [GetPaymentsResponseDataInner](cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md) - - [GetPaymentsResponseDataInnerPaymentAllocationInner](cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md) - [GetRateJobsResponse](cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md) - [GetRateJobsResponseDataInner](cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md) - [GetRateJobsResponseDataInnerUpdatesInner](cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md) @@ -389,8 +376,8 @@ Class | Method | HTTP request | Description - [GetTaxesAndFeesResponse](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md) - [GetTaxesAndFeesResponseDataInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md) - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) - - [GetTransactionsResponse](cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md) - - [GetTransactionsResponseDataInner](cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerRoomTypesInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) - [GetUserinfoResponse](cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md) - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md) - [GetUsersResponse](cloudbeds_pms_v1_2/docs/GetUsersResponse.md) @@ -552,7 +539,6 @@ Authentication schemes defined for the API: - **delete:adjustment**: delete:adjustment - **delete:appPropertySettings**: delete:appPropertySettings - **delete:roomblock**: delete:roomblock - - **read:adjustment**: read:adjustment - **read:allotmentBlock**: read:allotmentBlock - **read:appPropertySettings**: read:appPropertySettings - **read:communication**: read:communication diff --git a/VERSION b/VERSION index 26aaba0..f0bb29e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0 +1.3.0 diff --git a/cloudbeds_pms_v1_2/__init__.py b/cloudbeds_pms_v1_2/__init__.py index c3e6c3a..8df7f47 100644 --- a/cloudbeds_pms_v1_2/__init__.py +++ b/cloudbeds_pms_v1_2/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.2.0" +__version__ = "1.3.0" # import apis into sdk package from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi @@ -58,10 +58,6 @@ from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData -from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse -from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner @@ -107,7 +103,10 @@ from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse @@ -124,10 +123,6 @@ from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse @@ -162,9 +157,6 @@ from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner @@ -237,8 +229,8 @@ from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner -from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse -from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse diff --git a/cloudbeds_pms_v1_2/api/adjustment_api.py b/cloudbeds_pms_v1_2/api/adjustment_api.py index b4f1bd8..aee35c6 100644 --- a/cloudbeds_pms_v1_2/api/adjustment_api.py +++ b/cloudbeds_pms_v1_2/api/adjustment_api.py @@ -20,8 +20,6 @@ from typing import Optional, Union from typing_extensions import Annotated from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse -from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized @@ -340,568 +338,6 @@ def _delete_adjustment_delete_serialize( - @validate_call - def get_adjustment_get( - self, - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAdjustmentResponse: - """getAdjustment - - Gets the details for the one AdjustmentID - - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustment_get_serialize( - adjustment_id=adjustment_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_adjustment_get_with_http_info( - self, - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAdjustmentResponse]: - """getAdjustment - - Gets the details for the one AdjustmentID - - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustment_get_serialize( - adjustment_id=adjustment_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_adjustment_get_without_preload_content( - self, - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getAdjustment - - Gets the details for the one AdjustmentID - - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustment_get_serialize( - adjustment_id=adjustment_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_adjustment_get_serialize( - self, - adjustment_id, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if adjustment_id is not None: - - _query_params.append(('adjustmentID', adjustment_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getAdjustment', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_adjustments_get( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAdjustmentsResponse: - """getAdjustments - - Gets all the Adjustments and their details to a specified reservation - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustments_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_adjustments_get_with_http_info( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAdjustmentsResponse]: - """getAdjustments - - Gets all the Adjustments and their details to a specified reservation - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustments_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_adjustments_get_without_preload_content( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getAdjustments - - Gets all the Adjustments and their details to a specified reservation - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustments_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_adjustments_get_serialize( - self, - reservation_id, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getAdjustments', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def post_adjustment_post( self, diff --git a/cloudbeds_pms_v1_2/api/guest_api.py b/cloudbeds_pms_v1_2/api/guest_api.py index 9442bab..51f535a 100644 --- a/cloudbeds_pms_v1_2/api/guest_api.py +++ b/cloudbeds_pms_v1_2/api/guest_api.py @@ -3748,9 +3748,9 @@ def post_guest_post( guest_birth_date: Optional[date] = None, guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, @@ -3808,11 +3808,11 @@ def post_guest_post( :type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) :type guest_document_issue_date: date :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date :param custom_fields: Only guest custom fields are allowed. :type custom_fields: List[PostGuestRequestCustomFieldsInner] @@ -3915,9 +3915,9 @@ def post_guest_post_with_http_info( guest_birth_date: Optional[date] = None, guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, @@ -3975,11 +3975,11 @@ def post_guest_post_with_http_info( :type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) :type guest_document_issue_date: date :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date :param custom_fields: Only guest custom fields are allowed. :type custom_fields: List[PostGuestRequestCustomFieldsInner] @@ -4082,9 +4082,9 @@ def post_guest_post_without_preload_content( guest_birth_date: Optional[date] = None, guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, @@ -4142,11 +4142,11 @@ def post_guest_post_without_preload_content( :type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) :type guest_document_issue_date: date :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date :param custom_fields: Only guest custom fields are allowed. :type custom_fields: List[PostGuestRequestCustomFieldsInner] @@ -5069,9 +5069,9 @@ def put_guest_put( guest_birth_date: Optional[date] = None, guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, @@ -5127,11 +5127,11 @@ def put_guest_put( :type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) :type guest_document_issue_date: date :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date :param guest_custom_fields: :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] @@ -5228,9 +5228,9 @@ def put_guest_put_with_http_info( guest_birth_date: Optional[date] = None, guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, @@ -5286,11 +5286,11 @@ def put_guest_put_with_http_info( :type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) :type guest_document_issue_date: date :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date :param guest_custom_fields: :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] @@ -5387,9 +5387,9 @@ def put_guest_put_without_preload_content( guest_birth_date: Optional[date] = None, guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, @@ -5445,11 +5445,11 @@ def put_guest_put_without_preload_content( :type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) :type guest_document_issue_date: date :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date :param guest_custom_fields: :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] diff --git a/cloudbeds_pms_v1_2/api/hotel_api.py b/cloudbeds_pms_v1_2/api/hotel_api.py index b69d033..92b4d60 100644 --- a/cloudbeds_pms_v1_2/api/hotel_api.py +++ b/cloudbeds_pms_v1_2/api/hotel_api.py @@ -46,6 +46,7 @@ def __init__(self, api_client=None) -> None: def get_files_get( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="The group code, if the files are to be fetched from a group profile")] = None, sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, name: Annotated[Optional[StrictStr], Field(description="Filter filess by name. Include only with names containing specified string")] = None, @@ -66,10 +67,12 @@ def get_files_get( ) -> GetFilesResponse: """getFiles - Returns a list of files attached to a hotel, ordered by creation date + Returns a list of files attached to a hotel or group profile, ordered by creation date :param property_id: Property ID :type property_id: str + :param group_code: The group code, if the files are to be fetched from a group profile + :type group_code: str :param sort_by: Sort By parameter :type sort_by: str :param order_by: Order response in DESCending or ASCending order, used together with sortBy @@ -104,6 +107,7 @@ def get_files_get( _param = self._get_files_get_serialize( property_id=property_id, + group_code=group_code, sort_by=sort_by, order_by=order_by, name=name, @@ -133,6 +137,7 @@ def get_files_get( def get_files_get_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="The group code, if the files are to be fetched from a group profile")] = None, sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, name: Annotated[Optional[StrictStr], Field(description="Filter filess by name. Include only with names containing specified string")] = None, @@ -153,10 +158,12 @@ def get_files_get_with_http_info( ) -> ApiResponse[GetFilesResponse]: """getFiles - Returns a list of files attached to a hotel, ordered by creation date + Returns a list of files attached to a hotel or group profile, ordered by creation date :param property_id: Property ID :type property_id: str + :param group_code: The group code, if the files are to be fetched from a group profile + :type group_code: str :param sort_by: Sort By parameter :type sort_by: str :param order_by: Order response in DESCending or ASCending order, used together with sortBy @@ -191,6 +198,7 @@ def get_files_get_with_http_info( _param = self._get_files_get_serialize( property_id=property_id, + group_code=group_code, sort_by=sort_by, order_by=order_by, name=name, @@ -220,6 +228,7 @@ def get_files_get_with_http_info( def get_files_get_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="The group code, if the files are to be fetched from a group profile")] = None, sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, name: Annotated[Optional[StrictStr], Field(description="Filter filess by name. Include only with names containing specified string")] = None, @@ -240,10 +249,12 @@ def get_files_get_without_preload_content( ) -> RESTResponseType: """getFiles - Returns a list of files attached to a hotel, ordered by creation date + Returns a list of files attached to a hotel or group profile, ordered by creation date :param property_id: Property ID :type property_id: str + :param group_code: The group code, if the files are to be fetched from a group profile + :type group_code: str :param sort_by: Sort By parameter :type sort_by: str :param order_by: Order response in DESCending or ASCending order, used together with sortBy @@ -278,6 +289,7 @@ def get_files_get_without_preload_content( _param = self._get_files_get_serialize( property_id=property_id, + group_code=group_code, sort_by=sort_by, order_by=order_by, name=name, @@ -302,6 +314,7 @@ def get_files_get_without_preload_content( def _get_files_get_serialize( self, property_id, + group_code, sort_by, order_by, name, @@ -333,6 +346,10 @@ def _get_files_get_serialize( _query_params.append(('propertyID', property_id)) + if group_code is not None: + + _query_params.append(('groupCode', group_code)) + if sort_by is not None: _query_params.append(('sortBy', sort_by)) @@ -992,6 +1009,7 @@ def post_file_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="optional - the group code if the file is to be attached to a group profile")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1013,6 +1031,8 @@ def post_file_post( :type property_id: str :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB :type file: bytearray + :param group_code: optional - the group code if the file is to be attached to a group profile + :type group_code: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1038,6 +1058,7 @@ def post_file_post( _param = self._post_file_post_serialize( property_id=property_id, file=file, + group_code=group_code, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1063,6 +1084,7 @@ def post_file_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="optional - the group code if the file is to be attached to a group profile")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1084,6 +1106,8 @@ def post_file_post_with_http_info( :type property_id: str :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB :type file: bytearray + :param group_code: optional - the group code if the file is to be attached to a group profile + :type group_code: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1109,6 +1133,7 @@ def post_file_post_with_http_info( _param = self._post_file_post_serialize( property_id=property_id, file=file, + group_code=group_code, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1134,6 +1159,7 @@ def post_file_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="optional - the group code if the file is to be attached to a group profile")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1155,6 +1181,8 @@ def post_file_post_without_preload_content( :type property_id: str :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB :type file: bytearray + :param group_code: optional - the group code if the file is to be attached to a group profile + :type group_code: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1180,6 +1208,7 @@ def post_file_post_without_preload_content( _param = self._post_file_post_serialize( property_id=property_id, file=file, + group_code=group_code, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1200,6 +1229,7 @@ def _post_file_post_serialize( self, property_id, file, + group_code, _request_auth, _content_type, _headers, @@ -1228,6 +1258,8 @@ def _post_file_post_serialize( _form_params.append(('propertyID', property_id)) if file is not None: _files['file'] = file + if group_code is not None: + _form_params.append(('groupCode', group_code)) # process the body parameter diff --git a/cloudbeds_pms_v1_2/api/house_account_api.py b/cloudbeds_pms_v1_2/api/house_account_api.py index 2c4a499..332dc3e 100644 --- a/cloudbeds_pms_v1_2/api/house_account_api.py +++ b/cloudbeds_pms_v1_2/api/house_account_api.py @@ -16,11 +16,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from datetime import date from pydantic import Field, StrictBool, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse @@ -43,339 +41,6 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def get_house_account_details_get( - self, - house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetHouseAccountDetailsResponse: - """getHouseAccountDetails - - Pulls details of specific house account - - :param house_account_id: House Account ID to get details for (required) - :type house_account_id: str - :param property_id: Property ID - :type property_id: str - :param results_from: date\"] Inferior limit date, used to filter result records - :type results_from: date - :param results_to: date\"] Inferior limit date, used to filter result records - :type results_to: date - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_house_account_details_get_serialize( - house_account_id=house_account_id, - property_id=property_id, - results_from=results_from, - results_to=results_to, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_house_account_details_get_with_http_info( - self, - house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetHouseAccountDetailsResponse]: - """getHouseAccountDetails - - Pulls details of specific house account - - :param house_account_id: House Account ID to get details for (required) - :type house_account_id: str - :param property_id: Property ID - :type property_id: str - :param results_from: date\"] Inferior limit date, used to filter result records - :type results_from: date - :param results_to: date\"] Inferior limit date, used to filter result records - :type results_to: date - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_house_account_details_get_serialize( - house_account_id=house_account_id, - property_id=property_id, - results_from=results_from, - results_to=results_to, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_house_account_details_get_without_preload_content( - self, - house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getHouseAccountDetails - - Pulls details of specific house account - - :param house_account_id: House Account ID to get details for (required) - :type house_account_id: str - :param property_id: Property ID - :type property_id: str - :param results_from: date\"] Inferior limit date, used to filter result records - :type results_from: date - :param results_to: date\"] Inferior limit date, used to filter result records - :type results_to: date - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_house_account_details_get_serialize( - house_account_id=house_account_id, - property_id=property_id, - results_from=results_from, - results_to=results_to, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_house_account_details_get_serialize( - self, - house_account_id, - property_id, - results_from, - results_to, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if house_account_id is not None: - - _query_params.append(('houseAccountID', house_account_id)) - - if results_from is not None: - if isinstance(results_from, date): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, date): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getHouseAccountDetails', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def get_house_account_list_get( self, diff --git a/cloudbeds_pms_v1_2/api/payment_api.py b/cloudbeds_pms_v1_2/api/payment_api.py index 3cd42e2..6475abf 100644 --- a/cloudbeds_pms_v1_2/api/payment_api.py +++ b/cloudbeds_pms_v1_2/api/payment_api.py @@ -16,14 +16,11 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from datetime import date, datetime from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Optional, Union from typing_extensions import Annotated from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse @@ -593,1151 +590,6 @@ def _get_payments_capabilities_get_serialize( - @validate_call - def get_payments_get( - self, - reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], - house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], - guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, - include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPaymentsResponse: - """getPayments - - Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) - - :param reservation_id: ¹ ID for the reservation to be queried. (required) - :type reservation_id: str - :param house_account_id: ¹ ID for the house account to be queried. (required) - :type house_account_id: str - :param guest_id: ¹ ID for the guest to be queried. (required) - :type guest_id: str - :param property_id: Property ID - :type property_id: str - :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. - :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. - :type created_to: datetime - :param include_payment_allocation: Adds payment allocation to response, when available. - :type include_payment_allocation: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payments_get_serialize( - reservation_id=reservation_id, - house_account_id=house_account_id, - guest_id=guest_id, - property_id=property_id, - created_from=created_from, - created_to=created_to, - include_payment_allocation=include_payment_allocation, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_payments_get_with_http_info( - self, - reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], - house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], - guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, - include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPaymentsResponse]: - """getPayments - - Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) - - :param reservation_id: ¹ ID for the reservation to be queried. (required) - :type reservation_id: str - :param house_account_id: ¹ ID for the house account to be queried. (required) - :type house_account_id: str - :param guest_id: ¹ ID for the guest to be queried. (required) - :type guest_id: str - :param property_id: Property ID - :type property_id: str - :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. - :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. - :type created_to: datetime - :param include_payment_allocation: Adds payment allocation to response, when available. - :type include_payment_allocation: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payments_get_serialize( - reservation_id=reservation_id, - house_account_id=house_account_id, - guest_id=guest_id, - property_id=property_id, - created_from=created_from, - created_to=created_to, - include_payment_allocation=include_payment_allocation, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_payments_get_without_preload_content( - self, - reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], - house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], - guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, - include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getPayments - - Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) - - :param reservation_id: ¹ ID for the reservation to be queried. (required) - :type reservation_id: str - :param house_account_id: ¹ ID for the house account to be queried. (required) - :type house_account_id: str - :param guest_id: ¹ ID for the guest to be queried. (required) - :type guest_id: str - :param property_id: Property ID - :type property_id: str - :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. - :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. - :type created_to: datetime - :param include_payment_allocation: Adds payment allocation to response, when available. - :type include_payment_allocation: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payments_get_serialize( - reservation_id=reservation_id, - house_account_id=house_account_id, - guest_id=guest_id, - property_id=property_id, - created_from=created_from, - created_to=created_to, - include_payment_allocation=include_payment_allocation, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_payments_get_serialize( - self, - reservation_id, - house_account_id, - guest_id, - property_id, - created_from, - created_to, - include_payment_allocation, - page_number, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if house_account_id is not None: - - _query_params.append(('houseAccountID', house_account_id)) - - if guest_id is not None: - - _query_params.append(('guestID', guest_id)) - - if created_from is not None: - if isinstance(created_from, datetime): - _query_params.append( - ( - 'createdFrom', - created_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdFrom', created_from)) - - if created_to is not None: - if isinstance(created_to, datetime): - _query_params.append( - ( - 'createdTo', - created_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdTo', created_to)) - - if include_payment_allocation is not None: - - _query_params.append(('includePaymentAllocation', include_payment_allocation)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getPayments', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_transactions_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTransactionsResponse: - """getTransactions - - Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_from: date - :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param transaction_filter: Transaction filter is used to filter transactions result - :type transaction_filter: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - service_date_from=service_date_from, - service_date_to=service_date_to, - created_from=created_from, - created_to=created_to, - transaction_filter=transaction_filter, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_transactions_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTransactionsResponse]: - """getTransactions - - Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_from: date - :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param transaction_filter: Transaction filter is used to filter transactions result - :type transaction_filter: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - service_date_from=service_date_from, - service_date_to=service_date_to, - created_from=created_from, - created_to=created_to, - transaction_filter=transaction_filter, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_transactions_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getTransactions - - Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_from: date - :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param transaction_filter: Transaction filter is used to filter transactions result - :type transaction_filter: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - service_date_from=service_date_from, - service_date_to=service_date_to, - created_from=created_from, - created_to=created_to, - transaction_filter=transaction_filter, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_transactions_get_serialize( - self, - property_id, - include_debit, - include_credit, - include_deleted, - include_children, - reservation_id, - sub_reservation_id, - room_id, - guest_id, - house_account_id, - transaction_ids, - results_from, - results_to, - modified_from, - modified_to, - service_date_from, - service_date_to, - created_from, - created_to, - transaction_filter, - page_number, - page_size, - sort_by, - order_by, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if include_debit is not None: - - _query_params.append(('includeDebit', include_debit)) - - if include_credit is not None: - - _query_params.append(('includeCredit', include_credit)) - - if include_deleted is not None: - - _query_params.append(('includeDeleted', include_deleted)) - - if include_children is not None: - - _query_params.append(('includeChildren', include_children)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if sub_reservation_id is not None: - - _query_params.append(('subReservationID', sub_reservation_id)) - - if room_id is not None: - - _query_params.append(('roomID', room_id)) - - if guest_id is not None: - - _query_params.append(('guestID', guest_id)) - - if house_account_id is not None: - - _query_params.append(('houseAccountID', house_account_id)) - - if transaction_ids is not None: - - _query_params.append(('transactionIDs', transaction_ids)) - - if results_from is not None: - if isinstance(results_from, date): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, date): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - if modified_from is not None: - if isinstance(modified_from, date): - _query_params.append( - ( - 'modifiedFrom', - modified_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('modifiedFrom', modified_from)) - - if modified_to is not None: - if isinstance(modified_to, date): - _query_params.append( - ( - 'modifiedTo', - modified_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('modifiedTo', modified_to)) - - if service_date_from is not None: - if isinstance(service_date_from, date): - _query_params.append( - ( - 'serviceDateFrom', - service_date_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('serviceDateFrom', service_date_from)) - - if service_date_to is not None: - if isinstance(service_date_to, date): - _query_params.append( - ( - 'serviceDateTo', - service_date_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('serviceDateTo', service_date_to)) - - if created_from is not None: - if isinstance(created_from, datetime): - _query_params.append( - ( - 'createdFrom', - created_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdFrom', created_from)) - - if created_to is not None: - if isinstance(created_to, datetime): - _query_params.append( - ( - 'createdTo', - created_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdTo', created_to)) - - if transaction_filter is not None: - - _query_params.append(('transactionFilter', transaction_filter)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - if sort_by is not None: - - _query_params.append(('sortBy', sort_by)) - - if order_by is not None: - - _query_params.append(('orderBy', order_by)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getTransactions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def post_charge_post( self, diff --git a/cloudbeds_pms_v1_2/api_client.py b/cloudbeds_pms_v1_2/api_client.py index e9ad4c2..cde5258 100644 --- a/cloudbeds_pms_v1_2/api_client.py +++ b/cloudbeds_pms_v1_2/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.2.0/python' + self.user_agent = 'OpenAPI-Generator/1.3.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_2/configuration.py b/cloudbeds_pms_v1_2/configuration.py index e8025cc..75e65c7 100644 --- a/cloudbeds_pms_v1_2/configuration.py +++ b/cloudbeds_pms_v1_2/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.2\n"\ - "SDK Package Version: 1.2.0".\ + "SDK Package Version: 1.3.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_2/docs/AdjustmentApi.md b/cloudbeds_pms_v1_2/docs/AdjustmentApi.md index 764696e..81d0c2a 100644 --- a/cloudbeds_pms_v1_2/docs/AdjustmentApi.md +++ b/cloudbeds_pms_v1_2/docs/AdjustmentApi.md @@ -5,8 +5,6 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.2* Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_adjustment_delete**](AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment -[**get_adjustment_get**](AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment -[**get_adjustments_get**](AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments [**post_adjustment_post**](AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment @@ -96,174 +94,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_adjustment_get** -> GetAdjustmentResponse get_adjustment_get(adjustment_id, property_id=property_id) - -getAdjustment - -Gets the details for the one AdjustmentID - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) - adjustment_id = 'adjustment_id_example' # str | Adjustment identifier - property_id = 'property_id_example' # str | Property ID (optional) - - try: - # getAdjustment - api_response = api_instance.get_adjustment_get(adjustment_id, property_id=property_id) - print("The response of AdjustmentApi->get_adjustment_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AdjustmentApi->get_adjustment_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **adjustment_id** | **str**| Adjustment identifier | - **property_id** | **str**| Property ID | [optional] - -### Return type - -[**GetAdjustmentResponse**](GetAdjustmentResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_adjustments_get** -> GetAdjustmentsResponse get_adjustments_get(reservation_id, property_id=property_id) - -getAdjustments - -Gets all the Adjustments and their details to a specified reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation identifier - property_id = 'property_id_example' # str | Property ID (optional) - - try: - # getAdjustments - api_response = api_instance.get_adjustments_get(reservation_id, property_id=property_id) - print("The response of AdjustmentApi->get_adjustments_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AdjustmentApi->get_adjustments_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation identifier | - **property_id** | **str**| Property ID | [optional] - -### Return type - -[**GetAdjustmentsResponse**](GetAdjustmentsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_adjustment_post** > PostAdjustmentResponse post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md deleted file mode 100644 index 1fbbcd2..0000000 --- a/cloudbeds_pms_v1_2/docs/GetAdjustmentResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAdjustmentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**GetAdjustmentResponseData**](GetAdjustmentResponseData.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentResponse from a JSON string -get_adjustment_response_instance = GetAdjustmentResponse.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentResponse.to_json()) - -# convert the object into a dict -get_adjustment_response_dict = get_adjustment_response_instance.to_dict() -# create an instance of GetAdjustmentResponse from a dict -get_adjustment_response_from_dict = GetAdjustmentResponse.from_dict(get_adjustment_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md deleted file mode 100644 index 3c92b90..0000000 --- a/cloudbeds_pms_v1_2/docs/GetAdjustmentResponseData.md +++ /dev/null @@ -1,42 +0,0 @@ -# GetAdjustmentResponseData - -Adjustment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adjustment_id** | **str** | Adjustment unique identifier | [optional] -**property_id** | **str** | unique hotel identifier | [optional] -**created** | **datetime** | Adjustment created time | [optional] -**room_id** | **str** | Adjustment room id | [optional] -**room_name** | **str** | Room name of Adjustment | [optional] -**reservation_identifier** | **str** | Reservation Unique Identifier | [optional] -**description** | **str** | Adjustment description | [optional] -**notes** | **str** | Adjustment notes | [optional] -**amount** | **float** | Adjustment amount | [optional] -**currency** | **float** | Adjustment currency | [optional] -**posted** | **float** | Adjustment posted transaction | [optional] -**type** | **str** | Adjustment type | [optional] -**void_id** | **str** | Voided adjustment transaction unique identifier. Null if adjustment not voided | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentResponseData from a JSON string -get_adjustment_response_data_instance = GetAdjustmentResponseData.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentResponseData.to_json()) - -# convert the object into a dict -get_adjustment_response_data_dict = get_adjustment_response_data_instance.to_dict() -# create an instance of GetAdjustmentResponseData from a dict -get_adjustment_response_data_from_dict = GetAdjustmentResponseData.from_dict(get_adjustment_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md deleted file mode 100644 index c37a513..0000000 --- a/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAdjustmentsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**GetAdjustmentsResponseData**](GetAdjustmentsResponseData.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentsResponse from a JSON string -get_adjustments_response_instance = GetAdjustmentsResponse.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentsResponse.to_json()) - -# convert the object into a dict -get_adjustments_response_dict = get_adjustments_response_instance.to_dict() -# create an instance of GetAdjustmentsResponse from a dict -get_adjustments_response_from_dict = GetAdjustmentsResponse.from_dict(get_adjustments_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md b/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md deleted file mode 100644 index b8a1064..0000000 --- a/cloudbeds_pms_v1_2/docs/GetAdjustmentsResponseData.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetAdjustmentsResponseData - -Adjustments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adjustment_id** | **str** | Adjustment unique identifier | [optional] -**created** | **datetime** | Adjustment created time | [optional] -**room_id** | **str** | Adjustment room id | [optional] -**room_name** | **str** | Room name of Adjustment | [optional] -**description** | **str** | Adjustment description | [optional] -**notes** | **str** | Adjustment notes | [optional] -**amount** | **float** | Adjustment amount | [optional] -**type** | **str** | Adjustment type | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentsResponseData from a JSON string -get_adjustments_response_data_instance = GetAdjustmentsResponseData.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentsResponseData.to_json()) - -# convert the object into a dict -get_adjustments_response_data_dict = get_adjustments_response_data_instance.to_dict() -# create an instance of GetAdjustmentsResponseData from a dict -get_adjustments_response_data_from_dict = GetAdjustmentsResponseData.from_dict(get_adjustments_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md b/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md index 626e3fc..5404ad2 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md +++ b/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md @@ -18,12 +18,12 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **zip** | **str** | Zip | [optional] **state** | **str** | State | [optional] -**birth_date** | **date** | Birth date | [optional] +**birth_date** | [**GetGuestResponseDataBirthDate**](GetGuestResponseDataBirthDate.md) | | [optional] **document_type** | **str** | Document Type | [optional] **document_number** | **str** | Document number | [optional] -**document_issue_date** | **date** | Document Issue Date, can be null | [optional] +**document_issue_date** | [**GetGuestResponseDataDocumentIssueDate**](GetGuestResponseDataDocumentIssueDate.md) | | [optional] **document_issuing_country** | **str** | Document Issuing Country (2-digits code) | [optional] -**document_expiration_date** | **date** | Document Expiration Date, can be null | [optional] +**document_expiration_date** | [**GetGuestResponseDataDocumentExpirationDate**](GetGuestResponseDataDocumentExpirationDate.md) | | [optional] **custom_fields** | [**List[GetGuestResponseDataCustomFieldsInner]**](GetGuestResponseDataCustomFieldsInner.md) | | [optional] **special_requests** | **str** | Special requests made by the guest at the time of the booking | [optional] **tax_id** | **str** | Tax ID | [optional] diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md new file mode 100644 index 0000000..0f538f9 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md @@ -0,0 +1,29 @@ +# GetGuestResponseDataBirthDate + +Birth date + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestResponseDataBirthDate from a JSON string +get_guest_response_data_birth_date_instance = GetGuestResponseDataBirthDate.from_json(json) +# print the JSON string representation of the object +print(GetGuestResponseDataBirthDate.to_json()) + +# convert the object into a dict +get_guest_response_data_birth_date_dict = get_guest_response_data_birth_date_instance.to_dict() +# create an instance of GetGuestResponseDataBirthDate from a dict +get_guest_response_data_birth_date_from_dict = GetGuestResponseDataBirthDate.from_dict(get_guest_response_data_birth_date_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md new file mode 100644 index 0000000..2220185 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md @@ -0,0 +1,29 @@ +# GetGuestResponseDataDocumentExpirationDate + +Document Expiration Date, can be null + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestResponseDataDocumentExpirationDate from a JSON string +get_guest_response_data_document_expiration_date_instance = GetGuestResponseDataDocumentExpirationDate.from_json(json) +# print the JSON string representation of the object +print(GetGuestResponseDataDocumentExpirationDate.to_json()) + +# convert the object into a dict +get_guest_response_data_document_expiration_date_dict = get_guest_response_data_document_expiration_date_instance.to_dict() +# create an instance of GetGuestResponseDataDocumentExpirationDate from a dict +get_guest_response_data_document_expiration_date_from_dict = GetGuestResponseDataDocumentExpirationDate.from_dict(get_guest_response_data_document_expiration_date_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md new file mode 100644 index 0000000..dfee72d --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md @@ -0,0 +1,29 @@ +# GetGuestResponseDataDocumentIssueDate + +Document Issue Date, can be null + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGuestResponseDataDocumentIssueDate from a JSON string +get_guest_response_data_document_issue_date_instance = GetGuestResponseDataDocumentIssueDate.from_json(json) +# print the JSON string representation of the object +print(GetGuestResponseDataDocumentIssueDate.to_json()) + +# convert the object into a dict +get_guest_response_data_document_issue_date_dict = get_guest_response_data_document_issue_date_instance.to_dict() +# create an instance of GetGuestResponseDataDocumentIssueDate from a dict +get_guest_response_data_document_issue_date_from_dict = GetGuestResponseDataDocumentIssueDate.from_dict(get_guest_response_data_document_issue_date_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md deleted file mode 100644 index 80735c2..0000000 --- a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetHouseAccountDetailsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**GetHouseAccountDetailsResponseData**](GetHouseAccountDetailsResponseData.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponse from a JSON string -get_house_account_details_response_instance = GetHouseAccountDetailsResponse.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponse.to_json()) - -# convert the object into a dict -get_house_account_details_response_dict = get_house_account_details_response_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponse from a dict -get_house_account_details_response_from_dict = GetHouseAccountDetailsResponse.from_dict(get_house_account_details_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md deleted file mode 100644 index 2a8d500..0000000 --- a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseData.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetHouseAccountDetailsResponseData - -Includes records list for House Account and summary info covering the date range specified - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | [**List[GetHouseAccountDetailsResponseDataTotalInner]**](GetHouseAccountDetailsResponseDataTotalInner.md) | Section with summary records info | [optional] -**records** | [**List[GetHouseAccountDetailsResponseDataRecordsInner]**](GetHouseAccountDetailsResponseDataRecordsInner.md) | Section with records list | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponseData from a JSON string -get_house_account_details_response_data_instance = GetHouseAccountDetailsResponseData.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponseData.to_json()) - -# convert the object into a dict -get_house_account_details_response_data_dict = get_house_account_details_response_data_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponseData from a dict -get_house_account_details_response_data_from_dict = GetHouseAccountDetailsResponseData.from_dict(get_house_account_details_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md deleted file mode 100644 index 71beecf..0000000 --- a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataRecordsInner.md +++ /dev/null @@ -1,43 +0,0 @@ -# GetHouseAccountDetailsResponseDataRecordsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**property_id** | **str** | Property ID | [optional] -**transaction_id** | **str** | Transaction ID | [optional] -**user_name** | **str** | User name | [optional] -**description** | **str** | Record description | [optional] -**notes** | **str** | Record notes | [optional] -**quantity** | **str** | Quantity of items (for product type record) | [optional] -**debit** | **str** | Debit amount (non formatted) | [optional] -**credit** | **str** | Credit amount (non formatted) | [optional] -**debit_formatter** | **str** | Debit amount (formatted) | [optional] -**credit_formatted** | **str** | Credit amount (formatted) | [optional] -**currency** | **str** | Currency string | [optional] -**transaction_code** | **str** | Transaction code | [optional] -**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] -**transaction_date** | **date** | Transaction date | [optional] -**transaction_date_time** | **datetime** | Transaction date and time | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string -get_house_account_details_response_data_records_inner_instance = GetHouseAccountDetailsResponseDataRecordsInner.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponseDataRecordsInner.to_json()) - -# convert the object into a dict -get_house_account_details_response_data_records_inner_dict = get_house_account_details_response_data_records_inner_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict -get_house_account_details_response_data_records_inner_from_dict = GetHouseAccountDetailsResponseDataRecordsInner.from_dict(get_house_account_details_response_data_records_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md b/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md deleted file mode 100644 index 22dcf3f..0000000 --- a/cloudbeds_pms_v1_2/docs/GetHouseAccountDetailsResponseDataTotalInner.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetHouseAccountDetailsResponseDataTotalInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | Total number of House Account records | [optional] -**quantity** | **str** | Total items quantity of product type records | [optional] -**debit** | **str** | Total debit (formatted) | [optional] -**credit** | **str** | Total credit (formatted) | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string -get_house_account_details_response_data_total_inner_instance = GetHouseAccountDetailsResponseDataTotalInner.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponseDataTotalInner.to_json()) - -# convert the object into a dict -get_house_account_details_response_data_total_inner_dict = get_house_account_details_response_data_total_inner_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict -get_house_account_details_response_data_total_inner_from_dict = GetHouseAccountDetailsResponseDataTotalInner.from_dict(get_house_account_details_response_data_total_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md b/cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md deleted file mode 100644 index a8e0dea..0000000 --- a/cloudbeds_pms_v1_2/docs/GetPaymentsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetPaymentsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetPaymentsResponseDataInner]**](GetPaymentsResponseDataInner.md) | Transaction list | [optional] -**count** | **int** | Number of results returned, based on pagination | [optional] -**total** | **int** | Total number of results | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPaymentsResponse from a JSON string -get_payments_response_instance = GetPaymentsResponse.from_json(json) -# print the JSON string representation of the object -print(GetPaymentsResponse.to_json()) - -# convert the object into a dict -get_payments_response_dict = get_payments_response_instance.to_dict() -# create an instance of GetPaymentsResponse from a dict -get_payments_response_from_dict = GetPaymentsResponse.from_dict(get_payments_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md deleted file mode 100644 index 187c263..0000000 --- a/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInner.md +++ /dev/null @@ -1,59 +0,0 @@ -# GetPaymentsResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **str** | Transaction identifier | [optional] -**payment_id** | **str** | Payment ID | [optional] -**property_id** | **str** | Property ID | [optional] -**transaction_date_time** | **datetime** | Transaction DateTime | [optional] -**transaction_date_time_utc** | **datetime** | Transaction DateTime on UTC timezone | [optional] -**user_id** | **str** | User ID that generated payment | [optional] -**user_name** | **str** | User name that generated payment | [optional] -**room_id** | **str** | ID of room. Only available when reservationID is sent. | [optional] -**room_name** | **str** | Name/Number of room. Only available when reservationID is sent. | [optional] -**guest_id** | **str** | Guest ID. Only available when reservationID or guestID is sent. | [optional] -**guest_name** | **str** | Guest Name. Only available when reservationID or guestID is sent. | [optional] -**guest_check_in** | **date** | Guest Check-In date. Only available when reservationID is sent. | [optional] -**guest_check_out** | **date** | Guest Check-Out date. Only available when reservationID is sent. | [optional] -**reservation_id** | **str** | Reservation ID. Only available when reservationID is sent. | [optional] -**sub_reservation_id** | **str** | Sub reservation ID. Only available when reservationID is sent. | [optional] -**reservation_status** | **str** | Current reservation status. Only available when reservationID is sent. | [optional] -**house_account_id** | **str** | House Account ID, Only available when houseAccountID is sent. | [optional] -**house_account_name** | **str** | House Account Name, Only available when houseAccountID is sent. | [optional] -**description** | **str** | Description of the transaction | [optional] -**payment_method** | **str** | Payment Method of the transaction | [optional] -**quantity** | **int** | | [optional] -**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] -**currency** | **str** | Currency of the transaction | [optional] -**is_posted** | **bool** | | [optional] -**is_voided** | **bool** | | [optional] -**is_deleted** | **bool** | | [optional] -**state** | **str** | | [optional] -**is_allocated** | **bool** | only if includePaymentAllocation=true | [optional] -**total_allocated** | **float** | ² Amount of allocated payment | [optional] -**total_unallocated** | **float** | ² Amount of unallocated payment | [optional] -**payment_allocation** | [**List[GetPaymentsResponseDataInnerPaymentAllocationInner]**](GetPaymentsResponseDataInnerPaymentAllocationInner.md) | ² | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPaymentsResponseDataInner from a JSON string -get_payments_response_data_inner_instance = GetPaymentsResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetPaymentsResponseDataInner.to_json()) - -# convert the object into a dict -get_payments_response_data_inner_dict = get_payments_response_data_inner_instance.to_dict() -# create an instance of GetPaymentsResponseDataInner from a dict -get_payments_response_data_inner_from_dict = GetPaymentsResponseDataInner.from_dict(get_payments_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md b/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md deleted file mode 100644 index 883b5d0..0000000 --- a/cloudbeds_pms_v1_2/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetPaymentsResponseDataInnerPaymentAllocationInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | ² Type of item described in allocation | [optional] -**reference** | **str** | ² Reference of item described in allocation | [optional] -**name** | **str** | ² Name of item described in allocation | [optional] -**amount** | **float** | ² Amount of allocated of payment total | [optional] -**taxes** | **List[str]** | ² Taxes of allocated payment. Values are an array numeric of taxes IDs | [optional] -**fees** | **List[str]** | ² Fees of allocated payment. Values are an array numeric of fees IDs | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string -get_payments_response_data_inner_payment_allocation_inner_instance = GetPaymentsResponseDataInnerPaymentAllocationInner.from_json(json) -# print the JSON string representation of the object -print(GetPaymentsResponseDataInnerPaymentAllocationInner.to_json()) - -# convert the object into a dict -get_payments_response_data_inner_payment_allocation_inner_dict = get_payments_response_data_inner_payment_allocation_inner_instance.to_dict() -# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict -get_payments_response_data_inner_payment_allocation_inner_from_dict = GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(get_payments_response_data_inner_payment_allocation_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetRateResponseData.md b/cloudbeds_pms_v1_2/docs/GetRateResponseData.md index 3e0761e..78a161a 100644 --- a/cloudbeds_pms_v1_2/docs/GetRateResponseData.md +++ b/cloudbeds_pms_v1_2/docs/GetRateResponseData.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **rate_id** | **str** | Rate ID | [optional] **is_derived** | **bool** | This rate has been derived from another rate | [optional] -**room_rate** | **float** | Base rate for the room, based on the parameters provided | [optional] -**total_rate** | **float** | Total rate for the room, based on the parameters provided. Calculated using base rates and additional costs from extra guests. | [optional] +**room_rate** | **float** | Base rate for the room, calculated based on the Room Type ID, selected dates, and promo code. This does not include additional guest charges | [optional] +**total_rate** | **float** | Total rate for the room, which includes the base rate (roomRate) plus additional costs for extra guests (adults and children) | [optional] **rooms_available** | **int** | Number of rooms available, based on the parameters provided | [optional] **days_of_week** | **List[str]** | | [optional] **room_rate_detailed** | [**List[GetRateResponseDataRoomRateDetailedInner]**](GetRateResponseDataRoomRateDetailedInner.md) | Detailed information on the rates, if requested | [optional] diff --git a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md index 2499b1c..b85140f 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md +++ b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md @@ -7,9 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Returns if the request could be completed | [optional] **data** | [**List[GetRoomTypesResponseDataInner]**](GetRoomTypesResponseDataInner.md) | Room Types details | [optional] -**count** | **int** | Number of results in this page | [optional] -**total** | **int** | Total number of results | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md index 50a1df8..9777aaa 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md +++ b/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md @@ -14,12 +14,6 @@ Name | Type | Description | Notes **max_guests** | **int** | Max number of guests allowed in the room type | [optional] **adults_included** | **int** | Number of adults included on the basic room rate | [optional] **children_included** | **int** | Number of children included on the basic room rate | [optional] -**room_type_photos** | **List[str]** | List of photos for the room type | [optional] -**room_type_features** | **List[str]** | List of features for the room type | [optional] -**rooms_available** | **int** | Number of rooms available, based on the parameters provided. | [optional] -**room_rate** | **float** | Basic rate for the room, based on the parameters provided. Does not return if roomsAvailable = 0. | [optional] -**room_type_units** | **int** | Number of rooms of a particular type | [optional] -**room_type_unit_dorm_beds** | **int** | Number of beds per Shared Dorm Room type | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md index a79be03..7144662 100644 --- a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md +++ b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md @@ -22,6 +22,8 @@ Name | Type | Description | Notes **child_id** | **str** | ID of the tax or fee that replaced current one | [optional] **created_at** | **str** | Date when tax or fee was created in the system | [optional] **expired_at** | **str** | Date when tax or fee was expired | [optional] +**room_types** | [**List[GetTaxesAndFeesResponseDataInnerRoomTypesInner]**](GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) | Room types this tax/fee applies to | [optional] +**date_ranges** | [**List[GetTaxesAndFeesResponseDataInnerDateRangesInner]**](GetTaxesAndFeesResponseDataInnerDateRangesInner.md) | Date ranges when this tax/fee is applicable | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md new file mode 100644 index 0000000..01c9f3a --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md @@ -0,0 +1,33 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**range** | **object** | ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD | [optional] +**amount** | **float** | Amount | [optional] +**amount_adult** | **float** | Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount_child** | **float** | Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) | Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInner from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_instance = GetTaxesAndFeesResponseDataInnerDateRangesInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInner from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInner.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md new file mode 100644 index 0000000..f307943 --- /dev/null +++ b/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md @@ -0,0 +1,30 @@ +# GetTaxesAndFeesResponseDataInnerRoomTypesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type's unique identifier | [optional] +**room_type_name** | **str** | Room type name | [optional] + +## Example + +```python +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerRoomTypesInner from a JSON string +get_taxes_and_fees_response_data_inner_room_types_inner_instance = GetTaxesAndFeesResponseDataInnerRoomTypesInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerRoomTypesInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_room_types_inner_dict = get_taxes_and_fees_response_data_inner_room_types_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerRoomTypesInner from a dict +get_taxes_and_fees_response_data_inner_room_types_inner_from_dict = GetTaxesAndFeesResponseDataInnerRoomTypesInner.from_dict(get_taxes_and_fees_response_data_inner_room_types_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md b/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md deleted file mode 100644 index 6122205..0000000 --- a/cloudbeds_pms_v1_2/docs/GetTransactionsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetTransactionsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetTransactionsResponseDataInner]**](GetTransactionsResponseDataInner.md) | Transaction list covering the date range specified | [optional] -**cloudbeds_accounting** | **bool** | if true it means the data comes from the new accounting solution | [optional] -**count** | **int** | Number of results returned, based on pagination and filter parameters | [optional] -**total** | **int** | Total count of results, based on filter parameters | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTransactionsResponse from a JSON string -get_transactions_response_instance = GetTransactionsResponse.from_json(json) -# print the JSON string representation of the object -print(GetTransactionsResponse.to_json()) - -# convert the object into a dict -get_transactions_response_dict = get_transactions_response_instance.to_dict() -# create an instance of GetTransactionsResponse from a dict -get_transactions_response_from_dict = GetTransactionsResponse.from_dict(get_transactions_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md b/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md deleted file mode 100644 index bd6e646..0000000 --- a/cloudbeds_pms_v1_2/docs/GetTransactionsResponseDataInner.md +++ /dev/null @@ -1,61 +0,0 @@ -# GetTransactionsResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**property_id** | **str** | Property ID | [optional] -**reservation_id** | **str** | Reservation ID | [optional] -**sub_reservation_id** | **str** | Sub Reservation ID | [optional] -**house_account_id** | **str** | House Account ID | [optional] -**house_account_name** | **str** | House Account Name | [optional] -**guest_id** | **str** | Guest ID | [optional] -**property_name** | **str** | Property Name | [optional] -**transaction_date_time** | **datetime** | DateTime that the transaction was stored | [optional] -**transaction_date_time_utc** | **datetime** | DateTime that the transaction was stored, in UTC timezone | [optional] -**transaction_modified_date_time** | **datetime** | DateTime that the transaction was last modified | [optional] -**transaction_modified_date_time_utc** | **datetime** | DateTime that the transaction was last modified, in UTC timezone | [optional] -**guest_check_in** | **date** | Reservation Check-in date | [optional] -**guest_check_out** | **date** | Reservation Check-out date | [optional] -**room_type_id** | **str** | ID of the room type | [optional] -**room_type_name** | **str** | Name of the room type | [optional] -**room_name** | **str** | Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room. | [optional] -**guest_name** | **str** | Name of the first guest of the reservation | [optional] -**description** | **str** | Description of the transaction | [optional] -**category** | **str** | Category of the transaction | [optional] -**transaction_code** | **str** | Transaction identifier that can be used, or left blank | [optional] -**notes** | **str** | If any special information needs to be added to the transaction, it will be in this field | [optional] -**quantity** | **int** | | [optional] -**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] -**currency** | **str** | Currency of the transaction | [optional] -**user_name** | **str** | User responsible for creating the transaction | [optional] -**transaction_type** | **str** | Consolidated transaction type | [optional] -**transaction_category** | **str** | Transaction category | [optional] -**item_category_name** | **str** | Item category name | [optional] -**transaction_id** | **str** | Transaction identifier | [optional] -**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] -**card_type** | **str** | Abbreviated name of credit card type | [optional] -**is_deleted** | **bool** | | [optional] -**service_date** | **str** | will represent the date when a product or service is delivered | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTransactionsResponseDataInner from a JSON string -get_transactions_response_data_inner_instance = GetTransactionsResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetTransactionsResponseDataInner.to_json()) - -# convert the object into a dict -get_transactions_response_data_inner_dict = get_transactions_response_data_inner_instance.to_dict() -# create an instance of GetTransactionsResponseDataInner from a dict -get_transactions_response_data_inner_from_dict = GetTransactionsResponseDataInner.from_dict(get_transactions_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/docs/GuestApi.md b/cloudbeds_pms_v1_2/docs/GuestApi.md index 1c5d7e2..6ba9e1d 100644 --- a/cloudbeds_pms_v1_2/docs/GuestApi.md +++ b/cloudbeds_pms_v1_2/docs/GuestApi.md @@ -999,9 +999,9 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: guest_birth_date = '2013-10-20' # date | (optional) guest_document_type = 'guest_document_type_example' # str | Document Type
dni - Identity card
nie - Residence permit
na - non selection
(optional) guest_document_number = 'guest_document_number_example' # str | (mandatory when guestDocumentType is sent) (optional) - guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) - guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) custom_fields = [cloudbeds_pms_v1_2.PostGuestRequestCustomFieldsInner()] # List[PostGuestRequestCustomFieldsInner] | Only guest custom fields are allowed. (optional) guest_note = 'guest_note_example' # str | Note to be added to the Guest (optional) reservation_note = 'reservation_note_example' # str | Note to be added only to the Reservation. (optional) @@ -1042,9 +1042,9 @@ Name | Type | Description | Notes **guest_birth_date** | **date**| | [optional] **guest_document_type** | **str**| Document Type<br /> dni - Identity card<br /> nie - Residence permit<br /> na - non selection<br /> | [optional] **guest_document_number** | **str**| (mandatory when guestDocumentType is sent) | [optional] - **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI) | [optional] **guest_document_issuing_country** | **str**| Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] - **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or NIE) | [optional] **custom_fields** | [**List[PostGuestRequestCustomFieldsInner]**](PostGuestRequestCustomFieldsInner.md)| Only guest custom fields are allowed. | [optional] **guest_note** | **str**| Note to be added to the Guest | [optional] **reservation_note** | **str**| Note to be added only to the Reservation. | [optional] @@ -1312,9 +1312,9 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: guest_birth_date = '2013-10-20' # date | (optional) guest_document_type = 'guest_document_type_example' # str | It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
(optional) guest_document_number = 'guest_document_number_example' # str | (mandatory when guestDocumentType is sent) (optional) - guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) - guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent) (optional) + guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) guest_custom_fields = [cloudbeds_pms_v1_2.PutGuestRequestGuestCustomFieldsInner()] # List[PutGuestRequestGuestCustomFieldsInner] | (optional) guest_company_name = 'guest_company_name_example' # str | Guest company name (optional) guest_company_tax_id = 'guest_company_tax_id_example' # str | Guest company tax ID (optional) @@ -1353,9 +1353,9 @@ Name | Type | Description | Notes **guest_birth_date** | **date**| | [optional] **guest_document_type** | **str**| It is mandatory to send all document information<br /> na - non selection<br /> dni - Identity card<br /> nie - Residence permit<br /> | [optional] **guest_document_number** | **str**| (mandatory when guestDocumentType is sent) | [optional] - **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI) | [optional] **guest_document_issuing_country** | **str**| ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] - **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent) | [optional] + **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or NIE) | [optional] **guest_custom_fields** | [**List[PutGuestRequestGuestCustomFieldsInner]**](PutGuestRequestGuestCustomFieldsInner.md)| | [optional] **guest_company_name** | **str**| Guest company name | [optional] **guest_company_tax_id** | **str**| Guest company tax ID | [optional] diff --git a/cloudbeds_pms_v1_2/docs/HotelApi.md b/cloudbeds_pms_v1_2/docs/HotelApi.md index 8ff8d7c..c4a906d 100644 --- a/cloudbeds_pms_v1_2/docs/HotelApi.md +++ b/cloudbeds_pms_v1_2/docs/HotelApi.md @@ -11,11 +11,11 @@ Method | HTTP request | Description # **get_files_get** -> GetFilesResponse get_files_get(property_id=property_id, sort_by=sort_by, order_by=order_by, name=name, page_number=page_number, page_size=page_size) +> GetFilesResponse get_files_get(property_id=property_id, group_code=group_code, sort_by=sort_by, order_by=order_by, name=name, page_number=page_number, page_size=page_size) getFiles -Returns a list of files attached to a hotel, ordered by creation date +Returns a list of files attached to a hotel or group profile, ordered by creation date ### Example @@ -52,6 +52,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) + group_code = 'group_code_example' # str | The group code, if the files are to be fetched from a group profile (optional) sort_by = date # str | Sort By parameter (optional) (default to date) order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) name = 'name_example' # str | Filter filess by name. Include only with names containing specified string (optional) @@ -60,7 +61,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: try: # getFiles - api_response = api_instance.get_files_get(property_id=property_id, sort_by=sort_by, order_by=order_by, name=name, page_number=page_number, page_size=page_size) + api_response = api_instance.get_files_get(property_id=property_id, group_code=group_code, sort_by=sort_by, order_by=order_by, name=name, page_number=page_number, page_size=page_size) print("The response of HotelApi->get_files_get:\n") pprint(api_response) except Exception as e: @@ -75,6 +76,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] + **group_code** | **str**| The group code, if the files are to be fetched from a group profile | [optional] **sort_by** | **str**| Sort By parameter | [optional] [default to date] **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] **name** | **str**| Filter filess by name. Include only with names containing specified string | [optional] @@ -275,7 +277,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_file_post** -> PostFileResponse post_file_post(property_id=property_id, file=file) +> PostFileResponse post_file_post(property_id=property_id, file=file, group_code=group_code) postFile @@ -317,10 +319,11 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) + group_code = 'group_code_example' # str | optional - the group code if the file is to be attached to a group profile (optional) try: # postFile - api_response = api_instance.post_file_post(property_id=property_id, file=file) + api_response = api_instance.post_file_post(property_id=property_id, file=file, group_code=group_code) print("The response of HotelApi->post_file_post:\n") pprint(api_response) except Exception as e: @@ -336,6 +339,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 100MB | [optional] + **group_code** | **str**| optional - the group code if the file is to be attached to a group profile | [optional] ### Return type diff --git a/cloudbeds_pms_v1_2/docs/HouseAccountApi.md b/cloudbeds_pms_v1_2/docs/HouseAccountApi.md index 51e6974..d57e930 100644 --- a/cloudbeds_pms_v1_2/docs/HouseAccountApi.md +++ b/cloudbeds_pms_v1_2/docs/HouseAccountApi.md @@ -4,100 +4,11 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_house_account_details_get**](HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails [**get_house_account_list_get**](HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList [**post_new_house_account_post**](HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount [**put_house_account_status_put**](HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus -# **get_house_account_details_get** -> GetHouseAccountDetailsResponse get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) - -getHouseAccountDetails - -Pulls details of specific house account - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) - house_account_id = 'house_account_id_example' # str | House Account ID to get details for - property_id = 'property_id_example' # str | Property ID (optional) - results_from = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) - results_to = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) - - try: - # getHouseAccountDetails - api_response = api_instance.get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) - print("The response of HouseAccountApi->get_house_account_details_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling HouseAccountApi->get_house_account_details_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **house_account_id** | **str**| House Account ID to get details for | - **property_id** | **str**| Property ID | [optional] - **results_from** | **date**| date\"] Inferior limit date, used to filter result records | [optional] - **results_to** | **date**| date\"] Inferior limit date, used to filter result records | [optional] - -### Return type - -[**GetHouseAccountDetailsResponse**](GetHouseAccountDetailsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_house_account_list_get** > GetHouseAccountListResponse get_house_account_list_get(property_id=property_id) diff --git a/cloudbeds_pms_v1_2/docs/PaymentApi.md b/cloudbeds_pms_v1_2/docs/PaymentApi.md index 39e0ea3..f14fd13 100644 --- a/cloudbeds_pms_v1_2/docs/PaymentApi.md +++ b/cloudbeds_pms_v1_2/docs/PaymentApi.md @@ -6,8 +6,6 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**get_payment_methods_get**](PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods [**get_payments_capabilities_get**](PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities -[**get_payments_get**](PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments -[**get_transactions_get**](PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions [**post_charge_post**](PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge [**post_credit_card_post**](PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard [**post_custom_payment_method_post**](PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod @@ -181,232 +179,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_payments_get** -> GetPaymentsResponse get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) - -getPayments - -Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - reservation_id = 'reservation_id_example' # str | ¹ ID for the reservation to be queried. - house_account_id = 'house_account_id_example' # str | ¹ ID for the house account to be queried. - guest_id = 'guest_id_example' # str | ¹ ID for the guest to be queried. - property_id = 'property_id_example' # str | Property ID (optional) - created_from = '2013-10-20T19:20:30+01:00' # datetime | Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. (optional) - created_to = '2013-10-20T19:20:30+01:00' # datetime | Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. (optional) - include_payment_allocation = False # bool | Adds payment allocation to response, when available. (optional) (default to False) - page_number = 1 # int | Page number (optional) (default to 1) - page_size = 100 # int | Page size (optional) (default to 100) - - try: - # getPayments - api_response = api_instance.get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) - print("The response of PaymentApi->get_payments_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->get_payments_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| ¹ ID for the reservation to be queried. | - **house_account_id** | **str**| ¹ ID for the house account to be queried. | - **guest_id** | **str**| ¹ ID for the guest to be queried. | - **property_id** | **str**| Property ID | [optional] - **created_from** | **datetime**| Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. | [optional] - **created_to** | **datetime**| Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. | [optional] - **include_payment_allocation** | **bool**| Adds payment allocation to response, when available. | [optional] [default to False] - **page_number** | **int**| Page number | [optional] [default to 1] - **page_size** | **int**| Page size | [optional] [default to 100] - -### Return type - -[**GetPaymentsResponse**](GetPaymentsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_transactions_get** -> GetTransactionsResponse get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) - -getTransactions - -Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) - include_debit = True # bool | If the response should include debit transactions (optional) (default to True) - include_credit = True # bool | If the response should include credit transactions (optional) (default to True) - include_deleted = False # bool | If the response should include deleted transactions (optional) (default to False) - include_children = False # bool | If the response should include children transactions (requires the parameter transactionIDs) (optional) (default to False) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. (optional) - sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation Identifier, used to filter transactions result (optional) - room_id = 'room_id_example' # str | Room ID, used to filter transactions result (optional) - guest_id = 'guest_id_example' # str | Guest ID, used to filter transactions result (optional) - house_account_id = 'house_account_id_example' # str | House Account ID, used to filter transactions result (optional) - transaction_ids = 'transaction_ids_example' # str | List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. (optional) - results_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (posted transaction date) (optional) - results_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (posted transaction date) (optional) - modified_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (optional) - modified_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (optional) - service_date_from = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) - service_date_to = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) - created_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. (optional) - created_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. (optional) - transaction_filter = 'simple_transactions,adjustments,adjustments_voids,voids,refunds' # str | Transaction filter is used to filter transactions result (optional) (default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds') - page_number = 1 # int | Results page number (optional) (default to 1) - page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) - sort_by = 'sort_by_example' # str | Sort response results by field (optional) - order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) - - try: - # getTransactions - api_response = api_instance.get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) - print("The response of PaymentApi->get_transactions_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->get_transactions_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] - **include_debit** | **bool**| If the response should include debit transactions | [optional] [default to True] - **include_credit** | **bool**| If the response should include credit transactions | [optional] [default to True] - **include_deleted** | **bool**| If the response should include deleted transactions | [optional] [default to False] - **include_children** | **bool**| If the response should include children transactions (requires the parameter transactionIDs) | [optional] [default to False] - **reservation_id** | **str**| Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. | [optional] - **sub_reservation_id** | **str**| Sub Reservation Identifier, used to filter transactions result | [optional] - **room_id** | **str**| Room ID, used to filter transactions result | [optional] - **guest_id** | **str**| Guest ID, used to filter transactions result | [optional] - **house_account_id** | **str**| House Account ID, used to filter transactions result | [optional] - **transaction_ids** | **str**| List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. | [optional] - **results_from** | **date**| Inferior limit date, used to filter transactions result (posted transaction date) | [optional] - **results_to** | **date**| Superior limit date, used to filter transactions result (posted transaction date) | [optional] - **modified_from** | **date**| Inferior limit date, used to filter transactions result | [optional] - **modified_to** | **date**| Superior limit date, used to filter transactions result | [optional] - **service_date_from** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] - **service_date_to** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] - **created_from** | **datetime**| Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. | [optional] - **created_to** | **datetime**| Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. | [optional] - **transaction_filter** | **str**| Transaction filter is used to filter transactions result | [optional] [default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds'] - **page_number** | **int**| Results page number | [optional] [default to 1] - **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] - **sort_by** | **str**| Sort response results by field | [optional] - **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] - -### Return type - -[**GetTransactionsResponse**](GetTransactionsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_charge_post** > PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md index c165307..205cbc1 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md +++ b/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **closed_to_departure** | **bool** | Whether it is closed to departure. | [optional] **cut_off** | **int** | Cut off time for the selected date. | [optional] **last_minute_booking** | **int** | Last minute bookings. | [optional] +**blocked** | **bool** | Whether the accommodation is blocked. | [optional] **guest_pricing** | [**PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_2/models/__init__.py b/cloudbeds_pms_v1_2/models/__init__.py index d916e7a..2a8f62d 100644 --- a/cloudbeds_pms_v1_2/models/__init__.py +++ b/cloudbeds_pms_v1_2/models/__init__.py @@ -19,10 +19,6 @@ from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData -from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse -from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner @@ -68,7 +64,10 @@ from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse @@ -85,10 +84,6 @@ from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse @@ -123,9 +118,6 @@ from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner @@ -198,8 +190,8 @@ from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner -from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse -from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse diff --git a/cloudbeds_pms_v1_2/models/get_adjustment_response_data.py b/cloudbeds_pms_v1_2/models/get_adjustment_response_data.py deleted file mode 100644 index 37de423..0000000 --- a/cloudbeds_pms_v1_2/models/get_adjustment_response_data.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetAdjustmentResponseData(BaseModel): - """ - Adjustment - """ # noqa: E501 - adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") - property_id: Optional[StrictStr] = Field(default=None, description="unique hotel identifier", alias="propertyID") - created: Optional[datetime] = Field(default=None, description="Adjustment created time") - room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") - reservation_identifier: Optional[StrictStr] = Field(default=None, description="Reservation Unique Identifier", alias="reservationIdentifier") - description: Optional[StrictStr] = Field(default=None, description="Adjustment description") - notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") - currency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment currency") - posted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment posted transaction") - type: Optional[StrictStr] = Field(default=None, description="Adjustment type") - void_id: Optional[StrictStr] = Field(default=None, description="Voided adjustment transaction unique identifier. Null if adjustment not voided", alias="voidID") - __properties: ClassVar[List[str]] = ["adjustmentID", "propertyID", "created", "roomID", "roomName", "reservationIdentifier", "description", "notes", "amount", "currency", "posted", "type", "voidID"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adjustmentID": obj.get("adjustmentID"), - "propertyID": obj.get("propertyID"), - "created": obj.get("created"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "reservationIdentifier": obj.get("reservationIdentifier"), - "description": obj.get("description"), - "notes": obj.get("notes"), - "amount": obj.get("amount"), - "currency": obj.get("currency"), - "posted": obj.get("posted"), - "type": obj.get("type"), - "voidID": obj.get("voidID") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_adjustments_response.py b/cloudbeds_pms_v1_2/models/get_adjustments_response.py deleted file mode 100644 index a120638..0000000 --- a/cloudbeds_pms_v1_2/models/get_adjustments_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData -from typing import Optional, Set -from typing_extensions import Self - -class GetAdjustmentsResponse(BaseModel): - """ - GetAdjustmentsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[GetAdjustmentsResponseData] = None - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": GetAdjustmentsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_adjustments_response_data.py b/cloudbeds_pms_v1_2/models/get_adjustments_response_data.py deleted file mode 100644 index c2c90b0..0000000 --- a/cloudbeds_pms_v1_2/models/get_adjustments_response_data.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetAdjustmentsResponseData(BaseModel): - """ - Adjustments - """ # noqa: E501 - adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") - created: Optional[datetime] = Field(default=None, description="Adjustment created time") - room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") - description: Optional[StrictStr] = Field(default=None, description="Adjustment description") - notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") - type: Optional[StrictStr] = Field(default=None, description="Adjustment type") - __properties: ClassVar[List[str]] = ["adjustmentID", "created", "roomID", "roomName", "description", "notes", "amount", "type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adjustmentID": obj.get("adjustmentID"), - "created": obj.get("created"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "description": obj.get("description"), - "notes": obj.get("notes"), - "amount": obj.get("amount"), - "type": obj.get("type") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data.py b/cloudbeds_pms_v1_2/models/get_guest_response_data.py index 5f33438..ffea211 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_response_data.py +++ b/cloudbeds_pms_v1_2/models/get_guest_response_data.py @@ -17,10 +17,12 @@ import re # noqa: F401 import json -from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate from typing import Optional, Set from typing_extensions import Self @@ -40,12 +42,12 @@ class GetGuestResponseData(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") zip: Optional[StrictStr] = Field(default=None, description="Zip") state: Optional[StrictStr] = Field(default=None, description="State") - birth_date: Optional[date] = Field(default=None, description="Birth date", alias="birthDate") + birth_date: Optional[GetGuestResponseDataBirthDate] = Field(default=None, alias="birthDate") document_type: Optional[StrictStr] = Field(default=None, description="Document Type", alias="documentType") document_number: Optional[StrictStr] = Field(default=None, description="Document number", alias="documentNumber") - document_issue_date: Optional[date] = Field(default=None, description="Document Issue Date, can be null", alias="documentIssueDate") + document_issue_date: Optional[GetGuestResponseDataDocumentIssueDate] = Field(default=None, alias="documentIssueDate") document_issuing_country: Optional[StrictStr] = Field(default=None, description="Document Issuing Country (2-digits code)", alias="documentIssuingCountry") - document_expiration_date: Optional[date] = Field(default=None, description="Document Expiration Date, can be null", alias="documentExpirationDate") + document_expiration_date: Optional[GetGuestResponseDataDocumentExpirationDate] = Field(default=None, alias="documentExpirationDate") custom_fields: Optional[List[GetGuestResponseDataCustomFieldsInner]] = Field(default=None, alias="customFields") special_requests: Optional[StrictStr] = Field(default=None, description="Special requests made by the guest at the time of the booking", alias="specialRequests") tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") @@ -106,6 +108,15 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of birth_date + if self.birth_date: + _dict['birthDate'] = self.birth_date.to_dict() + # override the default output from pydantic by calling `to_dict()` of document_issue_date + if self.document_issue_date: + _dict['documentIssueDate'] = self.document_issue_date.to_dict() + # override the default output from pydantic by calling `to_dict()` of document_expiration_date + if self.document_expiration_date: + _dict['documentExpirationDate'] = self.document_expiration_date.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) _items = [] if self.custom_fields: @@ -152,12 +163,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "zip": obj.get("zip"), "state": obj.get("state"), - "birthDate": obj.get("birthDate"), + "birthDate": GetGuestResponseDataBirthDate.from_dict(obj["birthDate"]) if obj.get("birthDate") is not None else None, "documentType": obj.get("documentType"), "documentNumber": obj.get("documentNumber"), - "documentIssueDate": obj.get("documentIssueDate"), + "documentIssueDate": GetGuestResponseDataDocumentIssueDate.from_dict(obj["documentIssueDate"]) if obj.get("documentIssueDate") is not None else None, "documentIssuingCountry": obj.get("documentIssuingCountry"), - "documentExpirationDate": obj.get("documentExpirationDate"), + "documentExpirationDate": GetGuestResponseDataDocumentExpirationDate.from_dict(obj["documentExpirationDate"]) if obj.get("documentExpirationDate") is not None else None, "customFields": [GetGuestResponseDataCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, "specialRequests": obj.get("specialRequests"), "taxID": obj.get("taxID"), diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py b/cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py new file mode 100644 index 0000000..3616f28 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETGUESTRESPONSEDATABIRTHDATE_ONE_OF_SCHEMAS = ["date", "str"] + +class GetGuestResponseDataBirthDate(BaseModel): + """ + Birth date + """ + # data type: date + oneof_schema_1_validator: Optional[date] = None + # data type: str + oneof_schema_2_validator: Optional[StrictStr] = None + actual_instance: Optional[Union[date, str]] = None + one_of_schemas: Set[str] = { "date", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetGuestResponseDataBirthDate.model_construct() + error_messages = [] + match = 0 + # validate data type: date + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetGuestResponseDataBirthDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetGuestResponseDataBirthDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into date + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetGuestResponseDataBirthDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetGuestResponseDataBirthDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], date, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py b/cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py new file mode 100644 index 0000000..41a5b4e --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETGUESTRESPONSEDATADOCUMENTEXPIRATIONDATE_ONE_OF_SCHEMAS = ["date", "str"] + +class GetGuestResponseDataDocumentExpirationDate(BaseModel): + """ + Document Expiration Date, can be null + """ + # data type: date + oneof_schema_1_validator: Optional[date] = None + # data type: str + oneof_schema_2_validator: Optional[StrictStr] = None + actual_instance: Optional[Union[date, str]] = None + one_of_schemas: Set[str] = { "date", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetGuestResponseDataDocumentExpirationDate.model_construct() + error_messages = [] + match = 0 + # validate data type: date + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetGuestResponseDataDocumentExpirationDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetGuestResponseDataDocumentExpirationDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into date + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetGuestResponseDataDocumentExpirationDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetGuestResponseDataDocumentExpirationDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], date, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py b/cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py new file mode 100644 index 0000000..1e8fe25 --- /dev/null +++ b/cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.2 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETGUESTRESPONSEDATADOCUMENTISSUEDATE_ONE_OF_SCHEMAS = ["date", "str"] + +class GetGuestResponseDataDocumentIssueDate(BaseModel): + """ + Document Issue Date, can be null + """ + # data type: date + oneof_schema_1_validator: Optional[date] = None + # data type: str + oneof_schema_2_validator: Optional[StrictStr] = None + actual_instance: Optional[Union[date, str]] = None + one_of_schemas: Set[str] = { "date", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetGuestResponseDataDocumentIssueDate.model_construct() + error_messages = [] + match = 0 + # validate data type: date + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetGuestResponseDataDocumentIssueDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetGuestResponseDataDocumentIssueDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into date + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetGuestResponseDataDocumentIssueDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetGuestResponseDataDocumentIssueDate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], date, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response.py deleted file mode 100644 index 5af4209..0000000 --- a/cloudbeds_pms_v1_2/models/get_house_account_details_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponse(BaseModel): - """ - GetHouseAccountDetailsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[GetHouseAccountDetailsResponseData] = None - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": GetHouseAccountDetailsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py deleted file mode 100644 index dc8a6e0..0000000 --- a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponseData(BaseModel): - """ - Includes records list for House Account and summary info covering the date range specified - """ # noqa: E501 - total: Optional[List[GetHouseAccountDetailsResponseDataTotalInner]] = Field(default=None, description="Section with summary records info") - records: Optional[List[GetHouseAccountDetailsResponseDataRecordsInner]] = Field(default=None, description="Section with records list") - __properties: ClassVar[List[str]] = ["total", "records"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in total (list) - _items = [] - if self.total: - for _item_total in self.total: - if _item_total: - _items.append(_item_total.to_dict()) - _dict['total'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in records (list) - _items = [] - if self.records: - for _item_records in self.records: - if _item_records: - _items.append(_item_records.to_dict()) - _dict['records'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": [GetHouseAccountDetailsResponseDataTotalInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, - "records": [GetHouseAccountDetailsResponseDataRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py deleted file mode 100644 index 6f1ee79..0000000 --- a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_records_inner.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date, datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponseDataRecordsInner(BaseModel): - """ - GetHouseAccountDetailsResponseDataRecordsInner - """ # noqa: E501 - property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction ID", alias="transactionID") - user_name: Optional[StrictStr] = Field(default=None, description="User name", alias="userName") - description: Optional[StrictStr] = Field(default=None, description="Record description") - notes: Optional[StrictStr] = Field(default=None, description="Record notes") - quantity: Optional[StrictStr] = Field(default=None, description="Quantity of items (for product type record)") - debit: Optional[StrictStr] = Field(default=None, description="Debit amount (non formatted)") - credit: Optional[StrictStr] = Field(default=None, description="Credit amount (non formatted)") - debit_formatter: Optional[StrictStr] = Field(default=None, description="Debit amount (formatted)", alias="debitFormatter") - credit_formatted: Optional[StrictStr] = Field(default=None, description="Credit amount (formatted)", alias="creditFormatted") - currency: Optional[StrictStr] = Field(default=None, description="Currency string") - transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction code", alias="transactionCode") - parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") - transaction_date: Optional[date] = Field(default=None, description="Transaction date", alias="transactionDate") - transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction date and time", alias="transactionDateTime") - __properties: ClassVar[List[str]] = ["propertyID", "transactionID", "userName", "description", "notes", "quantity", "debit", "credit", "debitFormatter", "creditFormatted", "currency", "transactionCode", "parentTransactionID", "transactionDate", "transactionDateTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "propertyID": obj.get("propertyID"), - "transactionID": obj.get("transactionID"), - "userName": obj.get("userName"), - "description": obj.get("description"), - "notes": obj.get("notes"), - "quantity": obj.get("quantity"), - "debit": obj.get("debit"), - "credit": obj.get("credit"), - "debitFormatter": obj.get("debitFormatter"), - "creditFormatted": obj.get("creditFormatted"), - "currency": obj.get("currency"), - "transactionCode": obj.get("transactionCode"), - "parentTransactionID": obj.get("parentTransactionID"), - "transactionDate": obj.get("transactionDate"), - "transactionDateTime": obj.get("transactionDateTime") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py deleted file mode 100644 index 49f060d..0000000 --- a/cloudbeds_pms_v1_2/models/get_house_account_details_response_data_total_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponseDataTotalInner(BaseModel): - """ - GetHouseAccountDetailsResponseDataTotalInner - """ # noqa: E501 - count: Optional[StrictInt] = Field(default=None, description="Total number of House Account records") - quantity: Optional[StrictStr] = Field(default=None, description="Total items quantity of product type records") - debit: Optional[StrictStr] = Field(default=None, description="Total debit (formatted)") - credit: Optional[StrictStr] = Field(default=None, description="Total credit (formatted)") - __properties: ClassVar[List[str]] = ["count", "quantity", "debit", "credit"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "count": obj.get("count"), - "quantity": obj.get("quantity"), - "debit": obj.get("debit"), - "credit": obj.get("credit") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_payments_response.py b/cloudbeds_pms_v1_2/models/get_payments_response.py deleted file mode 100644 index ab9ef53..0000000 --- a/cloudbeds_pms_v1_2/models/get_payments_response.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetPaymentsResponse(BaseModel): - """ - GetPaymentsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetPaymentsResponseDataInner]] = Field(default=None, description="Transaction list") - count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination") - total: Optional[StrictInt] = Field(default=None, description="Total number of results") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPaymentsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPaymentsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetPaymentsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "count": obj.get("count"), - "total": obj.get("total"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py deleted file mode 100644 index fefb949..0000000 --- a/cloudbeds_pms_v1_2/models/get_payments_response_data_inner.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date, datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner -from typing import Optional, Set -from typing_extensions import Self - -class GetPaymentsResponseDataInner(BaseModel): - """ - GetPaymentsResponseDataInner - """ # noqa: E501 - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") - payment_id: Optional[StrictStr] = Field(default=None, description="Payment ID", alias="paymentID") - property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") - transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction DateTime", alias="transactionDateTime") - transaction_date_time_utc: Optional[datetime] = Field(default=None, description="Transaction DateTime on UTC timezone", alias="transactionDateTimeUTC") - user_id: Optional[StrictStr] = Field(default=None, description="User ID that generated payment", alias="userID") - user_name: Optional[StrictStr] = Field(default=None, description="User name that generated payment", alias="userName") - room_id: Optional[StrictStr] = Field(default=None, description="ID of room. Only available when reservationID is sent.", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Name/Number of room. Only available when reservationID is sent.", alias="roomName") - guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID. Only available when reservationID or guestID is sent.", alias="guestID") - guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name. Only available when reservationID or guestID is sent.", alias="guestName") - guest_check_in: Optional[date] = Field(default=None, description="Guest Check-In date. Only available when reservationID is sent.", alias="guestCheckIn") - guest_check_out: Optional[date] = Field(default=None, description="Guest Check-Out date. Only available when reservationID is sent.", alias="guestCheckOut") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID. Only available when reservationID is sent.", alias="reservationID") - sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub reservation ID. Only available when reservationID is sent.", alias="subReservationID") - reservation_status: Optional[StrictStr] = Field(default=None, description="Current reservation status. Only available when reservationID is sent.", alias="reservationStatus") - house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID, Only available when houseAccountID is sent.", alias="houseAccountID") - house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name, Only available when houseAccountID is sent.", alias="houseAccountName") - description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") - payment_method: Optional[StrictStr] = Field(default=None, description="Payment Method of the transaction", alias="paymentMethod") - quantity: Optional[StrictInt] = None - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") - currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") - is_posted: Optional[StrictBool] = Field(default=None, alias="isPosted") - is_voided: Optional[StrictBool] = Field(default=None, alias="isVoided") - is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") - state: Optional[StrictStr] = None - is_allocated: Optional[StrictBool] = Field(default=None, description="only if includePaymentAllocation=true", alias="isAllocated") - total_allocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated payment", alias="totalAllocated") - total_unallocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of unallocated payment", alias="totalUnallocated") - payment_allocation: Optional[List[GetPaymentsResponseDataInnerPaymentAllocationInner]] = Field(default=None, description="²", alias="paymentAllocation") - __properties: ClassVar[List[str]] = ["transactionID", "paymentID", "propertyID", "transactionDateTime", "transactionDateTimeUTC", "userID", "userName", "roomID", "roomName", "guestID", "guestName", "guestCheckIn", "guestCheckOut", "reservationID", "subReservationID", "reservationStatus", "houseAccountID", "houseAccountName", "description", "paymentMethod", "quantity", "amount", "currency", "isPosted", "isVoided", "isDeleted", "state", "isAllocated", "totalAllocated", "totalUnallocated", "paymentAllocation"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in payment_allocation (list) - _items = [] - if self.payment_allocation: - for _item_payment_allocation in self.payment_allocation: - if _item_payment_allocation: - _items.append(_item_payment_allocation.to_dict()) - _dict['paymentAllocation'] = _items - # set to None if room_id (nullable) is None - # and model_fields_set contains the field - if self.room_id is None and "room_id" in self.model_fields_set: - _dict['roomID'] = None - - # set to None if room_name (nullable) is None - # and model_fields_set contains the field - if self.room_name is None and "room_name" in self.model_fields_set: - _dict['roomName'] = None - - # set to None if guest_id (nullable) is None - # and model_fields_set contains the field - if self.guest_id is None and "guest_id" in self.model_fields_set: - _dict['guestID'] = None - - # set to None if guest_name (nullable) is None - # and model_fields_set contains the field - if self.guest_name is None and "guest_name" in self.model_fields_set: - _dict['guestName'] = None - - # set to None if guest_check_in (nullable) is None - # and model_fields_set contains the field - if self.guest_check_in is None and "guest_check_in" in self.model_fields_set: - _dict['guestCheckIn'] = None - - # set to None if guest_check_out (nullable) is None - # and model_fields_set contains the field - if self.guest_check_out is None and "guest_check_out" in self.model_fields_set: - _dict['guestCheckOut'] = None - - # set to None if reservation_id (nullable) is None - # and model_fields_set contains the field - if self.reservation_id is None and "reservation_id" in self.model_fields_set: - _dict['reservationID'] = None - - # set to None if sub_reservation_id (nullable) is None - # and model_fields_set contains the field - if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: - _dict['subReservationID'] = None - - # set to None if reservation_status (nullable) is None - # and model_fields_set contains the field - if self.reservation_status is None and "reservation_status" in self.model_fields_set: - _dict['reservationStatus'] = None - - # set to None if house_account_id (nullable) is None - # and model_fields_set contains the field - if self.house_account_id is None and "house_account_id" in self.model_fields_set: - _dict['houseAccountID'] = None - - # set to None if house_account_name (nullable) is None - # and model_fields_set contains the field - if self.house_account_name is None and "house_account_name" in self.model_fields_set: - _dict['houseAccountName'] = None - - # set to None if is_allocated (nullable) is None - # and model_fields_set contains the field - if self.is_allocated is None and "is_allocated" in self.model_fields_set: - _dict['isAllocated'] = None - - # set to None if total_allocated (nullable) is None - # and model_fields_set contains the field - if self.total_allocated is None and "total_allocated" in self.model_fields_set: - _dict['totalAllocated'] = None - - # set to None if total_unallocated (nullable) is None - # and model_fields_set contains the field - if self.total_unallocated is None and "total_unallocated" in self.model_fields_set: - _dict['totalUnallocated'] = None - - # set to None if payment_allocation (nullable) is None - # and model_fields_set contains the field - if self.payment_allocation is None and "payment_allocation" in self.model_fields_set: - _dict['paymentAllocation'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "transactionID": obj.get("transactionID"), - "paymentID": obj.get("paymentID"), - "propertyID": obj.get("propertyID"), - "transactionDateTime": obj.get("transactionDateTime"), - "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), - "userID": obj.get("userID"), - "userName": obj.get("userName"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "guestID": obj.get("guestID"), - "guestName": obj.get("guestName"), - "guestCheckIn": obj.get("guestCheckIn"), - "guestCheckOut": obj.get("guestCheckOut"), - "reservationID": obj.get("reservationID"), - "subReservationID": obj.get("subReservationID"), - "reservationStatus": obj.get("reservationStatus"), - "houseAccountID": obj.get("houseAccountID"), - "houseAccountName": obj.get("houseAccountName"), - "description": obj.get("description"), - "paymentMethod": obj.get("paymentMethod"), - "quantity": obj.get("quantity"), - "amount": obj.get("amount"), - "currency": obj.get("currency"), - "isPosted": obj.get("isPosted"), - "isVoided": obj.get("isVoided"), - "isDeleted": obj.get("isDeleted"), - "state": obj.get("state"), - "isAllocated": obj.get("isAllocated"), - "totalAllocated": obj.get("totalAllocated"), - "totalUnallocated": obj.get("totalUnallocated"), - "paymentAllocation": [GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(_item) for _item in obj["paymentAllocation"]] if obj.get("paymentAllocation") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_rate_response_data.py b/cloudbeds_pms_v1_2/models/get_rate_response_data.py index 7d6495d..a4eec59 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_response_data.py +++ b/cloudbeds_pms_v1_2/models/get_rate_response_data.py @@ -29,8 +29,8 @@ class GetRateResponseData(BaseModel): """ # noqa: E501 rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") is_derived: Optional[StrictBool] = Field(default=None, description="This rate has been derived from another rate", alias="isDerived") - room_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the room, based on the parameters provided", alias="roomRate") - total_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the room, based on the parameters provided. Calculated using base rates and additional costs from extra guests.", alias="totalRate") + room_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the room, calculated based on the Room Type ID, selected dates, and promo code. This does not include additional guest charges", alias="roomRate") + total_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the room, which includes the base rate (roomRate) plus additional costs for extra guests (adults and children)", alias="totalRate") rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available, based on the parameters provided", alias="roomsAvailable") days_of_week: Optional[List[StrictStr]] = Field(default=None, alias="daysOfWeek") room_rate_detailed: Optional[List[GetRateResponseDataRoomRateDetailedInner]] = Field(default=None, description="Detailed information on the rates, if requested", alias="roomRateDetailed") diff --git a/cloudbeds_pms_v1_2/models/get_room_types_response.py b/cloudbeds_pms_v1_2/models/get_room_types_response.py index 48633e9..e713373 100644 --- a/cloudbeds_pms_v1_2/models/get_room_types_response.py +++ b/cloudbeds_pms_v1_2/models/get_room_types_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner from typing import Optional, Set @@ -29,10 +29,7 @@ class GetRoomTypesResponse(BaseModel): """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") data: Optional[List[GetRoomTypesResponseDataInner]] = Field(default=None, description="Room Types details") - count: Optional[StrictInt] = Field(default=None, description="Number of results in this page") - total: Optional[StrictInt] = Field(default=None, description="Total number of results") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + __properties: ClassVar[List[str]] = ["success", "data"] model_config = ConfigDict( populate_by_name=True, @@ -80,11 +77,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_data: _items.append(_item_data.to_dict()) _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - return _dict @classmethod @@ -98,10 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), - "data": [GetRoomTypesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "count": obj.get("count"), - "total": obj.get("total"), - "message": obj.get("message") + "data": [GetRoomTypesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py index 4620938..0effab8 100644 --- a/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py +++ b/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py @@ -17,8 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -35,13 +35,7 @@ class GetRoomTypesResponseDataInner(BaseModel): max_guests: Optional[StrictInt] = Field(default=None, description="Max number of guests allowed in the room type", alias="maxGuests") adults_included: Optional[StrictInt] = Field(default=None, description="Number of adults included on the basic room rate", alias="adultsIncluded") children_included: Optional[StrictInt] = Field(default=None, description="Number of children included on the basic room rate", alias="childrenIncluded") - room_type_photos: Optional[List[StrictStr]] = Field(default=None, description="List of photos for the room type", alias="roomTypePhotos") - room_type_features: Optional[List[StrictStr]] = Field(default=None, description="List of features for the room type", alias="roomTypeFeatures") - rooms_available: Optional[StrictInt] = Field(default=None, description="Number of rooms available, based on the parameters provided.", alias="roomsAvailable") - room_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Basic rate for the room, based on the parameters provided. Does not return if roomsAvailable = 0.", alias="roomRate") - room_type_units: Optional[StrictInt] = Field(default=None, description="Number of rooms of a particular type", alias="roomTypeUnits") - room_type_unit_dorm_beds: Optional[StrictInt] = Field(default=None, description="Number of beds per Shared Dorm Room type", alias="roomTypeUnitDormBeds") - __properties: ClassVar[List[str]] = ["roomTypeID", "propertyID", "roomTypeName", "roomTypeNameShort", "roomTypeDescription", "isPrivate", "maxGuests", "adultsIncluded", "childrenIncluded", "roomTypePhotos", "roomTypeFeatures", "roomsAvailable", "roomRate", "roomTypeUnits", "roomTypeUnitDormBeds"] + __properties: ClassVar[List[str]] = ["roomTypeID", "propertyID", "roomTypeName", "roomTypeNameShort", "roomTypeDescription", "isPrivate", "maxGuests", "adultsIncluded", "childrenIncluded"] model_config = ConfigDict( populate_by_name=True, @@ -82,16 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if rooms_available (nullable) is None - # and model_fields_set contains the field - if self.rooms_available is None and "rooms_available" in self.model_fields_set: - _dict['roomsAvailable'] = None - - # set to None if room_rate (nullable) is None - # and model_fields_set contains the field - if self.room_rate is None and "room_rate" in self.model_fields_set: - _dict['roomRate'] = None - return _dict @classmethod @@ -112,13 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPrivate": obj.get("isPrivate"), "maxGuests": obj.get("maxGuests"), "adultsIncluded": obj.get("adultsIncluded"), - "childrenIncluded": obj.get("childrenIncluded"), - "roomTypePhotos": obj.get("roomTypePhotos"), - "roomTypeFeatures": obj.get("roomTypeFeatures"), - "roomsAvailable": obj.get("roomsAvailable"), - "roomRate": obj.get("roomRate"), - "roomTypeUnits": obj.get("roomTypeUnits"), - "roomTypeUnitDormBeds": obj.get("roomTypeUnitDormBeds") + "childrenIncluded": obj.get("childrenIncluded") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py index 5460136..c0f3743 100644 --- a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py @@ -20,6 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from typing import Optional, Set from typing_extensions import Self @@ -44,7 +46,9 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): child_id: Optional[StrictStr] = Field(default=None, description="ID of the tax or fee that replaced current one", alias="childId") created_at: Optional[StrictStr] = Field(default=None, description="Date when tax or fee was created in the system", alias="createdAt") expired_at: Optional[StrictStr] = Field(default=None, description="Date when tax or fee was expired", alias="expiredAt") - __properties: ClassVar[List[str]] = ["type", "feeID", "taxID", "name", "code", "amount", "amountAdult", "amountChild", "amountRateBased", "amountType", "availableFor", "feesCharged", "inclusiveOrExclusive", "isDeleted", "childId", "createdAt", "expiredAt"] + room_types: Optional[List[GetTaxesAndFeesResponseDataInnerRoomTypesInner]] = Field(default=None, description="Room types this tax/fee applies to", alias="roomTypes") + date_ranges: Optional[List[GetTaxesAndFeesResponseDataInnerDateRangesInner]] = Field(default=None, description="Date ranges when this tax/fee is applicable", alias="dateRanges") + __properties: ClassVar[List[str]] = ["type", "feeID", "taxID", "name", "code", "amount", "amountAdult", "amountChild", "amountRateBased", "amountType", "availableFor", "feesCharged", "inclusiveOrExclusive", "isDeleted", "childId", "createdAt", "expiredAt", "roomTypes", "dateRanges"] @field_validator('type') def type_validate_enum(cls, value): @@ -133,6 +137,20 @@ def to_dict(self) -> Dict[str, Any]: if _item_amount_rate_based: _items.append(_item_amount_rate_based.to_dict()) _dict['amountRateBased'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in room_types (list) + _items = [] + if self.room_types: + for _item_room_types in self.room_types: + if _item_room_types: + _items.append(_item_room_types.to_dict()) + _dict['roomTypes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in date_ranges (list) + _items = [] + if self.date_ranges: + for _item_date_ranges in self.date_ranges: + if _item_date_ranges: + _items.append(_item_date_ranges.to_dict()) + _dict['dateRanges'] = _items # set to None if fee_id (nullable) is None # and model_fields_set contains the field if self.fee_id is None and "fee_id" in self.model_fields_set: @@ -153,6 +171,16 @@ def to_dict(self) -> Dict[str, Any]: if self.fees_charged is None and "fees_charged" in self.model_fields_set: _dict['feesCharged'] = None + # set to None if room_types (nullable) is None + # and model_fields_set contains the field + if self.room_types is None and "room_types" in self.model_fields_set: + _dict['roomTypes'] = None + + # set to None if date_ranges (nullable) is None + # and model_fields_set contains the field + if self.date_ranges is None and "date_ranges" in self.model_fields_set: + _dict['dateRanges'] = None + return _dict @classmethod @@ -181,7 +209,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isDeleted": obj.get("isDeleted"), "childId": obj.get("childId"), "createdAt": obj.get("createdAt"), - "expiredAt": obj.get("expiredAt") + "expiredAt": obj.get("expiredAt"), + "roomTypes": [GetTaxesAndFeesResponseDataInnerRoomTypesInner.from_dict(_item) for _item in obj["roomTypes"]] if obj.get("roomTypes") is not None else None, + "dateRanges": [GetTaxesAndFeesResponseDataInnerDateRangesInner.from_dict(_item) for _item in obj["dateRanges"]] if obj.get("dateRanges") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py similarity index 61% rename from cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py rename to cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py index 965b7c2..148e3ba 100644 --- a/cloudbeds_pms_v1_2/models/get_payments_response_data_inner_payment_allocation_inner.py +++ b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -17,22 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from typing import Optional, Set from typing_extensions import Self -class GetPaymentsResponseDataInnerPaymentAllocationInner(BaseModel): +class GetTaxesAndFeesResponseDataInnerDateRangesInner(BaseModel): """ - GetPaymentsResponseDataInnerPaymentAllocationInner + GetTaxesAndFeesResponseDataInnerDateRangesInner """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, description="² Type of item described in allocation") - reference: Optional[StrictStr] = Field(default=None, description="² Reference of item described in allocation") - name: Optional[StrictStr] = Field(default=None, description="² Name of item described in allocation") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated of payment total") - taxes: Optional[List[StrictStr]] = Field(default=None, description="² Taxes of allocated payment. Values are an array numeric of taxes IDs") - fees: Optional[List[StrictStr]] = Field(default=None, description="² Fees of allocated payment. Values are an array numeric of fees IDs") - __properties: ClassVar[List[str]] = ["type", "reference", "name", "amount", "taxes", "fees"] + range: Optional[Dict[str, Any]] = Field(default=None, description="ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount") + amount_adult: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountAdult") + amount_child: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountChild") + amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]] = Field(default=None, description="Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based)", alias="amountRateBased") + __properties: ClassVar[List[str]] = ["range", "amount", "amountAdult", "amountChild", "amountRateBased"] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string""" + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,41 +73,23 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if type (nullable) is None + # override the default output from pydantic by calling `to_dict()` of each item in amount_rate_based (list) + _items = [] + if self.amount_rate_based: + for _item_amount_rate_based in self.amount_rate_based: + if _item_amount_rate_based: + _items.append(_item_amount_rate_based.to_dict()) + _dict['amountRateBased'] = _items + # set to None if amount_rate_based (nullable) is None # and model_fields_set contains the field - if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None - - # set to None if reference (nullable) is None - # and model_fields_set contains the field - if self.reference is None and "reference" in self.model_fields_set: - _dict['reference'] = None - - # set to None if name (nullable) is None - # and model_fields_set contains the field - if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None - - # set to None if amount (nullable) is None - # and model_fields_set contains the field - if self.amount is None and "amount" in self.model_fields_set: - _dict['amount'] = None - - # set to None if taxes (nullable) is None - # and model_fields_set contains the field - if self.taxes is None and "taxes" in self.model_fields_set: - _dict['taxes'] = None - - # set to None if fees (nullable) is None - # and model_fields_set contains the field - if self.fees is None and "fees" in self.model_fields_set: - _dict['fees'] = None + if self.amount_rate_based is None and "amount_rate_based" in self.model_fields_set: + _dict['amountRateBased'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict""" + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInner from a dict""" if obj is None: return None @@ -115,12 +97,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "reference": obj.get("reference"), - "name": obj.get("name"), + "range": obj.get("range"), "amount": obj.get("amount"), - "taxes": obj.get("taxes"), - "fees": obj.get("fees") + "amountAdult": obj.get("amountAdult"), + "amountChild": obj.get("amountChild"), + "amountRateBased": [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_adjustment_response.py b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py similarity index 80% rename from cloudbeds_pms_v1_2/models/get_adjustment_response.py rename to cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py index bc2bbd4..88fbff2 100644 --- a/cloudbeds_pms_v1_2/models/get_adjustment_response.py +++ b/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py @@ -17,19 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData from typing import Optional, Set from typing_extensions import Self -class GetAdjustmentResponse(BaseModel): +class GetTaxesAndFeesResponseDataInnerRoomTypesInner(BaseModel): """ - GetAdjustmentResponse + GetTaxesAndFeesResponseDataInnerRoomTypesInner """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[GetAdjustmentResponseData] = None - __properties: ClassVar[List[str]] = ["success", "data"] + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type's unique identifier", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room type name", alias="roomTypeName") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentResponse from a JSON string""" + """Create an instance of GetTaxesAndFeesResponseDataInnerRoomTypesInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,14 +69,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentResponse from a dict""" + """Create an instance of GetTaxesAndFeesResponseDataInnerRoomTypesInner from a dict""" if obj is None: return None @@ -85,8 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success"), - "data": GetAdjustmentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_transactions_response.py b/cloudbeds_pms_v1_2/models/get_transactions_response.py deleted file mode 100644 index a4574b0..0000000 --- a/cloudbeds_pms_v1_2/models/get_transactions_response.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetTransactionsResponse(BaseModel): - """ - GetTransactionsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetTransactionsResponseDataInner]] = Field(default=None, description="Transaction list covering the date range specified") - cloudbeds_accounting: Optional[StrictBool] = Field(default=None, description="if true it means the data comes from the new accounting solution", alias="cloudbedsAccounting") - count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination and filter parameters") - total: Optional[StrictInt] = Field(default=None, description="Total count of results, based on filter parameters") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "cloudbedsAccounting", "count", "total", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTransactionsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTransactionsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetTransactionsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "cloudbedsAccounting": obj.get("cloudbedsAccounting"), - "count": obj.get("count"), - "total": obj.get("total"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py b/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py deleted file mode 100644 index f8fad71..0000000 --- a/cloudbeds_pms_v1_2/models/get_transactions_response_data_inner.py +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date, datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetTransactionsResponseDataInner(BaseModel): - """ - GetTransactionsResponseDataInner - """ # noqa: E501 - property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID", alias="reservationID") - sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID", alias="subReservationID") - house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID", alias="houseAccountID") - house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name", alias="houseAccountName") - guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") - property_name: Optional[StrictStr] = Field(default=None, description="Property Name", alias="propertyName") - transaction_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored", alias="transactionDateTime") - transaction_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored, in UTC timezone", alias="transactionDateTimeUTC") - transaction_modified_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified", alias="transactionModifiedDateTime") - transaction_modified_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified, in UTC timezone", alias="transactionModifiedDateTimeUTC") - guest_check_in: Optional[date] = Field(default=None, description="Reservation Check-in date", alias="guestCheckIn") - guest_check_out: Optional[date] = Field(default=None, description="Reservation Check-out date", alias="guestCheckOut") - room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") - room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type", alias="roomTypeName") - room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room.", alias="roomName") - guest_name: Optional[StrictStr] = Field(default=None, description="Name of the first guest of the reservation", alias="guestName") - description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") - category: Optional[StrictStr] = Field(default=None, description="Category of the transaction") - transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction identifier that can be used, or left blank", alias="transactionCode") - notes: Optional[StrictStr] = Field(default=None, description="If any special information needs to be added to the transaction, it will be in this field") - quantity: Optional[StrictInt] = None - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") - currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") - user_name: Optional[StrictStr] = Field(default=None, description="User responsible for creating the transaction", alias="userName") - transaction_type: Optional[StrictStr] = Field(default=None, description="Consolidated transaction type", alias="transactionType") - transaction_category: Optional[StrictStr] = Field(default=None, description="Transaction category", alias="transactionCategory") - item_category_name: Optional[StrictStr] = Field(default=None, description="Item category name", alias="itemCategoryName") - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") - parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") - card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") - is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") - service_date: Optional[StrictStr] = Field(default=None, description="will represent the date when a product or service is delivered", alias="serviceDate") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted", "serviceDate"] - - @field_validator('transaction_type') - def transaction_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['debit', 'credit']): - raise ValueError("must be one of enum values ('debit', 'credit')") - return value - - @field_validator('transaction_category') - def transaction_category_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void']): - raise ValueError("must be one of enum values ('adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTransactionsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if house_account_id (nullable) is None - # and model_fields_set contains the field - if self.house_account_id is None and "house_account_id" in self.model_fields_set: - _dict['houseAccountID'] = None - - # set to None if house_account_name (nullable) is None - # and model_fields_set contains the field - if self.house_account_name is None and "house_account_name" in self.model_fields_set: - _dict['houseAccountName'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTransactionsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "propertyID": obj.get("propertyID"), - "reservationID": obj.get("reservationID"), - "subReservationID": obj.get("subReservationID"), - "houseAccountID": obj.get("houseAccountID"), - "houseAccountName": obj.get("houseAccountName"), - "guestID": obj.get("guestID"), - "propertyName": obj.get("propertyName"), - "transactionDateTime": obj.get("transactionDateTime"), - "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), - "transactionModifiedDateTime": obj.get("transactionModifiedDateTime"), - "transactionModifiedDateTimeUTC": obj.get("transactionModifiedDateTimeUTC"), - "guestCheckIn": obj.get("guestCheckIn"), - "guestCheckOut": obj.get("guestCheckOut"), - "roomTypeID": obj.get("roomTypeID"), - "roomTypeName": obj.get("roomTypeName"), - "roomName": obj.get("roomName"), - "guestName": obj.get("guestName"), - "description": obj.get("description"), - "category": obj.get("category"), - "transactionCode": obj.get("transactionCode"), - "notes": obj.get("notes"), - "quantity": obj.get("quantity"), - "amount": obj.get("amount"), - "currency": obj.get("currency"), - "userName": obj.get("userName"), - "transactionType": obj.get("transactionType"), - "transactionCategory": obj.get("transactionCategory"), - "itemCategoryName": obj.get("itemCategoryName"), - "transactionID": obj.get("transactionID"), - "parentTransactionID": obj.get("parentTransactionID"), - "cardType": obj.get("cardType"), - "isDeleted": obj.get("isDeleted"), - "serviceDate": obj.get("serviceDate") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py index 5d583a4..baa1236 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py +++ b/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py @@ -37,8 +37,9 @@ class PostPatchRateRequestRatesInnerInterval(BaseModel): closed_to_departure: Optional[StrictBool] = Field(default=None, description="Whether it is closed to departure.", alias="closedToDeparture") cut_off: Optional[StrictInt] = Field(default=None, description="Cut off time for the selected date.", alias="cutOff") last_minute_booking: Optional[StrictInt] = Field(default=None, description="Last minute bookings.", alias="lastMinuteBooking") + blocked: Optional[StrictBool] = Field(default=None, description="Whether the accommodation is blocked.") guest_pricing: Optional[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing] = Field(default=None, alias="guestPricing") - __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking", "guestPricing"] + __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking", "blocked", "guestPricing"] model_config = ConfigDict( populate_by_name=True, @@ -112,6 +113,11 @@ def to_dict(self) -> Dict[str, Any]: if self.last_minute_booking is None and "last_minute_booking" in self.model_fields_set: _dict['lastMinuteBooking'] = None + # set to None if blocked (nullable) is None + # and model_fields_set contains the field + if self.blocked is None and "blocked" in self.model_fields_set: + _dict['blocked'] = None + # set to None if guest_pricing (nullable) is None # and model_fields_set contains the field if self.guest_pricing is None and "guest_pricing" in self.model_fields_set: @@ -138,6 +144,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "closedToDeparture": obj.get("closedToDeparture"), "cutOff": obj.get("cutOff"), "lastMinuteBooking": obj.get("lastMinuteBooking"), + "blocked": obj.get("blocked"), "guestPricing": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_2/test/test_adjustment_api.py b/cloudbeds_pms_v1_2/test/test_adjustment_api.py index e32c38d..0698d93 100644 --- a/cloudbeds_pms_v1_2/test/test_adjustment_api.py +++ b/cloudbeds_pms_v1_2/test/test_adjustment_api.py @@ -33,20 +33,6 @@ def test_delete_adjustment_delete(self) -> None: """ pass - def test_get_adjustment_get(self) -> None: - """Test case for get_adjustment_get - - getAdjustment - """ - pass - - def test_get_adjustments_get(self) -> None: - """Test case for get_adjustments_get - - getAdjustments - """ - pass - def test_post_adjustment_post(self) -> None: """Test case for post_adjustment_post diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustment_response.py b/cloudbeds_pms_v1_2/test/test_get_adjustment_response.py deleted file mode 100644 index dbc6e80..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_adjustment_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_adjustment_response import GetAdjustmentResponse - -class TestGetAdjustmentResponse(unittest.TestCase): - """GetAdjustmentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAdjustmentResponse: - """Test GetAdjustmentResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAdjustmentResponse` - """ - model = GetAdjustmentResponse() - if include_optional: - return GetAdjustmentResponse( - success = True, - data = cloudbeds_pms_v1_2.models.get_adjustment_response_data.GetAdjustmentResponse_data( - adjustment_id = '', - property_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - reservation_identifier = '', - description = '', - notes = '', - amount = 1.337, - currency = 1.337, - posted = 1.337, - type = '', - void_id = '', ) - ) - else: - return GetAdjustmentResponse( - ) - """ - - def testGetAdjustmentResponse(self): - """Test GetAdjustmentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response.py b/cloudbeds_pms_v1_2/test/test_get_guest_response.py index 14c53f2..0905763 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response.py @@ -49,12 +49,12 @@ def make_instance(self, include_optional) -> GetGuestResponse: city = '', zip = '', state = '', - birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + birth_date = null, document_type = '', document_number = '', - document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_issue_date = null, document_issuing_country = '', - document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_expiration_date = null, custom_fields = [ cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py b/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py index be33960..670cfa1 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py @@ -47,12 +47,12 @@ def make_instance(self, include_optional) -> GetGuestResponseData: city = '', zip = '', state = '', - birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + birth_date = None, document_type = '', document_number = '', - document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_issue_date = None, document_issuing_country = '', - document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + document_expiration_date = None, custom_fields = [ cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py similarity index 72% rename from cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py rename to cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py index b101cb0..2b2d310 100644 --- a/cloudbeds_pms_v1_2/test/test_get_adjustments_response_data.py +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.get_adjustments_response_data import GetAdjustmentsResponseData +from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate -class TestGetAdjustmentsResponseData(unittest.TestCase): - """GetAdjustmentsResponseData unit test stubs""" +class TestGetGuestResponseDataBirthDate(unittest.TestCase): + """GetGuestResponseDataBirthDate unit test stubs""" def setUp(self): pass @@ -25,32 +25,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetAdjustmentsResponseData: - """Test GetAdjustmentsResponseData + def make_instance(self, include_optional) -> GetGuestResponseDataBirthDate: + """Test GetGuestResponseDataBirthDate include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetAdjustmentsResponseData` + # uncomment below to create an instance of `GetGuestResponseDataBirthDate` """ - model = GetAdjustmentsResponseData() + model = GetGuestResponseDataBirthDate() if include_optional: - return GetAdjustmentsResponseData( - adjustment_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - description = '', - notes = '', - amount = 1.337, - type = '' + return GetGuestResponseDataBirthDate( ) else: - return GetAdjustmentsResponseData( + return GetGuestResponseDataBirthDate( ) """ - def testGetAdjustmentsResponseData(self): - """Test GetAdjustmentsResponseData""" + def testGetGuestResponseDataBirthDate(self): + """Test GetGuestResponseDataBirthDate""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustments_response.py b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py similarity index 69% rename from cloudbeds_pms_v1_2/test/test_get_adjustments_response.py rename to cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py index 5d24c70..1174a1f 100644 --- a/cloudbeds_pms_v1_2/test/test_get_adjustments_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate -class TestGetAdjustmentsResponse(unittest.TestCase): - """GetAdjustmentsResponse unit test stubs""" +class TestGetGuestResponseDataDocumentExpirationDate(unittest.TestCase): + """GetGuestResponseDataDocumentExpirationDate unit test stubs""" def setUp(self): pass @@ -25,34 +25,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetAdjustmentsResponse: - """Test GetAdjustmentsResponse + def make_instance(self, include_optional) -> GetGuestResponseDataDocumentExpirationDate: + """Test GetGuestResponseDataDocumentExpirationDate include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetAdjustmentsResponse` + # uncomment below to create an instance of `GetGuestResponseDataDocumentExpirationDate` """ - model = GetAdjustmentsResponse() + model = GetGuestResponseDataDocumentExpirationDate() if include_optional: - return GetAdjustmentsResponse( - success = True, - data = cloudbeds_pms_v1_2.models.get_adjustments_response_data.GetAdjustmentsResponse_data( - adjustment_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - description = '', - notes = '', - amount = 1.337, - type = '', ) + return GetGuestResponseDataDocumentExpirationDate( ) else: - return GetAdjustmentsResponse( + return GetGuestResponseDataDocumentExpirationDate( ) """ - def testGetAdjustmentsResponse(self): - """Test GetAdjustmentsResponse""" + def testGetGuestResponseDataDocumentExpirationDate(self): + """Test GetGuestResponseDataDocumentExpirationDate""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py similarity index 69% rename from cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py rename to cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py index d5a15c3..5de033c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_adjustment_response_data.py +++ b/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.get_adjustment_response_data import GetAdjustmentResponseData +from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate -class TestGetAdjustmentResponseData(unittest.TestCase): - """GetAdjustmentResponseData unit test stubs""" +class TestGetGuestResponseDataDocumentIssueDate(unittest.TestCase): + """GetGuestResponseDataDocumentIssueDate unit test stubs""" def setUp(self): pass @@ -25,37 +25,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetAdjustmentResponseData: - """Test GetAdjustmentResponseData + def make_instance(self, include_optional) -> GetGuestResponseDataDocumentIssueDate: + """Test GetGuestResponseDataDocumentIssueDate include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetAdjustmentResponseData` + # uncomment below to create an instance of `GetGuestResponseDataDocumentIssueDate` """ - model = GetAdjustmentResponseData() + model = GetGuestResponseDataDocumentIssueDate() if include_optional: - return GetAdjustmentResponseData( - adjustment_id = '', - property_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - reservation_identifier = '', - description = '', - notes = '', - amount = 1.337, - currency = 1.337, - posted = 1.337, - type = '', - void_id = '' + return GetGuestResponseDataDocumentIssueDate( ) else: - return GetAdjustmentResponseData( + return GetGuestResponseDataDocumentIssueDate( ) """ - def testGetAdjustmentResponseData(self): - """Test GetAdjustmentResponseData""" + def testGetGuestResponseDataDocumentIssueDate(self): + """Test GetGuestResponseDataDocumentIssueDate""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py deleted file mode 100644 index c9c1c3a..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_house_account_details_response import GetHouseAccountDetailsResponse - -class TestGetHouseAccountDetailsResponse(unittest.TestCase): - """GetHouseAccountDetailsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponse: - """Test GetHouseAccountDetailsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponse` - """ - model = GetHouseAccountDetailsResponse() - if include_optional: - return GetHouseAccountDetailsResponse( - success = True, - data = cloudbeds_pms_v1_2.models.get_house_account_details_response_data.GetHouseAccountDetailsResponse_data( - total = [ - cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( - count = 56, - quantity = '', - debit = '', - credit = '', ) - ], - records = [ - cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( - property_id = '', - transaction_id = '', - user_name = '', - description = '', - notes = '', - quantity = '', - debit = '', - credit = '', - debit_formatter = '', - credit_formatted = '', - currency = '', - transaction_code = '', - parent_transaction_id = '', - transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], ) - ) - else: - return GetHouseAccountDetailsResponse( - ) - """ - - def testGetHouseAccountDetailsResponse(self): - """Test GetHouseAccountDetailsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py deleted file mode 100644 index 3724fe7..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData - -class TestGetHouseAccountDetailsResponseData(unittest.TestCase): - """GetHouseAccountDetailsResponseData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseData: - """Test GetHouseAccountDetailsResponseData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponseData` - """ - model = GetHouseAccountDetailsResponseData() - if include_optional: - return GetHouseAccountDetailsResponseData( - total = [ - cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( - count = 56, - quantity = '', - debit = '', - credit = '', ) - ], - records = [ - cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( - property_id = '', - transaction_id = '', - user_name = '', - description = '', - notes = '', - quantity = '', - debit = '', - credit = '', - debit_formatter = '', - credit_formatted = '', - currency = '', - transaction_code = '', - parent_transaction_id = '', - transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ] - ) - else: - return GetHouseAccountDetailsResponseData( - ) - """ - - def testGetHouseAccountDetailsResponseData(self): - """Test GetHouseAccountDetailsResponseData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py deleted file mode 100644 index 835261f..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_records_inner.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner - -class TestGetHouseAccountDetailsResponseDataRecordsInner(unittest.TestCase): - """GetHouseAccountDetailsResponseDataRecordsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataRecordsInner: - """Test GetHouseAccountDetailsResponseDataRecordsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataRecordsInner` - """ - model = GetHouseAccountDetailsResponseDataRecordsInner() - if include_optional: - return GetHouseAccountDetailsResponseDataRecordsInner( - property_id = '', - transaction_id = '', - user_name = '', - description = '', - notes = '', - quantity = '', - debit = '', - credit = '', - debit_formatter = '', - credit_formatted = '', - currency = '', - transaction_code = '', - parent_transaction_id = '', - transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return GetHouseAccountDetailsResponseDataRecordsInner( - ) - """ - - def testGetHouseAccountDetailsResponseDataRecordsInner(self): - """Test GetHouseAccountDetailsResponseDataRecordsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_response.py b/cloudbeds_pms_v1_2/test/test_get_payments_response.py deleted file mode 100644 index 59fa7a9..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_payments_response.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_payments_response import GetPaymentsResponse - -class TestGetPaymentsResponse(unittest.TestCase): - """GetPaymentsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPaymentsResponse: - """Test GetPaymentsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPaymentsResponse` - """ - model = GetPaymentsResponse() - if include_optional: - return GetPaymentsResponse( - success = True, - data = [ - cloudbeds_pms_v1_2.models.get_payments_response_data_inner.GetPaymentsResponse_data_inner( - transaction_id = '', - payment_id = '', - property_id = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - user_id = '', - user_name = '', - room_id = '', - room_name = '', - guest_id = '', - guest_name = '', - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - reservation_id = '', - sub_reservation_id = '', - reservation_status = '', - house_account_id = '', - house_account_name = '', - description = '', - payment_method = '', - quantity = 56, - amount = 1.337, - currency = '', - is_posted = True, - is_voided = True, - is_deleted = True, - state = '', - is_allocated = True, - total_allocated = 1.337, - total_unallocated = 1.337, - payment_allocation = [ - cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( - type = '', - reference = '', - name = '', - amount = 1.337, - taxes = [ - '' - ], - fees = [ - '' - ], ) - ], ) - ], - count = 56, - total = 56, - message = '' - ) - else: - return GetPaymentsResponse( - ) - """ - - def testGetPaymentsResponse(self): - """Test GetPaymentsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py deleted file mode 100644 index 64da1ce..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner import GetPaymentsResponseDataInner - -class TestGetPaymentsResponseDataInner(unittest.TestCase): - """GetPaymentsResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPaymentsResponseDataInner: - """Test GetPaymentsResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPaymentsResponseDataInner` - """ - model = GetPaymentsResponseDataInner() - if include_optional: - return GetPaymentsResponseDataInner( - transaction_id = '', - payment_id = '', - property_id = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - user_id = '', - user_name = '', - room_id = '', - room_name = '', - guest_id = '', - guest_name = '', - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - reservation_id = '', - sub_reservation_id = '', - reservation_status = '', - house_account_id = '', - house_account_name = '', - description = '', - payment_method = '', - quantity = 56, - amount = 1.337, - currency = '', - is_posted = True, - is_voided = True, - is_deleted = True, - state = '', - is_allocated = True, - total_allocated = 1.337, - total_unallocated = 1.337, - payment_allocation = [ - cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( - type = '', - reference = '', - name = '', - amount = 1.337, - taxes = [ - '' - ], - fees = [ - '' - ], ) - ] - ) - else: - return GetPaymentsResponseDataInner( - ) - """ - - def testGetPaymentsResponseDataInner(self): - """Test GetPaymentsResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_room_types_response.py b/cloudbeds_pms_v1_2/test/test_get_room_types_response.py index 8870e89..cd0df41 100644 --- a/cloudbeds_pms_v1_2/test/test_get_room_types_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_room_types_response.py @@ -46,21 +46,8 @@ def make_instance(self, include_optional) -> GetRoomTypesResponse: is_private = True, max_guests = 56, adults_included = 56, - children_included = 56, - room_type_photos = [ - '' - ], - room_type_features = [ - '' - ], - rooms_available = 56, - room_rate = 1.337, - room_type_units = 56, - room_type_unit_dorm_beds = 56, ) - ], - count = 56, - total = 56, - message = '' + children_included = 56, ) + ] ) else: return GetRoomTypesResponse( diff --git a/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py index d241a30..496c35c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py @@ -43,17 +43,7 @@ def make_instance(self, include_optional) -> GetRoomTypesResponseDataInner: is_private = True, max_guests = 56, adults_included = 56, - children_included = 56, - room_type_photos = [ - '' - ], - room_type_features = [ - '' - ], - rooms_available = 56, - room_rate = 1.337, - room_type_units = 56, - room_type_unit_dorm_beds = 56 + children_included = 56 ) else: return GetRoomTypesResponseDataInner( diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py index 2c6d289..c9016bf 100644 --- a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py +++ b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py @@ -61,7 +61,19 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: is_deleted = True, child_id = '', created_at = '', - expired_at = '', ) + expired_at = '', + room_types = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner.GetTaxesAndFeesResponse_data_inner_roomTypes_inner( + room_type_id = '', + room_type_name = '', ) + ], + date_ranges = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( + range = cloudbeds_pms_v1_2.models.range.range(), + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, ) + ], ) ], total = 56 ) diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py index 51295a9..4730be6 100644 --- a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py @@ -57,7 +57,24 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: is_deleted = True, child_id = '', created_at = '', - expired_at = '' + expired_at = '', + room_types = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner.GetTaxesAndFeesResponse_data_inner_roomTypes_inner( + room_type_id = '', + room_type_name = '', ) + ], + date_ranges = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( + range = cloudbeds_pms_v1_2.models.range.range(), + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + rate = 1.337, + percentage = 1.337, ) + ], ) + ] ) else: return GetTaxesAndFeesResponseDataInner( diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py similarity index 66% rename from cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py rename to cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py index 891e79d..a4e1bbe 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payments_response_data_inner_payment_allocation_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner -class TestGetPaymentsResponseDataInnerPaymentAllocationInner(unittest.TestCase): - """GetPaymentsResponseDataInnerPaymentAllocationInner unit test stubs""" +class TestGetTaxesAndFeesResponseDataInnerDateRangesInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInner unit test stubs""" def setUp(self): pass @@ -25,34 +25,33 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetPaymentsResponseDataInnerPaymentAllocationInner: - """Test GetPaymentsResponseDataInnerPaymentAllocationInner + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInner: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetPaymentsResponseDataInnerPaymentAllocationInner` + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInner` """ - model = GetPaymentsResponseDataInnerPaymentAllocationInner() + model = GetTaxesAndFeesResponseDataInnerDateRangesInner() if include_optional: - return GetPaymentsResponseDataInnerPaymentAllocationInner( - type = '', - reference = '', - name = '', + return GetTaxesAndFeesResponseDataInnerDateRangesInner( + range = cloudbeds_pms_v1_2.models.range.range(), amount = 1.337, - taxes = [ - '' - ], - fees = [ - '' + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + rate = 1.337, + percentage = 1.337, ) ] ) else: - return GetPaymentsResponseDataInnerPaymentAllocationInner( + return GetTaxesAndFeesResponseDataInnerDateRangesInner( ) """ - def testGetPaymentsResponseDataInnerPaymentAllocationInner(self): - """Test GetPaymentsResponseDataInnerPaymentAllocationInner""" + def testGetTaxesAndFeesResponseDataInnerDateRangesInner(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py similarity index 72% rename from cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py rename to cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py index 18ef96e..f294d09 100644 --- a/cloudbeds_pms_v1_2/test/test_get_house_account_details_response_data_total_inner.py +++ b/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner +from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner -class TestGetHouseAccountDetailsResponseDataTotalInner(unittest.TestCase): - """GetHouseAccountDetailsResponseDataTotalInner unit test stubs""" +class TestGetTaxesAndFeesResponseDataInnerRoomTypesInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerRoomTypesInner unit test stubs""" def setUp(self): pass @@ -25,28 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataTotalInner: - """Test GetHouseAccountDetailsResponseDataTotalInner + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerRoomTypesInner: + """Test GetTaxesAndFeesResponseDataInnerRoomTypesInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataTotalInner` + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerRoomTypesInner` """ - model = GetHouseAccountDetailsResponseDataTotalInner() + model = GetTaxesAndFeesResponseDataInnerRoomTypesInner() if include_optional: - return GetHouseAccountDetailsResponseDataTotalInner( - count = 56, - quantity = '', - debit = '', - credit = '' + return GetTaxesAndFeesResponseDataInnerRoomTypesInner( + room_type_id = '', + room_type_name = '' ) else: - return GetHouseAccountDetailsResponseDataTotalInner( + return GetTaxesAndFeesResponseDataInnerRoomTypesInner( ) """ - def testGetHouseAccountDetailsResponseDataTotalInner(self): - """Test GetHouseAccountDetailsResponseDataTotalInner""" + def testGetTaxesAndFeesResponseDataInnerRoomTypesInner(self): + """Test GetTaxesAndFeesResponseDataInnerRoomTypesInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_get_transactions_response.py b/cloudbeds_pms_v1_2/test/test_get_transactions_response.py deleted file mode 100644 index 6f8dcc6..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_transactions_response.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_transactions_response import GetTransactionsResponse - -class TestGetTransactionsResponse(unittest.TestCase): - """GetTransactionsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTransactionsResponse: - """Test GetTransactionsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTransactionsResponse` - """ - model = GetTransactionsResponse() - if include_optional: - return GetTransactionsResponse( - success = True, - data = [ - cloudbeds_pms_v1_2.models.get_transactions_response_data_inner.GetTransactionsResponse_data_inner( - property_id = '', - reservation_id = '', - sub_reservation_id = '', - house_account_id = '', - house_account_name = '', - guest_id = '', - property_name = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - room_type_id = '', - room_type_name = '', - room_name = '', - guest_name = '', - description = '', - category = '', - transaction_code = '', - notes = '', - quantity = 56, - amount = 1.337, - currency = '', - user_name = '', - transaction_type = 'debit', - transaction_category = 'adjustment', - item_category_name = '', - transaction_id = '', - parent_transaction_id = '', - card_type = '', - is_deleted = True, - service_date = '', ) - ], - cloudbeds_accounting = True, - count = 56, - total = 56, - message = '' - ) - else: - return GetTransactionsResponse( - ) - """ - - def testGetTransactionsResponse(self): - """Test GetTransactionsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py b/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py deleted file mode 100644 index 5fc903d..0000000 --- a/cloudbeds_pms_v1_2/test/test_get_transactions_response_data_inner.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_2.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner - -class TestGetTransactionsResponseDataInner(unittest.TestCase): - """GetTransactionsResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTransactionsResponseDataInner: - """Test GetTransactionsResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTransactionsResponseDataInner` - """ - model = GetTransactionsResponseDataInner() - if include_optional: - return GetTransactionsResponseDataInner( - property_id = '', - reservation_id = '', - sub_reservation_id = '', - house_account_id = '', - house_account_name = '', - guest_id = '', - property_name = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - room_type_id = '', - room_type_name = '', - room_name = '', - guest_name = '', - description = '', - category = '', - transaction_code = '', - notes = '', - quantity = 56, - amount = 1.337, - currency = '', - user_name = '', - transaction_type = 'debit', - transaction_category = 'adjustment', - item_category_name = '', - transaction_id = '', - parent_transaction_id = '', - card_type = '', - is_deleted = True, - service_date = '' - ) - else: - return GetTransactionsResponseDataInner( - ) - """ - - def testGetTransactionsResponseDataInner(self): - """Test GetTransactionsResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_house_account_api.py b/cloudbeds_pms_v1_2/test/test_house_account_api.py index 457fd25..b551dfa 100644 --- a/cloudbeds_pms_v1_2/test/test_house_account_api.py +++ b/cloudbeds_pms_v1_2/test/test_house_account_api.py @@ -26,13 +26,6 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_get_house_account_details_get(self) -> None: - """Test case for get_house_account_details_get - - getHouseAccountDetails - """ - pass - def test_get_house_account_list_get(self) -> None: """Test case for get_house_account_list_get diff --git a/cloudbeds_pms_v1_2/test/test_payment_api.py b/cloudbeds_pms_v1_2/test/test_payment_api.py index c0d4a9f..516ae0c 100644 --- a/cloudbeds_pms_v1_2/test/test_payment_api.py +++ b/cloudbeds_pms_v1_2/test/test_payment_api.py @@ -40,20 +40,6 @@ def test_get_payments_capabilities_get(self) -> None: """ pass - def test_get_payments_get(self) -> None: - """Test case for get_payments_get - - getPayments - """ - pass - - def test_get_transactions_get(self) -> None: - """Test case for get_transactions_get - - getTransactions - """ - pass - def test_post_charge_post(self) -> None: """Test case for post_charge_post diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py index fc6a3f2..afa014c 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py +++ b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> PostPatchRateRequestRatesInner: closed_to_departure = True, cut_off = 56, last_minute_booking = 56, + blocked = True, guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py index 298250b..3ae615c 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py +++ b/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> PostPatchRateRequestRatesInnerInter closed_to_departure = True, cut_off = 56, last_minute_booking = 56, + blocked = True, guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', diff --git a/openapitools.json b/openapitools.json index 0edc3bb..2a61dd6 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_2", "projectName": "Cloudbeds PMS V1.2", - "packageVersion": "1.2.0", + "packageVersion": "1.3.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.2 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 9d0ed69f76b26eae0ae401c498615dc5fc7c32d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 29 Apr 2025 14:36:57 +0200 Subject: [PATCH 17/46] fix: requirements comments for v1.2 --- requirements.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index 49eef25..49dc688 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ annotated-types==0.7.0 # via pydantic coverage==7.6.10 - # via cloudbeds-pms (pyproject.toml) + # via cloudbeds-pms-v1-2 (pyproject.toml) iniconfig==2.0.0 # via pytest packaging==24.2 @@ -11,19 +11,19 @@ packaging==24.2 pluggy==1.5.0 # via pytest pydantic==2.10.5 - # via cloudbeds-pms (pyproject.toml) + # via cloudbeds-pms-v1-2 (pyproject.toml) pydantic-core==2.27.2 # via pydantic pytest==8.3.4 - # via cloudbeds-pms (pyproject.toml) + # via cloudbeds-pms-v1-2 (pyproject.toml) python-dateutil==2.9.0.post0 - # via cloudbeds-pms (pyproject.toml) + # via cloudbeds-pms-v1-2 (pyproject.toml) six==1.17.0 # via python-dateutil typing-extensions==4.12.2 # via - # cloudbeds-pms (pyproject.toml) + # cloudbeds-pms-v1-2 (pyproject.toml) # pydantic # pydantic-core urllib3==2.3.0 - # via cloudbeds-pms (pyproject.toml) + # via cloudbeds-pms-v1-2 (pyproject.toml) From dbe7d0d12a57563ed7caf44760645d669c59c8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 29 Apr 2025 14:22:35 +0200 Subject: [PATCH 18/46] feat: init for API 1.3 --- .openapi-generator/FILES | 2220 ++++---- README.md | 980 ++-- VERSION | 2 +- cloudbeds_pms_v1_2/__init__.py | 370 -- cloudbeds_pms_v1_2/api/__init__.py | 27 - cloudbeds_pms_v1_2/api/payment_api.py | 2370 -------- cloudbeds_pms_v1_2/docs/AdjustmentApi.md | 188 - cloudbeds_pms_v1_2/docs/PaymentApi.md | 645 --- .../docs/PostItemRequestPaymentsInner.md | 31 - cloudbeds_pms_v1_2/models/__init__.py | 331 -- cloudbeds_pms_v1_3/__init__.py | 428 ++ cloudbeds_pms_v1_3/api/__init__.py | 31 + cloudbeds_pms_v1_3/api/adjustment_api.py | 1252 +++++ .../api/allotment_blocks_api.py | 34 +- .../api/app_settings_api.py | 324 +- .../api/authentication_api.py | 262 +- cloudbeds_pms_v1_3/api/beta_api.py | 320 ++ .../api/crm_api.py | 257 +- .../api/currency_api.py | 12 +- .../api/custom_fields_api.py | 14 +- .../api/dashboard_api.py | 12 +- .../api/emails_api.py | 26 +- .../api/groups_api.py | 22 +- .../api/guest_api.py | 395 +- .../api/hotel_api.py | 20 +- cloudbeds_pms_v1_3/api/house_account_api.py | 1250 +++++ .../api/housekeeping_api.py | 24 +- .../api/import_api.py | 265 +- .../api/integration_api.py | 648 ++- .../api/invoices_api.py | 279 +- .../api/item_api.py | 784 ++- .../api/package_api.py | 12 +- cloudbeds_pms_v1_3/api/payment_api.py | 4774 +++++++++++++++++ .../api/rate_api.py | 62 +- .../api/reservation_api.py | 4736 +++++++++++----- .../api/room_api.py | 438 +- cloudbeds_pms_v1_3/api/rooms_api.py | 441 ++ .../api/taxes_and_fees_api.py | 12 +- .../api/user_api.py | 12 +- .../api_client.py | 18 +- .../api_response.py | 0 .../configuration.py | 16 +- cloudbeds_pms_v1_3/docs/AdjustmentApi.md | 358 ++ .../docs/AllotmentBlocksApi.md | 132 +- .../docs/AppSettingsApi.md | 155 +- .../docs/AuthenticationApi.md | 117 +- cloudbeds_pms_v1_3/docs/BetaApi.md | 93 + cloudbeds_pms_v1_3/docs/CRMApi.md | 180 + .../docs/CurrencyApi.md | 20 +- .../docs/CustomFieldsApi.md | 36 +- .../docs/DashboardApi.md | 20 +- .../docs/DeleteAdjustmentResponse.md | 2 +- .../docs/DeleteGuestNoteResponse.md | 2 +- .../docs/DeleteItemFromReservationResponse.md | 30 + .../docs/DeleteReservationNoteResponse.md | 2 +- .../docs/DeleteRoomBlockResponse.md | 2 +- .../docs/DeleteWebhookResponse.md | 2 +- .../docs/EmailsApi.md | 80 +- .../docs/GetAdjustmentResponse.md | 30 + .../docs/GetAdjustmentResponseData.md | 42 + .../docs/GetAdjustmentsResponse.md | 30 + .../docs/GetAdjustmentsResponseData.md | 37 + .../docs/GetAllotmentBlocksResponse.md | 2 +- .../GetAllotmentBlocksResponseDataInner.md | 2 +- ...esponseDataInnerAllotmentIntervalsInner.md | 2 +- ...llotmentIntervalsInnerAvailabilityInner.md | 2 +- ...nnerAllotmentIntervalsInnerRestrictions.md | 2 +- ...BlocksResponseDataInnerAutoReleaseInner.md | 2 +- .../docs/GetAppPropertySettingsResponse.md | 2 +- .../GetAppPropertySettingsResponseData.md | 2 +- ...GetAppPropertySettingsResponseDataOneOf.md | 2 +- .../docs/GetAppSettingsResponse.md | 2 +- .../docs/GetAppSettingsResponseData.md | 2 +- .../docs/GetAppStateResponse.md | 2 +- .../docs/GetAppStateResponseData.md | 2 +- .../docs/GetAsyncApiJobResponse.md | 32 + .../docs/GetAsyncApiJobResponseDataInner.md | 32 + ...syncApiJobResponseDataInnerUpdatesInner.md | 53 + ...nnerUpdatesInnerAllotmentIntervalsInner.md | 33 + ...nnerAllotmentIntervalsInnerAvailability.md | 35 + ...tIntervalsInnerAvailabilityGuestPricing.md | 35 + ...nnerAllotmentIntervalsInnerRestrictions.md | 35 + ...esponseDataInnerUpdatesInnerAutoRelease.md | 32 + .../docs/GetAvailableRoomTypesResponse.md | 2 +- .../GetAvailableRoomTypesResponseDataInner.md | 2 +- ...sResponseDataInnerPropertyCurrencyInner.md | 2 +- ...ypesResponseDataInnerPropertyRoomsInner.md | 2 +- ...rPropertyRoomsInnerIndividualRoomsInner.md | 2 +- ...PropertyRoomsInnerRoomRateDetailedInner.md | 2 +- .../docs/GetCurrencySettingsResponse.md | 2 +- .../docs/GetCurrencySettingsResponseData.md | 2 +- .../GetCurrencySettingsResponseDataFormat.md | 2 +- .../GetCurrencySettingsResponseDataRates.md | 2 +- ...encySettingsResponseDataRatesFixedInner.md | 2 +- .../docs/GetCustomFieldsResponse.md | 2 +- .../docs/GetCustomFieldsResponseDataInner.md | 2 +- .../docs/GetDashboardResponse.md | 2 +- .../docs/GetDashboardResponseData.md | 2 +- .../docs/GetEmailScheduleResponse.md | 2 +- .../docs/GetEmailScheduleResponseDataInner.md | 2 +- .../docs/GetEmailTemplatesResponse.md | 2 +- .../GetEmailTemplatesResponseDataInner.md | 2 +- .../docs/GetFilesResponse.md | 2 +- .../docs/GetFilesResponseDataInner.md | 2 +- .../docs/GetGroupNotesResponse.md | 2 +- .../docs/GetGroupNotesResponseData.md | 2 +- .../docs/GetGroupsResponse.md | 2 +- .../docs/GetGroupsResponseDataInner.md | 2 +- .../docs/GetGuestListResponse.md | 2 +- .../docs/GetGuestListResponseDataValue.md | 2 +- ...estListResponseDataValueGuestNotesInner.md | 2 +- .../docs/GetGuestNotesResponse.md | 2 +- .../docs/GetGuestNotesResponseDataInner.md | 2 +- .../docs/GetGuestResponse.md | 2 +- .../docs/GetGuestResponseData.md | 2 +- .../docs/GetGuestResponseDataBirthDate.md | 2 +- .../GetGuestResponseDataCustomFieldsInner.md | 2 +- ...GuestResponseDataDocumentExpirationDate.md | 2 +- .../GetGuestResponseDataDocumentIssueDate.md | 2 +- .../docs/GetGuestsByFilterResponse.md | 2 +- .../GetGuestsByFilterResponseDataInner.md | 2 +- .../docs/GetGuestsByStatusResponse.md | 2 +- .../GetGuestsByStatusResponseDataInner.md | 2 +- .../docs/GetGuestsModifiedResponse.md | 2 +- .../GetGuestsModifiedResponseDataInner.md | 2 +- ...ifiedResponseDataInnerCustomFieldsInner.md | 2 +- .../docs/GetHotelDetailsResponse.md | 2 +- .../docs/GetHotelDetailsResponseData.md | 2 +- ...HotelDetailsResponseDataPropertyAddress.md | 2 +- ...otelDetailsResponseDataPropertyCurrency.md | 2 +- ...elDetailsResponseDataPropertyImageInner.md | 2 +- ...tHotelDetailsResponseDataPropertyPolicy.md | 2 +- .../docs/GetHotelRoomTypesResponse.md | 33 + .../docs/GetHotelsResponse.md | 2 +- .../docs/GetHotelsResponseDataInner.md | 2 +- ...sResponseDataInnerPropertyCurrencyInner.md | 2 +- .../docs/GetHouseAccountDetailsResponse.md | 30 + .../GetHouseAccountDetailsResponseData.md | 31 + ...eAccountDetailsResponseDataRecordsInner.md | 43 + ...useAccountDetailsResponseDataTotalInner.md | 32 + .../docs/GetHouseAccountListResponse.md | 2 +- .../GetHouseAccountListResponseDataInner.md | 2 +- .../docs/GetHousekeepersResponse.md | 2 +- .../docs/GetHousekeepersResponseDataInner.md | 2 +- .../docs/GetHousekeepingStatusResponse.md | 2 +- .../GetHousekeepingStatusResponseDataInner.md | 2 +- .../GetImportDummyReservationsResponse.md | 30 + .../docs/GetImportToursResponse.md | 30 + .../docs/GetInvoiceResponse.md | 2 +- .../docs/GetInvoiceResponseData.md | 2 +- .../docs/GetInvoiceResponseDataBilledTo.md | 2 +- .../docs/GetInvoiceResponseDataItemsInner.md | 2 +- ...tInvoiceResponseDataItemsInnerFeesInner.md | 2 +- ...InvoiceResponseDataItemsInnerTaxesInner.md | 2 +- .../docs/GetItemCategoriesResponse.md | 2 +- .../GetItemCategoriesResponseDataInner.md | 2 +- .../docs/GetItemResponse.md | 2 +- .../docs/GetItemResponseData.md | 2 +- .../docs/GetItemResponseDataFeesInner.md | 2 +- .../docs/GetItemResponseDataTaxesInner.md | 2 +- .../docs/GetItemsResponse.md | 2 +- .../docs/GetItemsResponseDataInner.md | 2 +- .../GetListAllotmentBlockNotesResponse.md | 2 +- ...istAllotmentBlockNotesResponseDataInner.md | 2 +- .../docs/GetMetadataResponse.md | 2 +- .../docs/GetMetadataResponseData.md | 2 +- .../docs/GetMetadataResponseDataApi.md | 2 +- .../docs/GetPackagesResponse.md | 2 +- .../docs/GetPackagesResponseData.md | 2 +- .../docs/GetPaymentMethodsResponse.md | 2 +- .../docs/GetPaymentMethodsResponseData.md | 2 +- ...tPaymentMethodsResponseDataGatewayInner.md | 2 +- ...tPaymentMethodsResponseDataMethodsInner.md | 2 +- ...sResponseDataMethodsInnerCardTypesInner.md | 2 +- .../docs/GetPaymentsCapabilitiesResponse.md | 2 +- ...etPaymentsCapabilitiesResponseDataInner.md | 2 +- .../docs/GetPaymentsResponse.md | 33 + .../docs/GetPaymentsResponseDataInner.md | 59 + ...ResponseDataInnerPaymentAllocationInner.md | 34 + .../docs/GetPendingTransactionsResponse.md | 33 + ...GetPendingTransactionsResponseDataInner.md | 60 + .../docs/GetRateJobsResponse.md | 2 +- .../docs/GetRateJobsResponseDataInner.md | 2 +- ...etRateJobsResponseDataInnerUpdatesInner.md | 2 +- .../docs/GetRatePlansResponse.md | 2 +- .../docs/GetRatePlansResponseDataInner.md | 2 +- ...etRatePlansResponseDataInnerAddOnsInner.md | 2 +- ...sResponseDataInnerRoomRateDetailedInner.md | 2 +- .../docs/GetRateResponse.md | 2 +- .../docs/GetRateResponseData.md | 2 +- ...etRateResponseDataRoomRateDetailedInner.md | 2 +- .../docs/GetReservationArrivalsResponse.md | 31 + ...GetReservationArrivalsResponseDataInner.md | 35 + .../docs/GetReservationAssignmentsResponse.md | 2 +- ...ReservationAssignmentsResponseDataInner.md | 2 +- ...signmentsResponseDataInnerAssignedInner.md | 2 +- .../docs/GetReservationDeparturesResponse.md | 31 + ...tReservationDeparturesResponseDataInner.md | 33 + .../docs/GetReservationInHouseResponse.md | 31 + .../GetReservationInHouseResponseDataInner.md | 54 + ...etReservationInvoiceInformationResponse.md | 2 +- ...tionInvoiceInformationResponseDataInner.md | 3 +- ...onResponseDataInnerBalanceDetailedInner.md | 2 +- ...nResponseDataInnerMainGuestDetailsInner.md | 2 +- ...eDataInnerReservationAddOnProductsInner.md | 2 +- ...InnerReservationAdditionalProductsInner.md | 2 +- ...nseDataInnerReservationAdjustmentsInner.md | 2 +- ...sponseDataInnerReservationPaymentsInner.md | 2 +- ...nResponseDataInnerReservationRoomsInner.md | 2 +- ...nResponseDataInnerReservationTaxesInner.md | 2 +- .../docs/GetReservationNotesResponse.md | 2 +- .../GetReservationNotesResponseDataInner.md | 2 +- .../docs/GetReservationResponse.md | 2 +- .../docs/GetReservationResponseData.md | 3 +- ...GetReservationResponseDataAssignedInner.md | 2 +- ...esponseDataAssignedInnerDailyRatesInner.md | 2 +- ...rvationResponseDataBalanceDetailedInner.md | 2 +- ...ReservationResponseDataCardsOnFileInner.md | 2 +- ...ervationResponseDataGroupInventoryInner.md | 2 +- ...etReservationResponseDataGuestListValue.md | 2 +- ...onseDataGuestListValueCustomFieldsInner.md | 2 +- ...ionResponseDataGuestListValueRoomsInner.md | 2 +- ...eDataGuestListValueUnassignedRoomsInner.md | 2 +- ...tReservationResponseDataUnassignedInner.md | 2 +- .../docs/GetReservationRoomDetailsResponse.md | 2 +- .../GetReservationRoomDetailsResponseData.md | 2 +- ...ationRoomDetailsResponseDataGuestsInner.md | 2 +- .../docs/GetReservationsResponse.md | 2 +- .../docs/GetReservationsResponseDataInner.md | 3 +- ...rvationsResponseDataInnerGuestListValue.md | 2 +- ...sponseDataInnerGuestListValueRoomsInner.md | 2 +- ...InnerGuestListValueUnassignedRoomsInner.md | 2 +- ...ReservationsResponseDataInnerRoomsInner.md | 2 +- .../GetReservationsWithRateDetailsResponse.md | 2 +- ...vationsWithRateDetailsResponseDataInner.md | 3 +- ...hRateDetailsResponseDataInnerRoomsInner.md | 2 +- ...RateDetailsResponseDataInnerSourceInner.md | 2 +- .../docs/GetRoomBlocksResponse.md | 2 +- .../docs/GetRoomBlocksResponseDataInner.md | 2 +- .../docs/GetRoomTypesResponse.md | 2 +- .../docs/GetRoomTypesResponseDataInner.md | 2 +- .../docs/GetRoomsFeesAndTaxesResponse.md | 2 +- .../docs/GetRoomsFeesAndTaxesResponseData.md | 2 +- ...tRoomsFeesAndTaxesResponseDataFeesInner.md | 2 +- ...RoomsFeesAndTaxesResponseDataTaxesInner.md | 2 +- .../docs/GetRoomsResponse.md | 2 +- .../docs/GetRoomsResponseDataInner.md | 2 +- .../GetRoomsResponseDataInnerRoomsInner.md | 2 +- ...taInnerRoomsInnerLinkedRoomTypeQtyInner.md | 2 +- .../docs/GetRoomsUnassignedResponse.md | 2 +- .../GetRoomsUnassignedResponseDataInner.md | 2 +- ...msUnassignedResponseDataInnerRoomsInner.md | 2 +- .../docs/GetSourcesResponse.md | 2 +- .../docs/GetSourcesResponseDataInner.md | 2 +- .../GetSourcesResponseDataInnerFeesInner.md | 2 +- .../GetSourcesResponseDataInnerTaxesInner.md | 2 +- .../docs/GetTaxesAndFeesResponse.md | 2 +- .../docs/GetTaxesAndFeesResponseDataInner.md | 2 +- ...esResponseDataInnerAmountRateBasedInner.md | 2 +- ...AndFeesResponseDataInnerDateRangesInner.md | 2 +- ...sAndFeesResponseDataInnerRoomTypesInner.md | 2 +- .../docs/GetTransactionsResponse.md | 34 + .../docs/GetTransactionsResponseDataInner.md | 61 + .../docs/GetUserinfoResponse.md | 2 +- .../docs/GetUserinfoResponseRolesInner.md | 2 +- .../docs/GetUsersResponse.md | 2 +- .../docs/GetUsersResponseDataInner.md | 2 +- .../docs/GetUsersResponseDataInnerUserRole.md | 2 +- .../docs/GetWebhooksResponse.md | 2 +- .../docs/GetWebhooksResponseDataInner.md | 2 +- .../docs/GetWebhooksResponseDataInnerEvent.md | 2 +- .../docs/GetWebhooksResponseDataInnerKey.md | 2 +- .../docs/GetWebhooksResponseDataInnerOwner.md | 2 +- ...bhooksResponseDataInnerSubscriptionData.md | 2 +- .../docs/GroupsApi.md | 84 +- .../docs/GuestApi.md | 329 +- .../docs/HotelApi.md | 68 +- .../docs/HouseAccountApi.md | 141 +- .../docs/HousekeepingApi.md | 100 +- cloudbeds_pms_v1_3/docs/ImportApi.md | 166 + .../docs/IntegrationApi.md | 285 +- .../docs/InvoicesApi.md | 121 +- .../docs/ItemApi.md | 391 +- .../docs/PackageApi.md | 36 +- cloudbeds_pms_v1_3/docs/PaymentApi.md | 1168 ++++ .../docs/PostAccessTokenCheckResponse.md | 29 + .../docs/PostAccessTokenResponse.md | 2 +- .../PostAccessTokenResponseResourcesInner.md | 2 +- .../docs/PostAdjustmentResponse.md | 2 +- .../docs/PostAdjustmentResponseData.md | 2 +- .../docs/PostAppErrorResponse.md | 2 +- .../docs/PostAppErrorResponseData.md | 2 +- .../docs/PostAppPropertySettingResponse.md | 2 +- .../PostAppPropertySettingResponseData.md | 2 +- .../PostAppSettingsRequestSettingsInner.md | 30 + .../docs/PostAppSettingsResponse.md | 30 + .../docs/PostAppStateInternalResponse.md | 29 + .../docs/PostAppStateResponse.md | 2 +- .../docs/PostAppendCustomItemResponse.md | 2 +- .../docs/PostAppendCustomItemResponseData.md | 2 +- .../PostBulkAppPropertySettingsResponse.md | 29 + .../docs/PostCRMCacheRemoveResponse.md | 29 + .../docs/PostCRMCacheUpdateResponse.md | 29 + .../docs/PostCardResponse.md | 2 +- .../docs/PostCardResponseData.md | 2 +- .../docs/PostChargeResponse.md | 2 +- .../docs/PostChargeResponseData.md | 2 +- .../docs/PostChargeResponseDataNextAction.md | 2 +- ...PostChargeResponseDataNextActionDetails.md | 2 +- .../PostCreateAllotmentBlockNotesResponse.md | 2 +- ...stCreateAllotmentBlockNotesResponseData.md | 2 +- ...mentBlockRequestAllotmentIntervalsInner.md | 2 +- ...llotmentIntervalsInnerAvailabilityInner.md | 2 +- ...rvalsInnerAvailabilityInnerGuestPricing.md | 2 +- ...rvalsInnerAvailabilityInnerRestrictions.md | 2 +- ...tCreateAllotmentBlockRequestAutoRelease.md | 2 +- .../docs/PostCreateAllotmentBlockResponse.md | 2 +- ...stCreateAllotmentBlockResponseDataInner.md | 2 +- ...esponseDataInnerAllotmentIntervalsInner.md | 2 +- ...nnerAllotmentIntervalsInnerAvailability.md | 2 +- ...tIntervalsInnerAvailabilityGuestPricing.md | 2 +- ...nnerAllotmentIntervalsInnerRestrictions.md | 2 +- ...otmentBlockResponseDataInnerAutoRelease.md | 2 +- .../docs/PostCustomFieldResponse.md | 2 +- .../docs/PostCustomFieldResponseData.md | 2 +- .../docs/PostCustomItemRequestItemsInner.md | 2 +- ...ustomItemRequestItemsInnerItemFeesInner.md | 2 +- ...stomItemRequestItemsInnerItemTaxesInner.md | 2 +- .../PostCustomItemRequestPaymentsInner.md | 2 +- .../docs/PostCustomItemResponse.md | 2 +- .../docs/PostCustomItemResponseData.md | 2 +- .../docs/PostCustomPaymentMethodResponse.md | 2 +- .../docs/PostDeleteAllotmentBlockResponse.md | 2 +- .../PostDeleteAppPropertySettingsResponse.md | 2 +- .../docs/PostEmailScheduleRequestSchedule.md | 2 +- ...ScheduleRequestScheduleReservationEvent.md | 2 +- ...eRequestScheduleReservationStatusChange.md | 2 +- .../docs/PostEmailScheduleResponse.md | 2 +- .../docs/PostEmailTemplateRequestBody.md | 2 +- .../docs/PostEmailTemplateRequestSubject.md | 2 +- .../docs/PostEmailTemplateResponse.md | 2 +- .../docs/PostFileResponse.md | 2 +- .../docs/PostGovernmentReceiptResponse.md | 2 +- .../docs/PostGroupNoteResponse.md | 2 +- .../docs/PostGroupNoteResponseDataInner.md | 2 +- .../docs/PostGuestCreditCardResponse.md | 29 + .../docs/PostGuestDocumentResponse.md | 2 +- .../docs/PostGuestDocumentResponseData.md | 2 +- .../docs/PostGuestNoteResponse.md | 2 +- .../docs/PostGuestPhotoResponse.md | 2 +- .../docs/PostGuestRequestCustomFieldsInner.md | 2 +- .../docs/PostGuestResponse.md | 2 +- .../docs/PostGuestsToRoomResponse.md | 2 +- .../docs/PostHousekeeperResponse.md | 2 +- .../PostHousekeepingAssignmentResponse.md | 2 +- .../docs/PostHousekeepingStatusResponse.md | 2 +- .../PostHousekeepingStatusResponseData.md | 2 +- .../docs/PostItemCategoryResponse.md | 2 +- .../docs/PostItemResponse.md | 4 +- ...stItemToReservationRequestPaymentsInner.md | 31 + .../docs/PostItemToReservationResponse.md | 31 + .../docs/PostItemToReservationResponseData.md | 16 +- .../docs/PostItemsToInventoryRequestItem.md | 2 +- .../docs/PostItemsToInventoryResponse.md | 2 +- .../PostItemsToInventoryResponseDataInner.md | 2 +- .../docs/PostNewHouseAccountResponse.md | 2 +- .../docs/PostNewHouseAccountResponseData.md | 2 +- .../docs/PostPatchGroupResponse.md | 2 +- .../docs/PostPatchGroupResponseDataInner.md | 2 +- .../docs/PostPatchInvoiceResponse.md | 2 +- .../docs/PostPatchRateRequestRatesInner.md | 2 +- .../PostPatchRateRequestRatesInnerInterval.md | 2 +- .../docs/PostPatchRateResponse.md | 2 +- .../docs/PostPaymentCashResponse.md | 30 + .../docs/PostPaymentCreditCardResponse.md | 30 + .../docs/PostPaymentResponse.md | 2 +- .../PostPutAppPropertySettingsResponse.md | 2 +- .../docs/PostPutGroupResponse.md | 2 +- cloudbeds_pms_v1_3/docs/PostPutRateRequest.md | 29 + .../docs/PostPutRateRequestRatesInner.md | 2 +- ...stPutRateRequestRatesInnerIntervalInner.md | 2 +- .../docs/PostPutRateResponse.md | 2 +- .../docs/PostReservationCheckInResponse.md | 30 + .../docs/PostReservationCheckOutResponse.md | 30 + .../docs/PostReservationDocumentResponse.md | 2 +- .../docs/PostReservationNoteResponse.md | 2 +- .../docs/PostReservationRequestAdultsInner.md | 2 +- .../PostReservationRequestChildrenInner.md | 2 +- ...PostReservationRequestCustomFieldsInner.md | 2 +- .../docs/PostReservationRequestRoomsInner.md | 2 +- .../docs/PostReservationResponse.md | 2 +- .../PostReservationResponseUnassignedInner.md | 2 +- .../docs/PostRoomAssignResponse.md | 2 +- .../docs/PostRoomBlockRequestRoomsInner.md | 2 +- .../docs/PostRoomBlockResponse.md | 2 +- .../docs/PostRoomBlockResponseRoomsInner.md | 2 +- .../docs/PostRoomCheckInResponse.md | 2 +- .../docs/PostRoomCheckOutResponse.md | 2 +- .../docs/PostRoomTypeResponse.md | 31 + .../docs/PostRoomTypeResponseData.md | 30 + .../PostUpdateAllotmentBlockNotesResponse.md | 2 +- ...stUpdateAllotmentBlockNotesResponseData.md | 2 +- ...mentBlockRequestAllotmentIntervalsInner.md | 2 +- ...llotmentIntervalsInnerAvailabilityInner.md | 2 +- ...rvalsInnerAvailabilityInnerGuestPricing.md | 2 +- ...rvalsInnerAvailabilityInnerRestrictions.md | 2 +- ...tUpdateAllotmentBlockRequestAutoRelease.md | 2 +- .../docs/PostUpdateAllotmentBlockResponse.md | 2 +- ...stUpdateAllotmentBlockResponseDataInner.md | 2 +- ...esponseDataInnerAllotmentIntervalsInner.md | 2 +- ...nnerAllotmentIntervalsInnerRestrictions.md | 2 +- .../docs/PostVoidItemResponse.md | 2 +- .../docs/PostVoidPaymentResponse.md | 2 +- .../docs/PostWebhookResponse.md | 2 +- .../docs/PostWebhookResponseData.md | 2 +- .../docs/PutGuestNoteResponse.md | 2 +- .../PutGuestRequestGuestCustomFieldsInner.md | 2 +- .../docs/PutGuestResponse.md | 2 +- .../docs/PutHouseAccountStatusResponse.md | 2 +- .../docs/PutHousekeeperResponse.md | 2 +- .../docs/PutItemToInventoryResponse.md | 2 +- .../docs/PutRateRequestRatesInner.md | 30 + .../PutRateRequestRatesInnerIntervalInner.md | 31 + cloudbeds_pms_v1_3/docs/PutRateResponse.md | 31 + ...ervationDetailsRequestCustomFieldsInner.md | 30 + .../docs/PutReservationDetailsResponse.md | 31 + .../docs/PutReservationNoteResponse.md | 2 +- .../PutReservationRequestCustomFieldsInner.md | 2 +- .../docs/PutReservationRequestRoomsInner.md | 2 +- .../docs/PutReservationResponse.md | 2 +- .../docs/PutRoomBlockRequestRoomsInner.md | 2 +- .../docs/PutRoomBlockResponse.md | 2 +- .../docs/RateApi.md | 108 +- .../docs/ReservationApi.md | 749 ++- .../docs/RoomApi.md | 319 +- cloudbeds_pms_v1_3/docs/RoomsApi.md | 105 + .../docs/TaxesAndFeesApi.md | 20 +- .../docs/UserApi.md | 20 +- .../exceptions.py | 4 +- cloudbeds_pms_v1_3/models/__init__.py | 385 ++ .../models/delete_adjustment_response.py | 4 +- .../models/delete_guest_note_response.py | 4 +- .../delete_item_from_reservation_response.py | 94 + .../delete_reservation_note_response.py | 4 +- .../models/delete_room_block_response.py | 4 +- .../models/delete_webhook_response.py | 4 +- .../models/get_adjustment_response.py | 93 + .../models/get_adjustment_response_data.py | 112 + .../models/get_adjustments_response.py | 93 + .../models/get_adjustments_response_data.py | 102 + .../models/get_allotment_blocks_response.py | 6 +- ...et_allotment_blocks_response_data_inner.py | 8 +- ...se_data_inner_allotment_intervals_inner.py | 8 +- ...ment_intervals_inner_availability_inner.py | 6 +- ..._allotment_intervals_inner_restrictions.py | 4 +- ..._response_data_inner_auto_release_inner.py | 4 +- .../get_app_property_settings_response.py | 6 +- ...get_app_property_settings_response_data.py | 6 +- ..._property_settings_response_data_one_of.py | 4 +- .../models/get_app_settings_response.py | 6 +- .../models/get_app_settings_response_data.py | 4 +- .../models/get_app_state_response.py | 6 +- .../models/get_app_state_response_data.py | 4 +- .../models/get_async_api_job_response.py | 106 + .../get_async_api_job_response_data_inner.py | 102 + ...i_job_response_data_inner_updates_inner.py | 248 + ...updates_inner_allotment_intervals_inner.py | 129 + ..._allotment_intervals_inner_availability.py | 132 + ...ervals_inner_availability_guest_pricing.py | 127 + ..._allotment_intervals_inner_restrictions.py | 127 + ...e_data_inner_updates_inner_auto_release.py | 116 + .../get_available_room_types_response.py | 6 +- ...vailable_room_types_response_data_inner.py | 8 +- ...onse_data_inner_property_currency_inner.py | 4 +- ...esponse_data_inner_property_rooms_inner.py | 10 +- ...erty_rooms_inner_individual_rooms_inner.py | 4 +- ...ty_rooms_inner_room_rate_detailed_inner.py | 4 +- .../models/get_currency_settings_response.py | 6 +- .../get_currency_settings_response_data.py | 8 +- ..._currency_settings_response_data_format.py | 4 +- ...t_currency_settings_response_data_rates.py | 6 +- ...ettings_response_data_rates_fixed_inner.py | 4 +- .../models/get_custom_fields_response.py | 6 +- .../get_custom_fields_response_data_inner.py | 4 +- .../models/get_dashboard_response.py | 6 +- .../models/get_dashboard_response_data.py | 4 +- .../models/get_email_schedule_response.py | 6 +- .../get_email_schedule_response_data_inner.py | 4 +- .../models/get_email_templates_response.py | 6 +- ...get_email_templates_response_data_inner.py | 4 +- .../models/get_files_response.py | 6 +- .../models/get_files_response_data_inner.py | 4 +- .../models/get_group_notes_response.py | 6 +- .../models/get_group_notes_response_data.py | 4 +- .../models/get_groups_response.py | 6 +- .../models/get_groups_response_data_inner.py | 4 +- .../models/get_guest_list_response.py | 6 +- .../get_guest_list_response_data_value.py | 6 +- ...t_response_data_value_guest_notes_inner.py | 4 +- .../models/get_guest_notes_response.py | 6 +- .../get_guest_notes_response_data_inner.py | 4 +- .../models/get_guest_response.py | 6 +- .../models/get_guest_response_data.py | 12 +- .../get_guest_response_data_birth_date.py | 4 +- ...guest_response_data_custom_fields_inner.py | 4 +- ..._response_data_document_expiration_date.py | 4 +- ...guest_response_data_document_issue_date.py | 4 +- .../models/get_guests_by_filter_response.py | 6 +- ...et_guests_by_filter_response_data_inner.py | 4 +- .../models/get_guests_by_status_response.py | 6 +- ...et_guests_by_status_response_data_inner.py | 6 +- .../models/get_guests_modified_response.py | 6 +- ...get_guests_modified_response_data_inner.py | 6 +- ...response_data_inner_custom_fields_inner.py | 4 +- .../models/get_hotel_details_response.py | 6 +- .../models/get_hotel_details_response_data.py | 12 +- ..._details_response_data_property_address.py | 4 +- ...details_response_data_property_currency.py | 4 +- ...ails_response_data_property_image_inner.py | 4 +- ...l_details_response_data_property_policy.py | 4 +- .../models/get_hotel_room_types_response.py | 100 + .../models/get_hotels_response.py | 6 +- .../models/get_hotels_response_data_inner.py | 6 +- ...onse_data_inner_property_currency_inner.py | 4 +- .../get_house_account_details_response.py | 93 + ...get_house_account_details_response_data.py | 105 + ...unt_details_response_data_records_inner.py | 116 + ...count_details_response_data_total_inner.py | 93 + .../models/get_house_account_list_response.py | 6 +- ..._house_account_list_response_data_inner.py | 4 +- .../models/get_housekeepers_response.py | 6 +- .../get_housekeepers_response_data_inner.py | 4 +- .../get_housekeeping_status_response.py | 6 +- ...housekeeping_status_response_data_inner.py | 4 +- .../get_import_dummy_reservations_response.py | 89 + .../models/get_import_tours_response.py | 89 + .../models/get_invoice_response.py | 6 +- .../models/get_invoice_response_data.py | 12 +- .../get_invoice_response_data_billed_to.py | 4 +- .../get_invoice_response_data_items_inner.py | 8 +- ...ce_response_data_items_inner_fees_inner.py | 4 +- ...e_response_data_items_inner_taxes_inner.py | 4 +- .../models/get_item_categories_response.py | 6 +- ...get_item_categories_response_data_inner.py | 4 +- .../models/get_item_response.py | 6 +- .../models/get_item_response_data.py | 8 +- .../get_item_response_data_fees_inner.py | 4 +- .../get_item_response_data_taxes_inner.py | 4 +- .../models/get_items_response.py | 6 +- .../models/get_items_response_data_inner.py | 8 +- ...get_list_allotment_block_notes_response.py | 6 +- ...lotment_block_notes_response_data_inner.py | 4 +- .../models/get_metadata_response.py | 6 +- .../models/get_metadata_response_data.py | 6 +- .../models/get_metadata_response_data_api.py | 4 +- .../models/get_packages_response.py | 6 +- .../models/get_packages_response_data.py | 4 +- .../models/get_payment_methods_response.py | 6 +- .../get_payment_methods_response_data.py | 8 +- ...ent_methods_response_data_gateway_inner.py | 4 +- ...ent_methods_response_data_methods_inner.py | 6 +- ...nse_data_methods_inner_card_types_inner.py | 4 +- .../get_payments_capabilities_response.py | 6 +- ...yments_capabilities_response_data_inner.py | 4 +- .../models/get_payments_response.py | 108 + .../get_payments_response_data_inner.py | 231 + ...nse_data_inner_payment_allocation_inner.py | 127 + .../get_pending_transactions_response.py | 108 + ...ending_transactions_response_data_inner.py | 180 + .../models/get_rate_jobs_response.py | 6 +- .../get_rate_jobs_response_data_inner.py | 6 +- ..._jobs_response_data_inner_updates_inner.py | 4 +- .../models/get_rate_plans_response.py | 6 +- .../get_rate_plans_response_data_inner.py | 8 +- ...plans_response_data_inner_add_ons_inner.py | 4 +- ...nse_data_inner_room_rate_detailed_inner.py | 4 +- .../models/get_rate_response.py | 6 +- .../models/get_rate_response_data.py | 6 +- ..._response_data_room_rate_detailed_inner.py | 4 +- .../get_reservation_arrivals_response.py | 104 + ...eservation_arrivals_response_data_inner.py | 104 + .../get_reservation_assignments_response.py | 6 +- ...rvation_assignments_response_data_inner.py | 6 +- ...ents_response_data_inner_assigned_inner.py | 4 +- .../get_reservation_departures_response.py | 104 + ...ervation_departures_response_data_inner.py | 95 + .../get_reservation_in_house_response.py | 104 + ...eservation_in_house_response_data_inner.py | 228 + ...eservation_invoice_information_response.py | 6 +- ...invoice_information_response_data_inner.py | 28 +- ...ponse_data_inner_balance_detailed_inner.py | 4 +- ...nse_data_inner_main_guest_details_inner.py | 4 +- ...inner_reservation_add_on_products_inner.py | 4 +- ...r_reservation_additional_products_inner.py | 4 +- ...ata_inner_reservation_adjustments_inner.py | 4 +- ...e_data_inner_reservation_payments_inner.py | 4 +- ...onse_data_inner_reservation_rooms_inner.py | 4 +- ...onse_data_inner_reservation_taxes_inner.py | 4 +- .../models/get_reservation_notes_response.py | 6 +- ...t_reservation_notes_response_data_inner.py | 4 +- .../models/get_reservation_response.py | 6 +- .../models/get_reservation_response_data.py | 24 +- ...eservation_response_data_assigned_inner.py | 6 +- ...e_data_assigned_inner_daily_rates_inner.py | 4 +- ...on_response_data_balance_detailed_inner.py | 4 +- ...ation_response_data_cards_on_file_inner.py | 4 +- ...ion_response_data_group_inventory_inner.py | 4 +- ...ervation_response_data_guest_list_value.py | 10 +- ...ta_guest_list_value_custom_fields_inner.py | 4 +- ...ponse_data_guest_list_value_rooms_inner.py | 4 +- ...guest_list_value_unassigned_rooms_inner.py | 4 +- ...ervation_response_data_unassigned_inner.py | 6 +- .../get_reservation_room_details_response.py | 6 +- ..._reservation_room_details_response_data.py | 6 +- ...room_details_response_data_guests_inner.py | 4 +- .../models/get_reservations_response.py | 6 +- .../get_reservations_response_data_inner.py | 18 +- ...ns_response_data_inner_guest_list_value.py | 10 +- ...data_inner_guest_list_value_rooms_inner.py | 4 +- ...guest_list_value_unassigned_rooms_inner.py | 4 +- ...vations_response_data_inner_rooms_inner.py | 4 +- ...reservations_with_rate_details_response.py | 6 +- ...s_with_rate_details_response_data_inner.py | 16 +- ...details_response_data_inner_rooms_inner.py | 4 +- ...etails_response_data_inner_source_inner.py | 4 +- .../models/get_room_blocks_response.py | 6 +- .../get_room_blocks_response_data_inner.py | 6 +- .../models/get_room_types_response.py | 6 +- .../get_room_types_response_data_inner.py | 4 +- .../get_rooms_fees_and_taxes_response.py | 6 +- .../get_rooms_fees_and_taxes_response_data.py | 8 +- ...fees_and_taxes_response_data_fees_inner.py | 4 +- ...ees_and_taxes_response_data_taxes_inner.py | 4 +- .../models/get_rooms_response.py | 6 +- .../models/get_rooms_response_data_inner.py | 6 +- ...t_rooms_response_data_inner_rooms_inner.py | 6 +- ..._rooms_inner_linked_room_type_qty_inner.py | 4 +- .../models/get_rooms_unassigned_response.py | 6 +- ...et_rooms_unassigned_response_data_inner.py | 6 +- ...ssigned_response_data_inner_rooms_inner.py | 4 +- .../models/get_sources_response.py | 6 +- .../models/get_sources_response_data_inner.py | 8 +- ..._sources_response_data_inner_fees_inner.py | 4 +- ...sources_response_data_inner_taxes_inner.py | 4 +- .../models/get_taxes_and_fees_response.py | 6 +- .../get_taxes_and_fees_response_data_inner.py | 10 +- ...onse_data_inner_amount_rate_based_inner.py | 4 +- ...s_response_data_inner_date_ranges_inner.py | 6 +- ...es_response_data_inner_room_types_inner.py | 4 +- .../models/get_transactions_response.py | 110 + .../get_transactions_response_data_inner.py | 182 + .../models/get_userinfo_response.py | 6 +- .../get_userinfo_response_roles_inner.py | 4 +- .../models/get_users_response.py | 6 +- .../models/get_users_response_data_inner.py | 6 +- ...get_users_response_data_inner_user_role.py | 4 +- .../models/get_webhooks_response.py | 6 +- .../get_webhooks_response_data_inner.py | 12 +- .../get_webhooks_response_data_inner_event.py | 4 +- .../get_webhooks_response_data_inner_key.py | 4 +- .../get_webhooks_response_data_inner_owner.py | 4 +- ...s_response_data_inner_subscription_data.py | 4 +- .../post_access_token_check_response.py | 87 + .../models/post_access_token_response.py | 6 +- ...t_access_token_response_resources_inner.py | 4 +- .../models/post_adjustment_response.py | 6 +- .../models/post_adjustment_response_data.py | 4 +- .../models/post_app_error_response.py | 6 +- .../models/post_app_error_response_data.py | 4 +- .../post_app_property_setting_response.py | 6 +- ...post_app_property_setting_response_data.py | 4 +- ...ost_app_settings_request_settings_inner.py | 89 + .../models/post_app_settings_response.py | 89 + .../post_app_state_internal_response.py | 87 + .../models/post_app_state_response.py | 4 +- .../post_append_custom_item_response.py | 6 +- .../post_append_custom_item_response_data.py | 4 +- ...ost_bulk_app_property_settings_response.py | 87 + .../models/post_card_response.py | 6 +- .../models/post_card_response_data.py | 4 +- .../models/post_charge_response.py | 6 +- .../models/post_charge_response_data.py | 6 +- .../post_charge_response_data_next_action.py | 6 +- ...harge_response_data_next_action_details.py | 4 +- ...t_create_allotment_block_notes_response.py | 6 +- ...ate_allotment_block_notes_response_data.py | 4 +- ...block_request_allotment_intervals_inner.py | 6 +- ...ment_intervals_inner_availability_inner.py | 8 +- ..._inner_availability_inner_guest_pricing.py | 4 +- ...s_inner_availability_inner_restrictions.py | 4 +- ...te_allotment_block_request_auto_release.py | 4 +- .../post_create_allotment_block_response.py | 6 +- ...ate_allotment_block_response_data_inner.py | 8 +- ...se_data_inner_allotment_intervals_inner.py | 8 +- ..._allotment_intervals_inner_availability.py | 6 +- ...ervals_inner_availability_guest_pricing.py | 4 +- ..._allotment_intervals_inner_restrictions.py | 4 +- ..._block_response_data_inner_auto_release.py | 4 +- .../models/post_crm_cache_remove_response.py | 87 + .../models/post_crm_cache_update_response.py | 87 + .../models/post_custom_field_response.py | 6 +- .../models/post_custom_field_response_data.py | 4 +- .../post_custom_item_request_items_inner.py | 8 +- ...tem_request_items_inner_item_fees_inner.py | 4 +- ...em_request_items_inner_item_taxes_inner.py | 4 +- ...post_custom_item_request_payments_inner.py | 4 +- .../models/post_custom_item_response.py | 6 +- .../models/post_custom_item_response_data.py | 4 +- .../post_custom_payment_method_response.py | 4 +- .../post_delete_allotment_block_response.py | 4 +- ...t_delete_app_property_settings_response.py | 4 +- .../post_email_schedule_request_schedule.py | 8 +- ...dule_request_schedule_reservation_event.py | 4 +- ...uest_schedule_reservation_status_change.py | 4 +- .../models/post_email_schedule_response.py | 4 +- .../post_email_template_request_body.py | 4 +- .../post_email_template_request_subject.py | 4 +- .../models/post_email_template_response.py | 4 +- .../models/post_file_response.py | 6 +- .../post_government_receipt_response.py | 4 +- .../models/post_group_note_response.py | 6 +- .../post_group_note_response_data_inner.py | 4 +- .../models/post_guest_credit_card_response.py | 87 + .../models/post_guest_document_response.py | 6 +- .../post_guest_document_response_data.py | 4 +- .../models/post_guest_note_response.py | 4 +- .../models/post_guest_photo_response.py | 6 +- .../post_guest_request_custom_fields_inner.py | 4 +- .../models/post_guest_response.py | 4 +- .../models/post_guests_to_room_response.py | 4 +- .../models/post_housekeeper_response.py | 4 +- .../post_housekeeping_assignment_response.py | 4 +- .../post_housekeeping_status_response.py | 6 +- .../post_housekeeping_status_response_data.py | 4 +- .../models/post_item_category_response.py | 4 +- .../models/post_item_response.py | 10 +- ...m_to_reservation_request_payments_inner.py | 12 +- .../post_item_to_reservation_response.py | 100 + .../post_item_to_reservation_response_data.py | 10 +- .../post_items_to_inventory_request_item.py | 4 +- .../post_items_to_inventory_response.py | 6 +- ..._items_to_inventory_response_data_inner.py | 4 +- .../models/post_new_house_account_response.py | 6 +- .../post_new_house_account_response_data.py | 4 +- .../models/post_patch_group_response.py | 6 +- .../post_patch_group_response_data_inner.py | 4 +- .../models/post_patch_invoice_response.py | 4 +- .../post_patch_rate_request_rates_inner.py | 6 +- ...patch_rate_request_rates_inner_interval.py | 6 +- .../models/post_patch_rate_response.py | 4 +- .../models/post_payment_cash_response.py | 94 + .../post_payment_credit_card_response.py | 94 + .../models/post_payment_response.py | 4 +- ...post_put_app_property_settings_response.py | 6 +- .../models/post_put_group_response.py | 6 +- .../models/post_put_rate_request.py | 95 + .../post_put_rate_request_rates_inner.py | 6 +- ...rate_request_rates_inner_interval_inner.py | 4 +- .../models/post_put_rate_response.py | 4 +- .../post_reservation_check_in_response.py | 94 + .../post_reservation_check_out_response.py | 94 + .../post_reservation_document_response.py | 6 +- .../models/post_reservation_note_response.py | 4 +- .../post_reservation_request_adults_inner.py | 4 +- ...post_reservation_request_children_inner.py | 4 +- ...reservation_request_custom_fields_inner.py | 4 +- .../post_reservation_request_rooms_inner.py | 4 +- .../models/post_reservation_response.py | 6 +- ...t_reservation_response_unassigned_inner.py | 6 +- .../models/post_room_assign_response.py | 4 +- .../post_room_block_request_rooms_inner.py | 4 +- .../models/post_room_block_response.py | 6 +- .../post_room_block_response_rooms_inner.py | 4 +- .../models/post_room_check_in_response.py | 4 +- .../models/post_room_check_out_response.py | 4 +- .../models/post_room_type_response.py | 100 + .../models/post_room_type_response_data.py | 87 + ...t_update_allotment_block_notes_response.py | 6 +- ...ate_allotment_block_notes_response_data.py | 4 +- ...block_request_allotment_intervals_inner.py | 6 +- ...ment_intervals_inner_availability_inner.py | 8 +- ..._inner_availability_inner_guest_pricing.py | 4 +- ...s_inner_availability_inner_restrictions.py | 4 +- ...te_allotment_block_request_auto_release.py | 4 +- .../post_update_allotment_block_response.py | 6 +- ...ate_allotment_block_response_data_inner.py | 8 +- ...se_data_inner_allotment_intervals_inner.py | 8 +- ..._allotment_intervals_inner_restrictions.py | 4 +- .../models/post_void_item_response.py | 4 +- .../models/post_void_payment_response.py | 4 +- .../models/post_webhook_response.py | 6 +- .../models/post_webhook_response_data.py | 4 +- .../models/put_guest_note_response.py | 4 +- ...guest_request_guest_custom_fields_inner.py | 4 +- .../models/put_guest_response.py | 4 +- .../put_house_account_status_response.py | 4 +- .../models/put_housekeeper_response.py | 4 +- .../models/put_item_to_inventory_response.py | 4 +- .../models/put_rate_request_rates_inner.py | 97 + ...rate_request_rates_inner_interval_inner.py | 102 + .../models/put_rate_response.py | 91 + ...ion_details_request_custom_fields_inner.py | 99 + .../put_reservation_details_response.py | 101 + .../models/put_reservation_note_response.py | 4 +- ...reservation_request_custom_fields_inner.py | 4 +- .../put_reservation_request_rooms_inner.py | 4 +- .../models/put_reservation_response.py | 4 +- .../put_room_block_request_rooms_inner.py | 4 +- .../models/put_room_block_response.py | 6 +- .../py.typed | 0 .../rest.py | 6 +- .../test/__init__.py | 0 .../test/test_adjustment_api.py | 20 +- .../test/test_allotment_blocks_api.py | 6 +- .../test/test_app_settings_api.py | 13 +- .../test/test_authentication_api.py | 13 +- cloudbeds_pms_v1_3/test/test_beta_api.py | 38 + cloudbeds_pms_v1_3/test/test_crm_api.py | 45 + .../test/test_currency_api.py | 6 +- .../test/test_custom_fields_api.py | 6 +- .../test/test_dashboard_api.py | 6 +- .../test/test_delete_adjustment_response.py | 6 +- .../test/test_delete_guest_note_response.py | 6 +- ...t_delete_item_from_reservation_response.py | 52 + .../test_delete_reservation_note_response.py | 6 +- .../test/test_delete_room_block_response.py | 6 +- .../test/test_delete_webhook_response.py | 6 +- .../test/test_emails_api.py | 6 +- .../test/test_get_adjustment_response.py | 65 + .../test/test_get_adjustment_response_data.py | 63 + .../test/test_get_adjustments_response.py | 60 + .../test_get_adjustments_response_data.py | 58 + .../test_get_allotment_blocks_response.py | 18 +- ...et_allotment_blocks_response_data_inner.py | 16 +- ...se_data_inner_allotment_intervals_inner.py | 12 +- ...ment_intervals_inner_availability_inner.py | 8 +- ..._allotment_intervals_inner_restrictions.py | 6 +- ..._response_data_inner_auto_release_inner.py | 6 +- ...test_get_app_property_settings_response.py | 6 +- ...get_app_property_settings_response_data.py | 6 +- ..._property_settings_response_data_one_of.py | 6 +- .../test/test_get_app_settings_response.py | 8 +- .../test_get_app_settings_response_data.py | 6 +- .../test/test_get_app_state_response.py | 8 +- .../test/test_get_app_state_response_data.py | 6 +- .../test/test_get_async_api_job_response.py | 115 + ...t_get_async_api_job_response_data_inner.py | 109 + ...i_job_response_data_inner_updates_inner.py | 103 + ...updates_inner_allotment_intervals_inner.py | 73 + ..._allotment_intervals_inner_availability.py | 62 + ...ervals_inner_availability_guest_pricing.py | 56 + ..._allotment_intervals_inner_restrictions.py | 56 + ...e_data_inner_updates_inner_auto_release.py | 53 + .../test_get_available_room_types_response.py | 18 +- ...vailable_room_types_response_data_inner.py | 16 +- ...onse_data_inner_property_currency_inner.py | 6 +- ...esponse_data_inner_property_rooms_inner.py | 12 +- ...erty_rooms_inner_individual_rooms_inner.py | 6 +- ...ty_rooms_inner_room_rate_detailed_inner.py | 6 +- .../test_get_currency_settings_response.py | 14 +- ...est_get_currency_settings_response_data.py | 12 +- ..._currency_settings_response_data_format.py | 6 +- ...t_currency_settings_response_data_rates.py | 8 +- ...ettings_response_data_rates_fixed_inner.py | 6 +- .../test/test_get_custom_fields_response.py | 8 +- ...t_get_custom_fields_response_data_inner.py | 6 +- .../test/test_get_dashboard_response.py | 8 +- .../test/test_get_dashboard_response_data.py | 6 +- .../test/test_get_email_schedule_response.py | 8 +- ..._get_email_schedule_response_data_inner.py | 6 +- .../test/test_get_email_templates_response.py | 8 +- ...get_email_templates_response_data_inner.py | 6 +- .../test/test_get_files_response.py | 8 +- .../test_get_files_response_data_inner.py | 6 +- .../test/test_get_group_notes_response.py | 8 +- .../test_get_group_notes_response_data.py | 6 +- .../test/test_get_groups_response.py | 8 +- .../test_get_groups_response_data_inner.py | 6 +- .../test/test_get_guest_list_response.py | 10 +- ...test_get_guest_list_response_data_value.py | 8 +- ...t_response_data_value_guest_notes_inner.py | 6 +- .../test/test_get_guest_notes_response.py | 8 +- ...est_get_guest_notes_response_data_inner.py | 6 +- .../test/test_get_guest_response.py | 10 +- .../test/test_get_guest_response_data.py | 8 +- ...test_get_guest_response_data_birth_date.py | 6 +- ...guest_response_data_custom_fields_inner.py | 6 +- ..._response_data_document_expiration_date.py | 6 +- ...guest_response_data_document_issue_date.py | 6 +- .../test_get_guests_by_filter_response.py | 8 +- ...et_guests_by_filter_response_data_inner.py | 6 +- .../test_get_guests_by_status_response.py | 10 +- ...et_guests_by_status_response_data_inner.py | 8 +- .../test/test_get_guests_modified_response.py | 10 +- ...get_guests_modified_response_data_inner.py | 8 +- ...response_data_inner_custom_fields_inner.py | 6 +- .../test/test_get_hotel_details_response.py | 18 +- .../test_get_hotel_details_response_data.py | 16 +- ..._details_response_data_property_address.py | 6 +- ...details_response_data_property_currency.py | 6 +- ...ails_response_data_property_image_inner.py | 6 +- ...l_details_response_data_property_policy.py | 6 +- .../test_get_hotel_room_types_response.py | 57 + .../test/test_get_hotels_response.py | 10 +- .../test_get_hotels_response_data_inner.py | 8 +- ...onse_data_inner_property_currency_inner.py | 6 +- ...test_get_house_account_details_response.py | 77 + ...get_house_account_details_response_data.py | 75 + ...unt_details_response_data_records_inner.py | 65 + ...count_details_response_data_total_inner.py | 54 + .../test_get_house_account_list_response.py | 8 +- ..._house_account_list_response_data_inner.py | 6 +- .../test/test_get_housekeepers_response.py | 8 +- ...st_get_housekeepers_response_data_inner.py | 6 +- .../test_get_housekeeping_status_response.py | 8 +- ...housekeeping_status_response_data_inner.py | 6 +- ..._get_import_dummy_reservations_response.py | 54 + .../test/test_get_import_tours_response.py | 33 +- .../test/test_get_invoice_response.py | 20 +- .../test/test_get_invoice_response_data.py | 18 +- ...est_get_invoice_response_data_billed_to.py | 6 +- ...t_get_invoice_response_data_items_inner.py | 10 +- ...ce_response_data_items_inner_fees_inner.py | 6 +- ...e_response_data_items_inner_taxes_inner.py | 6 +- .../test/test_get_item_categories_response.py | 8 +- ...get_item_categories_response_data_inner.py | 6 +- .../test/test_get_item_response.py | 12 +- .../test/test_get_item_response_data.py | 10 +- .../test_get_item_response_data_fees_inner.py | 6 +- ...test_get_item_response_data_taxes_inner.py | 6 +- .../test/test_get_items_response.py | 12 +- .../test_get_items_response_data_inner.py | 10 +- ...get_list_allotment_block_notes_response.py | 8 +- ...lotment_block_notes_response_data_inner.py | 6 +- .../test/test_get_metadata_response.py | 10 +- .../test/test_get_metadata_response_data.py | 8 +- .../test_get_metadata_response_data_api.py | 6 +- .../test/test_get_packages_response.py | 8 +- .../test/test_get_packages_response_data.py | 6 +- .../test/test_get_payment_methods_response.py | 14 +- .../test_get_payment_methods_response_data.py | 12 +- ...ent_methods_response_data_gateway_inner.py | 6 +- ...ent_methods_response_data_methods_inner.py | 8 +- ...nse_data_methods_inner_card_types_inner.py | 6 +- ...test_get_payments_capabilities_response.py | 8 +- ...yments_capabilities_response_data_inner.py | 6 +- .../test/test_get_payments_response.py | 100 + .../test_get_payments_response_data_inner.py | 93 + ...nse_data_inner_payment_allocation_inner.py | 60 + .../test_get_pending_transactions_response.py | 89 + ...ending_transactions_response_data_inner.py | 82 + .../test/test_get_rate_jobs_response.py | 10 +- .../test_get_rate_jobs_response_data_inner.py | 8 +- ..._jobs_response_data_inner_updates_inner.py | 6 +- .../test/test_get_rate_plans_response.py | 12 +- ...test_get_rate_plans_response_data_inner.py | 10 +- ...plans_response_data_inner_add_ons_inner.py | 6 +- ...nse_data_inner_room_rate_detailed_inner.py | 6 +- .../test/test_get_rate_response.py | 10 +- .../test/test_get_rate_response_data.py | 8 +- ..._response_data_room_rate_detailed_inner.py | 6 +- .../test_get_reservation_arrivals_response.py | 62 + ...eservation_arrivals_response_data_inner.py | 57 + ...st_get_reservation_assignments_response.py | 10 +- ...rvation_assignments_response_data_inner.py | 8 +- ...ents_response_data_inner_assigned_inner.py | 6 +- ...est_get_reservation_departures_response.py | 62 + ...ervation_departures_response_data_inner.py | 57 + .../test_get_reservation_in_house_response.py | 85 + ...eservation_in_house_response_data_inner.py | 80 + ...eservation_invoice_information_response.py | 31 +- ...invoice_information_response_data_inner.py | 29 +- ...ponse_data_inner_balance_detailed_inner.py | 6 +- ...nse_data_inner_main_guest_details_inner.py | 6 +- ...inner_reservation_add_on_products_inner.py | 6 +- ...r_reservation_additional_products_inner.py | 6 +- ...ata_inner_reservation_adjustments_inner.py | 6 +- ...e_data_inner_reservation_payments_inner.py | 6 +- ...onse_data_inner_reservation_rooms_inner.py | 6 +- ...onse_data_inner_reservation_taxes_inner.py | 6 +- .../test_get_reservation_notes_response.py | 8 +- ...t_reservation_notes_response_data_inner.py | 6 +- .../test/test_get_reservation_response.py | 33 +- .../test_get_reservation_response_data.py | 33 +- ...eservation_response_data_assigned_inner.py | 8 +- ...e_data_assigned_inner_daily_rates_inner.py | 6 +- ...on_response_data_balance_detailed_inner.py | 6 +- ...ation_response_data_cards_on_file_inner.py | 6 +- ...ion_response_data_group_inventory_inner.py | 6 +- ...ervation_response_data_guest_list_value.py | 12 +- ...ta_guest_list_value_custom_fields_inner.py | 6 +- ...ponse_data_guest_list_value_rooms_inner.py | 6 +- ...guest_list_value_unassigned_rooms_inner.py | 6 +- ...ervation_response_data_unassigned_inner.py | 8 +- ...t_get_reservation_room_details_response.py | 10 +- ..._reservation_room_details_response_data.py | 8 +- ...room_details_response_data_guests_inner.py | 6 +- .../test/test_get_reservations_response.py | 21 +- ...st_get_reservations_response_data_inner.py | 23 +- ...ns_response_data_inner_guest_list_value.py | 12 +- ...data_inner_guest_list_value_rooms_inner.py | 6 +- ...guest_list_value_unassigned_rooms_inner.py | 6 +- ...vations_response_data_inner_rooms_inner.py | 6 +- ...reservations_with_rate_details_response.py | 17 +- ...s_with_rate_details_response_data_inner.py | 15 +- ...details_response_data_inner_rooms_inner.py | 6 +- ...etails_response_data_inner_source_inner.py | 6 +- .../test/test_get_room_blocks_response.py | 10 +- ...est_get_room_blocks_response_data_inner.py | 8 +- .../test/test_get_room_types_response.py | 8 +- ...test_get_room_types_response_data_inner.py | 6 +- .../test_get_rooms_fees_and_taxes_response.py | 12 +- ..._get_rooms_fees_and_taxes_response_data.py | 10 +- ...fees_and_taxes_response_data_fees_inner.py | 6 +- ...ees_and_taxes_response_data_taxes_inner.py | 6 +- .../test/test_get_rooms_response.py | 12 +- .../test_get_rooms_response_data_inner.py | 10 +- ...t_rooms_response_data_inner_rooms_inner.py | 8 +- ..._rooms_inner_linked_room_type_qty_inner.py | 6 +- .../test_get_rooms_unassigned_response.py | 10 +- ...et_rooms_unassigned_response_data_inner.py | 8 +- ...ssigned_response_data_inner_rooms_inner.py | 6 +- .../test/test_get_sources_response.py | 12 +- .../test_get_sources_response_data_inner.py | 10 +- ..._sources_response_data_inner_fees_inner.py | 6 +- ...sources_response_data_inner_taxes_inner.py | 6 +- .../test/test_get_taxes_and_fees_response.py | 16 +- ..._get_taxes_and_fees_response_data_inner.py | 16 +- ...onse_data_inner_amount_rate_based_inner.py | 6 +- ...s_response_data_inner_date_ranges_inner.py | 10 +- ...es_response_data_inner_room_types_inner.py | 6 +- .../test/test_get_transactions_response.py | 91 + ...st_get_transactions_response_data_inner.py | 83 + .../test/test_get_userinfo_response.py | 8 +- .../test_get_userinfo_response_roles_inner.py | 6 +- .../test/test_get_users_response.py | 10 +- .../test_get_users_response_data_inner.py | 8 +- ...get_users_response_data_inner_user_role.py | 6 +- .../test/test_get_webhooks_response.py | 16 +- .../test_get_webhooks_response_data_inner.py | 14 +- ..._get_webhooks_response_data_inner_event.py | 6 +- ...st_get_webhooks_response_data_inner_key.py | 6 +- ..._get_webhooks_response_data_inner_owner.py | 6 +- ...s_response_data_inner_subscription_data.py | 6 +- .../test/test_groups_api.py | 6 +- .../test/test_guest_api.py | 13 +- .../test/test_hotel_api.py | 6 +- .../test/test_house_account_api.py | 13 +- .../test/test_housekeeping_api.py | 6 +- cloudbeds_pms_v1_3/test/test_import_api.py | 45 + .../test/test_integration_api.py | 20 +- .../test/test_invoices_api.py | 13 +- .../test/test_item_api.py | 20 +- .../test/test_package_api.py | 6 +- .../test/test_payment_api.py | 41 +- .../test_post_access_token_check_response.py | 51 + .../test/test_post_access_token_response.py | 8 +- ...t_access_token_response_resources_inner.py | 6 +- .../test/test_post_adjustment_response.py | 8 +- .../test_post_adjustment_response_data.py | 6 +- .../test/test_post_app_error_response.py | 8 +- .../test/test_post_app_error_response_data.py | 6 +- ...test_post_app_property_setting_response.py | 8 +- ...post_app_property_setting_response_data.py | 6 +- ...ost_app_settings_request_settings_inner.py | 52 + .../test/test_post_app_settings_response.py | 52 + .../test_post_app_state_internal_response.py | 51 + .../test/test_post_app_state_response.py | 6 +- .../test_post_append_custom_item_response.py | 8 +- ...t_post_append_custom_item_response_data.py | 6 +- ...ost_bulk_app_property_settings_response.py | 51 + .../test/test_post_card_response.py | 8 +- .../test/test_post_card_response_data.py | 6 +- .../test/test_post_charge_response.py | 12 +- .../test/test_post_charge_response_data.py | 10 +- ...t_post_charge_response_data_next_action.py | 8 +- ...harge_response_data_next_action_details.py | 6 +- ...t_create_allotment_block_notes_response.py | 8 +- ...ate_allotment_block_notes_response_data.py | 6 +- ...block_request_allotment_intervals_inner.py | 12 +- ...ment_intervals_inner_availability_inner.py | 10 +- ..._inner_availability_inner_guest_pricing.py | 6 +- ...s_inner_availability_inner_restrictions.py | 6 +- ...te_allotment_block_request_auto_release.py | 6 +- ...st_post_create_allotment_block_response.py | 18 +- ...ate_allotment_block_response_data_inner.py | 16 +- ...se_data_inner_allotment_intervals_inner.py | 12 +- ..._allotment_intervals_inner_availability.py | 8 +- ...ervals_inner_availability_guest_pricing.py | 6 +- ..._allotment_intervals_inner_restrictions.py | 6 +- ..._block_response_data_inner_auto_release.py | 6 +- .../test_post_crm_cache_remove_response.py | 51 + .../test_post_crm_cache_update_response.py | 51 + .../test/test_post_custom_field_response.py | 8 +- .../test_post_custom_field_response_data.py | 6 +- ...st_post_custom_item_request_items_inner.py | 10 +- ...tem_request_items_inner_item_fees_inner.py | 6 +- ...em_request_items_inner_item_taxes_inner.py | 6 +- ...post_custom_item_request_payments_inner.py | 6 +- .../test/test_post_custom_item_response.py | 8 +- .../test_post_custom_item_response_data.py | 6 +- ...est_post_custom_payment_method_response.py | 6 +- ...st_post_delete_allotment_block_response.py | 6 +- ...t_delete_app_property_settings_response.py | 6 +- ...st_post_email_schedule_request_schedule.py | 10 +- ...dule_request_schedule_reservation_event.py | 6 +- ...uest_schedule_reservation_status_change.py | 6 +- .../test/test_post_email_schedule_response.py | 6 +- .../test_post_email_template_request_body.py | 6 +- ...est_post_email_template_request_subject.py | 6 +- .../test/test_post_email_template_response.py | 6 +- .../test/test_post_file_response.py | 8 +- .../test_post_government_receipt_response.py | 6 +- .../test/test_post_group_note_response.py | 8 +- ...est_post_group_note_response_data_inner.py | 6 +- .../test_post_guest_credit_card_response.py | 51 + .../test/test_post_guest_document_response.py | 8 +- .../test_post_guest_document_response_data.py | 6 +- .../test/test_post_guest_note_response.py | 6 +- .../test/test_post_guest_photo_response.py | 8 +- ..._post_guest_request_custom_fields_inner.py | 6 +- .../test/test_post_guest_response.py | 6 +- .../test/test_post_guests_to_room_response.py | 6 +- .../test/test_post_housekeeper_response.py | 6 +- ...t_post_housekeeping_assignment_response.py | 6 +- .../test_post_housekeeping_status_response.py | 8 +- ..._post_housekeeping_status_response_data.py | 6 +- .../test/test_post_item_category_response.py | 6 +- .../test/test_post_item_response.py | 8 +- ...m_to_reservation_request_payments_inner.py | 53 + .../test_post_item_to_reservation_response.py | 59 + ..._post_item_to_reservation_response_data.py | 26 +- ...st_post_items_to_inventory_request_item.py | 6 +- .../test_post_items_to_inventory_response.py | 8 +- ..._items_to_inventory_response_data_inner.py | 6 +- .../test_post_new_house_account_response.py | 8 +- ...st_post_new_house_account_response_data.py | 6 +- .../test/test_post_patch_group_response.py | 8 +- ...st_post_patch_group_response_data_inner.py | 6 +- .../test/test_post_patch_invoice_response.py | 6 +- ...est_post_patch_rate_request_rates_inner.py | 10 +- ...patch_rate_request_rates_inner_interval.py | 8 +- .../test/test_post_patch_rate_response.py | 6 +- .../test/test_post_payment_cash_response.py | 52 + .../test_post_payment_credit_card_response.py | 52 + .../test/test_post_payment_response.py | 6 +- ...post_put_app_property_settings_response.py | 8 +- .../test/test_post_put_group_response.py | 8 +- .../test/test_post_put_rate_request.py | 60 + .../test_post_put_rate_request_rates_inner.py | 8 +- ...rate_request_rates_inner_interval_inner.py | 6 +- .../test/test_post_put_rate_response.py | 6 +- ...test_post_reservation_check_in_response.py | 52 + ...est_post_reservation_check_out_response.py | 52 + ...test_post_reservation_document_response.py | 8 +- .../test_post_reservation_note_response.py | 6 +- ...t_post_reservation_request_adults_inner.py | 6 +- ...post_reservation_request_children_inner.py | 6 +- ...reservation_request_custom_fields_inner.py | 6 +- ...st_post_reservation_request_rooms_inner.py | 6 +- .../test/test_post_reservation_response.py | 10 +- ...t_reservation_response_unassigned_inner.py | 8 +- .../test/test_post_room_assign_response.py | 6 +- ...est_post_room_block_request_rooms_inner.py | 6 +- .../test/test_post_room_block_response.py | 8 +- ...st_post_room_block_response_rooms_inner.py | 6 +- .../test/test_post_room_check_in_response.py | 6 +- .../test/test_post_room_check_out_response.py | 6 +- .../test/test_post_room_type_response.py | 54 + .../test/test_post_room_type_response_data.py | 51 + ...t_update_allotment_block_notes_response.py | 8 +- ...ate_allotment_block_notes_response_data.py | 6 +- ...block_request_allotment_intervals_inner.py | 12 +- ...ment_intervals_inner_availability_inner.py | 10 +- ..._inner_availability_inner_guest_pricing.py | 6 +- ...s_inner_availability_inner_restrictions.py | 6 +- ...te_allotment_block_request_auto_release.py | 6 +- ...st_post_update_allotment_block_response.py | 18 +- ...ate_allotment_block_response_data_inner.py | 16 +- ...se_data_inner_allotment_intervals_inner.py | 12 +- ..._allotment_intervals_inner_restrictions.py | 6 +- .../test/test_post_void_item_response.py | 6 +- .../test/test_post_void_payment_response.py | 6 +- .../test/test_post_webhook_response.py | 8 +- .../test/test_post_webhook_response_data.py | 6 +- .../test/test_put_guest_note_response.py | 6 +- ...guest_request_guest_custom_fields_inner.py | 6 +- .../test/test_put_guest_response.py | 6 +- .../test_put_house_account_status_response.py | 6 +- .../test/test_put_housekeeper_response.py | 6 +- .../test_put_item_to_inventory_response.py | 6 +- .../test/test_put_rate_request_rates_inner.py | 57 + ...rate_request_rates_inner_interval_inner.py | 53 + .../test/test_put_rate_response.py | 53 + ...ion_details_request_custom_fields_inner.py | 52 + .../test_put_reservation_details_response.py | 53 + .../test_put_reservation_note_response.py | 6 +- ...reservation_request_custom_fields_inner.py | 6 +- ...est_put_reservation_request_rooms_inner.py | 6 +- .../test/test_put_reservation_response.py | 6 +- ...test_put_room_block_request_rooms_inner.py | 6 +- .../test/test_put_room_block_response.py | 8 +- .../test/test_rate_api.py | 10 +- .../test/test_reservation_api.py | 48 +- .../test/test_room_api.py | 13 +- cloudbeds_pms_v1_3/test/test_rooms_api.py | 38 + .../test/test_taxes_and_fees_api.py | 6 +- .../test/test_user_api.py | 6 +- pyproject.toml | 2 +- 1209 files changed, 35734 insertions(+), 11207 deletions(-) delete mode 100644 cloudbeds_pms_v1_2/__init__.py delete mode 100644 cloudbeds_pms_v1_2/api/__init__.py delete mode 100644 cloudbeds_pms_v1_2/api/payment_api.py delete mode 100644 cloudbeds_pms_v1_2/docs/AdjustmentApi.md delete mode 100644 cloudbeds_pms_v1_2/docs/PaymentApi.md delete mode 100644 cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md delete mode 100644 cloudbeds_pms_v1_2/models/__init__.py create mode 100644 cloudbeds_pms_v1_3/__init__.py create mode 100644 cloudbeds_pms_v1_3/api/__init__.py create mode 100644 cloudbeds_pms_v1_3/api/adjustment_api.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/allotment_blocks_api.py (99%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/app_settings_api.py (78%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/authentication_api.py (80%) create mode 100644 cloudbeds_pms_v1_3/api/beta_api.py rename cloudbeds_pms_v1_2/api/invoices_api.py => cloudbeds_pms_v1_3/api/crm_api.py (72%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/currency_api.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/custom_fields_api.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/dashboard_api.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/emails_api.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/groups_api.py (99%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/guest_api.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/hotel_api.py (98%) create mode 100644 cloudbeds_pms_v1_3/api/house_account_api.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/housekeeping_api.py (99%) rename cloudbeds_pms_v1_2/api/adjustment_api.py => cloudbeds_pms_v1_3/api/import_api.py (65%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/integration_api.py (79%) rename cloudbeds_pms_v1_2/api/house_account_api.py => cloudbeds_pms_v1_3/api/invoices_api.py (78%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/item_api.py (81%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/package_api.py (98%) create mode 100644 cloudbeds_pms_v1_3/api/payment_api.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/rate_api.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/reservation_api.py (75%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/room_api.py (91%) create mode 100644 cloudbeds_pms_v1_3/api/rooms_api.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/taxes_and_fees_api.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api/user_api.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api_client.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/api_response.py (100%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/configuration.py (97%) create mode 100644 cloudbeds_pms_v1_3/docs/AdjustmentApi.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/AllotmentBlocksApi.md (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/AppSettingsApi.md (68%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/AuthenticationApi.md (70%) create mode 100644 cloudbeds_pms_v1_3/docs/BetaApi.md create mode 100644 cloudbeds_pms_v1_3/docs/CRMApi.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/CurrencyApi.md (83%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/CustomFieldsApi.md (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/DashboardApi.md (84%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/DeleteAdjustmentResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/DeleteGuestNoteResponse.md (94%) create mode 100644 cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/DeleteReservationNoteResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/DeleteRoomBlockResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/DeleteWebhookResponse.md (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/EmailsApi.md (88%) create mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAllotmentBlocksResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAllotmentBlocksResponseDataInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAppPropertySettingsResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAppPropertySettingsResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAppPropertySettingsResponseDataOneOf.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAppSettingsResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAppSettingsResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAppStateResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAppStateResponseData.md (94%) create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md create mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAvailableRoomTypesResponse.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAvailableRoomTypesResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetCurrencySettingsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetCurrencySettingsResponseData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetCurrencySettingsResponseDataFormat.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetCurrencySettingsResponseDataRates.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetCurrencySettingsResponseDataRatesFixedInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetCustomFieldsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetCustomFieldsResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetDashboardResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetDashboardResponseData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetEmailScheduleResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetEmailScheduleResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetEmailTemplatesResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetEmailTemplatesResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetFilesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetFilesResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGroupNotesResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGroupNotesResponseData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGroupsResponse.md (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGroupsResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestListResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestListResponseDataValue.md (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestListResponseDataValueGuestNotesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestNotesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestNotesResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestResponse.md (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestResponseData.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestResponseDataBirthDate.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestResponseDataCustomFieldsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestResponseDataDocumentExpirationDate.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestResponseDataDocumentIssueDate.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestsByFilterResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestsByFilterResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestsByStatusResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestsByStatusResponseDataInner.md (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestsModifiedResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestsModifiedResponseDataInner.md (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelDetailsResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelDetailsResponseData.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelDetailsResponseDataPropertyAddress.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelDetailsResponseDataPropertyCurrency.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelDetailsResponseDataPropertyImageInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelDetailsResponseDataPropertyPolicy.md (96%) create mode 100644 cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelsResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelsResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md (95%) create mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md create mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHouseAccountListResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHouseAccountListResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHousekeepersResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHousekeepersResponseDataInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHousekeepingStatusResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetHousekeepingStatusResponseDataInner.md (97%) create mode 100644 cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetImportToursResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetInvoiceResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetInvoiceResponseData.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetInvoiceResponseDataBilledTo.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetInvoiceResponseDataItemsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetInvoiceResponseDataItemsInnerFeesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemCategoriesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemCategoriesResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemResponseData.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemResponseDataFeesInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemResponseDataTaxesInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemsResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetItemsResponseDataInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetListAllotmentBlockNotesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetListAllotmentBlockNotesResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetMetadataResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetMetadataResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetMetadataResponseDataApi.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPackagesResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPackagesResponseData.md (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPaymentMethodsResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPaymentMethodsResponseData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPaymentMethodsResponseDataGatewayInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPaymentMethodsResponseDataMethodsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPaymentsCapabilitiesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetPaymentsCapabilitiesResponseDataInner.md (96%) create mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRateJobsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRateJobsResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRateJobsResponseDataInnerUpdatesInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRatePlansResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRatePlansResponseDataInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRatePlansResponseDataInnerAddOnsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRateResponse.md (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRateResponseData.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRateResponseDataRoomRateDetailedInner.md (96%) create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationAssignmentsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationAssignmentsResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md (96%) create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponse.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationNotesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationNotesResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseData.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataAssignedInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataBalanceDetailedInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataCardsOnFileInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataGroupInventoryInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataGuestListValue.md (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataGuestListValueRoomsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationResponseDataUnassignedInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationRoomDetailsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationRoomDetailsResponseData.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationRoomDetailsResponseDataGuestsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsResponseDataInnerGuestListValue.md (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsResponseDataInnerRoomsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsWithRateDetailsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsWithRateDetailsResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomBlocksResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomBlocksResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomTypesResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomTypesResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsFeesAndTaxesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsFeesAndTaxesResponseData.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsResponseDataInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsResponseDataInnerRoomsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsUnassignedResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsUnassignedResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetSourcesResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetSourcesResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetSourcesResponseDataInnerFeesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetSourcesResponseDataInnerTaxesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetTaxesAndFeesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetTaxesAndFeesResponseDataInner.md (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md (95%) create mode 100644 cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetUserinfoResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetUserinfoResponseRolesInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetUsersResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetUsersResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetUsersResponseDataInnerUserRole.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetWebhooksResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetWebhooksResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetWebhooksResponseDataInnerEvent.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetWebhooksResponseDataInnerKey.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetWebhooksResponseDataInnerOwner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GetWebhooksResponseDataInnerSubscriptionData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GroupsApi.md (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/GuestApi.md (86%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/HotelApi.md (88%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/HouseAccountApi.md (63%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/HousekeepingApi.md (90%) create mode 100644 cloudbeds_pms_v1_3/docs/ImportApi.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/IntegrationApi.md (68%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/InvoicesApi.md (61%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/ItemApi.md (72%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PackageApi.md (85%) create mode 100644 cloudbeds_pms_v1_3/docs/PaymentApi.md create mode 100644 cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAccessTokenResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAccessTokenResponseResourcesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAdjustmentResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAdjustmentResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAppErrorResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAppErrorResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAppPropertySettingResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAppPropertySettingResponseData.md (94%) create mode 100644 cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md create mode 100644 cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAppStateResponse.md (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAppendCustomItemResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostAppendCustomItemResponseData.md (95%) create mode 100644 cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCardResponse.md (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCardResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostChargeResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostChargeResponseData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostChargeResponseDataNextAction.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostChargeResponseDataNextActionDetails.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockNotesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockNotesResponseData.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockRequestAutoRelease.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockResponseDataInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomFieldResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomFieldResponseData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomItemRequestItemsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomItemRequestItemsInnerItemFeesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomItemRequestPaymentsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomItemResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomItemResponseData.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostCustomPaymentMethodResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostDeleteAllotmentBlockResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostDeleteAppPropertySettingsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostEmailScheduleRequestSchedule.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostEmailScheduleRequestScheduleReservationEvent.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostEmailScheduleResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostEmailTemplateRequestBody.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostEmailTemplateRequestSubject.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostEmailTemplateResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostFileResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGovernmentReceiptResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGroupNoteResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGroupNoteResponseDataInner.md (95%) create mode 100644 cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGuestDocumentResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGuestDocumentResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGuestNoteResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGuestPhotoResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGuestRequestCustomFieldsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGuestResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostGuestsToRoomResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostHousekeeperResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostHousekeepingAssignmentResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostHousekeepingStatusResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostHousekeepingStatusResponseData.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostItemCategoryResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostItemResponse.md (86%) create mode 100644 cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md create mode 100644 cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md rename cloudbeds_pms_v1_2/docs/PostItemResponseData.md => cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md (61%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostItemsToInventoryRequestItem.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostItemsToInventoryResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostItemsToInventoryResponseDataInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostNewHouseAccountResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostNewHouseAccountResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPatchGroupResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPatchGroupResponseDataInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPatchInvoiceResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPatchRateRequestRatesInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPatchRateRequestRatesInnerInterval.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPatchRateResponse.md (95%) create mode 100644 cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPaymentResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPutAppPropertySettingsResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPutGroupResponse.md (94%) create mode 100644 cloudbeds_pms_v1_3/docs/PostPutRateRequest.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPutRateRequestRatesInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPutRateRequestRatesInnerIntervalInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostPutRateResponse.md (95%) create mode 100644 cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationDocumentResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationNoteResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationRequestAdultsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationRequestChildrenInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationRequestCustomFieldsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationRequestRoomsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationResponse.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostReservationResponseUnassignedInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostRoomAssignResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostRoomBlockRequestRoomsInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostRoomBlockResponse.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostRoomBlockResponseRoomsInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostRoomCheckInResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostRoomCheckOutResponse.md (94%) create mode 100644 cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockNotesResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockNotesResponseData.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockRequestAutoRelease.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockResponseDataInner.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostVoidItemResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostVoidPaymentResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostWebhookResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PostWebhookResponseData.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutGuestNoteResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutGuestRequestGuestCustomFieldsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutGuestResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutHouseAccountStatusResponse.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutHousekeeperResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutItemToInventoryResponse.md (94%) create mode 100644 cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md create mode 100644 cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md create mode 100644 cloudbeds_pms_v1_3/docs/PutRateResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md create mode 100644 cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutReservationNoteResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutReservationRequestCustomFieldsInner.md (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutReservationRequestRoomsInner.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutReservationResponse.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutRoomBlockRequestRoomsInner.md (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/PutRoomBlockResponse.md (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/RateApi.md (84%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/ReservationApi.md (68%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/RoomApi.md (82%) create mode 100644 cloudbeds_pms_v1_3/docs/RoomsApi.md rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/TaxesAndFeesApi.md (87%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/docs/UserApi.md (83%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/exceptions.py (97%) create mode 100644 cloudbeds_pms_v1_3/models/__init__.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/delete_adjustment_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/delete_guest_note_response.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/delete_reservation_note_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/delete_room_block_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/delete_webhook_response.py (95%) create mode 100644 cloudbeds_pms_v1_3/models/get_adjustment_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_adjustment_response_data.py create mode 100644 cloudbeds_pms_v1_3/models/get_adjustments_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_adjustments_response_data.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_allotment_blocks_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_allotment_blocks_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_allotment_blocks_response_data_inner_auto_release_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_app_property_settings_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_app_property_settings_response_data.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_app_property_settings_response_data_one_of.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_app_settings_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_app_settings_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_app_state_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_app_state_response_data.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_available_room_types_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_available_room_types_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_available_room_types_response_data_inner_property_currency_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_available_room_types_response_data_inner_property_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_currency_settings_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_currency_settings_response_data.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_currency_settings_response_data_format.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_currency_settings_response_data_rates.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_currency_settings_response_data_rates_fixed_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_custom_fields_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_custom_fields_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_dashboard_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_dashboard_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_email_schedule_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_email_schedule_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_email_templates_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_email_templates_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_files_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_files_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_group_notes_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_group_notes_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_groups_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_groups_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_list_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_list_response_data_value.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_list_response_data_value_guest_notes_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_notes_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_notes_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_response_data_birth_date.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_response_data_custom_fields_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_response_data_document_expiration_date.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guest_response_data_document_issue_date.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guests_by_filter_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guests_by_filter_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guests_by_status_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guests_by_status_response_data_inner.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guests_modified_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guests_modified_response_data_inner.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_guests_modified_response_data_inner_custom_fields_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotel_details_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotel_details_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotel_details_response_data_property_address.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotel_details_response_data_property_currency.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotel_details_response_data_property_image_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotel_details_response_data_property_policy.py (97%) create mode 100644 cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotels_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotels_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_hotels_response_data_inner_property_currency_inner.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py create mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_house_account_list_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_house_account_list_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_housekeepers_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_housekeepers_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_housekeeping_status_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_housekeeping_status_response_data_inner.py (97%) create mode 100644 cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_import_tours_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_invoice_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_invoice_response_data.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_invoice_response_data_billed_to.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_invoice_response_data_items_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_invoice_response_data_items_inner_fees_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_invoice_response_data_items_inner_taxes_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_item_categories_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_item_categories_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_item_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_item_response_data.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_item_response_data_fees_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_item_response_data_taxes_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_items_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_items_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_list_allotment_block_notes_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_list_allotment_block_notes_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_metadata_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_metadata_response_data.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_metadata_response_data_api.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_packages_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_packages_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_payment_methods_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_payment_methods_response_data.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_payment_methods_response_data_gateway_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_payment_methods_response_data_methods_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_payment_methods_response_data_methods_inner_card_types_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_payments_capabilities_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_payments_capabilities_response_data_inner.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/get_payments_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_pending_transactions_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_jobs_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_jobs_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_jobs_response_data_inner_updates_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_plans_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_plans_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_plans_response_data_inner_add_ons_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rate_response_data_room_rate_detailed_inner.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_assignments_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_assignments_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_assignments_response_data_inner_assigned_inner.py (97%) create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_departures_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_notes_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_notes_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_assigned_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_balance_detailed_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_cards_on_file_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_group_inventory_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_guest_list_value.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_guest_list_value_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_response_data_unassigned_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_room_details_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_room_details_response_data.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservation_room_details_response_data_guests_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_response_data_inner_guest_list_value.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_response_data_inner_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_with_rate_details_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_with_rate_details_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_reservations_with_rate_details_response_data_inner_source_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_room_blocks_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_room_blocks_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_room_types_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_room_types_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_fees_and_taxes_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_fees_and_taxes_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_fees_and_taxes_response_data_fees_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_response_data_inner_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_unassigned_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_unassigned_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_rooms_unassigned_response_data_inner_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_sources_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_sources_response_data_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_sources_response_data_inner_fees_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_sources_response_data_inner_taxes_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_taxes_and_fees_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_taxes_and_fees_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_taxes_and_fees_response_data_inner_room_types_inner.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/get_transactions_response.py create mode 100644 cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_userinfo_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_userinfo_response_roles_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_users_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_users_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_users_response_data_inner_user_role.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_webhooks_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_webhooks_response_data_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_webhooks_response_data_inner_event.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_webhooks_response_data_inner_key.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_webhooks_response_data_inner_owner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/get_webhooks_response_data_inner_subscription_data.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_access_token_check_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_access_token_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_access_token_response_resources_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_adjustment_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_adjustment_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_app_error_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_app_error_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_app_property_setting_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_app_property_setting_response_data.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py create mode 100644 cloudbeds_pms_v1_3/models/post_app_settings_response.py create mode 100644 cloudbeds_pms_v1_3/models/post_app_state_internal_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_app_state_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_append_custom_item_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_append_custom_item_response_data.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_card_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_card_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_charge_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_charge_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_charge_response_data_next_action.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_charge_response_data_next_action_details.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_notes_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_notes_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_request_allotment_intervals_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_request_auto_release.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_create_allotment_block_response_data_inner_auto_release.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py create mode 100644 cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_field_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_field_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_item_request_items_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_item_request_items_inner_item_fees_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_item_request_items_inner_item_taxes_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_item_request_payments_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_item_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_item_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_custom_payment_method_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_delete_allotment_block_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_delete_app_property_settings_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_email_schedule_request_schedule.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_email_schedule_request_schedule_reservation_event.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_email_schedule_request_schedule_reservation_status_change.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_email_schedule_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_email_template_request_body.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_email_template_request_subject.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_email_template_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_file_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_government_receipt_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_group_note_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_group_note_response_data_inner.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_guest_document_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_guest_document_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_guest_note_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_guest_photo_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_guest_request_custom_fields_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_guest_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_guests_to_room_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_housekeeper_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_housekeeping_assignment_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_housekeeping_status_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_housekeeping_status_response_data.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_item_category_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_item_response.py (90%) rename cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py => cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py (90%) create mode 100644 cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py rename cloudbeds_pms_v1_2/models/post_item_response_data.py => cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_items_to_inventory_request_item.py (98%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_items_to_inventory_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_items_to_inventory_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_new_house_account_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_new_house_account_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_patch_group_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_patch_group_response_data_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_patch_invoice_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_patch_rate_request_rates_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_patch_rate_request_rates_inner_interval.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_patch_rate_response.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_payment_cash_response.py create mode 100644 cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_payment_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_put_app_property_settings_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_put_group_response.py (95%) create mode 100644 cloudbeds_pms_v1_3/models/post_put_rate_request.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_put_rate_request_rates_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_put_rate_request_rates_inner_interval_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_put_rate_response.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py create mode 100644 cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_document_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_note_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_request_adults_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_request_children_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_request_custom_fields_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_request_rooms_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_response.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_reservation_response_unassigned_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_room_assign_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_room_block_request_rooms_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_room_block_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_room_block_response_rooms_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_room_check_in_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_room_check_out_response.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/post_room_type_response.py create mode 100644 cloudbeds_pms_v1_3/models/post_room_type_response_data.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_notes_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_notes_response_data.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_request_allotment_intervals_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_request_auto_release.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_response.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_response_data_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_void_item_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_void_payment_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_webhook_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/post_webhook_response_data.py (95%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_guest_note_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_guest_request_guest_custom_fields_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_guest_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_house_account_status_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_housekeeper_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_item_to_inventory_response.py (96%) create mode 100644 cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py create mode 100644 cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py create mode 100644 cloudbeds_pms_v1_3/models/put_rate_response.py create mode 100644 cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_3/models/put_reservation_details_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_reservation_note_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_reservation_request_custom_fields_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_reservation_request_rooms_inner.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_reservation_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_room_block_request_rooms_inner.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/models/put_room_block_response.py (96%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/py.typed (100%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/rest.py (97%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/__init__.py (100%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_adjustment_api.py (81%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_allotment_blocks_api.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_app_settings_api.py (86%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_authentication_api.py (86%) create mode 100644 cloudbeds_pms_v1_3/test/test_beta_api.py create mode 100644 cloudbeds_pms_v1_3/test/test_crm_api.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_currency_api.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_custom_fields_api.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_dashboard_api.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_delete_adjustment_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_delete_guest_note_response.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_delete_reservation_note_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_delete_room_block_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_delete_webhook_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_emails_api.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustment_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustments_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_allotment_blocks_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_allotment_blocks_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_app_property_settings_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_app_property_settings_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_app_property_settings_response_data_one_of.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_app_settings_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_app_settings_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_app_state_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_app_state_response_data.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_available_room_types_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_available_room_types_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_available_room_types_response_data_inner_property_currency_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_currency_settings_response.py (88%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_currency_settings_response_data.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_currency_settings_response_data_format.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_currency_settings_response_data_rates.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_currency_settings_response_data_rates_fixed_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_custom_fields_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_custom_fields_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_dashboard_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_dashboard_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_email_schedule_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_email_schedule_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_email_templates_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_email_templates_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_files_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_files_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_group_notes_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_group_notes_response_data.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_groups_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_groups_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_list_response.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_list_response_data_value.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_list_response_data_value_guest_notes_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_notes_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_notes_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_response_data_birth_date.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_response_data_custom_fields_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_response_data_document_expiration_date.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guest_response_data_document_issue_date.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guests_by_filter_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guests_by_filter_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guests_by_status_response.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guests_by_status_response_data_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guests_modified_response.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guests_modified_response_data_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotel_details_response.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotel_details_response_data.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotel_details_response_data_property_address.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotel_details_response_data_property_currency.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotel_details_response_data_property_image_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotel_details_response_data_property_policy.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotels_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotels_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_hotels_response_data_inner_property_currency_inner.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_house_account_list_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_house_account_list_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_housekeepers_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_housekeepers_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_housekeeping_status_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_housekeeping_status_response_data_inner.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py rename cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py => cloudbeds_pms_v1_3/test/test_get_import_tours_response.py (71%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_invoice_response.py (87%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_invoice_response_data.py (88%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_invoice_response_data_billed_to.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_invoice_response_data_items_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_invoice_response_data_items_inner_fees_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_invoice_response_data_items_inner_taxes_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_item_categories_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_item_categories_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_item_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_item_response_data.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_item_response_data_fees_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_item_response_data_taxes_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_items_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_items_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_list_allotment_block_notes_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_list_allotment_block_notes_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_metadata_response.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_metadata_response_data.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_metadata_response_data_api.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_packages_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_packages_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_payment_methods_response.py (88%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_payment_methods_response_data.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_payment_methods_response_data_gateway_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_payment_methods_response_data_methods_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_payments_capabilities_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_payments_capabilities_response_data_inner.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_payments_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_jobs_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_jobs_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_jobs_response_data_inner_updates_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_plans_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_plans_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_plans_response_data_inner_add_ons_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rate_response_data_room_rate_detailed_inner.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_assignments_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_assignments_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_notes_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_notes_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_assigned_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_balance_detailed_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_cards_on_file_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_group_inventory_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_guest_list_value.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_response_data_unassigned_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_room_details_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_room_details_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservation_room_details_response_data_guests_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_response_data_inner_guest_list_value.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_response_data_inner_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_with_rate_details_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_with_rate_details_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_room_blocks_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_room_blocks_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_room_types_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_room_types_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_fees_and_taxes_response.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_fees_and_taxes_response_data.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_response_data_inner_rooms_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_unassigned_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_unassigned_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_sources_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_sources_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_sources_response_data_inner_fees_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_sources_response_data_inner_taxes_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_taxes_and_fees_response.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_taxes_and_fees_response_data_inner.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_transactions_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_userinfo_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_userinfo_response_roles_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_users_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_users_response_data_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_users_response_data_inner_user_role.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_webhooks_response.py (86%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_webhooks_response_data_inner.py (87%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_webhooks_response_data_inner_event.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_webhooks_response_data_inner_key.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_webhooks_response_data_inner_owner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_get_webhooks_response_data_inner_subscription_data.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_groups_api.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_guest_api.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_hotel_api.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_house_account_api.py (86%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_housekeeping_api.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_import_api.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_integration_api.py (85%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_invoices_api.py (86%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_item_api.py (85%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_package_api.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_payment_api.py (75%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_access_token_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_access_token_response_resources_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_adjustment_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_adjustment_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_app_error_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_app_error_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_app_property_setting_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_app_property_setting_response_data.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_app_settings_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_app_state_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_append_custom_item_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_append_custom_item_response_data.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_card_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_card_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_charge_response.py (88%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_charge_response_data.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_charge_response_data_next_action.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_charge_response_data_next_action_details.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_notes_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_notes_response_data.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_request_allotment_intervals_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_request_auto_release.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_response_data_inner.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_create_allotment_block_response_data_inner_auto_release.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_field_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_field_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_item_request_items_inner.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_item_request_items_inner_item_fees_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_item_request_items_inner_item_taxes_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_item_request_payments_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_item_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_item_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_custom_payment_method_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_delete_allotment_block_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_delete_app_property_settings_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_email_schedule_request_schedule.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_email_schedule_request_schedule_reservation_event.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_email_schedule_request_schedule_reservation_status_change.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_email_schedule_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_email_template_request_body.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_email_template_request_subject.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_email_template_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_file_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_government_receipt_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_group_note_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_group_note_response_data_inner.py (93%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_guest_document_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_guest_document_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_guest_note_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_guest_photo_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_guest_request_custom_fields_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_guest_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_guests_to_room_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_housekeeper_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_housekeeping_assignment_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_housekeeping_status_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_housekeeping_status_response_data.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_item_category_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_item_response.py (89%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py rename cloudbeds_pms_v1_2/test/test_post_item_response_data.py => cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py (74%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_items_to_inventory_request_item.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_items_to_inventory_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_items_to_inventory_response_data_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_new_house_account_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_new_house_account_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_patch_group_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_patch_group_response_data_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_patch_invoice_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_patch_rate_request_rates_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_patch_rate_request_rates_inner_interval.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_patch_rate_response.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_payment_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_put_app_property_settings_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_put_group_response.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_put_rate_request.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_put_rate_request_rates_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_put_rate_request_rates_inner_interval_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_put_rate_response.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_document_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_note_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_request_adults_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_request_children_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_request_custom_fields_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_request_rooms_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_reservation_response_unassigned_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_room_assign_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_room_block_request_rooms_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_room_block_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_room_block_response_rooms_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_room_check_in_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_room_check_out_response.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_post_room_type_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_notes_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_notes_response_data.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_request_allotment_intervals_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_request_auto_release.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_response_data_inner.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py (94%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_void_item_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_void_payment_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_webhook_response.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_post_webhook_response_data.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_guest_note_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_guest_request_guest_custom_fields_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_guest_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_house_account_status_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_housekeeper_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_item_to_inventory_response.py (92%) create mode 100644 cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_put_rate_response.py create mode 100644 cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_reservation_note_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_reservation_request_custom_fields_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_reservation_request_rooms_inner.py (93%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_reservation_response.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_room_block_request_rooms_inner.py (92%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_put_room_block_response.py (91%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_rate_api.py (89%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_reservation_api.py (76%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_room_api.py (91%) create mode 100644 cloudbeds_pms_v1_3/test/test_rooms_api.py rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_taxes_and_fees_api.py (90%) rename {cloudbeds_pms_v1_2 => cloudbeds_pms_v1_3}/test/test_user_api.py (90%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a0db7c5..634a3eb 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,1024 +1,1198 @@ README.md -cloudbeds_pms_v1_2/__init__.py -cloudbeds_pms_v1_2/api/__init__.py -cloudbeds_pms_v1_2/api/adjustment_api.py -cloudbeds_pms_v1_2/api/allotment_blocks_api.py -cloudbeds_pms_v1_2/api/app_settings_api.py -cloudbeds_pms_v1_2/api/authentication_api.py -cloudbeds_pms_v1_2/api/currency_api.py -cloudbeds_pms_v1_2/api/custom_fields_api.py -cloudbeds_pms_v1_2/api/dashboard_api.py -cloudbeds_pms_v1_2/api/emails_api.py -cloudbeds_pms_v1_2/api/groups_api.py -cloudbeds_pms_v1_2/api/guest_api.py -cloudbeds_pms_v1_2/api/hotel_api.py -cloudbeds_pms_v1_2/api/house_account_api.py -cloudbeds_pms_v1_2/api/housekeeping_api.py -cloudbeds_pms_v1_2/api/integration_api.py -cloudbeds_pms_v1_2/api/invoices_api.py -cloudbeds_pms_v1_2/api/item_api.py -cloudbeds_pms_v1_2/api/package_api.py -cloudbeds_pms_v1_2/api/payment_api.py -cloudbeds_pms_v1_2/api/rate_api.py -cloudbeds_pms_v1_2/api/reservation_api.py -cloudbeds_pms_v1_2/api/room_api.py -cloudbeds_pms_v1_2/api/taxes_and_fees_api.py -cloudbeds_pms_v1_2/api/user_api.py -cloudbeds_pms_v1_2/api_client.py -cloudbeds_pms_v1_2/api_response.py -cloudbeds_pms_v1_2/configuration.py -cloudbeds_pms_v1_2/docs/AdjustmentApi.md -cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md -cloudbeds_pms_v1_2/docs/AppSettingsApi.md -cloudbeds_pms_v1_2/docs/AuthenticationApi.md -cloudbeds_pms_v1_2/docs/CurrencyApi.md -cloudbeds_pms_v1_2/docs/CustomFieldsApi.md -cloudbeds_pms_v1_2/docs/DashboardApi.md -cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md -cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md -cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md -cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md -cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md -cloudbeds_pms_v1_2/docs/EmailsApi.md -cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md -cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md -cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md -cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md -cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md -cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md -cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md -cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md -cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md -cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md -cloudbeds_pms_v1_2/docs/GetAppStateResponse.md -cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md -cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md -cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md -cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md -cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md -cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md -cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md -cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md -cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md -cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md -cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md -cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md -cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetDashboardResponse.md -cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md -cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md -cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md -cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetFilesResponse.md -cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md -cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md -cloudbeds_pms_v1_2/docs/GetGroupsResponse.md -cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetGuestListResponse.md -cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md -cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md -cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md -cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetGuestResponse.md -cloudbeds_pms_v1_2/docs/GetGuestResponseData.md -cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md -cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md -cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md -cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md -cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md -cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md -cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md -cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md -cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md -cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md -cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md -cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md -cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md -cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md -cloudbeds_pms_v1_2/docs/GetHotelsResponse.md -cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md -cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md -cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md -cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md -cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md -cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md -cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md -cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md -cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md -cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md -cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md -cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetItemResponse.md -cloudbeds_pms_v1_2/docs/GetItemResponseData.md -cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md -cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md -cloudbeds_pms_v1_2/docs/GetItemsResponse.md -cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md -cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetMetadataResponse.md -cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md -cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md -cloudbeds_pms_v1_2/docs/GetPackagesResponse.md -cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md -cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md -cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md -cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md -cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md -cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md -cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md -cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md -cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md -cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md -cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md -cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md -cloudbeds_pms_v1_2/docs/GetRateResponse.md -cloudbeds_pms_v1_2/docs/GetRateResponseData.md -cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md -cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md -cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md -cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md -cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md -cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponse.md -cloudbeds_pms_v1_2/docs/GetReservationResponseData.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md -cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md -cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md -cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md -cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md -cloudbeds_pms_v1_2/docs/GetReservationsResponse.md -cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md -cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md -cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md -cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md -cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md -cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md -cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md -cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md -cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md -cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md -cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md -cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md -cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md -cloudbeds_pms_v1_2/docs/GetRoomsResponse.md -cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md -cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md -cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md -cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md -cloudbeds_pms_v1_2/docs/GetSourcesResponse.md -cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md -cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md -cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md -cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md -cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md -cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md -cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md -cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md -cloudbeds_pms_v1_2/docs/GetUsersResponse.md -cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md -cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md -cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md -cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md -cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md -cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md -cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md -cloudbeds_pms_v1_2/docs/GroupsApi.md -cloudbeds_pms_v1_2/docs/GuestApi.md -cloudbeds_pms_v1_2/docs/HotelApi.md -cloudbeds_pms_v1_2/docs/HouseAccountApi.md -cloudbeds_pms_v1_2/docs/HousekeepingApi.md -cloudbeds_pms_v1_2/docs/IntegrationApi.md -cloudbeds_pms_v1_2/docs/InvoicesApi.md -cloudbeds_pms_v1_2/docs/ItemApi.md -cloudbeds_pms_v1_2/docs/PackageApi.md -cloudbeds_pms_v1_2/docs/PaymentApi.md -cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md -cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md -cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md -cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md -cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md -cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md -cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md -cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md -cloudbeds_pms_v1_2/docs/PostAppStateResponse.md -cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md -cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md -cloudbeds_pms_v1_2/docs/PostCardResponse.md -cloudbeds_pms_v1_2/docs/PostCardResponseData.md -cloudbeds_pms_v1_2/docs/PostChargeResponse.md -cloudbeds_pms_v1_2/docs/PostChargeResponseData.md -cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md -cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md -cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md -cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md -cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md -cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md -cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md -cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md -cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md -cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md -cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md -cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md -cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md -cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md -cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md -cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md -cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md -cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md -cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md -cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md -cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md -cloudbeds_pms_v1_2/docs/PostFileResponse.md -cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md -cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md -cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md -cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md -cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md -cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md -cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md -cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md -cloudbeds_pms_v1_2/docs/PostGuestResponse.md -cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md -cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md -cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md -cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md -cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md -cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md -cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md -cloudbeds_pms_v1_2/docs/PostItemResponse.md -cloudbeds_pms_v1_2/docs/PostItemResponseData.md -cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md -cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md -cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md -cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md -cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md -cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md -cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md -cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md -cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md -cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md -cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md -cloudbeds_pms_v1_2/docs/PostPaymentResponse.md -cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md -cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md -cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md -cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md -cloudbeds_pms_v1_2/docs/PostPutRateResponse.md -cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md -cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md -cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md -cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md -cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md -cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md -cloudbeds_pms_v1_2/docs/PostReservationResponse.md -cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md -cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md -cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md -cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md -cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md -cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md -cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md -cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md -cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md -cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md -cloudbeds_pms_v1_2/docs/PostWebhookResponse.md -cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md -cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md -cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md -cloudbeds_pms_v1_2/docs/PutGuestResponse.md -cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md -cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md -cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md -cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md -cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md -cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md -cloudbeds_pms_v1_2/docs/PutReservationResponse.md -cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md -cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md -cloudbeds_pms_v1_2/docs/RateApi.md -cloudbeds_pms_v1_2/docs/ReservationApi.md -cloudbeds_pms_v1_2/docs/RoomApi.md -cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md -cloudbeds_pms_v1_2/docs/UserApi.md -cloudbeds_pms_v1_2/exceptions.py -cloudbeds_pms_v1_2/models/__init__.py -cloudbeds_pms_v1_2/models/delete_adjustment_response.py -cloudbeds_pms_v1_2/models/delete_guest_note_response.py -cloudbeds_pms_v1_2/models/delete_reservation_note_response.py -cloudbeds_pms_v1_2/models/delete_room_block_response.py -cloudbeds_pms_v1_2/models/delete_webhook_response.py -cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py -cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py -cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py -cloudbeds_pms_v1_2/models/get_app_property_settings_response.py -cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py -cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py -cloudbeds_pms_v1_2/models/get_app_settings_response.py -cloudbeds_pms_v1_2/models/get_app_settings_response_data.py -cloudbeds_pms_v1_2/models/get_app_state_response.py -cloudbeds_pms_v1_2/models/get_app_state_response_data.py -cloudbeds_pms_v1_2/models/get_available_room_types_response.py -cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py -cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py -cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py -cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_2/models/get_currency_settings_response.py -cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py -cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py -cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py -cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py -cloudbeds_pms_v1_2/models/get_custom_fields_response.py -cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py -cloudbeds_pms_v1_2/models/get_dashboard_response.py -cloudbeds_pms_v1_2/models/get_dashboard_response_data.py -cloudbeds_pms_v1_2/models/get_email_schedule_response.py -cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py -cloudbeds_pms_v1_2/models/get_email_templates_response.py -cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py -cloudbeds_pms_v1_2/models/get_files_response.py -cloudbeds_pms_v1_2/models/get_files_response_data_inner.py -cloudbeds_pms_v1_2/models/get_group_notes_response.py -cloudbeds_pms_v1_2/models/get_group_notes_response_data.py -cloudbeds_pms_v1_2/models/get_groups_response.py -cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py -cloudbeds_pms_v1_2/models/get_guest_list_response.py -cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py -cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py -cloudbeds_pms_v1_2/models/get_guest_notes_response.py -cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py -cloudbeds_pms_v1_2/models/get_guest_response.py -cloudbeds_pms_v1_2/models/get_guest_response_data.py -cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py -cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py -cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py -cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py -cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py -cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py -cloudbeds_pms_v1_2/models/get_guests_by_status_response.py -cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py -cloudbeds_pms_v1_2/models/get_guests_modified_response.py -cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py -cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py -cloudbeds_pms_v1_2/models/get_hotel_details_response.py -cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py -cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py -cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py -cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py -cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py -cloudbeds_pms_v1_2/models/get_hotels_response.py -cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py -cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_2/models/get_house_account_list_response.py -cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py -cloudbeds_pms_v1_2/models/get_housekeepers_response.py -cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py -cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py -cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py -cloudbeds_pms_v1_2/models/get_invoice_response.py -cloudbeds_pms_v1_2/models/get_invoice_response_data.py -cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py -cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py -cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py -cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py -cloudbeds_pms_v1_2/models/get_item_categories_response.py -cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py -cloudbeds_pms_v1_2/models/get_item_response.py -cloudbeds_pms_v1_2/models/get_item_response_data.py -cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py -cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py -cloudbeds_pms_v1_2/models/get_items_response.py -cloudbeds_pms_v1_2/models/get_items_response_data_inner.py -cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py -cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py -cloudbeds_pms_v1_2/models/get_metadata_response.py -cloudbeds_pms_v1_2/models/get_metadata_response_data.py -cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py -cloudbeds_pms_v1_2/models/get_packages_response.py -cloudbeds_pms_v1_2/models/get_packages_response_data.py -cloudbeds_pms_v1_2/models/get_payment_methods_response.py -cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py -cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py -cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py -cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py -cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py -cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_2/models/get_rate_jobs_response.py -cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py -cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py -cloudbeds_pms_v1_2/models/get_rate_plans_response.py -cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py -cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py -cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_2/models/get_rate_response.py -cloudbeds_pms_v1_2/models/get_rate_response_data.py -cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py -cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py -cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py -cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py -cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py -cloudbeds_pms_v1_2/models/get_reservation_notes_response.py -cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response.py -cloudbeds_pms_v1_2/models/get_reservation_response_data.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py -cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py -cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py -cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py -cloudbeds_pms_v1_2/models/get_reservations_response.py -cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py -cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py -cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py -cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py -cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py -cloudbeds_pms_v1_2/models/get_room_blocks_response.py -cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py -cloudbeds_pms_v1_2/models/get_room_types_response.py -cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py -cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py -cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py -cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py -cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py -cloudbeds_pms_v1_2/models/get_rooms_response.py -cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py -cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py -cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py -cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py -cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/models/get_sources_response.py -cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py -cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py -cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py -cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py -cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py -cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py -cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py -cloudbeds_pms_v1_2/models/get_userinfo_response.py -cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py -cloudbeds_pms_v1_2/models/get_users_response.py -cloudbeds_pms_v1_2/models/get_users_response_data_inner.py -cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py -cloudbeds_pms_v1_2/models/get_webhooks_response.py -cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py -cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py -cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py -cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py -cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py -cloudbeds_pms_v1_2/models/post_access_token_response.py -cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py -cloudbeds_pms_v1_2/models/post_adjustment_response.py -cloudbeds_pms_v1_2/models/post_adjustment_response_data.py -cloudbeds_pms_v1_2/models/post_app_error_response.py -cloudbeds_pms_v1_2/models/post_app_error_response_data.py -cloudbeds_pms_v1_2/models/post_app_property_setting_response.py -cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py -cloudbeds_pms_v1_2/models/post_app_state_response.py -cloudbeds_pms_v1_2/models/post_append_custom_item_response.py -cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py -cloudbeds_pms_v1_2/models/post_card_response.py -cloudbeds_pms_v1_2/models/post_card_response_data.py -cloudbeds_pms_v1_2/models/post_charge_response.py -cloudbeds_pms_v1_2/models/post_charge_response_data.py -cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py -cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py -cloudbeds_pms_v1_2/models/post_custom_field_response.py -cloudbeds_pms_v1_2/models/post_custom_field_response_data.py -cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py -cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py -cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py -cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py -cloudbeds_pms_v1_2/models/post_custom_item_response.py -cloudbeds_pms_v1_2/models/post_custom_item_response_data.py -cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py -cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py -cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py -cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py -cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py -cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py -cloudbeds_pms_v1_2/models/post_email_schedule_response.py -cloudbeds_pms_v1_2/models/post_email_template_request_body.py -cloudbeds_pms_v1_2/models/post_email_template_request_subject.py -cloudbeds_pms_v1_2/models/post_email_template_response.py -cloudbeds_pms_v1_2/models/post_file_response.py -cloudbeds_pms_v1_2/models/post_government_receipt_response.py -cloudbeds_pms_v1_2/models/post_group_note_response.py -cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py -cloudbeds_pms_v1_2/models/post_guest_document_response.py -cloudbeds_pms_v1_2/models/post_guest_document_response_data.py -cloudbeds_pms_v1_2/models/post_guest_note_response.py -cloudbeds_pms_v1_2/models/post_guest_photo_response.py -cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py -cloudbeds_pms_v1_2/models/post_guest_response.py -cloudbeds_pms_v1_2/models/post_guests_to_room_response.py -cloudbeds_pms_v1_2/models/post_housekeeper_response.py -cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py -cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py -cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py -cloudbeds_pms_v1_2/models/post_item_category_response.py -cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py -cloudbeds_pms_v1_2/models/post_item_response.py -cloudbeds_pms_v1_2/models/post_item_response_data.py -cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py -cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py -cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py -cloudbeds_pms_v1_2/models/post_new_house_account_response.py -cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py -cloudbeds_pms_v1_2/models/post_patch_group_response.py -cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py -cloudbeds_pms_v1_2/models/post_patch_invoice_response.py -cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py -cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py -cloudbeds_pms_v1_2/models/post_patch_rate_response.py -cloudbeds_pms_v1_2/models/post_payment_response.py -cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py -cloudbeds_pms_v1_2/models/post_put_group_response.py -cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py -cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_2/models/post_put_rate_response.py -cloudbeds_pms_v1_2/models/post_reservation_document_response.py -cloudbeds_pms_v1_2/models/post_reservation_note_response.py -cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py -cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py -cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py -cloudbeds_pms_v1_2/models/post_reservation_response.py -cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py -cloudbeds_pms_v1_2/models/post_room_assign_response.py -cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py -cloudbeds_pms_v1_2/models/post_room_block_response.py -cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py -cloudbeds_pms_v1_2/models/post_room_check_in_response.py -cloudbeds_pms_v1_2/models/post_room_check_out_response.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_2/models/post_void_item_response.py -cloudbeds_pms_v1_2/models/post_void_payment_response.py -cloudbeds_pms_v1_2/models/post_webhook_response.py -cloudbeds_pms_v1_2/models/post_webhook_response_data.py -cloudbeds_pms_v1_2/models/put_guest_note_response.py -cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py -cloudbeds_pms_v1_2/models/put_guest_response.py -cloudbeds_pms_v1_2/models/put_house_account_status_response.py -cloudbeds_pms_v1_2/models/put_housekeeper_response.py -cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py -cloudbeds_pms_v1_2/models/put_reservation_note_response.py -cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py -cloudbeds_pms_v1_2/models/put_reservation_response.py -cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py -cloudbeds_pms_v1_2/models/put_room_block_response.py -cloudbeds_pms_v1_2/rest.py -cloudbeds_pms_v1_2/test/__init__.py -cloudbeds_pms_v1_2/test/test_adjustment_api.py -cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py -cloudbeds_pms_v1_2/test/test_app_settings_api.py -cloudbeds_pms_v1_2/test/test_authentication_api.py -cloudbeds_pms_v1_2/test/test_currency_api.py -cloudbeds_pms_v1_2/test/test_custom_fields_api.py -cloudbeds_pms_v1_2/test/test_dashboard_api.py -cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py -cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py -cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py -cloudbeds_pms_v1_2/test/test_delete_room_block_response.py -cloudbeds_pms_v1_2/test/test_delete_webhook_response.py -cloudbeds_pms_v1_2/test/test_emails_api.py -cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py -cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py -cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py -cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py -cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py -cloudbeds_pms_v1_2/test/test_get_app_settings_response.py -cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py -cloudbeds_pms_v1_2/test/test_get_app_state_response.py -cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py -cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py -cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py -cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py -cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py -cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py -cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py -cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py -cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_dashboard_response.py -cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py -cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py -cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_email_templates_response.py -cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_files_response.py -cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_group_notes_response.py -cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py -cloudbeds_pms_v1_2/test/test_get_groups_response.py -cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_guest_list_response.py -cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py -cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py -cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py -cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_guest_response.py -cloudbeds_pms_v1_2/test/test_get_guest_response_data.py -cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py -cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py -cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py -cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py -cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py -cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py -cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py -cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py -cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py -cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py -cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py -cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py -cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py -cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py -cloudbeds_pms_v1_2/test/test_get_hotels_response.py -cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py -cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py -cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py -cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_invoice_response.py -cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py -cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py -cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py -cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py -cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py -cloudbeds_pms_v1_2/test/test_get_item_categories_response.py -cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_item_response.py -cloudbeds_pms_v1_2/test/test_get_item_response_data.py -cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py -cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py -cloudbeds_pms_v1_2/test/test_get_items_response.py -cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py -cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_metadata_response.py -cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py -cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py -cloudbeds_pms_v1_2/test/test_get_packages_response.py -cloudbeds_pms_v1_2/test/test_get_packages_response_data.py -cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py -cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py -cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py -cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py -cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py -cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py -cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py -cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py -cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py -cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py -cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_2/test/test_get_rate_response.py -cloudbeds_pms_v1_2/test/test_get_rate_response_data.py -cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py -cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py -cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py -cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py -cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py -cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py -cloudbeds_pms_v1_2/test/test_get_reservations_response.py -cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py -cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py -cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py -cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py -cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_room_types_response.py -cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py -cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py -cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py -cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py -cloudbeds_pms_v1_2/test/test_get_rooms_response.py -cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py -cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py -cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_2/test/test_get_sources_response.py -cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py -cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py -cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py -cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py -cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py -cloudbeds_pms_v1_2/test/test_get_userinfo_response.py -cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py -cloudbeds_pms_v1_2/test/test_get_users_response.py -cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py -cloudbeds_pms_v1_2/test/test_get_webhooks_response.py -cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py -cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py -cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py -cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py -cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py -cloudbeds_pms_v1_2/test/test_groups_api.py -cloudbeds_pms_v1_2/test/test_guest_api.py -cloudbeds_pms_v1_2/test/test_hotel_api.py -cloudbeds_pms_v1_2/test/test_house_account_api.py -cloudbeds_pms_v1_2/test/test_housekeeping_api.py -cloudbeds_pms_v1_2/test/test_integration_api.py -cloudbeds_pms_v1_2/test/test_invoices_api.py -cloudbeds_pms_v1_2/test/test_item_api.py -cloudbeds_pms_v1_2/test/test_package_api.py -cloudbeds_pms_v1_2/test/test_payment_api.py -cloudbeds_pms_v1_2/test/test_post_access_token_response.py -cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py -cloudbeds_pms_v1_2/test/test_post_adjustment_response.py -cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py -cloudbeds_pms_v1_2/test/test_post_app_error_response.py -cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py -cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py -cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py -cloudbeds_pms_v1_2/test/test_post_app_state_response.py -cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py -cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py -cloudbeds_pms_v1_2/test/test_post_card_response.py -cloudbeds_pms_v1_2/test/test_post_card_response_data.py -cloudbeds_pms_v1_2/test/test_post_charge_response.py -cloudbeds_pms_v1_2/test/test_post_charge_response_data.py -cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py -cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py -cloudbeds_pms_v1_2/test/test_post_custom_field_response.py -cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py -cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py -cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py -cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py -cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py -cloudbeds_pms_v1_2/test/test_post_custom_item_response.py -cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py -cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py -cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py -cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py -cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py -cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py -cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py -cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py -cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py -cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py -cloudbeds_pms_v1_2/test/test_post_email_template_response.py -cloudbeds_pms_v1_2/test/test_post_file_response.py -cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py -cloudbeds_pms_v1_2/test/test_post_group_note_response.py -cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py -cloudbeds_pms_v1_2/test/test_post_guest_document_response.py -cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py -cloudbeds_pms_v1_2/test/test_post_guest_note_response.py -cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py -cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py -cloudbeds_pms_v1_2/test/test_post_guest_response.py -cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py -cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py -cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py -cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py -cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py -cloudbeds_pms_v1_2/test/test_post_item_category_response.py -cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py -cloudbeds_pms_v1_2/test/test_post_item_response.py -cloudbeds_pms_v1_2/test/test_post_item_response_data.py -cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py -cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py -cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py -cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py -cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py -cloudbeds_pms_v1_2/test/test_post_patch_group_response.py -cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py -cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py -cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py -cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py -cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py -cloudbeds_pms_v1_2/test/test_post_payment_response.py -cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py -cloudbeds_pms_v1_2/test/test_post_put_group_response.py -cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py -cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_2/test/test_post_put_rate_response.py -cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py -cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py -cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py -cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py -cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py -cloudbeds_pms_v1_2/test/test_post_reservation_response.py -cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py -cloudbeds_pms_v1_2/test/test_post_room_assign_response.py -cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py -cloudbeds_pms_v1_2/test/test_post_room_block_response.py -cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py -cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py -cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_2/test/test_post_void_item_response.py -cloudbeds_pms_v1_2/test/test_post_void_payment_response.py -cloudbeds_pms_v1_2/test/test_post_webhook_response.py -cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py -cloudbeds_pms_v1_2/test/test_put_guest_note_response.py -cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py -cloudbeds_pms_v1_2/test/test_put_guest_response.py -cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py -cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py -cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py -cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py -cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py -cloudbeds_pms_v1_2/test/test_put_reservation_response.py -cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py -cloudbeds_pms_v1_2/test/test_put_room_block_response.py -cloudbeds_pms_v1_2/test/test_rate_api.py -cloudbeds_pms_v1_2/test/test_reservation_api.py -cloudbeds_pms_v1_2/test/test_room_api.py -cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py -cloudbeds_pms_v1_2/test/test_user_api.py +cloudbeds_pms_v1_3/__init__.py +cloudbeds_pms_v1_3/api/__init__.py +cloudbeds_pms_v1_3/api/adjustment_api.py +cloudbeds_pms_v1_3/api/allotment_blocks_api.py +cloudbeds_pms_v1_3/api/app_settings_api.py +cloudbeds_pms_v1_3/api/authentication_api.py +cloudbeds_pms_v1_3/api/beta_api.py +cloudbeds_pms_v1_3/api/crm_api.py +cloudbeds_pms_v1_3/api/currency_api.py +cloudbeds_pms_v1_3/api/custom_fields_api.py +cloudbeds_pms_v1_3/api/dashboard_api.py +cloudbeds_pms_v1_3/api/emails_api.py +cloudbeds_pms_v1_3/api/groups_api.py +cloudbeds_pms_v1_3/api/guest_api.py +cloudbeds_pms_v1_3/api/hotel_api.py +cloudbeds_pms_v1_3/api/house_account_api.py +cloudbeds_pms_v1_3/api/housekeeping_api.py +cloudbeds_pms_v1_3/api/import_api.py +cloudbeds_pms_v1_3/api/integration_api.py +cloudbeds_pms_v1_3/api/invoices_api.py +cloudbeds_pms_v1_3/api/item_api.py +cloudbeds_pms_v1_3/api/package_api.py +cloudbeds_pms_v1_3/api/payment_api.py +cloudbeds_pms_v1_3/api/rate_api.py +cloudbeds_pms_v1_3/api/reservation_api.py +cloudbeds_pms_v1_3/api/room_api.py +cloudbeds_pms_v1_3/api/rooms_api.py +cloudbeds_pms_v1_3/api/taxes_and_fees_api.py +cloudbeds_pms_v1_3/api/user_api.py +cloudbeds_pms_v1_3/api_client.py +cloudbeds_pms_v1_3/api_response.py +cloudbeds_pms_v1_3/configuration.py +cloudbeds_pms_v1_3/docs/AdjustmentApi.md +cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md +cloudbeds_pms_v1_3/docs/AppSettingsApi.md +cloudbeds_pms_v1_3/docs/AuthenticationApi.md +cloudbeds_pms_v1_3/docs/BetaApi.md +cloudbeds_pms_v1_3/docs/CRMApi.md +cloudbeds_pms_v1_3/docs/CurrencyApi.md +cloudbeds_pms_v1_3/docs/CustomFieldsApi.md +cloudbeds_pms_v1_3/docs/DashboardApi.md +cloudbeds_pms_v1_3/docs/DeleteAdjustmentResponse.md +cloudbeds_pms_v1_3/docs/DeleteGuestNoteResponse.md +cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md +cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md +cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md +cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md +cloudbeds_pms_v1_3/docs/EmailsApi.md +cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md +cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md +cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md +cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md +cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponse.md +cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md +cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md +cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md +cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md +cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponse.md +cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseData.md +cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseDataOneOf.md +cloudbeds_pms_v1_3/docs/GetAppSettingsResponse.md +cloudbeds_pms_v1_3/docs/GetAppSettingsResponseData.md +cloudbeds_pms_v1_3/docs/GetAppStateResponse.md +cloudbeds_pms_v1_3/docs/GetAppStateResponseData.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md +cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md +cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponse.md +cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md +cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md +cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md +cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md +cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponse.md +cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseData.md +cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataFormat.md +cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRates.md +cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRatesFixedInner.md +cloudbeds_pms_v1_3/docs/GetCustomFieldsResponse.md +cloudbeds_pms_v1_3/docs/GetCustomFieldsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetDashboardResponse.md +cloudbeds_pms_v1_3/docs/GetDashboardResponseData.md +cloudbeds_pms_v1_3/docs/GetEmailScheduleResponse.md +cloudbeds_pms_v1_3/docs/GetEmailScheduleResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponse.md +cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetFilesResponse.md +cloudbeds_pms_v1_3/docs/GetFilesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetGroupNotesResponse.md +cloudbeds_pms_v1_3/docs/GetGroupNotesResponseData.md +cloudbeds_pms_v1_3/docs/GetGroupsResponse.md +cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetGuestListResponse.md +cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md +cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValueGuestNotesInner.md +cloudbeds_pms_v1_3/docs/GetGuestNotesResponse.md +cloudbeds_pms_v1_3/docs/GetGuestNotesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetGuestResponse.md +cloudbeds_pms_v1_3/docs/GetGuestResponseData.md +cloudbeds_pms_v1_3/docs/GetGuestResponseDataBirthDate.md +cloudbeds_pms_v1_3/docs/GetGuestResponseDataCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentExpirationDate.md +cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentIssueDate.md +cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponse.md +cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponse.md +cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponse.md +cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/GetHotelDetailsResponse.md +cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseData.md +cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyAddress.md +cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md +cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyImageInner.md +cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyPolicy.md +cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md +cloudbeds_pms_v1_3/docs/GetHotelsResponse.md +cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md +cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md +cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md +cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md +cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md +cloudbeds_pms_v1_3/docs/GetHouseAccountListResponse.md +cloudbeds_pms_v1_3/docs/GetHouseAccountListResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md +cloudbeds_pms_v1_3/docs/GetHousekeepersResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponse.md +cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md +cloudbeds_pms_v1_3/docs/GetImportToursResponse.md +cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md +cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md +cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md +cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md +cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md +cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md +cloudbeds_pms_v1_3/docs/GetItemCategoriesResponse.md +cloudbeds_pms_v1_3/docs/GetItemCategoriesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetItemResponse.md +cloudbeds_pms_v1_3/docs/GetItemResponseData.md +cloudbeds_pms_v1_3/docs/GetItemResponseDataFeesInner.md +cloudbeds_pms_v1_3/docs/GetItemResponseDataTaxesInner.md +cloudbeds_pms_v1_3/docs/GetItemsResponse.md +cloudbeds_pms_v1_3/docs/GetItemsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponse.md +cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetMetadataResponse.md +cloudbeds_pms_v1_3/docs/GetMetadataResponseData.md +cloudbeds_pms_v1_3/docs/GetMetadataResponseDataApi.md +cloudbeds_pms_v1_3/docs/GetPackagesResponse.md +cloudbeds_pms_v1_3/docs/GetPackagesResponseData.md +cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponse.md +cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md +cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md +cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md +cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md +cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md +cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md +cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md +cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md +cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRateJobsResponse.md +cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInnerUpdatesInner.md +cloudbeds_pms_v1_3/docs/GetRatePlansResponse.md +cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerAddOnsInner.md +cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md +cloudbeds_pms_v1_3/docs/GetRateResponse.md +cloudbeds_pms_v1_3/docs/GetRateResponseData.md +cloudbeds_pms_v1_3/docs/GetRateResponseDataRoomRateDetailedInner.md +cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md +cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponse.md +cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md +cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md +cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md +cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md +cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md +cloudbeds_pms_v1_3/docs/GetReservationNotesResponse.md +cloudbeds_pms_v1_3/docs/GetReservationNotesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponse.md +cloudbeds_pms_v1_3/docs/GetReservationResponseData.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataCardsOnFileInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataGroupInventoryInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md +cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponse.md +cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseData.md +cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseDataGuestsInner.md +cloudbeds_pms_v1_3/docs/GetReservationsResponse.md +cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md +cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md +cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md +cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md +cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md +cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md +cloudbeds_pms_v1_3/docs/GetRoomTypesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponse.md +cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseData.md +cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md +cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md +cloudbeds_pms_v1_3/docs/GetRoomsResponse.md +cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md +cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponse.md +cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md +cloudbeds_pms_v1_3/docs/GetSourcesResponse.md +cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerFeesInner.md +cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md +cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md +cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md +cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md +cloudbeds_pms_v1_3/docs/GetUsersResponse.md +cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md +cloudbeds_pms_v1_3/docs/GetWebhooksResponse.md +cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerEvent.md +cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerKey.md +cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerOwner.md +cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerSubscriptionData.md +cloudbeds_pms_v1_3/docs/GroupsApi.md +cloudbeds_pms_v1_3/docs/GuestApi.md +cloudbeds_pms_v1_3/docs/HotelApi.md +cloudbeds_pms_v1_3/docs/HouseAccountApi.md +cloudbeds_pms_v1_3/docs/HousekeepingApi.md +cloudbeds_pms_v1_3/docs/ImportApi.md +cloudbeds_pms_v1_3/docs/IntegrationApi.md +cloudbeds_pms_v1_3/docs/InvoicesApi.md +cloudbeds_pms_v1_3/docs/ItemApi.md +cloudbeds_pms_v1_3/docs/PackageApi.md +cloudbeds_pms_v1_3/docs/PaymentApi.md +cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md +cloudbeds_pms_v1_3/docs/PostAccessTokenResponse.md +cloudbeds_pms_v1_3/docs/PostAccessTokenResponseResourcesInner.md +cloudbeds_pms_v1_3/docs/PostAdjustmentResponse.md +cloudbeds_pms_v1_3/docs/PostAdjustmentResponseData.md +cloudbeds_pms_v1_3/docs/PostAppErrorResponse.md +cloudbeds_pms_v1_3/docs/PostAppErrorResponseData.md +cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponse.md +cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponseData.md +cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md +cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md +cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md +cloudbeds_pms_v1_3/docs/PostAppStateResponse.md +cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponse.md +cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponseData.md +cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md +cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md +cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md +cloudbeds_pms_v1_3/docs/PostCardResponse.md +cloudbeds_pms_v1_3/docs/PostCardResponseData.md +cloudbeds_pms_v1_3/docs/PostChargeResponse.md +cloudbeds_pms_v1_3/docs/PostChargeResponseData.md +cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextAction.md +cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextActionDetails.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponse.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponseData.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAutoRelease.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponse.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md +cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md +cloudbeds_pms_v1_3/docs/PostCustomFieldResponse.md +cloudbeds_pms_v1_3/docs/PostCustomFieldResponseData.md +cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInner.md +cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemFeesInner.md +cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md +cloudbeds_pms_v1_3/docs/PostCustomItemRequestPaymentsInner.md +cloudbeds_pms_v1_3/docs/PostCustomItemResponse.md +cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md +cloudbeds_pms_v1_3/docs/PostCustomPaymentMethodResponse.md +cloudbeds_pms_v1_3/docs/PostDeleteAllotmentBlockResponse.md +cloudbeds_pms_v1_3/docs/PostDeleteAppPropertySettingsResponse.md +cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestSchedule.md +cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationEvent.md +cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md +cloudbeds_pms_v1_3/docs/PostEmailScheduleResponse.md +cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestBody.md +cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestSubject.md +cloudbeds_pms_v1_3/docs/PostEmailTemplateResponse.md +cloudbeds_pms_v1_3/docs/PostFileResponse.md +cloudbeds_pms_v1_3/docs/PostGovernmentReceiptResponse.md +cloudbeds_pms_v1_3/docs/PostGroupNoteResponse.md +cloudbeds_pms_v1_3/docs/PostGroupNoteResponseDataInner.md +cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md +cloudbeds_pms_v1_3/docs/PostGuestDocumentResponse.md +cloudbeds_pms_v1_3/docs/PostGuestDocumentResponseData.md +cloudbeds_pms_v1_3/docs/PostGuestNoteResponse.md +cloudbeds_pms_v1_3/docs/PostGuestPhotoResponse.md +cloudbeds_pms_v1_3/docs/PostGuestRequestCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/PostGuestResponse.md +cloudbeds_pms_v1_3/docs/PostGuestsToRoomResponse.md +cloudbeds_pms_v1_3/docs/PostHousekeeperResponse.md +cloudbeds_pms_v1_3/docs/PostHousekeepingAssignmentResponse.md +cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md +cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md +cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md +cloudbeds_pms_v1_3/docs/PostItemResponse.md +cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md +cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md +cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md +cloudbeds_pms_v1_3/docs/PostItemsToInventoryRequestItem.md +cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponse.md +cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponseDataInner.md +cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponse.md +cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponseData.md +cloudbeds_pms_v1_3/docs/PostPatchGroupResponse.md +cloudbeds_pms_v1_3/docs/PostPatchGroupResponseDataInner.md +cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md +cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInner.md +cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInnerInterval.md +cloudbeds_pms_v1_3/docs/PostPatchRateResponse.md +cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md +cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md +cloudbeds_pms_v1_3/docs/PostPaymentResponse.md +cloudbeds_pms_v1_3/docs/PostPutAppPropertySettingsResponse.md +cloudbeds_pms_v1_3/docs/PostPutGroupResponse.md +cloudbeds_pms_v1_3/docs/PostPutRateRequest.md +cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInner.md +cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInnerIntervalInner.md +cloudbeds_pms_v1_3/docs/PostPutRateResponse.md +cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md +cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md +cloudbeds_pms_v1_3/docs/PostReservationDocumentResponse.md +cloudbeds_pms_v1_3/docs/PostReservationNoteResponse.md +cloudbeds_pms_v1_3/docs/PostReservationRequestAdultsInner.md +cloudbeds_pms_v1_3/docs/PostReservationRequestChildrenInner.md +cloudbeds_pms_v1_3/docs/PostReservationRequestCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/PostReservationRequestRoomsInner.md +cloudbeds_pms_v1_3/docs/PostReservationResponse.md +cloudbeds_pms_v1_3/docs/PostReservationResponseUnassignedInner.md +cloudbeds_pms_v1_3/docs/PostRoomAssignResponse.md +cloudbeds_pms_v1_3/docs/PostRoomBlockRequestRoomsInner.md +cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md +cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md +cloudbeds_pms_v1_3/docs/PostRoomCheckInResponse.md +cloudbeds_pms_v1_3/docs/PostRoomCheckOutResponse.md +cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md +cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponse.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAutoRelease.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponse.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md +cloudbeds_pms_v1_3/docs/PostVoidItemResponse.md +cloudbeds_pms_v1_3/docs/PostVoidPaymentResponse.md +cloudbeds_pms_v1_3/docs/PostWebhookResponse.md +cloudbeds_pms_v1_3/docs/PostWebhookResponseData.md +cloudbeds_pms_v1_3/docs/PutGuestNoteResponse.md +cloudbeds_pms_v1_3/docs/PutGuestRequestGuestCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/PutGuestResponse.md +cloudbeds_pms_v1_3/docs/PutHouseAccountStatusResponse.md +cloudbeds_pms_v1_3/docs/PutHousekeeperResponse.md +cloudbeds_pms_v1_3/docs/PutItemToInventoryResponse.md +cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md +cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md +cloudbeds_pms_v1_3/docs/PutRateResponse.md +cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md +cloudbeds_pms_v1_3/docs/PutReservationNoteResponse.md +cloudbeds_pms_v1_3/docs/PutReservationRequestCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md +cloudbeds_pms_v1_3/docs/PutReservationResponse.md +cloudbeds_pms_v1_3/docs/PutRoomBlockRequestRoomsInner.md +cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md +cloudbeds_pms_v1_3/docs/RateApi.md +cloudbeds_pms_v1_3/docs/ReservationApi.md +cloudbeds_pms_v1_3/docs/RoomApi.md +cloudbeds_pms_v1_3/docs/RoomsApi.md +cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md +cloudbeds_pms_v1_3/docs/UserApi.md +cloudbeds_pms_v1_3/exceptions.py +cloudbeds_pms_v1_3/models/__init__.py +cloudbeds_pms_v1_3/models/delete_adjustment_response.py +cloudbeds_pms_v1_3/models/delete_guest_note_response.py +cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py +cloudbeds_pms_v1_3/models/delete_reservation_note_response.py +cloudbeds_pms_v1_3/models/delete_room_block_response.py +cloudbeds_pms_v1_3/models/delete_webhook_response.py +cloudbeds_pms_v1_3/models/get_adjustment_response.py +cloudbeds_pms_v1_3/models/get_adjustment_response_data.py +cloudbeds_pms_v1_3/models/get_adjustments_response.py +cloudbeds_pms_v1_3/models/get_adjustments_response_data.py +cloudbeds_pms_v1_3/models/get_allotment_blocks_response.py +cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_3/models/get_app_property_settings_response.py +cloudbeds_pms_v1_3/models/get_app_property_settings_response_data.py +cloudbeds_pms_v1_3/models/get_app_property_settings_response_data_one_of.py +cloudbeds_pms_v1_3/models/get_app_settings_response.py +cloudbeds_pms_v1_3/models/get_app_settings_response_data.py +cloudbeds_pms_v1_3/models/get_app_state_response.py +cloudbeds_pms_v1_3/models/get_app_state_response_data.py +cloudbeds_pms_v1_3/models/get_async_api_job_response.py +cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py +cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py +cloudbeds_pms_v1_3/models/get_available_room_types_response.py +cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/models/get_currency_settings_response.py +cloudbeds_pms_v1_3/models/get_currency_settings_response_data.py +cloudbeds_pms_v1_3/models/get_currency_settings_response_data_format.py +cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_3/models/get_custom_fields_response.py +cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_3/models/get_dashboard_response.py +cloudbeds_pms_v1_3/models/get_dashboard_response_data.py +cloudbeds_pms_v1_3/models/get_email_schedule_response.py +cloudbeds_pms_v1_3/models/get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_3/models/get_email_templates_response.py +cloudbeds_pms_v1_3/models/get_email_templates_response_data_inner.py +cloudbeds_pms_v1_3/models/get_files_response.py +cloudbeds_pms_v1_3/models/get_files_response_data_inner.py +cloudbeds_pms_v1_3/models/get_group_notes_response.py +cloudbeds_pms_v1_3/models/get_group_notes_response_data.py +cloudbeds_pms_v1_3/models/get_groups_response.py +cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py +cloudbeds_pms_v1_3/models/get_guest_list_response.py +cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py +cloudbeds_pms_v1_3/models/get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_3/models/get_guest_notes_response.py +cloudbeds_pms_v1_3/models/get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_3/models/get_guest_response.py +cloudbeds_pms_v1_3/models/get_guest_response_data.py +cloudbeds_pms_v1_3/models/get_guest_response_data_birth_date.py +cloudbeds_pms_v1_3/models/get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_3/models/get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_3/models/get_guest_response_data_document_issue_date.py +cloudbeds_pms_v1_3/models/get_guests_by_filter_response.py +cloudbeds_pms_v1_3/models/get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_3/models/get_guests_by_status_response.py +cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_3/models/get_guests_modified_response.py +cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_3/models/get_hotel_details_response.py +cloudbeds_pms_v1_3/models/get_hotel_details_response_data.py +cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py +cloudbeds_pms_v1_3/models/get_hotels_response.py +cloudbeds_pms_v1_3/models/get_hotels_response_data_inner.py +cloudbeds_pms_v1_3/models/get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/models/get_house_account_details_response.py +cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py +cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py +cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py +cloudbeds_pms_v1_3/models/get_house_account_list_response.py +cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_3/models/get_housekeepers_response.py +cloudbeds_pms_v1_3/models/get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_3/models/get_housekeeping_status_response.py +cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py +cloudbeds_pms_v1_3/models/get_import_tours_response.py +cloudbeds_pms_v1_3/models/get_invoice_response.py +cloudbeds_pms_v1_3/models/get_invoice_response_data.py +cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py +cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py +cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py +cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py +cloudbeds_pms_v1_3/models/get_item_categories_response.py +cloudbeds_pms_v1_3/models/get_item_categories_response_data_inner.py +cloudbeds_pms_v1_3/models/get_item_response.py +cloudbeds_pms_v1_3/models/get_item_response_data.py +cloudbeds_pms_v1_3/models/get_item_response_data_fees_inner.py +cloudbeds_pms_v1_3/models/get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_3/models/get_items_response.py +cloudbeds_pms_v1_3/models/get_items_response_data_inner.py +cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_3/models/get_metadata_response.py +cloudbeds_pms_v1_3/models/get_metadata_response_data.py +cloudbeds_pms_v1_3/models/get_metadata_response_data_api.py +cloudbeds_pms_v1_3/models/get_packages_response.py +cloudbeds_pms_v1_3/models/get_packages_response_data.py +cloudbeds_pms_v1_3/models/get_payment_methods_response.py +cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py +cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py +cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_3/models/get_payments_capabilities_response.py +cloudbeds_pms_v1_3/models/get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_3/models/get_payments_response.py +cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py +cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py +cloudbeds_pms_v1_3/models/get_pending_transactions_response.py +cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py +cloudbeds_pms_v1_3/models/get_rate_jobs_response.py +cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/models/get_rate_plans_response.py +cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/models/get_rate_response.py +cloudbeds_pms_v1_3/models/get_rate_response_data.py +cloudbeds_pms_v1_3/models/get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py +cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservation_assignments_response.py +cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_3/models/get_reservation_departures_response.py +cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py +cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +cloudbeds_pms_v1_3/models/get_reservation_notes_response.py +cloudbeds_pms_v1_3/models/get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response.py +cloudbeds_pms_v1_3/models/get_reservation_response_data.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_group_inventory_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_3/models/get_reservation_room_details_response.py +cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py +cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_3/models/get_reservations_response.py +cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_3/models/get_room_blocks_response.py +cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/models/get_room_types_response.py +cloudbeds_pms_v1_3/models/get_room_types_response_data_inner.py +cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_3/models/get_rooms_response.py +cloudbeds_pms_v1_3/models/get_rooms_response_data_inner.py +cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_3/models/get_rooms_unassigned_response.py +cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/models/get_sources_response.py +cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py +cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inner.py +cloudbeds_pms_v1_3/models/get_transactions_response.py +cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py +cloudbeds_pms_v1_3/models/get_userinfo_response.py +cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_3/models/get_users_response.py +cloudbeds_pms_v1_3/models/get_users_response_data_inner.py +cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py +cloudbeds_pms_v1_3/models/get_webhooks_response.py +cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner.py +cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_3/models/post_access_token_check_response.py +cloudbeds_pms_v1_3/models/post_access_token_response.py +cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py +cloudbeds_pms_v1_3/models/post_adjustment_response.py +cloudbeds_pms_v1_3/models/post_adjustment_response_data.py +cloudbeds_pms_v1_3/models/post_app_error_response.py +cloudbeds_pms_v1_3/models/post_app_error_response_data.py +cloudbeds_pms_v1_3/models/post_app_property_setting_response.py +cloudbeds_pms_v1_3/models/post_app_property_setting_response_data.py +cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py +cloudbeds_pms_v1_3/models/post_app_settings_response.py +cloudbeds_pms_v1_3/models/post_app_state_internal_response.py +cloudbeds_pms_v1_3/models/post_app_state_response.py +cloudbeds_pms_v1_3/models/post_append_custom_item_response.py +cloudbeds_pms_v1_3/models/post_append_custom_item_response_data.py +cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py +cloudbeds_pms_v1_3/models/post_card_response.py +cloudbeds_pms_v1_3/models/post_card_response_data.py +cloudbeds_pms_v1_3/models/post_charge_response.py +cloudbeds_pms_v1_3/models/post_charge_response_data.py +cloudbeds_pms_v1_3/models/post_charge_response_data_next_action.py +cloudbeds_pms_v1_3/models/post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_response.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py +cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py +cloudbeds_pms_v1_3/models/post_custom_field_response.py +cloudbeds_pms_v1_3/models/post_custom_field_response_data.py +cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner.py +cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_3/models/post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_3/models/post_custom_item_response.py +cloudbeds_pms_v1_3/models/post_custom_item_response_data.py +cloudbeds_pms_v1_3/models/post_custom_payment_method_response.py +cloudbeds_pms_v1_3/models/post_delete_allotment_block_response.py +cloudbeds_pms_v1_3/models/post_delete_app_property_settings_response.py +cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule.py +cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_3/models/post_email_schedule_response.py +cloudbeds_pms_v1_3/models/post_email_template_request_body.py +cloudbeds_pms_v1_3/models/post_email_template_request_subject.py +cloudbeds_pms_v1_3/models/post_email_template_response.py +cloudbeds_pms_v1_3/models/post_file_response.py +cloudbeds_pms_v1_3/models/post_government_receipt_response.py +cloudbeds_pms_v1_3/models/post_group_note_response.py +cloudbeds_pms_v1_3/models/post_group_note_response_data_inner.py +cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py +cloudbeds_pms_v1_3/models/post_guest_document_response.py +cloudbeds_pms_v1_3/models/post_guest_document_response_data.py +cloudbeds_pms_v1_3/models/post_guest_note_response.py +cloudbeds_pms_v1_3/models/post_guest_photo_response.py +cloudbeds_pms_v1_3/models/post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_3/models/post_guest_response.py +cloudbeds_pms_v1_3/models/post_guests_to_room_response.py +cloudbeds_pms_v1_3/models/post_housekeeper_response.py +cloudbeds_pms_v1_3/models/post_housekeeping_assignment_response.py +cloudbeds_pms_v1_3/models/post_housekeeping_status_response.py +cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py +cloudbeds_pms_v1_3/models/post_item_category_response.py +cloudbeds_pms_v1_3/models/post_item_response.py +cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py +cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py +cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py +cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py +cloudbeds_pms_v1_3/models/post_items_to_inventory_response.py +cloudbeds_pms_v1_3/models/post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_3/models/post_new_house_account_response.py +cloudbeds_pms_v1_3/models/post_new_house_account_response_data.py +cloudbeds_pms_v1_3/models/post_patch_group_response.py +cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py +cloudbeds_pms_v1_3/models/post_patch_invoice_response.py +cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_3/models/post_patch_rate_response.py +cloudbeds_pms_v1_3/models/post_payment_cash_response.py +cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py +cloudbeds_pms_v1_3/models/post_payment_response.py +cloudbeds_pms_v1_3/models/post_put_app_property_settings_response.py +cloudbeds_pms_v1_3/models/post_put_group_response.py +cloudbeds_pms_v1_3/models/post_put_rate_request.py +cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/models/post_put_rate_response.py +cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py +cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py +cloudbeds_pms_v1_3/models/post_reservation_document_response.py +cloudbeds_pms_v1_3/models/post_reservation_note_response.py +cloudbeds_pms_v1_3/models/post_reservation_request_adults_inner.py +cloudbeds_pms_v1_3/models/post_reservation_request_children_inner.py +cloudbeds_pms_v1_3/models/post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/models/post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/models/post_reservation_response.py +cloudbeds_pms_v1_3/models/post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_3/models/post_room_assign_response.py +cloudbeds_pms_v1_3/models/post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/models/post_room_block_response.py +cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_3/models/post_room_check_in_response.py +cloudbeds_pms_v1_3/models/post_room_check_out_response.py +cloudbeds_pms_v1_3/models/post_room_type_response.py +cloudbeds_pms_v1_3/models/post_room_type_response_data.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_response.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/models/post_void_item_response.py +cloudbeds_pms_v1_3/models/post_void_payment_response.py +cloudbeds_pms_v1_3/models/post_webhook_response.py +cloudbeds_pms_v1_3/models/post_webhook_response_data.py +cloudbeds_pms_v1_3/models/put_guest_note_response.py +cloudbeds_pms_v1_3/models/put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_3/models/put_guest_response.py +cloudbeds_pms_v1_3/models/put_house_account_status_response.py +cloudbeds_pms_v1_3/models/put_housekeeper_response.py +cloudbeds_pms_v1_3/models/put_item_to_inventory_response.py +cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/models/put_rate_response.py +cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py +cloudbeds_pms_v1_3/models/put_reservation_details_response.py +cloudbeds_pms_v1_3/models/put_reservation_note_response.py +cloudbeds_pms_v1_3/models/put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/models/put_reservation_response.py +cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/models/put_room_block_response.py +cloudbeds_pms_v1_3/rest.py +cloudbeds_pms_v1_3/test/__init__.py +cloudbeds_pms_v1_3/test/test_adjustment_api.py +cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py +cloudbeds_pms_v1_3/test/test_app_settings_api.py +cloudbeds_pms_v1_3/test/test_authentication_api.py +cloudbeds_pms_v1_3/test/test_beta_api.py +cloudbeds_pms_v1_3/test/test_crm_api.py +cloudbeds_pms_v1_3/test/test_currency_api.py +cloudbeds_pms_v1_3/test/test_custom_fields_api.py +cloudbeds_pms_v1_3/test/test_dashboard_api.py +cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py +cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py +cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py +cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_delete_room_block_response.py +cloudbeds_pms_v1_3/test/test_delete_webhook_response.py +cloudbeds_pms_v1_3/test/test_emails_api.py +cloudbeds_pms_v1_3/test/test_get_adjustment_response.py +cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py +cloudbeds_pms_v1_3/test/test_get_adjustments_response.py +cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_state_response.py +cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_files_response.py +cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py +cloudbeds_pms_v1_3/test/test_get_groups_response.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_hotels_response.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py +cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py +cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py +cloudbeds_pms_v1_3/test/test_get_import_tours_response.py +cloudbeds_pms_v1_3/test/test_get_invoice_response.py +cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py +cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py +cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py +cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response.py +cloudbeds_pms_v1_3/test/test_get_item_response_data.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_items_response.py +cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_metadata_response.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py +cloudbeds_pms_v1_3/test/test_get_packages_response.py +cloudbeds_pms_v1_3/test/test_get_packages_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_payments_response.py +cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py +cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py +cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_response.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py +cloudbeds_pms_v1_3/test/test_get_transactions_response.py +cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response.py +cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_3/test/test_groups_api.py +cloudbeds_pms_v1_3/test/test_guest_api.py +cloudbeds_pms_v1_3/test/test_hotel_api.py +cloudbeds_pms_v1_3/test/test_house_account_api.py +cloudbeds_pms_v1_3/test/test_housekeeping_api.py +cloudbeds_pms_v1_3/test/test_import_api.py +cloudbeds_pms_v1_3/test/test_integration_api.py +cloudbeds_pms_v1_3/test/test_invoices_api.py +cloudbeds_pms_v1_3/test/test_item_api.py +cloudbeds_pms_v1_3/test/test_package_api.py +cloudbeds_pms_v1_3/test/test_payment_api.py +cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py +cloudbeds_pms_v1_3/test/test_post_access_token_response.py +cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_error_response.py +cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py +cloudbeds_pms_v1_3/test/test_post_app_settings_response.py +cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py +cloudbeds_pms_v1_3/test/test_post_app_state_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_card_response.py +cloudbeds_pms_v1_3/test/test_post_card_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py +cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py +cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py +cloudbeds_pms_v1_3/test/test_post_email_template_response.py +cloudbeds_pms_v1_3/test/test_post_file_response.py +cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py +cloudbeds_pms_v1_3/test/test_post_guest_note_response.py +cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py +cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_response.py +cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py +cloudbeds_pms_v1_3/test/test_post_item_category_response.py +cloudbeds_pms_v1_3/test/test_post_item_response.py +cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py +cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py +cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py +cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py +cloudbeds_pms_v1_3/test/test_post_payment_response.py +cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_put_group_response.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_post_room_assign_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_block_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py +cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py +cloudbeds_pms_v1_3/test/test_post_room_type_response.py +cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_void_item_response.py +cloudbeds_pms_v1_3/test/test_post_void_payment_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py +cloudbeds_pms_v1_3/test/test_put_guest_note_response.py +cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_guest_response.py +cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py +cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/test/test_put_rate_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_response.py +cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_room_block_response.py +cloudbeds_pms_v1_3/test/test_rate_api.py +cloudbeds_pms_v1_3/test/test_reservation_api.py +cloudbeds_pms_v1_3/test/test_room_api.py +cloudbeds_pms_v1_3/test/test_rooms_api.py +cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py +cloudbeds_pms_v1_3/test/test_user_api.py diff --git a/README.md b/README.md index a3daa13..25eb2f4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Cloudbeds PMS V1.2 -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+# Cloudbeds PMS V1.3 +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

-The `cloudbeds_pms_v1_2` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: +The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.2 -- Package version: 1.3.0 +- API version: v1.3 +- Package version: 1.0.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -25,19 +25,19 @@ To be able to use it, you will need these dependencies in your own package that ## Getting Started -In your own code, to use this library to connect and interact with Cloudbeds PMS V1.2, +In your own code, to use this library to connect and interact with Cloudbeds PMS V1.3, you can run the following: ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -55,9 +55,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) + api_instance = cloudbeds_pms_v1_3.AdjustmentApi(api_client) reservation_id = 'reservation_id_example' # str | Reservation identifier adjustment_id = 'adjustment_id_example' # str | Adjustment identifier property_id = 'property_id_example' # str | Property ID (optional) @@ -74,447 +74,530 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: ## Documentation for API Endpoints -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AdjustmentApi* | [**delete_adjustment_delete**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment -*AdjustmentApi* | [**post_adjustment_post**](cloudbeds_pms_v1_2/docs/AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment -*AllotmentBlocksApi* | [**create_allotment_block_notes_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#create_allotment_block_notes_post) | **POST** /createAllotmentBlockNotes | createAllotmentBlockNotes -*AllotmentBlocksApi* | [**create_allotment_block_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#create_allotment_block_post) | **POST** /createAllotmentBlock | createAllotmentBlock -*AllotmentBlocksApi* | [**delete_allotment_block_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#delete_allotment_block_post) | **POST** /deleteAllotmentBlock | deleteAllotmentBlock -*AllotmentBlocksApi* | [**get_allotment_blocks_get**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#get_allotment_blocks_get) | **GET** /getAllotmentBlocks | getAllotmentBlocks -*AllotmentBlocksApi* | [**list_allotment_block_notes_get**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#list_allotment_block_notes_get) | **GET** /listAllotmentBlockNotes | listAllotmentBlockNotes -*AllotmentBlocksApi* | [**update_allotment_block_notes_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#update_allotment_block_notes_post) | **POST** /updateAllotmentBlockNotes | updateAllotmentBlockNotes -*AllotmentBlocksApi* | [**update_allotment_block_post**](cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md#update_allotment_block_post) | **POST** /updateAllotmentBlock | updateAllotmentBlock -*AppSettingsApi* | [**delete_app_property_settings_post**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#delete_app_property_settings_post) | **POST** /deleteAppPropertySettings | deleteAppPropertySettings -*AppSettingsApi* | [**get_app_property_settings_get**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#get_app_property_settings_get) | **GET** /getAppPropertySettings | getAppPropertySettings -*AppSettingsApi* | [**post_app_property_settings_post**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#post_app_property_settings_post) | **POST** /postAppPropertySettings | postAppPropertySettings -*AppSettingsApi* | [**put_app_property_settings_post**](cloudbeds_pms_v1_2/docs/AppSettingsApi.md#put_app_property_settings_post) | **POST** /putAppPropertySettings | putAppPropertySettings -*AuthenticationApi* | [**access_token_post**](cloudbeds_pms_v1_2/docs/AuthenticationApi.md#access_token_post) | **POST** /access_token | access_token -*AuthenticationApi* | [**oauth_metadata_get**](cloudbeds_pms_v1_2/docs/AuthenticationApi.md#oauth_metadata_get) | **GET** /oauth/metadata | metadata -*AuthenticationApi* | [**userinfo_get**](cloudbeds_pms_v1_2/docs/AuthenticationApi.md#userinfo_get) | **GET** /userinfo | userinfo -*CurrencyApi* | [**get_currency_settings_get**](cloudbeds_pms_v1_2/docs/CurrencyApi.md#get_currency_settings_get) | **GET** /getCurrencySettings | getCurrencySettings -*CustomFieldsApi* | [**get_custom_fields_get**](cloudbeds_pms_v1_2/docs/CustomFieldsApi.md#get_custom_fields_get) | **GET** /getCustomFields | getCustomFields -*CustomFieldsApi* | [**post_custom_field_post**](cloudbeds_pms_v1_2/docs/CustomFieldsApi.md#post_custom_field_post) | **POST** /postCustomField | postCustomField -*DashboardApi* | [**get_dashboard_get**](cloudbeds_pms_v1_2/docs/DashboardApi.md#get_dashboard_get) | **GET** /getDashboard | getDashboard -*EmailsApi* | [**get_email_schedule_get**](cloudbeds_pms_v1_2/docs/EmailsApi.md#get_email_schedule_get) | **GET** /getEmailSchedule | getEmailSchedule -*EmailsApi* | [**get_email_templates_get**](cloudbeds_pms_v1_2/docs/EmailsApi.md#get_email_templates_get) | **GET** /getEmailTemplates | getEmailTemplates -*EmailsApi* | [**post_email_schedule_post**](cloudbeds_pms_v1_2/docs/EmailsApi.md#post_email_schedule_post) | **POST** /postEmailSchedule | postEmailSchedule -*EmailsApi* | [**post_email_template_post**](cloudbeds_pms_v1_2/docs/EmailsApi.md#post_email_template_post) | **POST** /postEmailTemplate | postEmailTemplate -*GroupsApi* | [**get_group_notes_get**](cloudbeds_pms_v1_2/docs/GroupsApi.md#get_group_notes_get) | **GET** /getGroupNotes | getGroupNotes -*GroupsApi* | [**get_groups_get**](cloudbeds_pms_v1_2/docs/GroupsApi.md#get_groups_get) | **GET** /getGroups | getGroups -*GroupsApi* | [**patch_group_post**](cloudbeds_pms_v1_2/docs/GroupsApi.md#patch_group_post) | **POST** /patchGroup | patchGroup -*GroupsApi* | [**post_group_note_post**](cloudbeds_pms_v1_2/docs/GroupsApi.md#post_group_note_post) | **POST** /postGroupNote | postGroupNote -*GroupsApi* | [**put_group_post**](cloudbeds_pms_v1_2/docs/GroupsApi.md#put_group_post) | **POST** /putGroup | putGroup -*GuestApi* | [**delete_guest_note_delete**](cloudbeds_pms_v1_2/docs/GuestApi.md#delete_guest_note_delete) | **DELETE** /deleteGuestNote | deleteGuestNote -*GuestApi* | [**get_guest_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guest_get) | **GET** /getGuest | getGuest -*GuestApi* | [**get_guest_list_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guest_list_get) | **GET** /getGuestList | getGuestList -*GuestApi* | [**get_guest_notes_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guest_notes_get) | **GET** /getGuestNotes | getGuestNotes -*GuestApi* | [**get_guests_by_filter_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guests_by_filter_get) | **GET** /getGuestsByFilter | getGuestsByFilter -*GuestApi* | [**get_guests_by_status_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guests_by_status_get) | **GET** /getGuestsByStatus | getGuestsByStatus -*GuestApi* | [**get_guests_modified_get**](cloudbeds_pms_v1_2/docs/GuestApi.md#get_guests_modified_get) | **GET** /getGuestsModified | getGuestsModified -*GuestApi* | [**post_guest_document_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_document_post) | **POST** /postGuestDocument | postGuestDocument -*GuestApi* | [**post_guest_note_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_note_post) | **POST** /postGuestNote | postGuestNote -*GuestApi* | [**post_guest_photo_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_photo_post) | **POST** /postGuestPhoto | postGuestPhoto -*GuestApi* | [**post_guest_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guest_post) | **POST** /postGuest | postGuest -*GuestApi* | [**post_guests_to_room_post**](cloudbeds_pms_v1_2/docs/GuestApi.md#post_guests_to_room_post) | **POST** /postGuestsToRoom | postGuestsToRoom -*GuestApi* | [**put_guest_note_put**](cloudbeds_pms_v1_2/docs/GuestApi.md#put_guest_note_put) | **PUT** /putGuestNote | putGuestNote -*GuestApi* | [**put_guest_put**](cloudbeds_pms_v1_2/docs/GuestApi.md#put_guest_put) | **PUT** /putGuest | putGuest -*HotelApi* | [**get_files_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_files_get) | **GET** /getFiles | getFiles -*HotelApi* | [**get_hotel_details_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_hotel_details_get) | **GET** /getHotelDetails | getHotelDetails -*HotelApi* | [**get_hotels_get**](cloudbeds_pms_v1_2/docs/HotelApi.md#get_hotels_get) | **GET** /getHotels | getHotels -*HotelApi* | [**post_file_post**](cloudbeds_pms_v1_2/docs/HotelApi.md#post_file_post) | **POST** /postFile | postFile -*HouseAccountApi* | [**get_house_account_list_get**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList -*HouseAccountApi* | [**post_new_house_account_post**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount -*HouseAccountApi* | [**put_house_account_status_put**](cloudbeds_pms_v1_2/docs/HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus -*HousekeepingApi* | [**get_housekeepers_get**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#get_housekeepers_get) | **GET** /getHousekeepers | getHousekeepers -*HousekeepingApi* | [**get_housekeeping_status_get**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#get_housekeeping_status_get) | **GET** /getHousekeepingStatus | getHousekeepingStatus -*HousekeepingApi* | [**post_housekeeper_post**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#post_housekeeper_post) | **POST** /postHousekeeper | postHousekeeper -*HousekeepingApi* | [**post_housekeeping_assignment_post**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#post_housekeeping_assignment_post) | **POST** /postHousekeepingAssignment | postHousekeepingAssignment -*HousekeepingApi* | [**post_housekeeping_status_post**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#post_housekeeping_status_post) | **POST** /postHousekeepingStatus | postHousekeepingStatus -*HousekeepingApi* | [**put_housekeeper_put**](cloudbeds_pms_v1_2/docs/HousekeepingApi.md#put_housekeeper_put) | **PUT** /putHousekeeper | putHousekeeper -*IntegrationApi* | [**delete_webhook_delete**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#delete_webhook_delete) | **DELETE** /deleteWebhook | deleteWebhook -*IntegrationApi* | [**get_app_settings_get**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#get_app_settings_get) | **GET** /getAppSettings | getAppSettings -*IntegrationApi* | [**get_app_state_get**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#get_app_state_get) | **GET** /getAppState | getAppState -*IntegrationApi* | [**get_webhooks_get**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#get_webhooks_get) | **GET** /getWebhooks | getWebhooks -*IntegrationApi* | [**post_app_error_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_app_error_post) | **POST** /postAppError | postAppError -*IntegrationApi* | [**post_app_state_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_app_state_post) | **POST** /postAppState | postAppState -*IntegrationApi* | [**post_government_receipt_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_government_receipt_post) | **POST** /postGovernmentReceipt | postGovernmentReceipt -*IntegrationApi* | [**post_webhook_post**](cloudbeds_pms_v1_2/docs/IntegrationApi.md#post_webhook_post) | **POST** /postWebhook | postWebhook -*InvoicesApi* | [**get_invoice_get**](cloudbeds_pms_v1_2/docs/InvoicesApi.md#get_invoice_get) | **GET** /getInvoice | getInvoice -*InvoicesApi* | [**patch_invoice_post**](cloudbeds_pms_v1_2/docs/InvoicesApi.md#patch_invoice_post) | **POST** /patchInvoice | patchInvoice -*ItemApi* | [**append_custom_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#append_custom_item_post) | **POST** /appendCustomItem | appendCustomItem -*ItemApi* | [**get_item_categories_get**](cloudbeds_pms_v1_2/docs/ItemApi.md#get_item_categories_get) | **GET** /getItemCategories | getItemCategories -*ItemApi* | [**get_item_get**](cloudbeds_pms_v1_2/docs/ItemApi.md#get_item_get) | **GET** /getItem | getItem -*ItemApi* | [**get_items_get**](cloudbeds_pms_v1_2/docs/ItemApi.md#get_items_get) | **GET** /getItems | getItems -*ItemApi* | [**post_custom_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_custom_item_post) | **POST** /postCustomItem | postCustomItem -*ItemApi* | [**post_item_category_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_item_category_post) | **POST** /postItemCategory | postItemCategory -*ItemApi* | [**post_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_item_post) | **POST** /postItem | postItem -*ItemApi* | [**post_items_to_inventory_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_items_to_inventory_post) | **POST** /postItemsToInventory | postItemsToInventory -*ItemApi* | [**post_void_item_post**](cloudbeds_pms_v1_2/docs/ItemApi.md#post_void_item_post) | **POST** /postVoidItem | postVoidItem -*ItemApi* | [**put_item_to_inventory_put**](cloudbeds_pms_v1_2/docs/ItemApi.md#put_item_to_inventory_put) | **PUT** /putItemToInventory | putItemToInventory -*PackageApi* | [**get_package_names_get**](cloudbeds_pms_v1_2/docs/PackageApi.md#get_package_names_get) | **GET** /getPackageNames | getPackageNames -*PackageApi* | [**get_packages_get**](cloudbeds_pms_v1_2/docs/PackageApi.md#get_packages_get) | **GET** /getPackages | getPackages -*PaymentApi* | [**get_payment_methods_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods -*PaymentApi* | [**get_payments_capabilities_get**](cloudbeds_pms_v1_2/docs/PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities -*PaymentApi* | [**post_charge_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge -*PaymentApi* | [**post_credit_card_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard -*PaymentApi* | [**post_custom_payment_method_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod -*PaymentApi* | [**post_payment_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment -*PaymentApi* | [**post_void_payment_post**](cloudbeds_pms_v1_2/docs/PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment -*RateApi* | [**get_rate_get**](cloudbeds_pms_v1_2/docs/RateApi.md#get_rate_get) | **GET** /getRate | getRate -*RateApi* | [**get_rate_jobs_get**](cloudbeds_pms_v1_2/docs/RateApi.md#get_rate_jobs_get) | **GET** /getRateJobs | getRateJobs -*RateApi* | [**get_rate_plans_get**](cloudbeds_pms_v1_2/docs/RateApi.md#get_rate_plans_get) | **GET** /getRatePlans | getRatePlans -*RateApi* | [**patch_rate_post**](cloudbeds_pms_v1_2/docs/RateApi.md#patch_rate_post) | **POST** /patchRate | patchRate -*RateApi* | [**put_rate_post**](cloudbeds_pms_v1_2/docs/RateApi.md#put_rate_post) | **POST** /putRate | putRate -*ReservationApi* | [**delete_reservation_note_delete**](cloudbeds_pms_v1_2/docs/ReservationApi.md#delete_reservation_note_delete) | **DELETE** /deleteReservationNote | deleteReservationNote -*ReservationApi* | [**get_reservation_assignments_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_assignments_get) | **GET** /getReservationAssignments | getReservationAssignments -*ReservationApi* | [**get_reservation_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_get) | **GET** /getReservation | getReservation -*ReservationApi* | [**get_reservation_invoice_information_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_invoice_information_get) | **GET** /getReservationInvoiceInformation | getReservationInvoiceInformation -*ReservationApi* | [**get_reservation_notes_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservation_notes_get) | **GET** /getReservationNotes | getReservationNotes -*ReservationApi* | [**get_reservations_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservations_get) | **GET** /getReservations | getReservations -*ReservationApi* | [**get_reservations_with_rate_details_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_reservations_with_rate_details_get) | **GET** /getReservationsWithRateDetails | getReservationsWithRateDetails -*ReservationApi* | [**get_sources_get**](cloudbeds_pms_v1_2/docs/ReservationApi.md#get_sources_get) | **GET** /getSources | getSources -*ReservationApi* | [**post_reservation_document_post**](cloudbeds_pms_v1_2/docs/ReservationApi.md#post_reservation_document_post) | **POST** /postReservationDocument | postReservationDocument -*ReservationApi* | [**post_reservation_note_post**](cloudbeds_pms_v1_2/docs/ReservationApi.md#post_reservation_note_post) | **POST** /postReservationNote | postReservationNote -*ReservationApi* | [**post_reservation_post**](cloudbeds_pms_v1_2/docs/ReservationApi.md#post_reservation_post) | **POST** /postReservation | postReservation -*ReservationApi* | [**put_reservation_note_put**](cloudbeds_pms_v1_2/docs/ReservationApi.md#put_reservation_note_put) | **PUT** /putReservationNote | putReservationNote -*ReservationApi* | [**put_reservation_put**](cloudbeds_pms_v1_2/docs/ReservationApi.md#put_reservation_put) | **PUT** /putReservation | putReservation -*RoomApi* | [**delete_room_block_delete**](cloudbeds_pms_v1_2/docs/RoomApi.md#delete_room_block_delete) | **DELETE** /deleteRoomBlock | deleteRoomBlock -*RoomApi* | [**get_available_room_types_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_available_room_types_get) | **GET** /getAvailableRoomTypes | getAvailableRoomTypes -*RoomApi* | [**get_reservation_room_details_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_reservation_room_details_get) | **GET** /getReservationRoomDetails | getReservationRoomDetails -*RoomApi* | [**get_room_blocks_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_room_blocks_get) | **GET** /getRoomBlocks | getRoomBlocks -*RoomApi* | [**get_room_types_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_room_types_get) | **GET** /getRoomTypes | getRoomTypes -*RoomApi* | [**get_rooms_fees_and_taxes_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_rooms_fees_and_taxes_get) | **GET** /getRoomsFeesAndTaxes | getRoomsFeesAndTaxes -*RoomApi* | [**get_rooms_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_rooms_get) | **GET** /getRooms | getRooms -*RoomApi* | [**get_rooms_unassigned_get**](cloudbeds_pms_v1_2/docs/RoomApi.md#get_rooms_unassigned_get) | **GET** /getRoomsUnassigned | getRoomsUnassigned -*RoomApi* | [**post_room_assign_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_assign_post) | **POST** /postRoomAssign | postRoomAssign -*RoomApi* | [**post_room_block_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_block_post) | **POST** /postRoomBlock | postRoomBlock -*RoomApi* | [**post_room_check_in_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_check_in_post) | **POST** /postRoomCheckIn | postRoomCheckIn -*RoomApi* | [**post_room_check_out_post**](cloudbeds_pms_v1_2/docs/RoomApi.md#post_room_check_out_post) | **POST** /postRoomCheckOut | postRoomCheckOut -*RoomApi* | [**put_room_block_put**](cloudbeds_pms_v1_2/docs/RoomApi.md#put_room_block_put) | **PUT** /putRoomBlock | putRoomBlock -*TaxesAndFeesApi* | [**get_taxes_and_fees_get**](cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md#get_taxes_and_fees_get) | **GET** /getTaxesAndFees | getTaxesAndFees -*UserApi* | [**get_users_get**](cloudbeds_pms_v1_2/docs/UserApi.md#get_users_get) | **GET** /getUsers | getUsers +*AdjustmentApi* | [**delete_adjustment_delete**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment +*AdjustmentApi* | [**get_adjustment_get**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment +*AdjustmentApi* | [**get_adjustments_get**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments +*AdjustmentApi* | [**post_adjustment_post**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment +*AllotmentBlocksApi* | [**create_allotment_block_notes_post**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#create_allotment_block_notes_post) | **POST** /createAllotmentBlockNotes | createAllotmentBlockNotes +*AllotmentBlocksApi* | [**create_allotment_block_post**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#create_allotment_block_post) | **POST** /createAllotmentBlock | createAllotmentBlock +*AllotmentBlocksApi* | [**delete_allotment_block_post**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#delete_allotment_block_post) | **POST** /deleteAllotmentBlock | deleteAllotmentBlock +*AllotmentBlocksApi* | [**get_allotment_blocks_get**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#get_allotment_blocks_get) | **GET** /getAllotmentBlocks | getAllotmentBlocks +*AllotmentBlocksApi* | [**list_allotment_block_notes_get**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#list_allotment_block_notes_get) | **GET** /listAllotmentBlockNotes | listAllotmentBlockNotes +*AllotmentBlocksApi* | [**update_allotment_block_notes_post**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#update_allotment_block_notes_post) | **POST** /updateAllotmentBlockNotes | updateAllotmentBlockNotes +*AllotmentBlocksApi* | [**update_allotment_block_post**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#update_allotment_block_post) | **POST** /updateAllotmentBlock | updateAllotmentBlock +*AppSettingsApi* | [**delete_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#delete_app_property_settings_post) | **POST** /deleteAppPropertySettings | deleteAppPropertySettings +*AppSettingsApi* | [**get_app_property_settings_get**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#get_app_property_settings_get) | **GET** /getAppPropertySettings | getAppPropertySettings +*AppSettingsApi* | [**post_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#post_app_property_settings_post) | **POST** /postAppPropertySettings | postAppPropertySettings +*AppSettingsApi* | [**post_bulk_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#post_bulk_app_property_settings_post) | **POST** /postBulkAppPropertySettings | postBulkAppPropertySettings +*AppSettingsApi* | [**put_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#put_app_property_settings_post) | **POST** /putAppPropertySettings | putAppPropertySettings +*AuthenticationApi* | [**access_token_check_post**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#access_token_check_post) | **POST** /access_token_check | access_token_check +*AuthenticationApi* | [**access_token_post**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#access_token_post) | **POST** /access_token | access_token +*AuthenticationApi* | [**oauth_metadata_get**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#oauth_metadata_get) | **GET** /oauth/metadata | metadata +*AuthenticationApi* | [**userinfo_get**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#userinfo_get) | **GET** /userinfo | userinfo +*BetaApi* | [**get_async_api_job_get**](cloudbeds_pms_v1_3/docs/BetaApi.md#get_async_api_job_get) | **GET** /getAsyncApiJob | getAsyncApiJob +*CRMApi* | [**crm_cache_remove_post**](cloudbeds_pms_v1_3/docs/CRMApi.md#crm_cache_remove_post) | **POST** /crm/cache_remove | PostCRMCacheRemove +*CRMApi* | [**crm_cache_update_post**](cloudbeds_pms_v1_3/docs/CRMApi.md#crm_cache_update_post) | **POST** /crm/cache_update | PostCRMCacheUpdate +*CurrencyApi* | [**get_currency_settings_get**](cloudbeds_pms_v1_3/docs/CurrencyApi.md#get_currency_settings_get) | **GET** /getCurrencySettings | getCurrencySettings +*CustomFieldsApi* | [**get_custom_fields_get**](cloudbeds_pms_v1_3/docs/CustomFieldsApi.md#get_custom_fields_get) | **GET** /getCustomFields | getCustomFields +*CustomFieldsApi* | [**post_custom_field_post**](cloudbeds_pms_v1_3/docs/CustomFieldsApi.md#post_custom_field_post) | **POST** /postCustomField | postCustomField +*DashboardApi* | [**get_dashboard_get**](cloudbeds_pms_v1_3/docs/DashboardApi.md#get_dashboard_get) | **GET** /getDashboard | getDashboard +*EmailsApi* | [**get_email_schedule_get**](cloudbeds_pms_v1_3/docs/EmailsApi.md#get_email_schedule_get) | **GET** /getEmailSchedule | getEmailSchedule +*EmailsApi* | [**get_email_templates_get**](cloudbeds_pms_v1_3/docs/EmailsApi.md#get_email_templates_get) | **GET** /getEmailTemplates | getEmailTemplates +*EmailsApi* | [**post_email_schedule_post**](cloudbeds_pms_v1_3/docs/EmailsApi.md#post_email_schedule_post) | **POST** /postEmailSchedule | postEmailSchedule +*EmailsApi* | [**post_email_template_post**](cloudbeds_pms_v1_3/docs/EmailsApi.md#post_email_template_post) | **POST** /postEmailTemplate | postEmailTemplate +*GroupsApi* | [**get_group_notes_get**](cloudbeds_pms_v1_3/docs/GroupsApi.md#get_group_notes_get) | **GET** /getGroupNotes | getGroupNotes +*GroupsApi* | [**get_groups_get**](cloudbeds_pms_v1_3/docs/GroupsApi.md#get_groups_get) | **GET** /getGroups | getGroups +*GroupsApi* | [**patch_group_post**](cloudbeds_pms_v1_3/docs/GroupsApi.md#patch_group_post) | **POST** /patchGroup | patchGroup +*GroupsApi* | [**post_group_note_post**](cloudbeds_pms_v1_3/docs/GroupsApi.md#post_group_note_post) | **POST** /postGroupNote | postGroupNote +*GroupsApi* | [**put_group_post**](cloudbeds_pms_v1_3/docs/GroupsApi.md#put_group_post) | **POST** /putGroup | putGroup +*GuestApi* | [**delete_guest_note_delete**](cloudbeds_pms_v1_3/docs/GuestApi.md#delete_guest_note_delete) | **DELETE** /deleteGuestNote | deleteGuestNote +*GuestApi* | [**get_guest_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guest_get) | **GET** /getGuest | getGuest +*GuestApi* | [**get_guest_list_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guest_list_get) | **GET** /getGuestList | getGuestList +*GuestApi* | [**get_guest_notes_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guest_notes_get) | **GET** /getGuestNotes | getGuestNotes +*GuestApi* | [**get_guests_by_filter_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guests_by_filter_get) | **GET** /getGuestsByFilter | getGuestsByFilter +*GuestApi* | [**get_guests_by_status_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guests_by_status_get) | **GET** /getGuestsByStatus | getGuestsByStatus +*GuestApi* | [**get_guests_modified_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guests_modified_get) | **GET** /getGuestsModified | getGuestsModified +*GuestApi* | [**post_guest_credit_card_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_credit_card_post) | **POST** /postGuestCreditCard | postGuestCreditCard +*GuestApi* | [**post_guest_document_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_document_post) | **POST** /postGuestDocument | postGuestDocument +*GuestApi* | [**post_guest_note_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_note_post) | **POST** /postGuestNote | postGuestNote +*GuestApi* | [**post_guest_photo_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_photo_post) | **POST** /postGuestPhoto | postGuestPhoto +*GuestApi* | [**post_guest_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_post) | **POST** /postGuest | postGuest +*GuestApi* | [**post_guests_to_room_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guests_to_room_post) | **POST** /postGuestsToRoom | postGuestsToRoom +*GuestApi* | [**put_guest_note_put**](cloudbeds_pms_v1_3/docs/GuestApi.md#put_guest_note_put) | **PUT** /putGuestNote | putGuestNote +*GuestApi* | [**put_guest_put**](cloudbeds_pms_v1_3/docs/GuestApi.md#put_guest_put) | **PUT** /putGuest | putGuest +*HotelApi* | [**get_files_get**](cloudbeds_pms_v1_3/docs/HotelApi.md#get_files_get) | **GET** /getFiles | getFiles +*HotelApi* | [**get_hotel_details_get**](cloudbeds_pms_v1_3/docs/HotelApi.md#get_hotel_details_get) | **GET** /getHotelDetails | getHotelDetails +*HotelApi* | [**get_hotels_get**](cloudbeds_pms_v1_3/docs/HotelApi.md#get_hotels_get) | **GET** /getHotels | getHotels +*HotelApi* | [**post_file_post**](cloudbeds_pms_v1_3/docs/HotelApi.md#post_file_post) | **POST** /postFile | postFile +*HouseAccountApi* | [**get_house_account_details_get**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails +*HouseAccountApi* | [**get_house_account_list_get**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList +*HouseAccountApi* | [**post_new_house_account_post**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount +*HouseAccountApi* | [**put_house_account_status_put**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus +*HousekeepingApi* | [**get_housekeepers_get**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#get_housekeepers_get) | **GET** /getHousekeepers | getHousekeepers +*HousekeepingApi* | [**get_housekeeping_status_get**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#get_housekeeping_status_get) | **GET** /getHousekeepingStatus | getHousekeepingStatus +*HousekeepingApi* | [**post_housekeeper_post**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#post_housekeeper_post) | **POST** /postHousekeeper | postHousekeeper +*HousekeepingApi* | [**post_housekeeping_assignment_post**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#post_housekeeping_assignment_post) | **POST** /postHousekeepingAssignment | postHousekeepingAssignment +*HousekeepingApi* | [**post_housekeeping_status_post**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#post_housekeeping_status_post) | **POST** /postHousekeepingStatus | postHousekeepingStatus +*HousekeepingApi* | [**put_housekeeper_put**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#put_housekeeper_put) | **PUT** /putHousekeeper | putHousekeeper +*ImportApi* | [**import_dummy_reservations_get**](cloudbeds_pms_v1_3/docs/ImportApi.md#import_dummy_reservations_get) | **GET** /import/dummyReservations | GetImportDummyReservations +*ImportApi* | [**import_tours_get**](cloudbeds_pms_v1_3/docs/ImportApi.md#import_tours_get) | **GET** /import/tours | GetImportTours +*IntegrationApi* | [**delete_webhook_delete**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#delete_webhook_delete) | **DELETE** /deleteWebhook | deleteWebhook +*IntegrationApi* | [**get_app_settings_get**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#get_app_settings_get) | **GET** /getAppSettings | getAppSettings +*IntegrationApi* | [**get_app_state_get**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#get_app_state_get) | **GET** /getAppState | getAppState +*IntegrationApi* | [**get_webhooks_get**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#get_webhooks_get) | **GET** /getWebhooks | getWebhooks +*IntegrationApi* | [**post_app_error_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_error_post) | **POST** /postAppError | postAppError +*IntegrationApi* | [**post_app_settings_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_settings_post) | **POST** /postAppSettings | postAppSettings +*IntegrationApi* | [**post_app_state_internal_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_state_internal_post) | **POST** /postAppStateInternal | postAppStateInternal +*IntegrationApi* | [**post_app_state_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_state_post) | **POST** /postAppState | postAppState +*IntegrationApi* | [**post_government_receipt_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_government_receipt_post) | **POST** /postGovernmentReceipt | postGovernmentReceipt +*IntegrationApi* | [**post_webhook_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_webhook_post) | **POST** /postWebhook | postWebhook +*InvoicesApi* | [**get_invoice_get**](cloudbeds_pms_v1_3/docs/InvoicesApi.md#get_invoice_get) | **GET** /getInvoice | getInvoice +*InvoicesApi* | [**invoice_get**](cloudbeds_pms_v1_3/docs/InvoicesApi.md#invoice_get) | **GET** /invoice | invoice +*InvoicesApi* | [**patch_invoice_post**](cloudbeds_pms_v1_3/docs/InvoicesApi.md#patch_invoice_post) | **POST** /patchInvoice | patchInvoice +*ItemApi* | [**append_custom_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#append_custom_item_post) | **POST** /appendCustomItem | appendCustomItem +*ItemApi* | [**delete_item_from_reservation_delete**](cloudbeds_pms_v1_3/docs/ItemApi.md#delete_item_from_reservation_delete) | **DELETE** /deleteItemFromReservation | deleteItemFromReservation +*ItemApi* | [**get_item_categories_get**](cloudbeds_pms_v1_3/docs/ItemApi.md#get_item_categories_get) | **GET** /getItemCategories | getItemCategories +*ItemApi* | [**get_item_get**](cloudbeds_pms_v1_3/docs/ItemApi.md#get_item_get) | **GET** /getItem | getItem +*ItemApi* | [**get_items_get**](cloudbeds_pms_v1_3/docs/ItemApi.md#get_items_get) | **GET** /getItems | getItems +*ItemApi* | [**post_custom_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_custom_item_post) | **POST** /postCustomItem | postCustomItem +*ItemApi* | [**post_item_category_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_item_category_post) | **POST** /postItemCategory | postItemCategory +*ItemApi* | [**post_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_item_post) | **POST** /postItem | postItem +*ItemApi* | [**post_item_to_reservation_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_item_to_reservation_post) | **POST** /postItemToReservation | postItemToReservation +*ItemApi* | [**post_items_to_inventory_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_items_to_inventory_post) | **POST** /postItemsToInventory | postItemsToInventory +*ItemApi* | [**post_void_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_void_item_post) | **POST** /postVoidItem | postVoidItem +*ItemApi* | [**put_item_to_inventory_put**](cloudbeds_pms_v1_3/docs/ItemApi.md#put_item_to_inventory_put) | **PUT** /putItemToInventory | putItemToInventory +*PackageApi* | [**get_package_names_get**](cloudbeds_pms_v1_3/docs/PackageApi.md#get_package_names_get) | **GET** /getPackageNames | getPackageNames +*PackageApi* | [**get_packages_get**](cloudbeds_pms_v1_3/docs/PackageApi.md#get_packages_get) | **GET** /getPackages | getPackages +*PaymentApi* | [**get_payment_methods_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods +*PaymentApi* | [**get_payments_capabilities_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities +*PaymentApi* | [**get_payments_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments +*PaymentApi* | [**get_pending_transactions_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_pending_transactions_get) | **GET** /getPendingTransactions | getPendingTransactions +*PaymentApi* | [**get_transactions_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions +*PaymentApi* | [**post_charge_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge +*PaymentApi* | [**post_credit_card_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard +*PaymentApi* | [**post_custom_payment_method_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod +*PaymentApi* | [**post_payment_cash_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_payment_cash_post) | **POST** /postPaymentCash | postPaymentCash +*PaymentApi* | [**post_payment_credit_card_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_payment_credit_card_post) | **POST** /postPaymentCreditCard | postPaymentCreditCard +*PaymentApi* | [**post_payment_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment +*PaymentApi* | [**post_void_payment_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment +*RateApi* | [**get_rate_get**](cloudbeds_pms_v1_3/docs/RateApi.md#get_rate_get) | **GET** /getRate | getRate +*RateApi* | [**get_rate_jobs_get**](cloudbeds_pms_v1_3/docs/RateApi.md#get_rate_jobs_get) | **GET** /getRateJobs | getRateJobs +*RateApi* | [**get_rate_plans_get**](cloudbeds_pms_v1_3/docs/RateApi.md#get_rate_plans_get) | **GET** /getRatePlans | getRatePlans +*RateApi* | [**patch_rate_post**](cloudbeds_pms_v1_3/docs/RateApi.md#patch_rate_post) | **POST** /patchRate | patchRate +*RateApi* | [**put_rate_put**](cloudbeds_pms_v1_3/docs/RateApi.md#put_rate_put) | **PUT** /putRate | putRate +*ReservationApi* | [**delete_reservation_note_delete**](cloudbeds_pms_v1_3/docs/ReservationApi.md#delete_reservation_note_delete) | **DELETE** /deleteReservationNote | deleteReservationNote +*ReservationApi* | [**get_reservation_arrivals_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_arrivals_get) | **GET** /getReservationArrivals | getReservationArrivals +*ReservationApi* | [**get_reservation_assignments_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_assignments_get) | **GET** /getReservationAssignments | getReservationAssignments +*ReservationApi* | [**get_reservation_departures_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_departures_get) | **GET** /getReservationDepartures | getReservationDepartures +*ReservationApi* | [**get_reservation_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_get) | **GET** /getReservation | getReservation +*ReservationApi* | [**get_reservation_in_house_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_in_house_get) | **GET** /getReservationInHouse | getReservationInHouse +*ReservationApi* | [**get_reservation_invoice_information_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_invoice_information_get) | **GET** /getReservationInvoiceInformation | getReservationInvoiceInformation +*ReservationApi* | [**get_reservation_notes_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_notes_get) | **GET** /getReservationNotes | getReservationNotes +*ReservationApi* | [**get_reservations_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservations_get) | **GET** /getReservations | getReservations +*ReservationApi* | [**get_reservations_with_rate_details_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservations_with_rate_details_get) | **GET** /getReservationsWithRateDetails | getReservationsWithRateDetails +*ReservationApi* | [**get_sources_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_sources_get) | **GET** /getSources | getSources +*ReservationApi* | [**post_reservation_check_in_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_check_in_post) | **POST** /postReservationCheckIn | postReservationCheckIn +*ReservationApi* | [**post_reservation_check_out_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_check_out_post) | **POST** /postReservationCheckOut | postReservationCheckOut +*ReservationApi* | [**post_reservation_document_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_document_post) | **POST** /postReservationDocument | postReservationDocument +*ReservationApi* | [**post_reservation_note_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_note_post) | **POST** /postReservationNote | postReservationNote +*ReservationApi* | [**post_reservation_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_post) | **POST** /postReservation | postReservation +*ReservationApi* | [**put_reservation_details_put**](cloudbeds_pms_v1_3/docs/ReservationApi.md#put_reservation_details_put) | **PUT** /putReservationDetails | putReservationDetails +*ReservationApi* | [**put_reservation_note_put**](cloudbeds_pms_v1_3/docs/ReservationApi.md#put_reservation_note_put) | **PUT** /putReservationNote | putReservationNote +*ReservationApi* | [**put_reservation_put**](cloudbeds_pms_v1_3/docs/ReservationApi.md#put_reservation_put) | **PUT** /putReservation | putReservation +*RoomApi* | [**delete_room_block_delete**](cloudbeds_pms_v1_3/docs/RoomApi.md#delete_room_block_delete) | **DELETE** /deleteRoomBlock | deleteRoomBlock +*RoomApi* | [**get_available_room_types_get**](cloudbeds_pms_v1_3/docs/RoomApi.md#get_available_room_types_get) | **GET** /getAvailableRoomTypes | getAvailableRoomTypes +*RoomApi* | [**get_reservation_room_details_get**](cloudbeds_pms_v1_3/docs/RoomApi.md#get_reservation_room_details_get) | **GET** /getReservationRoomDetails | getReservationRoomDetails +*RoomApi* | [**get_room_blocks_get**](cloudbeds_pms_v1_3/docs/RoomApi.md#get_room_blocks_get) | **GET** /getRoomBlocks | getRoomBlocks +*RoomApi* | [**get_room_types_get**](cloudbeds_pms_v1_3/docs/RoomApi.md#get_room_types_get) | **GET** /getRoomTypes | getRoomTypes +*RoomApi* | [**get_rooms_fees_and_taxes_get**](cloudbeds_pms_v1_3/docs/RoomApi.md#get_rooms_fees_and_taxes_get) | **GET** /getRoomsFeesAndTaxes | getRoomsFeesAndTaxes +*RoomApi* | [**get_rooms_get**](cloudbeds_pms_v1_3/docs/RoomApi.md#get_rooms_get) | **GET** /getRooms | getRooms +*RoomApi* | [**get_rooms_unassigned_get**](cloudbeds_pms_v1_3/docs/RoomApi.md#get_rooms_unassigned_get) | **GET** /getRoomsUnassigned | getRoomsUnassigned +*RoomApi* | [**post_room_assign_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_assign_post) | **POST** /postRoomAssign | postRoomAssign +*RoomApi* | [**post_room_block_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_block_post) | **POST** /postRoomBlock | postRoomBlock +*RoomApi* | [**post_room_check_in_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_check_in_post) | **POST** /postRoomCheckIn | postRoomCheckIn +*RoomApi* | [**post_room_check_out_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_check_out_post) | **POST** /postRoomCheckOut | postRoomCheckOut +*RoomApi* | [**post_room_type_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_type_post) | **POST** /postRoomType | postRoomType +*RoomApi* | [**put_room_block_put**](cloudbeds_pms_v1_3/docs/RoomApi.md#put_room_block_put) | **PUT** /putRoomBlock | putRoomBlock +*RoomsApi* | [**get_hotel_room_types_get**](cloudbeds_pms_v1_3/docs/RoomsApi.md#get_hotel_room_types_get) | **GET** /getHotelRoomTypes | getHotelRoomTypes +*TaxesAndFeesApi* | [**get_taxes_and_fees_get**](cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md#get_taxes_and_fees_get) | **GET** /getTaxesAndFees | getTaxesAndFees +*UserApi* | [**get_users_get**](cloudbeds_pms_v1_3/docs/UserApi.md#get_users_get) | **GET** /getUsers | getUsers ## Documentation For Models - - [DeleteAdjustmentResponse](cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md) - - [DeleteGuestNoteResponse](cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md) - - [DeleteReservationNoteResponse](cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md) - - [DeleteRoomBlockResponse](cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md) - - [DeleteWebhookResponse](cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md) - - [GetAllotmentBlocksResponse](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md) - - [GetAllotmentBlocksResponseDataInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md) - - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md) - - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md) - - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md) - - [GetAllotmentBlocksResponseDataInnerAutoReleaseInner](cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md) - - [GetAppPropertySettingsResponse](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md) - - [GetAppPropertySettingsResponseData](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md) - - [GetAppPropertySettingsResponseDataOneOf](cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md) - - [GetAppSettingsResponse](cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md) - - [GetAppSettingsResponseData](cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md) - - [GetAppStateResponse](cloudbeds_pms_v1_2/docs/GetAppStateResponse.md) - - [GetAppStateResponseData](cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md) - - [GetAvailableRoomTypesResponse](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md) - - [GetAvailableRoomTypesResponseDataInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md) - - [GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md) - - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md) - - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md) - - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner](cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md) - - [GetCurrencySettingsResponse](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md) - - [GetCurrencySettingsResponseData](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md) - - [GetCurrencySettingsResponseDataFormat](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md) - - [GetCurrencySettingsResponseDataRates](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md) - - [GetCurrencySettingsResponseDataRatesFixedInner](cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md) - - [GetCustomFieldsResponse](cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md) - - [GetCustomFieldsResponseDataInner](cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md) - - [GetDashboardResponse](cloudbeds_pms_v1_2/docs/GetDashboardResponse.md) - - [GetDashboardResponseData](cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md) - - [GetEmailScheduleResponse](cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md) - - [GetEmailScheduleResponseDataInner](cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md) - - [GetEmailTemplatesResponse](cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md) - - [GetEmailTemplatesResponseDataInner](cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md) - - [GetFilesResponse](cloudbeds_pms_v1_2/docs/GetFilesResponse.md) - - [GetFilesResponseDataInner](cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md) - - [GetGroupNotesResponse](cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md) - - [GetGroupNotesResponseData](cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md) - - [GetGroupsResponse](cloudbeds_pms_v1_2/docs/GetGroupsResponse.md) - - [GetGroupsResponseDataInner](cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md) - - [GetGuestListResponse](cloudbeds_pms_v1_2/docs/GetGuestListResponse.md) - - [GetGuestListResponseDataValue](cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md) - - [GetGuestListResponseDataValueGuestNotesInner](cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md) - - [GetGuestNotesResponse](cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md) - - [GetGuestNotesResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md) - - [GetGuestResponse](cloudbeds_pms_v1_2/docs/GetGuestResponse.md) - - [GetGuestResponseData](cloudbeds_pms_v1_2/docs/GetGuestResponseData.md) - - [GetGuestResponseDataBirthDate](cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md) - - [GetGuestResponseDataCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md) - - [GetGuestResponseDataDocumentExpirationDate](cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md) - - [GetGuestResponseDataDocumentIssueDate](cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md) - - [GetGuestsByFilterResponse](cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md) - - [GetGuestsByFilterResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md) - - [GetGuestsByStatusResponse](cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md) - - [GetGuestsByStatusResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md) - - [GetGuestsModifiedResponse](cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md) - - [GetGuestsModifiedResponseDataInner](cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md) - - [GetGuestsModifiedResponseDataInnerCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) - - [GetHotelDetailsResponse](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md) - - [GetHotelDetailsResponseData](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md) - - [GetHotelDetailsResponseDataPropertyAddress](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md) - - [GetHotelDetailsResponseDataPropertyCurrency](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md) - - [GetHotelDetailsResponseDataPropertyImageInner](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md) - - [GetHotelDetailsResponseDataPropertyPolicy](cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md) - - [GetHotelsResponse](cloudbeds_pms_v1_2/docs/GetHotelsResponse.md) - - [GetHotelsResponseDataInner](cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md) - - [GetHotelsResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md) - - [GetHouseAccountListResponse](cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md) - - [GetHouseAccountListResponseDataInner](cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md) - - [GetHousekeepersResponse](cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md) - - [GetHousekeepersResponseDataInner](cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md) - - [GetHousekeepingStatusResponse](cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md) - - [GetHousekeepingStatusResponseDataInner](cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md) - - [GetInvoiceResponse](cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md) - - [GetInvoiceResponseData](cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md) - - [GetInvoiceResponseDataBilledTo](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md) - - [GetInvoiceResponseDataItemsInner](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md) - - [GetInvoiceResponseDataItemsInnerFeesInner](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md) - - [GetInvoiceResponseDataItemsInnerTaxesInner](cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md) - - [GetItemCategoriesResponse](cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md) - - [GetItemCategoriesResponseDataInner](cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md) - - [GetItemResponse](cloudbeds_pms_v1_2/docs/GetItemResponse.md) - - [GetItemResponseData](cloudbeds_pms_v1_2/docs/GetItemResponseData.md) - - [GetItemResponseDataFeesInner](cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md) - - [GetItemResponseDataTaxesInner](cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md) - - [GetItemsResponse](cloudbeds_pms_v1_2/docs/GetItemsResponse.md) - - [GetItemsResponseDataInner](cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md) - - [GetListAllotmentBlockNotesResponse](cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md) - - [GetListAllotmentBlockNotesResponseDataInner](cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md) - - [GetMetadataResponse](cloudbeds_pms_v1_2/docs/GetMetadataResponse.md) - - [GetMetadataResponseData](cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md) - - [GetMetadataResponseDataApi](cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md) - - [GetPackagesResponse](cloudbeds_pms_v1_2/docs/GetPackagesResponse.md) - - [GetPackagesResponseData](cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md) - - [GetPaymentMethodsResponse](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md) - - [GetPaymentMethodsResponseData](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md) - - [GetPaymentMethodsResponseDataGatewayInner](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md) - - [GetPaymentMethodsResponseDataMethodsInner](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md) - - [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner](cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) - - [GetPaymentsCapabilitiesResponse](cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md) - - [GetPaymentsCapabilitiesResponseDataInner](cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md) - - [GetRateJobsResponse](cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md) - - [GetRateJobsResponseDataInner](cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md) - - [GetRateJobsResponseDataInnerUpdatesInner](cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md) - - [GetRatePlansResponse](cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md) - - [GetRatePlansResponseDataInner](cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md) - - [GetRatePlansResponseDataInnerAddOnsInner](cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md) - - [GetRatePlansResponseDataInnerRoomRateDetailedInner](cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md) - - [GetRateResponse](cloudbeds_pms_v1_2/docs/GetRateResponse.md) - - [GetRateResponseData](cloudbeds_pms_v1_2/docs/GetRateResponseData.md) - - [GetRateResponseDataRoomRateDetailedInner](cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md) - - [GetReservationAssignmentsResponse](cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md) - - [GetReservationAssignmentsResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md) - - [GetReservationAssignmentsResponseDataInnerAssignedInner](cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md) - - [GetReservationInvoiceInformationResponse](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md) - - [GetReservationInvoiceInformationResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md) - - [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) - - [GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner](cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) - - [GetReservationNotesResponse](cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md) - - [GetReservationNotesResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md) - - [GetReservationResponse](cloudbeds_pms_v1_2/docs/GetReservationResponse.md) - - [GetReservationResponseData](cloudbeds_pms_v1_2/docs/GetReservationResponseData.md) - - [GetReservationResponseDataAssignedInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md) - - [GetReservationResponseDataAssignedInnerDailyRatesInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md) - - [GetReservationResponseDataBalanceDetailedInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md) - - [GetReservationResponseDataCardsOnFileInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md) - - [GetReservationResponseDataGroupInventoryInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md) - - [GetReservationResponseDataGuestListValue](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md) - - [GetReservationResponseDataGuestListValueCustomFieldsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md) - - [GetReservationResponseDataGuestListValueRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md) - - [GetReservationResponseDataGuestListValueUnassignedRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md) - - [GetReservationResponseDataUnassignedInner](cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md) - - [GetReservationRoomDetailsResponse](cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md) - - [GetReservationRoomDetailsResponseData](cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md) - - [GetReservationRoomDetailsResponseDataGuestsInner](cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md) - - [GetReservationsResponse](cloudbeds_pms_v1_2/docs/GetReservationsResponse.md) - - [GetReservationsResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md) - - [GetReservationsResponseDataInnerGuestListValue](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md) - - [GetReservationsResponseDataInnerGuestListValueRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md) - - [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) - - [GetReservationsResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md) - - [GetReservationsWithRateDetailsResponse](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md) - - [GetReservationsWithRateDetailsResponseDataInner](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md) - - [GetReservationsWithRateDetailsResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) - - [GetReservationsWithRateDetailsResponseDataInnerSourceInner](cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md) - - [GetRoomBlocksResponse](cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md) - - [GetRoomBlocksResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md) - - [GetRoomTypesResponse](cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md) - - [GetRoomTypesResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md) - - [GetRoomsFeesAndTaxesResponse](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md) - - [GetRoomsFeesAndTaxesResponseData](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md) - - [GetRoomsFeesAndTaxesResponseDataFeesInner](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md) - - [GetRoomsFeesAndTaxesResponseDataTaxesInner](cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md) - - [GetRoomsResponse](cloudbeds_pms_v1_2/docs/GetRoomsResponse.md) - - [GetRoomsResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md) - - [GetRoomsResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md) - - [GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner](cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md) - - [GetRoomsUnassignedResponse](cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md) - - [GetRoomsUnassignedResponseDataInner](cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md) - - [GetRoomsUnassignedResponseDataInnerRoomsInner](cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md) - - [GetSourcesResponse](cloudbeds_pms_v1_2/docs/GetSourcesResponse.md) - - [GetSourcesResponseDataInner](cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md) - - [GetSourcesResponseDataInnerFeesInner](cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md) - - [GetSourcesResponseDataInnerTaxesInner](cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md) - - [GetTaxesAndFeesResponse](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md) - - [GetTaxesAndFeesResponseDataInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md) - - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) - - [GetTaxesAndFeesResponseDataInnerDateRangesInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md) - - [GetTaxesAndFeesResponseDataInnerRoomTypesInner](cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) - - [GetUserinfoResponse](cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md) - - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md) - - [GetUsersResponse](cloudbeds_pms_v1_2/docs/GetUsersResponse.md) - - [GetUsersResponseDataInner](cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md) - - [GetUsersResponseDataInnerUserRole](cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md) - - [GetWebhooksResponse](cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md) - - [GetWebhooksResponseDataInner](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md) - - [GetWebhooksResponseDataInnerEvent](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md) - - [GetWebhooksResponseDataInnerKey](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md) - - [GetWebhooksResponseDataInnerOwner](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md) - - [GetWebhooksResponseDataInnerSubscriptionData](cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md) - - [PostAccessTokenResponse](cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md) - - [PostAccessTokenResponseResourcesInner](cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md) - - [PostAdjustmentResponse](cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md) - - [PostAdjustmentResponseData](cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md) - - [PostAppErrorResponse](cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md) - - [PostAppErrorResponseData](cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md) - - [PostAppPropertySettingResponse](cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md) - - [PostAppPropertySettingResponseData](cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md) - - [PostAppStateResponse](cloudbeds_pms_v1_2/docs/PostAppStateResponse.md) - - [PostAppendCustomItemResponse](cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md) - - [PostAppendCustomItemResponseData](cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md) - - [PostCardResponse](cloudbeds_pms_v1_2/docs/PostCardResponse.md) - - [PostCardResponseData](cloudbeds_pms_v1_2/docs/PostCardResponseData.md) - - [PostChargeResponse](cloudbeds_pms_v1_2/docs/PostChargeResponse.md) - - [PostChargeResponseData](cloudbeds_pms_v1_2/docs/PostChargeResponseData.md) - - [PostChargeResponseDataNextAction](cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md) - - [PostChargeResponseDataNextActionDetails](cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md) - - [PostCreateAllotmentBlockNotesResponse](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md) - - [PostCreateAllotmentBlockNotesResponseData](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md) - - [PostCreateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md) - - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) - - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) - - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) - - [PostCreateAllotmentBlockRequestAutoRelease](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md) - - [PostCreateAllotmentBlockResponse](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md) - - [PostCreateAllotmentBlockResponseDataInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md) - - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) - - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md) - - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) - - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) - - [PostCreateAllotmentBlockResponseDataInnerAutoRelease](cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md) - - [PostCustomFieldResponse](cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md) - - [PostCustomFieldResponseData](cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md) - - [PostCustomItemRequestItemsInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md) - - [PostCustomItemRequestItemsInnerItemFeesInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md) - - [PostCustomItemRequestItemsInnerItemTaxesInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md) - - [PostCustomItemRequestPaymentsInner](cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md) - - [PostCustomItemResponse](cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md) - - [PostCustomItemResponseData](cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md) - - [PostCustomPaymentMethodResponse](cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md) - - [PostDeleteAllotmentBlockResponse](cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md) - - [PostDeleteAppPropertySettingsResponse](cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md) - - [PostEmailScheduleRequestSchedule](cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md) - - [PostEmailScheduleRequestScheduleReservationEvent](cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md) - - [PostEmailScheduleRequestScheduleReservationStatusChange](cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md) - - [PostEmailScheduleResponse](cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md) - - [PostEmailTemplateRequestBody](cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md) - - [PostEmailTemplateRequestSubject](cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md) - - [PostEmailTemplateResponse](cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md) - - [PostFileResponse](cloudbeds_pms_v1_2/docs/PostFileResponse.md) - - [PostGovernmentReceiptResponse](cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md) - - [PostGroupNoteResponse](cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md) - - [PostGroupNoteResponseDataInner](cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md) - - [PostGuestDocumentResponse](cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md) - - [PostGuestDocumentResponseData](cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md) - - [PostGuestNoteResponse](cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md) - - [PostGuestPhotoResponse](cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md) - - [PostGuestRequestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md) - - [PostGuestResponse](cloudbeds_pms_v1_2/docs/PostGuestResponse.md) - - [PostGuestsToRoomResponse](cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md) - - [PostHousekeeperResponse](cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md) - - [PostHousekeepingAssignmentResponse](cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md) - - [PostHousekeepingStatusResponse](cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md) - - [PostHousekeepingStatusResponseData](cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md) - - [PostItemCategoryResponse](cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md) - - [PostItemRequestPaymentsInner](cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md) - - [PostItemResponse](cloudbeds_pms_v1_2/docs/PostItemResponse.md) - - [PostItemResponseData](cloudbeds_pms_v1_2/docs/PostItemResponseData.md) - - [PostItemsToInventoryRequestItem](cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md) - - [PostItemsToInventoryResponse](cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md) - - [PostItemsToInventoryResponseDataInner](cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md) - - [PostNewHouseAccountResponse](cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md) - - [PostNewHouseAccountResponseData](cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md) - - [PostPatchGroupResponse](cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md) - - [PostPatchGroupResponseDataInner](cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md) - - [PostPatchInvoiceResponse](cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md) - - [PostPatchRateRequestRatesInner](cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md) - - [PostPatchRateRequestRatesInnerInterval](cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md) - - [PostPatchRateResponse](cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md) - - [PostPaymentResponse](cloudbeds_pms_v1_2/docs/PostPaymentResponse.md) - - [PostPutAppPropertySettingsResponse](cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md) - - [PostPutGroupResponse](cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md) - - [PostPutRateRequestRatesInner](cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md) - - [PostPutRateRequestRatesInnerIntervalInner](cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md) - - [PostPutRateResponse](cloudbeds_pms_v1_2/docs/PostPutRateResponse.md) - - [PostReservationDocumentResponse](cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md) - - [PostReservationNoteResponse](cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md) - - [PostReservationRequestAdultsInner](cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md) - - [PostReservationRequestChildrenInner](cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md) - - [PostReservationRequestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md) - - [PostReservationRequestRoomsInner](cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md) - - [PostReservationResponse](cloudbeds_pms_v1_2/docs/PostReservationResponse.md) - - [PostReservationResponseUnassignedInner](cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md) - - [PostRoomAssignResponse](cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md) - - [PostRoomBlockRequestRoomsInner](cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md) - - [PostRoomBlockResponse](cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md) - - [PostRoomBlockResponseRoomsInner](cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md) - - [PostRoomCheckInResponse](cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md) - - [PostRoomCheckOutResponse](cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md) - - [PostUpdateAllotmentBlockNotesResponse](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md) - - [PostUpdateAllotmentBlockNotesResponseData](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md) - - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md) - - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) - - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) - - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) - - [PostUpdateAllotmentBlockRequestAutoRelease](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md) - - [PostUpdateAllotmentBlockResponse](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md) - - [PostUpdateAllotmentBlockResponseDataInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md) - - [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) - - [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) - - [PostVoidItemResponse](cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md) - - [PostVoidPaymentResponse](cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md) - - [PostWebhookResponse](cloudbeds_pms_v1_2/docs/PostWebhookResponse.md) - - [PostWebhookResponseData](cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md) - - [PutGuestNoteResponse](cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md) - - [PutGuestRequestGuestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md) - - [PutGuestResponse](cloudbeds_pms_v1_2/docs/PutGuestResponse.md) - - [PutHouseAccountStatusResponse](cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md) - - [PutHousekeeperResponse](cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md) - - [PutItemToInventoryResponse](cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md) - - [PutReservationNoteResponse](cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md) - - [PutReservationRequestCustomFieldsInner](cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md) - - [PutReservationRequestRoomsInner](cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md) - - [PutReservationResponse](cloudbeds_pms_v1_2/docs/PutReservationResponse.md) - - [PutRoomBlockRequestRoomsInner](cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md) - - [PutRoomBlockResponse](cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md) + - [DeleteAdjustmentResponse](cloudbeds_pms_v1_3/docs/DeleteAdjustmentResponse.md) + - [DeleteGuestNoteResponse](cloudbeds_pms_v1_3/docs/DeleteGuestNoteResponse.md) + - [DeleteItemFromReservationResponse](cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md) + - [DeleteReservationNoteResponse](cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md) + - [DeleteRoomBlockResponse](cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md) + - [DeleteWebhookResponse](cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md) + - [GetAdjustmentResponse](cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md) + - [GetAdjustmentResponseData](cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md) + - [GetAdjustmentsResponse](cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md) + - [GetAdjustmentsResponseData](cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md) + - [GetAllotmentBlocksResponse](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponse.md) + - [GetAllotmentBlocksResponseDataInner](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md) + - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md) + - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md) + - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md) + - [GetAllotmentBlocksResponseDataInnerAutoReleaseInner](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md) + - [GetAppPropertySettingsResponse](cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponse.md) + - [GetAppPropertySettingsResponseData](cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseData.md) + - [GetAppPropertySettingsResponseDataOneOf](cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseDataOneOf.md) + - [GetAppSettingsResponse](cloudbeds_pms_v1_3/docs/GetAppSettingsResponse.md) + - [GetAppSettingsResponseData](cloudbeds_pms_v1_3/docs/GetAppSettingsResponseData.md) + - [GetAppStateResponse](cloudbeds_pms_v1_3/docs/GetAppStateResponse.md) + - [GetAppStateResponseData](cloudbeds_pms_v1_3/docs/GetAppStateResponseData.md) + - [GetAsyncApiJobResponse](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md) + - [GetAsyncApiJobResponseDataInner](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md) + - [GetAsyncApiJobResponseDataInnerUpdatesInner](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md) + - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md) + - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md) + - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) + - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md) + - [GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md) + - [GetAvailableRoomTypesResponse](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponse.md) + - [GetAvailableRoomTypesResponseDataInner](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md) + - [GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md) + - [GetCurrencySettingsResponse](cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponse.md) + - [GetCurrencySettingsResponseData](cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseData.md) + - [GetCurrencySettingsResponseDataFormat](cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataFormat.md) + - [GetCurrencySettingsResponseDataRates](cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRates.md) + - [GetCurrencySettingsResponseDataRatesFixedInner](cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRatesFixedInner.md) + - [GetCustomFieldsResponse](cloudbeds_pms_v1_3/docs/GetCustomFieldsResponse.md) + - [GetCustomFieldsResponseDataInner](cloudbeds_pms_v1_3/docs/GetCustomFieldsResponseDataInner.md) + - [GetDashboardResponse](cloudbeds_pms_v1_3/docs/GetDashboardResponse.md) + - [GetDashboardResponseData](cloudbeds_pms_v1_3/docs/GetDashboardResponseData.md) + - [GetEmailScheduleResponse](cloudbeds_pms_v1_3/docs/GetEmailScheduleResponse.md) + - [GetEmailScheduleResponseDataInner](cloudbeds_pms_v1_3/docs/GetEmailScheduleResponseDataInner.md) + - [GetEmailTemplatesResponse](cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponse.md) + - [GetEmailTemplatesResponseDataInner](cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponseDataInner.md) + - [GetFilesResponse](cloudbeds_pms_v1_3/docs/GetFilesResponse.md) + - [GetFilesResponseDataInner](cloudbeds_pms_v1_3/docs/GetFilesResponseDataInner.md) + - [GetGroupNotesResponse](cloudbeds_pms_v1_3/docs/GetGroupNotesResponse.md) + - [GetGroupNotesResponseData](cloudbeds_pms_v1_3/docs/GetGroupNotesResponseData.md) + - [GetGroupsResponse](cloudbeds_pms_v1_3/docs/GetGroupsResponse.md) + - [GetGroupsResponseDataInner](cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md) + - [GetGuestListResponse](cloudbeds_pms_v1_3/docs/GetGuestListResponse.md) + - [GetGuestListResponseDataValue](cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md) + - [GetGuestListResponseDataValueGuestNotesInner](cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValueGuestNotesInner.md) + - [GetGuestNotesResponse](cloudbeds_pms_v1_3/docs/GetGuestNotesResponse.md) + - [GetGuestNotesResponseDataInner](cloudbeds_pms_v1_3/docs/GetGuestNotesResponseDataInner.md) + - [GetGuestResponse](cloudbeds_pms_v1_3/docs/GetGuestResponse.md) + - [GetGuestResponseData](cloudbeds_pms_v1_3/docs/GetGuestResponseData.md) + - [GetGuestResponseDataBirthDate](cloudbeds_pms_v1_3/docs/GetGuestResponseDataBirthDate.md) + - [GetGuestResponseDataCustomFieldsInner](cloudbeds_pms_v1_3/docs/GetGuestResponseDataCustomFieldsInner.md) + - [GetGuestResponseDataDocumentExpirationDate](cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentExpirationDate.md) + - [GetGuestResponseDataDocumentIssueDate](cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentIssueDate.md) + - [GetGuestsByFilterResponse](cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponse.md) + - [GetGuestsByFilterResponseDataInner](cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponseDataInner.md) + - [GetGuestsByStatusResponse](cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponse.md) + - [GetGuestsByStatusResponseDataInner](cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponseDataInner.md) + - [GetGuestsModifiedResponse](cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponse.md) + - [GetGuestsModifiedResponseDataInner](cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md) + - [GetGuestsModifiedResponseDataInnerCustomFieldsInner](cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) + - [GetHotelDetailsResponse](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponse.md) + - [GetHotelDetailsResponseData](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseData.md) + - [GetHotelDetailsResponseDataPropertyAddress](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyAddress.md) + - [GetHotelDetailsResponseDataPropertyCurrency](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md) + - [GetHotelDetailsResponseDataPropertyImageInner](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyImageInner.md) + - [GetHotelDetailsResponseDataPropertyPolicy](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyPolicy.md) + - [GetHotelRoomTypesResponse](cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md) + - [GetHotelsResponse](cloudbeds_pms_v1_3/docs/GetHotelsResponse.md) + - [GetHotelsResponseDataInner](cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md) + - [GetHotelsResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md) + - [GetHouseAccountDetailsResponse](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md) + - [GetHouseAccountDetailsResponseData](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md) + - [GetHouseAccountDetailsResponseDataRecordsInner](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md) + - [GetHouseAccountDetailsResponseDataTotalInner](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md) + - [GetHouseAccountListResponse](cloudbeds_pms_v1_3/docs/GetHouseAccountListResponse.md) + - [GetHouseAccountListResponseDataInner](cloudbeds_pms_v1_3/docs/GetHouseAccountListResponseDataInner.md) + - [GetHousekeepersResponse](cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md) + - [GetHousekeepersResponseDataInner](cloudbeds_pms_v1_3/docs/GetHousekeepersResponseDataInner.md) + - [GetHousekeepingStatusResponse](cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponse.md) + - [GetHousekeepingStatusResponseDataInner](cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponseDataInner.md) + - [GetImportDummyReservationsResponse](cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md) + - [GetImportToursResponse](cloudbeds_pms_v1_3/docs/GetImportToursResponse.md) + - [GetInvoiceResponse](cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md) + - [GetInvoiceResponseData](cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md) + - [GetInvoiceResponseDataBilledTo](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md) + - [GetInvoiceResponseDataItemsInner](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md) + - [GetInvoiceResponseDataItemsInnerFeesInner](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md) + - [GetInvoiceResponseDataItemsInnerTaxesInner](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md) + - [GetItemCategoriesResponse](cloudbeds_pms_v1_3/docs/GetItemCategoriesResponse.md) + - [GetItemCategoriesResponseDataInner](cloudbeds_pms_v1_3/docs/GetItemCategoriesResponseDataInner.md) + - [GetItemResponse](cloudbeds_pms_v1_3/docs/GetItemResponse.md) + - [GetItemResponseData](cloudbeds_pms_v1_3/docs/GetItemResponseData.md) + - [GetItemResponseDataFeesInner](cloudbeds_pms_v1_3/docs/GetItemResponseDataFeesInner.md) + - [GetItemResponseDataTaxesInner](cloudbeds_pms_v1_3/docs/GetItemResponseDataTaxesInner.md) + - [GetItemsResponse](cloudbeds_pms_v1_3/docs/GetItemsResponse.md) + - [GetItemsResponseDataInner](cloudbeds_pms_v1_3/docs/GetItemsResponseDataInner.md) + - [GetListAllotmentBlockNotesResponse](cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponse.md) + - [GetListAllotmentBlockNotesResponseDataInner](cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponseDataInner.md) + - [GetMetadataResponse](cloudbeds_pms_v1_3/docs/GetMetadataResponse.md) + - [GetMetadataResponseData](cloudbeds_pms_v1_3/docs/GetMetadataResponseData.md) + - [GetMetadataResponseDataApi](cloudbeds_pms_v1_3/docs/GetMetadataResponseDataApi.md) + - [GetPackagesResponse](cloudbeds_pms_v1_3/docs/GetPackagesResponse.md) + - [GetPackagesResponseData](cloudbeds_pms_v1_3/docs/GetPackagesResponseData.md) + - [GetPaymentMethodsResponse](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponse.md) + - [GetPaymentMethodsResponseData](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md) + - [GetPaymentMethodsResponseDataGatewayInner](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md) + - [GetPaymentMethodsResponseDataMethodsInner](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md) + - [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) + - [GetPaymentsCapabilitiesResponse](cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md) + - [GetPaymentsCapabilitiesResponseDataInner](cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponseDataInner.md) + - [GetPaymentsResponse](cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md) + - [GetPaymentsResponseDataInner](cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md) + - [GetPaymentsResponseDataInnerPaymentAllocationInner](cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md) + - [GetPendingTransactionsResponse](cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md) + - [GetPendingTransactionsResponseDataInner](cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md) + - [GetRateJobsResponse](cloudbeds_pms_v1_3/docs/GetRateJobsResponse.md) + - [GetRateJobsResponseDataInner](cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInner.md) + - [GetRateJobsResponseDataInnerUpdatesInner](cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInnerUpdatesInner.md) + - [GetRatePlansResponse](cloudbeds_pms_v1_3/docs/GetRatePlansResponse.md) + - [GetRatePlansResponseDataInner](cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInner.md) + - [GetRatePlansResponseDataInnerAddOnsInner](cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerAddOnsInner.md) + - [GetRatePlansResponseDataInnerRoomRateDetailedInner](cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md) + - [GetRateResponse](cloudbeds_pms_v1_3/docs/GetRateResponse.md) + - [GetRateResponseData](cloudbeds_pms_v1_3/docs/GetRateResponseData.md) + - [GetRateResponseDataRoomRateDetailedInner](cloudbeds_pms_v1_3/docs/GetRateResponseDataRoomRateDetailedInner.md) + - [GetReservationArrivalsResponse](cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md) + - [GetReservationArrivalsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md) + - [GetReservationAssignmentsResponse](cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponse.md) + - [GetReservationAssignmentsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInner.md) + - [GetReservationAssignmentsResponseDataInnerAssignedInner](cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md) + - [GetReservationDeparturesResponse](cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md) + - [GetReservationDeparturesResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md) + - [GetReservationInHouseResponse](cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md) + - [GetReservationInHouseResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md) + - [GetReservationInvoiceInformationResponse](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md) + - [GetReservationInvoiceInformationResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md) + - [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) + - [GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md) + - [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) + - [GetReservationNotesResponse](cloudbeds_pms_v1_3/docs/GetReservationNotesResponse.md) + - [GetReservationNotesResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationNotesResponseDataInner.md) + - [GetReservationResponse](cloudbeds_pms_v1_3/docs/GetReservationResponse.md) + - [GetReservationResponseData](cloudbeds_pms_v1_3/docs/GetReservationResponseData.md) + - [GetReservationResponseDataAssignedInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md) + - [GetReservationResponseDataAssignedInnerDailyRatesInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md) + - [GetReservationResponseDataBalanceDetailedInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md) + - [GetReservationResponseDataCardsOnFileInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataCardsOnFileInner.md) + - [GetReservationResponseDataGroupInventoryInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGroupInventoryInner.md) + - [GetReservationResponseDataGuestListValue](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md) + - [GetReservationResponseDataGuestListValueCustomFieldsInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md) + - [GetReservationResponseDataGuestListValueRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md) + - [GetReservationResponseDataGuestListValueUnassignedRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md) + - [GetReservationResponseDataUnassignedInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md) + - [GetReservationRoomDetailsResponse](cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponse.md) + - [GetReservationRoomDetailsResponseData](cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseData.md) + - [GetReservationRoomDetailsResponseDataGuestsInner](cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseDataGuestsInner.md) + - [GetReservationsResponse](cloudbeds_pms_v1_3/docs/GetReservationsResponse.md) + - [GetReservationsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md) + - [GetReservationsResponseDataInnerGuestListValue](cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md) + - [GetReservationsResponseDataInnerGuestListValueRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md) + - [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) + - [GetReservationsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md) + - [GetReservationsWithRateDetailsResponse](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md) + - [GetReservationsWithRateDetailsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md) + - [GetReservationsWithRateDetailsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) + - [GetReservationsWithRateDetailsResponseDataInnerSourceInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md) + - [GetRoomBlocksResponse](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md) + - [GetRoomBlocksResponseDataInner](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md) + - [GetRoomTypesResponse](cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md) + - [GetRoomTypesResponseDataInner](cloudbeds_pms_v1_3/docs/GetRoomTypesResponseDataInner.md) + - [GetRoomsFeesAndTaxesResponse](cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponse.md) + - [GetRoomsFeesAndTaxesResponseData](cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseData.md) + - [GetRoomsFeesAndTaxesResponseDataFeesInner](cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md) + - [GetRoomsFeesAndTaxesResponseDataTaxesInner](cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md) + - [GetRoomsResponse](cloudbeds_pms_v1_3/docs/GetRoomsResponse.md) + - [GetRoomsResponseDataInner](cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInner.md) + - [GetRoomsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInner.md) + - [GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner](cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md) + - [GetRoomsUnassignedResponse](cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponse.md) + - [GetRoomsUnassignedResponseDataInner](cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInner.md) + - [GetRoomsUnassignedResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md) + - [GetSourcesResponse](cloudbeds_pms_v1_3/docs/GetSourcesResponse.md) + - [GetSourcesResponseDataInner](cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInner.md) + - [GetSourcesResponseDataInnerFeesInner](cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerFeesInner.md) + - [GetSourcesResponseDataInnerTaxesInner](cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md) + - [GetTaxesAndFeesResponse](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md) + - [GetTaxesAndFeesResponseDataInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md) + - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerRoomTypesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) + - [GetTransactionsResponse](cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md) + - [GetTransactionsResponseDataInner](cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md) + - [GetUserinfoResponse](cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md) + - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md) + - [GetUsersResponse](cloudbeds_pms_v1_3/docs/GetUsersResponse.md) + - [GetUsersResponseDataInner](cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md) + - [GetUsersResponseDataInnerUserRole](cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md) + - [GetWebhooksResponse](cloudbeds_pms_v1_3/docs/GetWebhooksResponse.md) + - [GetWebhooksResponseDataInner](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInner.md) + - [GetWebhooksResponseDataInnerEvent](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerEvent.md) + - [GetWebhooksResponseDataInnerKey](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerKey.md) + - [GetWebhooksResponseDataInnerOwner](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerOwner.md) + - [GetWebhooksResponseDataInnerSubscriptionData](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerSubscriptionData.md) + - [PostAccessTokenCheckResponse](cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md) + - [PostAccessTokenResponse](cloudbeds_pms_v1_3/docs/PostAccessTokenResponse.md) + - [PostAccessTokenResponseResourcesInner](cloudbeds_pms_v1_3/docs/PostAccessTokenResponseResourcesInner.md) + - [PostAdjustmentResponse](cloudbeds_pms_v1_3/docs/PostAdjustmentResponse.md) + - [PostAdjustmentResponseData](cloudbeds_pms_v1_3/docs/PostAdjustmentResponseData.md) + - [PostAppErrorResponse](cloudbeds_pms_v1_3/docs/PostAppErrorResponse.md) + - [PostAppErrorResponseData](cloudbeds_pms_v1_3/docs/PostAppErrorResponseData.md) + - [PostAppPropertySettingResponse](cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponse.md) + - [PostAppPropertySettingResponseData](cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponseData.md) + - [PostAppSettingsRequestSettingsInner](cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md) + - [PostAppSettingsResponse](cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md) + - [PostAppStateInternalResponse](cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md) + - [PostAppStateResponse](cloudbeds_pms_v1_3/docs/PostAppStateResponse.md) + - [PostAppendCustomItemResponse](cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponse.md) + - [PostAppendCustomItemResponseData](cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponseData.md) + - [PostBulkAppPropertySettingsResponse](cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md) + - [PostCRMCacheRemoveResponse](cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md) + - [PostCRMCacheUpdateResponse](cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md) + - [PostCardResponse](cloudbeds_pms_v1_3/docs/PostCardResponse.md) + - [PostCardResponseData](cloudbeds_pms_v1_3/docs/PostCardResponseData.md) + - [PostChargeResponse](cloudbeds_pms_v1_3/docs/PostChargeResponse.md) + - [PostChargeResponseData](cloudbeds_pms_v1_3/docs/PostChargeResponseData.md) + - [PostChargeResponseDataNextAction](cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextAction.md) + - [PostChargeResponseDataNextActionDetails](cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextActionDetails.md) + - [PostCreateAllotmentBlockNotesResponse](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponse.md) + - [PostCreateAllotmentBlockNotesResponseData](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponseData.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) + - [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) + - [PostCreateAllotmentBlockRequestAutoRelease](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAutoRelease.md) + - [PostCreateAllotmentBlockResponse](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponse.md) + - [PostCreateAllotmentBlockResponseDataInner](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) + - [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) + - [PostCreateAllotmentBlockResponseDataInnerAutoRelease](cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md) + - [PostCustomFieldResponse](cloudbeds_pms_v1_3/docs/PostCustomFieldResponse.md) + - [PostCustomFieldResponseData](cloudbeds_pms_v1_3/docs/PostCustomFieldResponseData.md) + - [PostCustomItemRequestItemsInner](cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInner.md) + - [PostCustomItemRequestItemsInnerItemFeesInner](cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemFeesInner.md) + - [PostCustomItemRequestItemsInnerItemTaxesInner](cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md) + - [PostCustomItemRequestPaymentsInner](cloudbeds_pms_v1_3/docs/PostCustomItemRequestPaymentsInner.md) + - [PostCustomItemResponse](cloudbeds_pms_v1_3/docs/PostCustomItemResponse.md) + - [PostCustomItemResponseData](cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md) + - [PostCustomPaymentMethodResponse](cloudbeds_pms_v1_3/docs/PostCustomPaymentMethodResponse.md) + - [PostDeleteAllotmentBlockResponse](cloudbeds_pms_v1_3/docs/PostDeleteAllotmentBlockResponse.md) + - [PostDeleteAppPropertySettingsResponse](cloudbeds_pms_v1_3/docs/PostDeleteAppPropertySettingsResponse.md) + - [PostEmailScheduleRequestSchedule](cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestSchedule.md) + - [PostEmailScheduleRequestScheduleReservationEvent](cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationEvent.md) + - [PostEmailScheduleRequestScheduleReservationStatusChange](cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md) + - [PostEmailScheduleResponse](cloudbeds_pms_v1_3/docs/PostEmailScheduleResponse.md) + - [PostEmailTemplateRequestBody](cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestBody.md) + - [PostEmailTemplateRequestSubject](cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestSubject.md) + - [PostEmailTemplateResponse](cloudbeds_pms_v1_3/docs/PostEmailTemplateResponse.md) + - [PostFileResponse](cloudbeds_pms_v1_3/docs/PostFileResponse.md) + - [PostGovernmentReceiptResponse](cloudbeds_pms_v1_3/docs/PostGovernmentReceiptResponse.md) + - [PostGroupNoteResponse](cloudbeds_pms_v1_3/docs/PostGroupNoteResponse.md) + - [PostGroupNoteResponseDataInner](cloudbeds_pms_v1_3/docs/PostGroupNoteResponseDataInner.md) + - [PostGuestCreditCardResponse](cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md) + - [PostGuestDocumentResponse](cloudbeds_pms_v1_3/docs/PostGuestDocumentResponse.md) + - [PostGuestDocumentResponseData](cloudbeds_pms_v1_3/docs/PostGuestDocumentResponseData.md) + - [PostGuestNoteResponse](cloudbeds_pms_v1_3/docs/PostGuestNoteResponse.md) + - [PostGuestPhotoResponse](cloudbeds_pms_v1_3/docs/PostGuestPhotoResponse.md) + - [PostGuestRequestCustomFieldsInner](cloudbeds_pms_v1_3/docs/PostGuestRequestCustomFieldsInner.md) + - [PostGuestResponse](cloudbeds_pms_v1_3/docs/PostGuestResponse.md) + - [PostGuestsToRoomResponse](cloudbeds_pms_v1_3/docs/PostGuestsToRoomResponse.md) + - [PostHousekeeperResponse](cloudbeds_pms_v1_3/docs/PostHousekeeperResponse.md) + - [PostHousekeepingAssignmentResponse](cloudbeds_pms_v1_3/docs/PostHousekeepingAssignmentResponse.md) + - [PostHousekeepingStatusResponse](cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md) + - [PostHousekeepingStatusResponseData](cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md) + - [PostItemCategoryResponse](cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md) + - [PostItemResponse](cloudbeds_pms_v1_3/docs/PostItemResponse.md) + - [PostItemToReservationRequestPaymentsInner](cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md) + - [PostItemToReservationResponse](cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md) + - [PostItemToReservationResponseData](cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md) + - [PostItemsToInventoryRequestItem](cloudbeds_pms_v1_3/docs/PostItemsToInventoryRequestItem.md) + - [PostItemsToInventoryResponse](cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponse.md) + - [PostItemsToInventoryResponseDataInner](cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponseDataInner.md) + - [PostNewHouseAccountResponse](cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponse.md) + - [PostNewHouseAccountResponseData](cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponseData.md) + - [PostPatchGroupResponse](cloudbeds_pms_v1_3/docs/PostPatchGroupResponse.md) + - [PostPatchGroupResponseDataInner](cloudbeds_pms_v1_3/docs/PostPatchGroupResponseDataInner.md) + - [PostPatchInvoiceResponse](cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md) + - [PostPatchRateRequestRatesInner](cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInner.md) + - [PostPatchRateRequestRatesInnerInterval](cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInnerInterval.md) + - [PostPatchRateResponse](cloudbeds_pms_v1_3/docs/PostPatchRateResponse.md) + - [PostPaymentCashResponse](cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md) + - [PostPaymentCreditCardResponse](cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md) + - [PostPaymentResponse](cloudbeds_pms_v1_3/docs/PostPaymentResponse.md) + - [PostPutAppPropertySettingsResponse](cloudbeds_pms_v1_3/docs/PostPutAppPropertySettingsResponse.md) + - [PostPutGroupResponse](cloudbeds_pms_v1_3/docs/PostPutGroupResponse.md) + - [PostPutRateRequest](cloudbeds_pms_v1_3/docs/PostPutRateRequest.md) + - [PostPutRateRequestRatesInner](cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInner.md) + - [PostPutRateRequestRatesInnerIntervalInner](cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInnerIntervalInner.md) + - [PostPutRateResponse](cloudbeds_pms_v1_3/docs/PostPutRateResponse.md) + - [PostReservationCheckInResponse](cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md) + - [PostReservationCheckOutResponse](cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md) + - [PostReservationDocumentResponse](cloudbeds_pms_v1_3/docs/PostReservationDocumentResponse.md) + - [PostReservationNoteResponse](cloudbeds_pms_v1_3/docs/PostReservationNoteResponse.md) + - [PostReservationRequestAdultsInner](cloudbeds_pms_v1_3/docs/PostReservationRequestAdultsInner.md) + - [PostReservationRequestChildrenInner](cloudbeds_pms_v1_3/docs/PostReservationRequestChildrenInner.md) + - [PostReservationRequestCustomFieldsInner](cloudbeds_pms_v1_3/docs/PostReservationRequestCustomFieldsInner.md) + - [PostReservationRequestRoomsInner](cloudbeds_pms_v1_3/docs/PostReservationRequestRoomsInner.md) + - [PostReservationResponse](cloudbeds_pms_v1_3/docs/PostReservationResponse.md) + - [PostReservationResponseUnassignedInner](cloudbeds_pms_v1_3/docs/PostReservationResponseUnassignedInner.md) + - [PostRoomAssignResponse](cloudbeds_pms_v1_3/docs/PostRoomAssignResponse.md) + - [PostRoomBlockRequestRoomsInner](cloudbeds_pms_v1_3/docs/PostRoomBlockRequestRoomsInner.md) + - [PostRoomBlockResponse](cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md) + - [PostRoomBlockResponseRoomsInner](cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md) + - [PostRoomCheckInResponse](cloudbeds_pms_v1_3/docs/PostRoomCheckInResponse.md) + - [PostRoomCheckOutResponse](cloudbeds_pms_v1_3/docs/PostRoomCheckOutResponse.md) + - [PostRoomTypeResponse](cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md) + - [PostRoomTypeResponseData](cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md) + - [PostUpdateAllotmentBlockNotesResponse](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponse.md) + - [PostUpdateAllotmentBlockNotesResponseData](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) + - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) + - [PostUpdateAllotmentBlockRequestAutoRelease](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAutoRelease.md) + - [PostUpdateAllotmentBlockResponse](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponse.md) + - [PostUpdateAllotmentBlockResponseDataInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md) + - [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) + - [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) + - [PostVoidItemResponse](cloudbeds_pms_v1_3/docs/PostVoidItemResponse.md) + - [PostVoidPaymentResponse](cloudbeds_pms_v1_3/docs/PostVoidPaymentResponse.md) + - [PostWebhookResponse](cloudbeds_pms_v1_3/docs/PostWebhookResponse.md) + - [PostWebhookResponseData](cloudbeds_pms_v1_3/docs/PostWebhookResponseData.md) + - [PutGuestNoteResponse](cloudbeds_pms_v1_3/docs/PutGuestNoteResponse.md) + - [PutGuestRequestGuestCustomFieldsInner](cloudbeds_pms_v1_3/docs/PutGuestRequestGuestCustomFieldsInner.md) + - [PutGuestResponse](cloudbeds_pms_v1_3/docs/PutGuestResponse.md) + - [PutHouseAccountStatusResponse](cloudbeds_pms_v1_3/docs/PutHouseAccountStatusResponse.md) + - [PutHousekeeperResponse](cloudbeds_pms_v1_3/docs/PutHousekeeperResponse.md) + - [PutItemToInventoryResponse](cloudbeds_pms_v1_3/docs/PutItemToInventoryResponse.md) + - [PutRateRequestRatesInner](cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md) + - [PutRateRequestRatesInnerIntervalInner](cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md) + - [PutRateResponse](cloudbeds_pms_v1_3/docs/PutRateResponse.md) + - [PutReservationDetailsRequestCustomFieldsInner](cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md) + - [PutReservationDetailsResponse](cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md) + - [PutReservationNoteResponse](cloudbeds_pms_v1_3/docs/PutReservationNoteResponse.md) + - [PutReservationRequestCustomFieldsInner](cloudbeds_pms_v1_3/docs/PutReservationRequestCustomFieldsInner.md) + - [PutReservationRequestRoomsInner](cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md) + - [PutReservationResponse](cloudbeds_pms_v1_3/docs/PutReservationResponse.md) + - [PutRoomBlockRequestRoomsInner](cloudbeds_pms_v1_3/docs/PutRoomBlockRequestRoomsInner.md) + - [PutRoomBlockResponse](cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md) @@ -536,9 +619,12 @@ Authentication schemes defined for the API: - **Flow**: accessCode - **Authorization URL**: - **Scopes**: + - **access_token**: access_token - **delete:adjustment**: delete:adjustment - **delete:appPropertySettings**: delete:appPropertySettings + - **delete:item**: delete:item - **delete:roomblock**: delete:roomblock + - **read:adjustment**: read:adjustment - **read:allotmentBlock**: read:allotmentBlock - **read:appPropertySettings**: read:appPropertySettings - **read:communication**: read:communication diff --git a/VERSION b/VERSION index f0bb29e..3eefcb9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.0 +1.0.0 diff --git a/cloudbeds_pms_v1_2/__init__.py b/cloudbeds_pms_v1_2/__init__.py deleted file mode 100644 index 8df7f47..0000000 --- a/cloudbeds_pms_v1_2/__init__.py +++ /dev/null @@ -1,370 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -__version__ = "1.3.0" - -# import apis into sdk package -from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi -from cloudbeds_pms_v1_2.api.allotment_blocks_api import AllotmentBlocksApi -from cloudbeds_pms_v1_2.api.app_settings_api import AppSettingsApi -from cloudbeds_pms_v1_2.api.authentication_api import AuthenticationApi -from cloudbeds_pms_v1_2.api.currency_api import CurrencyApi -from cloudbeds_pms_v1_2.api.custom_fields_api import CustomFieldsApi -from cloudbeds_pms_v1_2.api.dashboard_api import DashboardApi -from cloudbeds_pms_v1_2.api.emails_api import EmailsApi -from cloudbeds_pms_v1_2.api.groups_api import GroupsApi -from cloudbeds_pms_v1_2.api.guest_api import GuestApi -from cloudbeds_pms_v1_2.api.hotel_api import HotelApi -from cloudbeds_pms_v1_2.api.house_account_api import HouseAccountApi -from cloudbeds_pms_v1_2.api.housekeeping_api import HousekeepingApi -from cloudbeds_pms_v1_2.api.integration_api import IntegrationApi -from cloudbeds_pms_v1_2.api.invoices_api import InvoicesApi -from cloudbeds_pms_v1_2.api.item_api import ItemApi -from cloudbeds_pms_v1_2.api.package_api import PackageApi -from cloudbeds_pms_v1_2.api.payment_api import PaymentApi -from cloudbeds_pms_v1_2.api.rate_api import RateApi -from cloudbeds_pms_v1_2.api.reservation_api import ReservationApi -from cloudbeds_pms_v1_2.api.room_api import RoomApi -from cloudbeds_pms_v1_2.api.taxes_and_fees_api import TaxesAndFeesApi -from cloudbeds_pms_v1_2.api.user_api import UserApi - -# import ApiClient -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.api_client import ApiClient -from cloudbeds_pms_v1_2.configuration import Configuration -from cloudbeds_pms_v1_2.exceptions import OpenApiException -from cloudbeds_pms_v1_2.exceptions import ApiTypeError -from cloudbeds_pms_v1_2.exceptions import ApiValueError -from cloudbeds_pms_v1_2.exceptions import ApiKeyError -from cloudbeds_pms_v1_2.exceptions import ApiAttributeError -from cloudbeds_pms_v1_2.exceptions import ApiException - -# import models into sdk package -from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse -from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse -from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse -from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse -from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner -from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf -from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse -from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData -from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse -from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData -from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner -from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner -from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse -from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner -from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse -from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData -from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse -from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner -from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse -from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner -from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse -from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner -from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse -from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData -from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse -from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner -from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner -from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse -from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner -from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse -from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData -from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate -from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner -from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse -from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner -from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy -from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse -from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner -from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse -from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner -from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData -from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner -from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse -from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner -from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse -from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData -from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner -from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner -from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse -from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner -from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse -from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData -from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi -from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse -from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData -from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner -from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner -from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse -from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData -from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner -from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse -from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse -from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner -from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner -from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse -from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner -from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse -from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner -from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner -from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse -from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner -from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse -from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner -from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole -from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData -from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse -from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner -from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse -from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData -from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse -from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData -from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse -from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData -from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse -from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse -from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData -from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse -from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData -from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse -from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease -from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse -from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner -from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse -from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData -from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse -from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange -from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse -from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody -from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject -from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse -from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse -from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse -from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse -from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner -from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData -from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse -from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse -from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse -from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse -from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData -from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse -from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner -from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse -from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData -from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner -from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse -from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData -from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse -from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner -from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval -from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse -from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner -from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse -from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse -from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse -from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner -from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse -from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner -from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse -from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse -from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner -from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse -from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse -from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse -from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse -from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData -from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse -from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse -from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse -from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse -from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse -from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse -from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse -from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse diff --git a/cloudbeds_pms_v1_2/api/__init__.py b/cloudbeds_pms_v1_2/api/__init__.py deleted file mode 100644 index bf92439..0000000 --- a/cloudbeds_pms_v1_2/api/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -# flake8: noqa - -# import apis into api package -from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi -from cloudbeds_pms_v1_2.api.allotment_blocks_api import AllotmentBlocksApi -from cloudbeds_pms_v1_2.api.app_settings_api import AppSettingsApi -from cloudbeds_pms_v1_2.api.authentication_api import AuthenticationApi -from cloudbeds_pms_v1_2.api.currency_api import CurrencyApi -from cloudbeds_pms_v1_2.api.custom_fields_api import CustomFieldsApi -from cloudbeds_pms_v1_2.api.dashboard_api import DashboardApi -from cloudbeds_pms_v1_2.api.emails_api import EmailsApi -from cloudbeds_pms_v1_2.api.groups_api import GroupsApi -from cloudbeds_pms_v1_2.api.guest_api import GuestApi -from cloudbeds_pms_v1_2.api.hotel_api import HotelApi -from cloudbeds_pms_v1_2.api.house_account_api import HouseAccountApi -from cloudbeds_pms_v1_2.api.housekeeping_api import HousekeepingApi -from cloudbeds_pms_v1_2.api.integration_api import IntegrationApi -from cloudbeds_pms_v1_2.api.invoices_api import InvoicesApi -from cloudbeds_pms_v1_2.api.item_api import ItemApi -from cloudbeds_pms_v1_2.api.package_api import PackageApi -from cloudbeds_pms_v1_2.api.payment_api import PaymentApi -from cloudbeds_pms_v1_2.api.rate_api import RateApi -from cloudbeds_pms_v1_2.api.reservation_api import ReservationApi -from cloudbeds_pms_v1_2.api.room_api import RoomApi -from cloudbeds_pms_v1_2.api.taxes_and_fees_api import TaxesAndFeesApi -from cloudbeds_pms_v1_2.api.user_api import UserApi - diff --git a/cloudbeds_pms_v1_2/api/payment_api.py b/cloudbeds_pms_v1_2/api/payment_api.py deleted file mode 100644 index 6475abf..0000000 --- a/cloudbeds_pms_v1_2/api/payment_api.py +++ /dev/null @@ -1,2370 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Optional, Union -from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse -from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse -from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse -from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse -from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType - - -class PaymentApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_payment_methods_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, - lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPaymentMethodsResponse: - """getPaymentMethods - - Get a list of active methods for a property, or list of properties - - :param property_id: ID for the property to be queried - :type property_id: str - :param lang: Language that payment methods name should return (if available). - :type lang: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payment_methods_get_serialize( - property_id=property_id, - lang=lang, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentMethodsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_payment_methods_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, - lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPaymentMethodsResponse]: - """getPaymentMethods - - Get a list of active methods for a property, or list of properties - - :param property_id: ID for the property to be queried - :type property_id: str - :param lang: Language that payment methods name should return (if available). - :type lang: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payment_methods_get_serialize( - property_id=property_id, - lang=lang, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentMethodsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_payment_methods_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, - lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getPaymentMethods - - Get a list of active methods for a property, or list of properties - - :param property_id: ID for the property to be queried - :type property_id: str - :param lang: Language that payment methods name should return (if available). - :type lang: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payment_methods_get_serialize( - property_id=property_id, - lang=lang, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentMethodsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_payment_methods_get_serialize( - self, - property_id, - lang, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if lang is not None: - - _query_params.append(('lang', lang)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getPaymentMethods', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_payments_capabilities_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPaymentsCapabilitiesResponse: - """getPaymentsCapabilities - - Lists the payment capabilities of a given property - - :param property_id: ID for the property to be queried - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payments_capabilities_get_serialize( - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsCapabilitiesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_payments_capabilities_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPaymentsCapabilitiesResponse]: - """getPaymentsCapabilities - - Lists the payment capabilities of a given property - - :param property_id: ID for the property to be queried - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payments_capabilities_get_serialize( - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsCapabilitiesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_payments_capabilities_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getPaymentsCapabilities - - Lists the payment capabilities of a given property - - :param property_id: ID for the property to be queried - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payments_capabilities_get_serialize( - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsCapabilitiesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_payments_capabilities_get_serialize( - self, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getPaymentsCapabilities', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_charge_post( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, - accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, - amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, - currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, - description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostChargeResponse: - """postCharge - - Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - - :param property_id: - :type property_id: str - :param reservation_id: Reservation ID - :type reservation_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param group_id: Group ID - :type group_id: str - :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID - :type accounts_receivable_ledger_id: str - :param amount: Amount to charge - :type amount: str - :param currency: Currency to charge - :type currency: str - :param description: Description of the payment to display on folio - :type description: str - :param payment_method_id: Payment method UUID - :type payment_method_id: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type redirect_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_charge_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - group_id=group_id, - accounts_receivable_ledger_id=accounts_receivable_ledger_id, - amount=amount, - currency=currency, - description=description, - payment_method_id=payment_method_id, - is_deposit=is_deposit, - redirect_url=redirect_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostChargeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_charge_post_with_http_info( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, - accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, - amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, - currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, - description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostChargeResponse]: - """postCharge - - Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - - :param property_id: - :type property_id: str - :param reservation_id: Reservation ID - :type reservation_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param group_id: Group ID - :type group_id: str - :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID - :type accounts_receivable_ledger_id: str - :param amount: Amount to charge - :type amount: str - :param currency: Currency to charge - :type currency: str - :param description: Description of the payment to display on folio - :type description: str - :param payment_method_id: Payment method UUID - :type payment_method_id: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type redirect_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_charge_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - group_id=group_id, - accounts_receivable_ledger_id=accounts_receivable_ledger_id, - amount=amount, - currency=currency, - description=description, - payment_method_id=payment_method_id, - is_deposit=is_deposit, - redirect_url=redirect_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostChargeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_charge_post_without_preload_content( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, - accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, - amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, - currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, - description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postCharge - - Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - - :param property_id: - :type property_id: str - :param reservation_id: Reservation ID - :type reservation_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param group_id: Group ID - :type group_id: str - :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID - :type accounts_receivable_ledger_id: str - :param amount: Amount to charge - :type amount: str - :param currency: Currency to charge - :type currency: str - :param description: Description of the payment to display on folio - :type description: str - :param payment_method_id: Payment method UUID - :type payment_method_id: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type redirect_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_charge_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - group_id=group_id, - accounts_receivable_ledger_id=accounts_receivable_ledger_id, - amount=amount, - currency=currency, - description=description, - payment_method_id=payment_method_id, - is_deposit=is_deposit, - redirect_url=redirect_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostChargeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_charge_post_serialize( - self, - property_id, - reservation_id, - house_account_id, - group_id, - accounts_receivable_ledger_id, - amount, - currency, - description, - payment_method_id, - is_deposit, - redirect_url, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if house_account_id is not None: - _form_params.append(('houseAccountID', house_account_id)) - if group_id is not None: - _form_params.append(('groupID', group_id)) - if accounts_receivable_ledger_id is not None: - _form_params.append(('accountsReceivableLedgerID', accounts_receivable_ledger_id)) - if amount is not None: - _form_params.append(('amount', amount)) - if currency is not None: - _form_params.append(('currency', currency)) - if description is not None: - _form_params.append(('description', description)) - if payment_method_id is not None: - _form_params.append(('paymentMethodId', payment_method_id)) - if is_deposit is not None: - _form_params.append(('isDeposit', is_deposit)) - if redirect_url is not None: - _form_params.append(('redirectUrl', redirect_url)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postCharge', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_credit_card_post( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Optional[StrictStr] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, - return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostCardResponse: - """postCreditCard - - Returns the rate of the room type selected, based on the provided parameters - - :param property_id: - :type property_id: str - :param reservation_id: - :type reservation_id: str - :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided - :type card_token: str - :param payment_method_id: Payment Method ID provided by the payments SDK - :type payment_method_id: str - :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type return_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_credit_card_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - card_token=card_token, - payment_method_id=payment_method_id, - return_url=return_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_credit_card_post_with_http_info( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Optional[StrictStr] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, - return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostCardResponse]: - """postCreditCard - - Returns the rate of the room type selected, based on the provided parameters - - :param property_id: - :type property_id: str - :param reservation_id: - :type reservation_id: str - :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided - :type card_token: str - :param payment_method_id: Payment Method ID provided by the payments SDK - :type payment_method_id: str - :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type return_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_credit_card_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - card_token=card_token, - payment_method_id=payment_method_id, - return_url=return_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_credit_card_post_without_preload_content( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Optional[StrictStr] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, - return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postCreditCard - - Returns the rate of the room type selected, based on the provided parameters - - :param property_id: - :type property_id: str - :param reservation_id: - :type reservation_id: str - :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided - :type card_token: str - :param payment_method_id: Payment Method ID provided by the payments SDK - :type payment_method_id: str - :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type return_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_credit_card_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - card_token=card_token, - payment_method_id=payment_method_id, - return_url=return_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_credit_card_post_serialize( - self, - property_id, - reservation_id, - card_token, - payment_method_id, - return_url, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if card_token is not None: - _form_params.append(('cardToken', card_token)) - if payment_method_id is not None: - _form_params.append(('paymentMethodId', payment_method_id)) - if return_url is not None: - _form_params.append(('returnUrl', return_url)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postCreditCard', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_custom_payment_method_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, - method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, - method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostCustomPaymentMethodResponse: - """postCustomPaymentMethod - - Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - - :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. - :type property_id: str - :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. - :type method: str - :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. - :type method_name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_custom_payment_method_post_serialize( - property_id=property_id, - method=method, - method_name=method_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCustomPaymentMethodResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_custom_payment_method_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, - method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, - method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostCustomPaymentMethodResponse]: - """postCustomPaymentMethod - - Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - - :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. - :type property_id: str - :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. - :type method: str - :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. - :type method_name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_custom_payment_method_post_serialize( - property_id=property_id, - method=method, - method_name=method_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCustomPaymentMethodResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_custom_payment_method_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, - method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, - method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postCustomPaymentMethod - - Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - - :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. - :type property_id: str - :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. - :type method: str - :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. - :type method_name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_custom_payment_method_post_serialize( - property_id=property_id, - method=method, - method_name=method_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCustomPaymentMethodResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_custom_payment_method_post_serialize( - self, - property_id, - method, - method_name, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if method is not None: - _form_params.append(('method', method)) - if method_name is not None: - _form_params.append(('methodName', method_name)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postCustomPaymentMethod', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_payment_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, - type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, - card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, - description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostPaymentResponse: - """postPayment - - Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param house_account_id: House Account identifier is necessary if reservationID not sent - :type house_account_id: str - :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. - :type sub_reservation_id: str - :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. - :type type: str - :param amount: Amount paid on this transaction - :type amount: float - :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" - :type card_type: str - :param description: Note to be added to payment - :type description: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_payment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - sub_reservation_id=sub_reservation_id, - type=type, - amount=amount, - card_type=card_type, - description=description, - is_deposit=is_deposit, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_payment_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, - type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, - card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, - description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostPaymentResponse]: - """postPayment - - Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param house_account_id: House Account identifier is necessary if reservationID not sent - :type house_account_id: str - :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. - :type sub_reservation_id: str - :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. - :type type: str - :param amount: Amount paid on this transaction - :type amount: float - :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" - :type card_type: str - :param description: Note to be added to payment - :type description: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_payment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - sub_reservation_id=sub_reservation_id, - type=type, - amount=amount, - card_type=card_type, - description=description, - is_deposit=is_deposit, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_payment_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, - type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, - card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, - description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postPayment - - Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param house_account_id: House Account identifier is necessary if reservationID not sent - :type house_account_id: str - :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. - :type sub_reservation_id: str - :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. - :type type: str - :param amount: Amount paid on this transaction - :type amount: float - :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" - :type card_type: str - :param description: Note to be added to payment - :type description: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_payment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - sub_reservation_id=sub_reservation_id, - type=type, - amount=amount, - card_type=card_type, - description=description, - is_deposit=is_deposit, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_payment_post_serialize( - self, - property_id, - reservation_id, - house_account_id, - sub_reservation_id, - type, - amount, - card_type, - description, - is_deposit, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if house_account_id is not None: - _form_params.append(('houseAccountID', house_account_id)) - if sub_reservation_id is not None: - _form_params.append(('subReservationID', sub_reservation_id)) - if type is not None: - _form_params.append(('type', type)) - if amount is not None: - _form_params.append(('amount', amount)) - if card_type is not None: - _form_params.append(('cardType', card_type)) - if description is not None: - _form_params.append(('description', description)) - if is_deposit is not None: - _form_params.append(('isDeposit', is_deposit)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postPayment', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_void_payment_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostVoidPaymentResponse: - """postVoidPayment - - Voids a payment (using paymentID) to a specified reservation or house account. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param house_account_id: House Account identifier is necessary if reservationID not sent - :type house_account_id: str - :param payment_id: paymentID of transaction that should be voided. - :type payment_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_void_payment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - payment_id=payment_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostVoidPaymentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_void_payment_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostVoidPaymentResponse]: - """postVoidPayment - - Voids a payment (using paymentID) to a specified reservation or house account. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param house_account_id: House Account identifier is necessary if reservationID not sent - :type house_account_id: str - :param payment_id: paymentID of transaction that should be voided. - :type payment_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_void_payment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - payment_id=payment_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostVoidPaymentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_void_payment_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postVoidPayment - - Voids a payment (using paymentID) to a specified reservation or house account. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param house_account_id: House Account identifier is necessary if reservationID not sent - :type house_account_id: str - :param payment_id: paymentID of transaction that should be voided. - :type payment_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_void_payment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - payment_id=payment_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostVoidPaymentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_void_payment_post_serialize( - self, - property_id, - reservation_id, - house_account_id, - payment_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if house_account_id is not None: - _form_params.append(('houseAccountID', house_account_id)) - if payment_id is not None: - _form_params.append(('paymentID', payment_id)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postVoidPayment', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/cloudbeds_pms_v1_2/docs/AdjustmentApi.md b/cloudbeds_pms_v1_2/docs/AdjustmentApi.md deleted file mode 100644 index 81d0c2a..0000000 --- a/cloudbeds_pms_v1_2/docs/AdjustmentApi.md +++ /dev/null @@ -1,188 +0,0 @@ -# cloudbeds_pms_v1_2.AdjustmentApi - -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**delete_adjustment_delete**](AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment -[**post_adjustment_post**](AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment - - -# **delete_adjustment_delete** -> DeleteAdjustmentResponse delete_adjustment_delete(reservation_id, adjustment_id, property_id=property_id) - -deleteAdjustment - -Voids the AdjustmentID transaction on the specified reservationID - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation identifier - adjustment_id = 'adjustment_id_example' # str | Adjustment identifier - property_id = 'property_id_example' # str | Property ID (optional) - - try: - # deleteAdjustment - api_response = api_instance.delete_adjustment_delete(reservation_id, adjustment_id, property_id=property_id) - print("The response of AdjustmentApi->delete_adjustment_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AdjustmentApi->delete_adjustment_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation identifier | - **adjustment_id** | **str**| Adjustment identifier | - **property_id** | **str**| Property ID | [optional] - -### Return type - -[**DeleteAdjustmentResponse**](DeleteAdjustmentResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_adjustment_post** -> PostAdjustmentResponse post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) - -postAdjustment - -Adds an adjustment to a reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AdjustmentApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) - type = 'type_example' # str | Apply Adjustment to (optional) - amount = 3.4 # float | Adjustment amount (optional) - notes = 'notes_example' # str | Adjustment notes (optional) - item_id = 'item_id_example' # str | Apply Adjustment to. Identifier for: product, tax, fee. Not for rate (optional) - - try: - # postAdjustment - api_response = api_instance.post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) - print("The response of AdjustmentApi->post_adjustment_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AdjustmentApi->post_adjustment_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **reservation_id** | **str**| Reservation identifier | [optional] - **type** | **str**| Apply Adjustment to | [optional] - **amount** | **float**| Adjustment amount | [optional] - **notes** | **str**| Adjustment notes | [optional] - **item_id** | **str**| Apply Adjustment to. Identifier for: product, tax, fee. Not for rate | [optional] - -### Return type - -[**PostAdjustmentResponse**](PostAdjustmentResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/cloudbeds_pms_v1_2/docs/PaymentApi.md b/cloudbeds_pms_v1_2/docs/PaymentApi.md deleted file mode 100644 index f14fd13..0000000 --- a/cloudbeds_pms_v1_2/docs/PaymentApi.md +++ /dev/null @@ -1,645 +0,0 @@ -# cloudbeds_pms_v1_2.PaymentApi - -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_payment_methods_get**](PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods -[**get_payments_capabilities_get**](PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities -[**post_charge_post**](PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge -[**post_credit_card_post**](PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard -[**post_custom_payment_method_post**](PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod -[**post_payment_post**](PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment -[**post_void_payment_post**](PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment - - -# **get_payment_methods_get** -> GetPaymentMethodsResponse get_payment_methods_get(property_id=property_id, lang=lang) - -getPaymentMethods - -Get a list of active methods for a property, or list of properties - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | ID for the property to be queried (optional) - lang = en # str | Language that payment methods name should return (if available). (optional) (default to en) - - try: - # getPaymentMethods - api_response = api_instance.get_payment_methods_get(property_id=property_id, lang=lang) - print("The response of PaymentApi->get_payment_methods_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->get_payment_methods_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| ID for the property to be queried | [optional] - **lang** | **str**| Language that payment methods name should return (if available). | [optional] [default to en] - -### Return type - -[**GetPaymentMethodsResponse**](GetPaymentMethodsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_payments_capabilities_get** -> GetPaymentsCapabilitiesResponse get_payments_capabilities_get(property_id=property_id) - -getPaymentsCapabilities - -Lists the payment capabilities of a given property - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | ID for the property to be queried (optional) - - try: - # getPaymentsCapabilities - api_response = api_instance.get_payments_capabilities_get(property_id=property_id) - print("The response of PaymentApi->get_payments_capabilities_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->get_payments_capabilities_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| ID for the property to be queried | [optional] - -### Return type - -[**GetPaymentsCapabilitiesResponse**](GetPaymentsCapabilitiesResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_charge_post** -> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) - -postCharge - -Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | (optional) - reservation_id = 'reservation_id_example' # str | Reservation ID (optional) - house_account_id = 'house_account_id_example' # str | House Account ID (optional) - group_id = 'group_id_example' # str | Group ID (optional) - accounts_receivable_ledger_id = 'accounts_receivable_ledger_id_example' # str | Accounts Receivable Ledger ID (optional) - amount = 'amount_example' # str | Amount to charge (optional) - currency = 'currency_example' # str | Currency to charge (optional) - description = 'description_example' # str | Description of the payment to display on folio (optional) - payment_method_id = 'payment_method_id_example' # str | Payment method UUID (optional) - is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) - redirect_url = 'redirect_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) - - try: - # postCharge - api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) - print("The response of PaymentApi->post_charge_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->post_charge_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| | [optional] - **reservation_id** | **str**| Reservation ID | [optional] - **house_account_id** | **str**| House Account ID | [optional] - **group_id** | **str**| Group ID | [optional] - **accounts_receivable_ledger_id** | **str**| Accounts Receivable Ledger ID | [optional] - **amount** | **str**| Amount to charge | [optional] - **currency** | **str**| Currency to charge | [optional] - **description** | **str**| Description of the payment to display on folio | [optional] - **payment_method_id** | **str**| Payment method UUID | [optional] - **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] - **redirect_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] - -### Return type - -[**PostChargeResponse**](PostChargeResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_credit_card_post** -> PostCardResponse post_credit_card_post(property_id=property_id, reservation_id=reservation_id, card_token=card_token, payment_method_id=payment_method_id, return_url=return_url) - -postCreditCard - -Returns the rate of the room type selected, based on the provided parameters - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | (optional) - reservation_id = 'reservation_id_example' # str | (optional) - card_token = 'card_token_example' # str | cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided (optional) - payment_method_id = 'payment_method_id_example' # str | Payment Method ID provided by the payments SDK (optional) - return_url = 'return_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) - - try: - # postCreditCard - api_response = api_instance.post_credit_card_post(property_id=property_id, reservation_id=reservation_id, card_token=card_token, payment_method_id=payment_method_id, return_url=return_url) - print("The response of PaymentApi->post_credit_card_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->post_credit_card_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| | [optional] - **reservation_id** | **str**| | [optional] - **card_token** | **str**| cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided | [optional] - **payment_method_id** | **str**| Payment Method ID provided by the payments SDK | [optional] - **return_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] - -### Return type - -[**PostCardResponse**](PostCardResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_custom_payment_method_post** -> PostCustomPaymentMethodResponse post_custom_payment_method_post(property_id=property_id, method=method, method_name=method_name) - -postCustomPaymentMethod - -Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | Property ID, if not sent will retrieve property ID from credentials, only one property ID call. (optional) - method = 'method_example' # str | Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. (optional) - method_name = 'method_name_example' # str | Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. (optional) - - try: - # postCustomPaymentMethod - api_response = api_instance.post_custom_payment_method_post(property_id=property_id, method=method, method_name=method_name) - print("The response of PaymentApi->post_custom_payment_method_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->post_custom_payment_method_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID, if not sent will retrieve property ID from credentials, only one property ID call. | [optional] - **method** | **str**| Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. | [optional] - **method_name** | **str**| Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. | [optional] - -### Return type - -[**PostCustomPaymentMethodResponse**](PostCustomPaymentMethodResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_payment_post** -> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) - -postPayment - -Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) - house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) - sub_reservation_id = 'sub_reservation_id_example' # str | The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. (optional) - type = 'type_example' # str | Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. (optional) - amount = 3.4 # float | Amount paid on this transaction (optional) - card_type = 'card_type_example' # str | If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" (optional) - description = 'description_example' # str | Note to be added to payment (optional) - is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) - - try: - # postPayment - api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) - print("The response of PaymentApi->post_payment_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->post_payment_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **reservation_id** | **str**| Reservation identifier | [optional] - **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] - **sub_reservation_id** | **str**| The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. | [optional] - **type** | **str**| Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] - **amount** | **float**| Amount paid on this transaction | [optional] - **card_type** | **str**| If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" | [optional] - **description** | **str**| Note to be added to payment | [optional] - **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] - -### Return type - -[**PostPaymentResponse**](PostPaymentResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_void_payment_post** -> PostVoidPaymentResponse post_void_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, payment_id=payment_id) - -postVoidPayment - -Voids a payment (using paymentID) to a specified reservation or house account. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse -from cloudbeds_pms_v1_2.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PaymentApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) - house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) - payment_id = 'payment_id_example' # str | paymentID of transaction that should be voided. (optional) - - try: - # postVoidPayment - api_response = api_instance.post_void_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, payment_id=payment_id) - print("The response of PaymentApi->post_void_payment_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->post_void_payment_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **reservation_id** | **str**| Reservation identifier | [optional] - **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] - **payment_id** | **str**| paymentID of transaction that should be voided. | [optional] - -### Return type - -[**PostVoidPaymentResponse**](PostVoidPaymentResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md b/cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md deleted file mode 100644 index 5dfcd79..0000000 --- a/cloudbeds_pms_v1_2/docs/PostItemRequestPaymentsInner.md +++ /dev/null @@ -1,31 +0,0 @@ -# PostItemRequestPaymentsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_type** | **str** | Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] -**amount** | **float** | payment amount | [optional] -**notes** | **str** | payment note | [optional] - -## Example - -```python -from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of PostItemRequestPaymentsInner from a JSON string -post_item_request_payments_inner_instance = PostItemRequestPaymentsInner.from_json(json) -# print the JSON string representation of the object -print(PostItemRequestPaymentsInner.to_json()) - -# convert the object into a dict -post_item_request_payments_inner_dict = post_item_request_payments_inner_instance.to_dict() -# create an instance of PostItemRequestPaymentsInner from a dict -post_item_request_payments_inner_from_dict = PostItemRequestPaymentsInner.from_dict(post_item_request_payments_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_2/models/__init__.py b/cloudbeds_pms_v1_2/models/__init__.py deleted file mode 100644 index 2a8f62d..0000000 --- a/cloudbeds_pms_v1_2/models/__init__.py +++ /dev/null @@ -1,331 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.2 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -# import models into model package -from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse -from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse -from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse -from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse -from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner -from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf -from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse -from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData -from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse -from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData -from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner -from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner -from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse -from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner -from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse -from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData -from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse -from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner -from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse -from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner -from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse -from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner -from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse -from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData -from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse -from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner -from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner -from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse -from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner -from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse -from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData -from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate -from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner -from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse -from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner -from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy -from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse -from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner -from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse -from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner -from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData -from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner -from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse -from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner -from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse -from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData -from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner -from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner -from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse -from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner -from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse -from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData -from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi -from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse -from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData -from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner -from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner -from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse -from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData -from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner -from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse -from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse -from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner -from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner -from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse -from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner -from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse -from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner -from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner -from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse -from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner -from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse -from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner -from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole -from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData -from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse -from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner -from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse -from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData -from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse -from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData -from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse -from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData -from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse -from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse -from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData -from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse -from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData -from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse -from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease -from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse -from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner -from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse -from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData -from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse -from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange -from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse -from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody -from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject -from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse -from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse -from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse -from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse -from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner -from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData -from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse -from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse -from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse -from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse -from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData -from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse -from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner -from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse -from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData -from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner -from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse -from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData -from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse -from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner -from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval -from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse -from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner -from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse -from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse -from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse -from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner -from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse -from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner -from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse -from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse -from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner -from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse -from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse -from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse -from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse -from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData -from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse -from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse -from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse -from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse -from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse -from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse -from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse -from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py new file mode 100644 index 0000000..1850563 --- /dev/null +++ b/cloudbeds_pms_v1_3/__init__.py @@ -0,0 +1,428 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +__version__ = "1.0.0" + +# import apis into sdk package +from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi +from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi +from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi +from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi +from cloudbeds_pms_v1_3.api.beta_api import BetaApi +from cloudbeds_pms_v1_3.api.crm_api import CRMApi +from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi +from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi +from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi +from cloudbeds_pms_v1_3.api.emails_api import EmailsApi +from cloudbeds_pms_v1_3.api.groups_api import GroupsApi +from cloudbeds_pms_v1_3.api.guest_api import GuestApi +from cloudbeds_pms_v1_3.api.hotel_api import HotelApi +from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi +from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi +from cloudbeds_pms_v1_3.api.import_api import ImportApi +from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi +from cloudbeds_pms_v1_3.api.invoices_api import InvoicesApi +from cloudbeds_pms_v1_3.api.item_api import ItemApi +from cloudbeds_pms_v1_3.api.package_api import PackageApi +from cloudbeds_pms_v1_3.api.payment_api import PaymentApi +from cloudbeds_pms_v1_3.api.rate_api import RateApi +from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi +from cloudbeds_pms_v1_3.api.room_api import RoomApi +from cloudbeds_pms_v1_3.api.rooms_api import RoomsApi +from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi +from cloudbeds_pms_v1_3.api.user_api import UserApi + +# import ApiClient +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.api_client import ApiClient +from cloudbeds_pms_v1_3.configuration import Configuration +from cloudbeds_pms_v1_3.exceptions import OpenApiException +from cloudbeds_pms_v1_3.exceptions import ApiTypeError +from cloudbeds_pms_v1_3.exceptions import ApiValueError +from cloudbeds_pms_v1_3.exceptions import ApiKeyError +from cloudbeds_pms_v1_3.exceptions import ApiAttributeError +from cloudbeds_pms_v1_3.exceptions import ApiException + +# import models into sdk package +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData +from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse +from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse +from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData +from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner +from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse +from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse +from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner +from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner +from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner +from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse +from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse +from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse +from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse +from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse +from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse +from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse diff --git a/cloudbeds_pms_v1_3/api/__init__.py b/cloudbeds_pms_v1_3/api/__init__.py new file mode 100644 index 0000000..fbbe42b --- /dev/null +++ b/cloudbeds_pms_v1_3/api/__init__.py @@ -0,0 +1,31 @@ +# flake8: noqa + +# import apis into api package +from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi +from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi +from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi +from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi +from cloudbeds_pms_v1_3.api.beta_api import BetaApi +from cloudbeds_pms_v1_3.api.crm_api import CRMApi +from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi +from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi +from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi +from cloudbeds_pms_v1_3.api.emails_api import EmailsApi +from cloudbeds_pms_v1_3.api.groups_api import GroupsApi +from cloudbeds_pms_v1_3.api.guest_api import GuestApi +from cloudbeds_pms_v1_3.api.hotel_api import HotelApi +from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi +from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi +from cloudbeds_pms_v1_3.api.import_api import ImportApi +from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi +from cloudbeds_pms_v1_3.api.invoices_api import InvoicesApi +from cloudbeds_pms_v1_3.api.item_api import ItemApi +from cloudbeds_pms_v1_3.api.package_api import PackageApi +from cloudbeds_pms_v1_3.api.payment_api import PaymentApi +from cloudbeds_pms_v1_3.api.rate_api import RateApi +from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi +from cloudbeds_pms_v1_3.api.room_api import RoomApi +from cloudbeds_pms_v1_3.api.rooms_api import RoomsApi +from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi +from cloudbeds_pms_v1_3.api.user_api import UserApi + diff --git a/cloudbeds_pms_v1_3/api/adjustment_api.py b/cloudbeds_pms_v1_3/api/adjustment_api.py new file mode 100644 index 0000000..f625d07 --- /dev/null +++ b/cloudbeds_pms_v1_3/api/adjustment_api.py @@ -0,0 +1,1252 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType + + +class AdjustmentApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_adjustment_delete( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteAdjustmentResponse: + """deleteAdjustment + + Voids the AdjustmentID transaction on the specified reservationID + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_adjustment_delete_serialize( + reservation_id=reservation_id, + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_adjustment_delete_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteAdjustmentResponse]: + """deleteAdjustment + + Voids the AdjustmentID transaction on the specified reservationID + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_adjustment_delete_serialize( + reservation_id=reservation_id, + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_adjustment_delete_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteAdjustment + + Voids the AdjustmentID transaction on the specified reservationID + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_adjustment_delete_serialize( + reservation_id=reservation_id, + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_adjustment_delete_serialize( + self, + reservation_id, + adjustment_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if adjustment_id is not None: + + _query_params.append(('adjustmentID', adjustment_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/deleteAdjustment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_adjustment_get( + self, + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAdjustmentResponse: + """getAdjustment + + Gets the details for the one AdjustmentID + + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustment_get_serialize( + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_adjustment_get_with_http_info( + self, + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAdjustmentResponse]: + """getAdjustment + + Gets the details for the one AdjustmentID + + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustment_get_serialize( + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_adjustment_get_without_preload_content( + self, + adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAdjustment + + Gets the details for the one AdjustmentID + + :param adjustment_id: Adjustment identifier (required) + :type adjustment_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustment_get_serialize( + adjustment_id=adjustment_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_adjustment_get_serialize( + self, + adjustment_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if adjustment_id is not None: + + _query_params.append(('adjustmentID', adjustment_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAdjustment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_adjustments_get( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAdjustmentsResponse: + """getAdjustments + + Gets all the Adjustments and their details to a specified reservation + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustments_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_adjustments_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAdjustmentsResponse]: + """getAdjustments + + Gets all the Adjustments and their details to a specified reservation + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustments_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_adjustments_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAdjustments + + Gets all the Adjustments and their details to a specified reservation + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_adjustments_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAdjustmentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_adjustments_get_serialize( + self, + reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAdjustments', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_adjustment_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, + notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAdjustmentResponse: + """postAdjustment + + Adds an adjustment to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param type: Apply Adjustment to + :type type: str + :param amount: Adjustment amount + :type amount: float + :param notes: Adjustment notes + :type notes: str + :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate + :type item_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjustment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + type=type, + amount=amount, + notes=notes, + item_id=item_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_adjustment_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, + notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAdjustmentResponse]: + """postAdjustment + + Adds an adjustment to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param type: Apply Adjustment to + :type type: str + :param amount: Adjustment amount + :type amount: float + :param notes: Adjustment notes + :type notes: str + :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate + :type item_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjustment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + type=type, + amount=amount, + notes=notes, + item_id=item_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_adjustment_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, + notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postAdjustment + + Adds an adjustment to a reservation + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param type: Apply Adjustment to + :type type: str + :param amount: Adjustment amount + :type amount: float + :param notes: Adjustment notes + :type notes: str + :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate + :type item_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjustment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + type=type, + amount=amount, + notes=notes, + item_id=item_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAdjustmentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_adjustment_post_serialize( + self, + property_id, + reservation_id, + type, + amount, + notes, + item_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if type is not None: + _form_params.append(('type', type)) + if amount is not None: + _form_params.append(('amount', amount)) + if notes is not None: + _form_params.append(('notes', notes)) + if item_id is not None: + _form_params.append(('itemID', item_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postAdjustment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/allotment_blocks_api.py b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py similarity index 99% rename from cloudbeds_pms_v1_2/api/allotment_blocks_api.py rename to cloudbeds_pms_v1_3/api/allotment_blocks_api.py index 54bfad6..6e4117e 100644 --- a/cloudbeds_pms_v1_2/api/allotment_blocks_api.py +++ b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,21 +20,21 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class AllotmentBlocksApi: diff --git a/cloudbeds_pms_v1_2/api/app_settings_api.py b/cloudbeds_pms_v1_3/api/app_settings_api.py similarity index 78% rename from cloudbeds_pms_v1_2/api/app_settings_api.py rename to cloudbeds_pms_v1_3/api/app_settings_api.py index 4644458..4463bab 100644 --- a/cloudbeds_pms_v1_2/api/app_settings_api.py +++ b/cloudbeds_pms_v1_3/api/app_settings_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,14 +19,15 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse -from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse -from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class AppSettingsApi: @@ -933,6 +934,311 @@ def _post_app_property_settings_post_serialize( + @validate_call + def post_bulk_app_property_settings_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, + settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostBulkAppPropertySettingsResponse: + """postBulkAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param app_client_id: Application Client ID + :type app_client_id: str + :param settings: JSON array of settings values + :type settings: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_bulk_app_property_settings_post_serialize( + property_id=property_id, + app_client_id=app_client_id, + settings=settings, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostBulkAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_bulk_app_property_settings_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, + settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostBulkAppPropertySettingsResponse]: + """postBulkAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param app_client_id: Application Client ID + :type app_client_id: str + :param settings: JSON array of settings values + :type settings: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_bulk_app_property_settings_post_serialize( + property_id=property_id, + app_client_id=app_client_id, + settings=settings, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostBulkAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_bulk_app_property_settings_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, + settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postBulkAppPropertySettings + + + + :param property_id: Property ID + :type property_id: str + :param app_client_id: Application Client ID + :type app_client_id: str + :param settings: JSON array of settings values + :type settings: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_bulk_app_property_settings_post_serialize( + property_id=property_id, + app_client_id=app_client_id, + settings=settings, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostBulkAppPropertySettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_bulk_app_property_settings_post_serialize( + self, + property_id, + app_client_id, + settings, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if app_client_id is not None: + _form_params.append(('appClientID', app_client_id)) + if settings is not None: + _form_params.append(('settings', settings)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postBulkAppPropertySettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def put_app_property_settings_post( self, diff --git a/cloudbeds_pms_v1_2/api/authentication_api.py b/cloudbeds_pms_v1_3/api/authentication_api.py similarity index 80% rename from cloudbeds_pms_v1_2/api/authentication_api.py rename to cloudbeds_pms_v1_3/api/authentication_api.py index b06f93d..e3b04c8 100644 --- a/cloudbeds_pms_v1_2/api/authentication_api.py +++ b/cloudbeds_pms_v1_3/api/authentication_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,13 +19,14 @@ from pydantic import Field, StrictBool, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse -from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse -from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class AuthenticationApi: @@ -41,6 +42,251 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + def access_token_check_post( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAccessTokenCheckResponse: + """access_token_check + + A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._access_token_check_post_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAccessTokenCheckResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def access_token_check_post_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAccessTokenCheckResponse]: + """access_token_check + + A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._access_token_check_post_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAccessTokenCheckResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def access_token_check_post_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """access_token_check + + A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._access_token_check_post_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAccessTokenCheckResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _access_token_check_post_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/access_token_check', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def access_token_post( self, diff --git a/cloudbeds_pms_v1_3/api/beta_api.py b/cloudbeds_pms_v1_3/api/beta_api.py new file mode 100644 index 0000000..1b6d50f --- /dev/null +++ b/cloudbeds_pms_v1_3/api/beta_api.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType + + +class BetaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_async_api_job_get( + self, + job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAsyncApiJobResponse: + """getAsyncApiJob + + Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + + :param job_reference_id: Filter Rate Jobs by jobReferenceID + :type job_reference_id: str + :param status: Filter Rate Jobs based on status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_async_api_job_get_serialize( + job_reference_id=job_reference_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAsyncApiJobResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_async_api_job_get_with_http_info( + self, + job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAsyncApiJobResponse]: + """getAsyncApiJob + + Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + + :param job_reference_id: Filter Rate Jobs by jobReferenceID + :type job_reference_id: str + :param status: Filter Rate Jobs based on status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_async_api_job_get_serialize( + job_reference_id=job_reference_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAsyncApiJobResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_async_api_job_get_without_preload_content( + self, + job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getAsyncApiJob + + Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + + :param job_reference_id: Filter Rate Jobs by jobReferenceID + :type job_reference_id: str + :param status: Filter Rate Jobs based on status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_async_api_job_get_serialize( + job_reference_id=job_reference_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAsyncApiJobResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_async_api_job_get_serialize( + self, + job_reference_id, + status, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if job_reference_id is not None: + + _query_params.append(('jobReferenceID', job_reference_id)) + + if status is not None: + + _query_params.append(('status', status)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getAsyncApiJob', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/invoices_api.py b/cloudbeds_pms_v1_3/api/crm_api.py similarity index 72% rename from cloudbeds_pms_v1_2/api/invoices_api.py rename to cloudbeds_pms_v1_3/api/crm_api.py index d7afcca..d07ae2b 100644 --- a/cloudbeds_pms_v1_2/api/invoices_api.py +++ b/cloudbeds_pms_v1_3/api/crm_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,18 +16,18 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBytes, StrictStr, field_validator -from typing import Optional, Tuple, Union +from pydantic import Field, StrictBool, StrictStr +from typing import List, Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse +from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType -class InvoicesApi: +class CRMApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -41,10 +41,10 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_invoice_get( + def crm_cache_remove_post( self, - invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + property_id: Annotated[Optional[List[StrictStr]], Field(description="Property IDs that needs the cache to be removed")] = None, + association_id: Annotated[Optional[StrictStr], Field(description="Association ID that needs the cache to be removed")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57,15 +57,15 @@ def get_invoice_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetInvoiceResponse: - """getInvoice + ) -> PostCRMCacheRemoveResponse: + """PostCRMCacheRemove - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + - :param invoice_id: Invoice ID (required) - :type invoice_id: str - :param property_id: Property ID - :type property_id: str + :param property_id: Property IDs that needs the cache to be removed + :type property_id: List[str] + :param association_id: Association ID that needs the cache to be removed + :type association_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88,9 +88,9 @@ def get_invoice_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_invoice_get_serialize( - invoice_id=invoice_id, + _param = self._crm_cache_remove_post_serialize( property_id=property_id, + association_id=association_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98,7 +98,7 @@ def get_invoice_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", + '200': "PostCRMCacheRemoveResponse", } response_data = self.api_client.call_api( *_param, @@ -112,10 +112,10 @@ def get_invoice_get( @validate_call - def get_invoice_get_with_http_info( + def crm_cache_remove_post_with_http_info( self, - invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + property_id: Annotated[Optional[List[StrictStr]], Field(description="Property IDs that needs the cache to be removed")] = None, + association_id: Annotated[Optional[StrictStr], Field(description="Association ID that needs the cache to be removed")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -128,15 +128,15 @@ def get_invoice_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetInvoiceResponse]: - """getInvoice + ) -> ApiResponse[PostCRMCacheRemoveResponse]: + """PostCRMCacheRemove - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + - :param invoice_id: Invoice ID (required) - :type invoice_id: str - :param property_id: Property ID - :type property_id: str + :param property_id: Property IDs that needs the cache to be removed + :type property_id: List[str] + :param association_id: Association ID that needs the cache to be removed + :type association_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -159,9 +159,9 @@ def get_invoice_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_invoice_get_serialize( - invoice_id=invoice_id, + _param = self._crm_cache_remove_post_serialize( property_id=property_id, + association_id=association_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -169,7 +169,7 @@ def get_invoice_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", + '200': "PostCRMCacheRemoveResponse", } response_data = self.api_client.call_api( *_param, @@ -183,10 +183,10 @@ def get_invoice_get_with_http_info( @validate_call - def get_invoice_get_without_preload_content( + def crm_cache_remove_post_without_preload_content( self, - invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + property_id: Annotated[Optional[List[StrictStr]], Field(description="Property IDs that needs the cache to be removed")] = None, + association_id: Annotated[Optional[StrictStr], Field(description="Association ID that needs the cache to be removed")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -200,14 +200,14 @@ def get_invoice_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getInvoice + """PostCRMCacheRemove - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + - :param invoice_id: Invoice ID (required) - :type invoice_id: str - :param property_id: Property ID - :type property_id: str + :param property_id: Property IDs that needs the cache to be removed + :type property_id: List[str] + :param association_id: Association ID that needs the cache to be removed + :type association_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -230,9 +230,9 @@ def get_invoice_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_invoice_get_serialize( - invoice_id=invoice_id, + _param = self._crm_cache_remove_post_serialize( property_id=property_id, + association_id=association_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -240,7 +240,7 @@ def get_invoice_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", + '200': "PostCRMCacheRemoveResponse", } response_data = self.api_client.call_api( *_param, @@ -249,10 +249,10 @@ def get_invoice_get_without_preload_content( return response_data.response - def _get_invoice_get_serialize( + def _crm_cache_remove_post_serialize( self, - invoice_id, property_id, + association_id, _request_auth, _content_type, _headers, @@ -262,6 +262,7 @@ def _get_invoice_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'property_id': 'csv', } _path_params: Dict[str, str] = {} @@ -275,16 +276,12 @@ def _get_invoice_get_serialize( # process the path parameters # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if invoice_id is not None: - - _query_params.append(('invoiceID', invoice_id)) - # process the header parameters # process the form parameters + if property_id is not None: + _form_params.append(('property_id', property_id)) + if association_id is not None: + _form_params.append(('association_id', association_id)) # process the body parameter @@ -296,6 +293,19 @@ def _get_invoice_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -304,8 +314,8 @@ def _get_invoice_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/getInvoice', + method='POST', + resource_path='/crm/cache_remove', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -322,12 +332,11 @@ def _get_invoice_get_serialize( @validate_call - def patch_invoice_post( + def crm_cache_update_post( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID that needs the cache to be updated")] = None, + clear: Annotated[Optional[StrictBool], Field(description="If property cache should be cleared")] = None, + clear_packages: Annotated[Optional[StrictBool], Field(description="If packages cache should be cleared for the property")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -340,19 +349,17 @@ def patch_invoice_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostPatchInvoiceResponse: - """patchInvoice + ) -> PostCRMCacheUpdateResponse: + """PostCRMCacheUpdate - Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. + - :param property_id: Property ID + :param property_id: Property ID that needs the cache to be updated :type property_id: str - :param invoice_id: Invoice unique ID - :type invoice_id: str - :param status: Desired new invoice status - :type status: str - :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status - :type file: bytearray + :param clear: If property cache should be cleared + :type clear: bool + :param clear_packages: If packages cache should be cleared for the property + :type clear_packages: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -375,11 +382,10 @@ def patch_invoice_post( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_invoice_post_serialize( + _param = self._crm_cache_update_post_serialize( property_id=property_id, - invoice_id=invoice_id, - status=status, - file=file, + clear=clear, + clear_packages=clear_packages, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -387,7 +393,7 @@ def patch_invoice_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPatchInvoiceResponse", + '200': "PostCRMCacheUpdateResponse", } response_data = self.api_client.call_api( *_param, @@ -401,12 +407,11 @@ def patch_invoice_post( @validate_call - def patch_invoice_post_with_http_info( + def crm_cache_update_post_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID that needs the cache to be updated")] = None, + clear: Annotated[Optional[StrictBool], Field(description="If property cache should be cleared")] = None, + clear_packages: Annotated[Optional[StrictBool], Field(description="If packages cache should be cleared for the property")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -419,19 +424,17 @@ def patch_invoice_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostPatchInvoiceResponse]: - """patchInvoice + ) -> ApiResponse[PostCRMCacheUpdateResponse]: + """PostCRMCacheUpdate - Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. + - :param property_id: Property ID + :param property_id: Property ID that needs the cache to be updated :type property_id: str - :param invoice_id: Invoice unique ID - :type invoice_id: str - :param status: Desired new invoice status - :type status: str - :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status - :type file: bytearray + :param clear: If property cache should be cleared + :type clear: bool + :param clear_packages: If packages cache should be cleared for the property + :type clear_packages: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -454,11 +457,10 @@ def patch_invoice_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_invoice_post_serialize( + _param = self._crm_cache_update_post_serialize( property_id=property_id, - invoice_id=invoice_id, - status=status, - file=file, + clear=clear, + clear_packages=clear_packages, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -466,7 +468,7 @@ def patch_invoice_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPatchInvoiceResponse", + '200': "PostCRMCacheUpdateResponse", } response_data = self.api_client.call_api( *_param, @@ -480,12 +482,11 @@ def patch_invoice_post_with_http_info( @validate_call - def patch_invoice_post_without_preload_content( + def crm_cache_update_post_without_preload_content( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID that needs the cache to be updated")] = None, + clear: Annotated[Optional[StrictBool], Field(description="If property cache should be cleared")] = None, + clear_packages: Annotated[Optional[StrictBool], Field(description="If packages cache should be cleared for the property")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -499,18 +500,16 @@ def patch_invoice_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patchInvoice + """PostCRMCacheUpdate - Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. + - :param property_id: Property ID + :param property_id: Property ID that needs the cache to be updated :type property_id: str - :param invoice_id: Invoice unique ID - :type invoice_id: str - :param status: Desired new invoice status - :type status: str - :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status - :type file: bytearray + :param clear: If property cache should be cleared + :type clear: bool + :param clear_packages: If packages cache should be cleared for the property + :type clear_packages: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -533,11 +532,10 @@ def patch_invoice_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_invoice_post_serialize( + _param = self._crm_cache_update_post_serialize( property_id=property_id, - invoice_id=invoice_id, - status=status, - file=file, + clear=clear, + clear_packages=clear_packages, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -545,7 +543,7 @@ def patch_invoice_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPatchInvoiceResponse", + '200': "PostCRMCacheUpdateResponse", } response_data = self.api_client.call_api( *_param, @@ -554,12 +552,11 @@ def patch_invoice_post_without_preload_content( return response_data.response - def _patch_invoice_post_serialize( + def _crm_cache_update_post_serialize( self, property_id, - invoice_id, - status, - file, + clear, + clear_packages, _request_auth, _content_type, _headers, @@ -585,13 +582,11 @@ def _patch_invoice_post_serialize( # process the header parameters # process the form parameters if property_id is not None: - _form_params.append(('propertyID', property_id)) - if invoice_id is not None: - _form_params.append(('invoiceID', invoice_id)) - if status is not None: - _form_params.append(('status', status)) - if file is not None: - _files['file'] = file + _form_params.append(('property_id', property_id)) + if clear is not None: + _form_params.append(('clear', clear)) + if clear_packages is not None: + _form_params.append(('clear_packages', clear_packages)) # process the body parameter @@ -625,7 +620,7 @@ def _patch_invoice_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/patchInvoice', + resource_path='/crm/cache_update', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cloudbeds_pms_v1_2/api/currency_api.py b/cloudbeds_pms_v1_3/api/currency_api.py similarity index 96% rename from cloudbeds_pms_v1_2/api/currency_api.py rename to cloudbeds_pms_v1_3/api/currency_api.py index b6cf32d..22dd9ef 100644 --- a/cloudbeds_pms_v1_2/api/currency_api.py +++ b/cloudbeds_pms_v1_3/api/currency_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,11 +19,11 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class CurrencyApi: diff --git a/cloudbeds_pms_v1_2/api/custom_fields_api.py b/cloudbeds_pms_v1_3/api/custom_fields_api.py similarity index 98% rename from cloudbeds_pms_v1_2/api/custom_fields_api.py rename to cloudbeds_pms_v1_3/api/custom_fields_api.py index 24ea2b0..d8176e9 100644 --- a/cloudbeds_pms_v1_2/api/custom_fields_api.py +++ b/cloudbeds_pms_v1_3/api/custom_fields_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,12 +19,12 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse -from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class CustomFieldsApi: diff --git a/cloudbeds_pms_v1_2/api/dashboard_api.py b/cloudbeds_pms_v1_3/api/dashboard_api.py similarity index 97% rename from cloudbeds_pms_v1_2/api/dashboard_api.py rename to cloudbeds_pms_v1_3/api/dashboard_api.py index e2dae5c..a8cfe42 100644 --- a/cloudbeds_pms_v1_2/api/dashboard_api.py +++ b/cloudbeds_pms_v1_3/api/dashboard_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,11 +20,11 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class DashboardApi: diff --git a/cloudbeds_pms_v1_2/api/emails_api.py b/cloudbeds_pms_v1_3/api/emails_api.py similarity index 98% rename from cloudbeds_pms_v1_2/api/emails_api.py rename to cloudbeds_pms_v1_3/api/emails_api.py index e85dee6..9dc44f7 100644 --- a/cloudbeds_pms_v1_2/api/emails_api.py +++ b/cloudbeds_pms_v1_3/api/emails_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,17 +19,17 @@ from pydantic import Field, StrictBool, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse -from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule -from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse -from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody -from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject -from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class EmailsApi: diff --git a/cloudbeds_pms_v1_2/api/groups_api.py b/cloudbeds_pms_v1_3/api/groups_api.py similarity index 99% rename from cloudbeds_pms_v1_2/api/groups_api.py rename to cloudbeds_pms_v1_3/api/groups_api.py index e2624c2..689f046 100644 --- a/cloudbeds_pms_v1_2/api/groups_api.py +++ b/cloudbeds_pms_v1_3/api/groups_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,15 +20,15 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse -from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse -from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse -from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse -from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class GroupsApi: diff --git a/cloudbeds_pms_v1_2/api/guest_api.py b/cloudbeds_pms_v1_3/api/guest_api.py similarity index 94% rename from cloudbeds_pms_v1_2/api/guest_api.py rename to cloudbeds_pms_v1_3/api/guest_api.py index 51f535a..494998d 100644 --- a/cloudbeds_pms_v1_2/api/guest_api.py +++ b/cloudbeds_pms_v1_3/api/guest_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,26 +20,27 @@ from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse -from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse -from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse -from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse -from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse -from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse -from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse -from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse -from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse -from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse -from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse -from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse -from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class GuestApi: @@ -2813,6 +2814,356 @@ def _get_guests_modified_get_serialize( + @validate_call + def post_guest_credit_card_post( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + card_name: Annotated[Optional[StrictStr], Field(description="Cardholder Name, as written in card")] = None, + card_number: Annotated[Optional[StrictStr], Field(description="Credit Card number")] = None, + card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, + card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, + card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostGuestCreditCardResponse: + """postGuestCreditCard + + Add a new credit card to guest file + + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param card_name: Cardholder Name, as written in card + :type card_name: str + :param card_number: Credit Card number + :type card_number: str + :param card_expiry_month: Credit Card expiration month + :type card_expiry_month: int + :param card_expiry_year: Credit Card expiration year (2 or 4 digits) + :type card_expiry_year: int + :param card_cvv: Credit Card CVV code + :type card_cvv: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_credit_card_post_serialize( + reservation_id=reservation_id, + card_name=card_name, + card_number=card_number, + card_expiry_month=card_expiry_month, + card_expiry_year=card_expiry_year, + card_cvv=card_cvv, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestCreditCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_guest_credit_card_post_with_http_info( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + card_name: Annotated[Optional[StrictStr], Field(description="Cardholder Name, as written in card")] = None, + card_number: Annotated[Optional[StrictStr], Field(description="Credit Card number")] = None, + card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, + card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, + card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostGuestCreditCardResponse]: + """postGuestCreditCard + + Add a new credit card to guest file + + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param card_name: Cardholder Name, as written in card + :type card_name: str + :param card_number: Credit Card number + :type card_number: str + :param card_expiry_month: Credit Card expiration month + :type card_expiry_month: int + :param card_expiry_year: Credit Card expiration year (2 or 4 digits) + :type card_expiry_year: int + :param card_cvv: Credit Card CVV code + :type card_cvv: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_credit_card_post_serialize( + reservation_id=reservation_id, + card_name=card_name, + card_number=card_number, + card_expiry_month=card_expiry_month, + card_expiry_year=card_expiry_year, + card_cvv=card_cvv, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestCreditCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_guest_credit_card_post_without_preload_content( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + card_name: Annotated[Optional[StrictStr], Field(description="Cardholder Name, as written in card")] = None, + card_number: Annotated[Optional[StrictStr], Field(description="Credit Card number")] = None, + card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, + card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, + card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postGuestCreditCard + + Add a new credit card to guest file + + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param card_name: Cardholder Name, as written in card + :type card_name: str + :param card_number: Credit Card number + :type card_number: str + :param card_expiry_month: Credit Card expiration month + :type card_expiry_month: int + :param card_expiry_year: Credit Card expiration year (2 or 4 digits) + :type card_expiry_year: int + :param card_cvv: Credit Card CVV code + :type card_cvv: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_guest_credit_card_post_serialize( + reservation_id=reservation_id, + card_name=card_name, + card_number=card_number, + card_expiry_month=card_expiry_month, + card_expiry_year=card_expiry_year, + card_cvv=card_cvv, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostGuestCreditCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_guest_credit_card_post_serialize( + self, + reservation_id, + card_name, + card_number, + card_expiry_month, + card_expiry_year, + card_cvv, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if card_name is not None: + _form_params.append(('cardName', card_name)) + if card_number is not None: + _form_params.append(('cardNumber', card_number)) + if card_expiry_month is not None: + _form_params.append(('cardExpiryMonth', card_expiry_month)) + if card_expiry_year is not None: + _form_params.append(('cardExpiryYear', card_expiry_year)) + if card_cvv is not None: + _form_params.append(('cardCVV', card_cvv)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postGuestCreditCard', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def post_guest_document_post( self, diff --git a/cloudbeds_pms_v1_2/api/hotel_api.py b/cloudbeds_pms_v1_3/api/hotel_api.py similarity index 98% rename from cloudbeds_pms_v1_2/api/hotel_api.py rename to cloudbeds_pms_v1_3/api/hotel_api.py index 92b4d60..32d8ef0 100644 --- a/cloudbeds_pms_v1_2/api/hotel_api.py +++ b/cloudbeds_pms_v1_3/api/hotel_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,14 +19,14 @@ from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import Optional, Tuple, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse -from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse -from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse -from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class HotelApi: diff --git a/cloudbeds_pms_v1_3/api/house_account_api.py b/cloudbeds_pms_v1_3/api/house_account_api.py new file mode 100644 index 0000000..2180abf --- /dev/null +++ b/cloudbeds_pms_v1_3/api/house_account_api.py @@ -0,0 +1,1250 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date +from pydantic import Field, StrictBool, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType + + +class HouseAccountApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_house_account_details_get( + self, + house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHouseAccountDetailsResponse: + """getHouseAccountDetails + + Pulls details of specific house account + + :param house_account_id: House Account ID to get details for (required) + :type house_account_id: str + :param property_id: Property ID + :type property_id: str + :param results_from: date\"] Inferior limit date, used to filter result records + :type results_from: date + :param results_to: date\"] Inferior limit date, used to filter result records + :type results_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_details_get_serialize( + house_account_id=house_account_id, + property_id=property_id, + results_from=results_from, + results_to=results_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_house_account_details_get_with_http_info( + self, + house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHouseAccountDetailsResponse]: + """getHouseAccountDetails + + Pulls details of specific house account + + :param house_account_id: House Account ID to get details for (required) + :type house_account_id: str + :param property_id: Property ID + :type property_id: str + :param results_from: date\"] Inferior limit date, used to filter result records + :type results_from: date + :param results_to: date\"] Inferior limit date, used to filter result records + :type results_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_details_get_serialize( + house_account_id=house_account_id, + property_id=property_id, + results_from=results_from, + results_to=results_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_house_account_details_get_without_preload_content( + self, + house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHouseAccountDetails + + Pulls details of specific house account + + :param house_account_id: House Account ID to get details for (required) + :type house_account_id: str + :param property_id: Property ID + :type property_id: str + :param results_from: date\"] Inferior limit date, used to filter result records + :type results_from: date + :param results_to: date\"] Inferior limit date, used to filter result records + :type results_to: date + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_details_get_serialize( + house_account_id=house_account_id, + property_id=property_id, + results_from=results_from, + results_to=results_to, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_house_account_details_get_serialize( + self, + house_account_id, + property_id, + results_from, + results_to, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if house_account_id is not None: + + _query_params.append(('houseAccountID', house_account_id)) + + if results_from is not None: + if isinstance(results_from, date): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, date): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHouseAccountDetails', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_house_account_list_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHouseAccountListResponse: + """getHouseAccountList + + Pulls list of active house accounts + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_list_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_house_account_list_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHouseAccountListResponse]: + """getHouseAccountList + + Pulls list of active house accounts + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_list_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_house_account_list_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHouseAccountList + + Pulls list of active house accounts + + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_house_account_list_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHouseAccountListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_house_account_list_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHouseAccountList', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_new_house_account_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostNewHouseAccountResponse: + """postNewHouseAccount + + Add a new House Account + + :param property_id: Property ID + :type property_id: str + :param account_name: House Account name + :type account_name: str + :param is_private: Whether House Account is available only to user + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_new_house_account_post_serialize( + property_id=property_id, + account_name=account_name, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostNewHouseAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_new_house_account_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostNewHouseAccountResponse]: + """postNewHouseAccount + + Add a new House Account + + :param property_id: Property ID + :type property_id: str + :param account_name: House Account name + :type account_name: str + :param is_private: Whether House Account is available only to user + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_new_house_account_post_serialize( + property_id=property_id, + account_name=account_name, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostNewHouseAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_new_house_account_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postNewHouseAccount + + Add a new House Account + + :param property_id: Property ID + :type property_id: str + :param account_name: House Account name + :type account_name: str + :param is_private: Whether House Account is available only to user + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_new_house_account_post_serialize( + property_id=property_id, + account_name=account_name, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostNewHouseAccountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_new_house_account_post_serialize( + self, + property_id, + account_name, + is_private, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if account_name is not None: + _form_params.append(('accountName', account_name)) + if is_private is not None: + _form_params.append(('isPrivate', is_private)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postNewHouseAccount', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_house_account_status_put( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PutHouseAccountStatusResponse: + """putHouseAccountStatus + + Change specific house account to either open or closed. + + :param property_id: Property ID + :type property_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param status: House Account status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_house_account_status_put_serialize( + property_id=property_id, + house_account_id=house_account_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHouseAccountStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_house_account_status_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutHouseAccountStatusResponse]: + """putHouseAccountStatus + + Change specific house account to either open or closed. + + :param property_id: Property ID + :type property_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param status: House Account status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_house_account_status_put_serialize( + property_id=property_id, + house_account_id=house_account_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHouseAccountStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_house_account_status_put_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """putHouseAccountStatus + + Change specific house account to either open or closed. + + :param property_id: Property ID + :type property_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param status: House Account status + :type status: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_house_account_status_put_serialize( + property_id=property_id, + house_account_id=house_account_id, + status=status, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PutHouseAccountStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_house_account_status_put_serialize( + self, + property_id, + house_account_id, + status, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if status is not None: + _form_params.append(('status', status)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/putHouseAccountStatus', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/housekeeping_api.py b/cloudbeds_pms_v1_3/api/housekeeping_api.py similarity index 99% rename from cloudbeds_pms_v1_2/api/housekeeping_api.py rename to cloudbeds_pms_v1_3/api/housekeeping_api.py index cb4bccd..dffdbcd 100644 --- a/cloudbeds_pms_v1_2/api/housekeeping_api.py +++ b/cloudbeds_pms_v1_3/api/housekeeping_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,16 +19,16 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse -from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse -from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class HousekeepingApi: diff --git a/cloudbeds_pms_v1_2/api/adjustment_api.py b/cloudbeds_pms_v1_3/api/import_api.py similarity index 65% rename from cloudbeds_pms_v1_2/api/adjustment_api.py rename to cloudbeds_pms_v1_3/api/import_api.py index aee35c6..782a532 100644 --- a/cloudbeds_pms_v1_2/api/adjustment_api.py +++ b/cloudbeds_pms_v1_3/api/import_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,18 +16,15 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Optional, Union -from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse -from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse +from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType -class AdjustmentApi: +class ImportApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -41,11 +38,8 @@ def __init__(self, api_client=None) -> None: @validate_call - def delete_adjustment_delete( + def import_dummy_reservations_get( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58,17 +52,11 @@ def delete_adjustment_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteAdjustmentResponse: - """deleteAdjustment + ) -> GetImportDummyReservationsResponse: + """GetImportDummyReservations - Voids the AdjustmentID transaction on the specified reservationID + - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -91,10 +79,7 @@ def delete_adjustment_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_adjustment_delete_serialize( - reservation_id=reservation_id, - adjustment_id=adjustment_id, - property_id=property_id, + _param = self._import_dummy_reservations_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102,7 +87,7 @@ def delete_adjustment_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteAdjustmentResponse", + '200': "GetImportDummyReservationsResponse", } response_data = self.api_client.call_api( *_param, @@ -116,11 +101,8 @@ def delete_adjustment_delete( @validate_call - def delete_adjustment_delete_with_http_info( + def import_dummy_reservations_get_with_http_info( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -133,17 +115,11 @@ def delete_adjustment_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteAdjustmentResponse]: - """deleteAdjustment + ) -> ApiResponse[GetImportDummyReservationsResponse]: + """GetImportDummyReservations - Voids the AdjustmentID transaction on the specified reservationID + - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -166,10 +142,7 @@ def delete_adjustment_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_adjustment_delete_serialize( - reservation_id=reservation_id, - adjustment_id=adjustment_id, - property_id=property_id, + _param = self._import_dummy_reservations_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -177,7 +150,7 @@ def delete_adjustment_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteAdjustmentResponse", + '200': "GetImportDummyReservationsResponse", } response_data = self.api_client.call_api( *_param, @@ -191,11 +164,8 @@ def delete_adjustment_delete_with_http_info( @validate_call - def delete_adjustment_delete_without_preload_content( + def import_dummy_reservations_get_without_preload_content( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -209,16 +179,10 @@ def delete_adjustment_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """deleteAdjustment + """GetImportDummyReservations - Voids the AdjustmentID transaction on the specified reservationID + - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -241,10 +205,7 @@ def delete_adjustment_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_adjustment_delete_serialize( - reservation_id=reservation_id, - adjustment_id=adjustment_id, - property_id=property_id, + _param = self._import_dummy_reservations_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -252,7 +213,7 @@ def delete_adjustment_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteAdjustmentResponse", + '200': "GetImportDummyReservationsResponse", } response_data = self.api_client.call_api( *_param, @@ -261,11 +222,8 @@ def delete_adjustment_delete_without_preload_content( return response_data.response - def _delete_adjustment_delete_serialize( + def _import_dummy_reservations_get_serialize( self, - reservation_id, - adjustment_id, - property_id, _request_auth, _content_type, _headers, @@ -288,18 +246,6 @@ def _delete_adjustment_delete_serialize( # process the path parameters # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if adjustment_id is not None: - - _query_params.append(('adjustmentID', adjustment_id)) - # process the header parameters # process the form parameters # process the body parameter @@ -321,8 +267,8 @@ def _delete_adjustment_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/deleteAdjustment', + method='GET', + resource_path='/import/dummyReservations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -339,14 +285,8 @@ def _delete_adjustment_delete_serialize( @validate_call - def post_adjustment_post( + def import_tours_get( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, - notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, - item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -359,23 +299,11 @@ def post_adjustment_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostAdjustmentResponse: - """postAdjustment - - Adds an adjustment to a reservation - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param type: Apply Adjustment to - :type type: str - :param amount: Adjustment amount - :type amount: float - :param notes: Adjustment notes - :type notes: str - :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate - :type item_id: str + ) -> GetImportToursResponse: + """GetImportTours + + + :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -398,13 +326,7 @@ def post_adjustment_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_adjustment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - type=type, - amount=amount, - notes=notes, - item_id=item_id, + _param = self._import_tours_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -412,7 +334,7 @@ def post_adjustment_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAdjustmentResponse", + '200': "GetImportToursResponse", } response_data = self.api_client.call_api( *_param, @@ -426,14 +348,8 @@ def post_adjustment_post( @validate_call - def post_adjustment_post_with_http_info( + def import_tours_get_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, - notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, - item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -446,23 +362,11 @@ def post_adjustment_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostAdjustmentResponse]: - """postAdjustment - - Adds an adjustment to a reservation - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param type: Apply Adjustment to - :type type: str - :param amount: Adjustment amount - :type amount: float - :param notes: Adjustment notes - :type notes: str - :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate - :type item_id: str + ) -> ApiResponse[GetImportToursResponse]: + """GetImportTours + + + :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -485,13 +389,7 @@ def post_adjustment_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_adjustment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - type=type, - amount=amount, - notes=notes, - item_id=item_id, + _param = self._import_tours_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -499,7 +397,7 @@ def post_adjustment_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAdjustmentResponse", + '200': "GetImportToursResponse", } response_data = self.api_client.call_api( *_param, @@ -513,14 +411,8 @@ def post_adjustment_post_with_http_info( @validate_call - def post_adjustment_post_without_preload_content( + def import_tours_get_without_preload_content( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - type: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Adjustment amount")] = None, - notes: Annotated[Optional[StrictStr], Field(description="Adjustment notes")] = None, - item_id: Annotated[Optional[StrictStr], Field(description="Apply Adjustment to. Identifier for: product, tax, fee. Not for rate")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -534,22 +426,10 @@ def post_adjustment_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postAdjustment - - Adds an adjustment to a reservation - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param type: Apply Adjustment to - :type type: str - :param amount: Adjustment amount - :type amount: float - :param notes: Adjustment notes - :type notes: str - :param item_id: Apply Adjustment to. Identifier for: product, tax, fee. Not for rate - :type item_id: str + """GetImportTours + + + :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -572,13 +452,7 @@ def post_adjustment_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_adjustment_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - type=type, - amount=amount, - notes=notes, - item_id=item_id, + _param = self._import_tours_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -586,7 +460,7 @@ def post_adjustment_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAdjustmentResponse", + '200': "GetImportToursResponse", } response_data = self.api_client.call_api( *_param, @@ -595,14 +469,8 @@ def post_adjustment_post_without_preload_content( return response_data.response - def _post_adjustment_post_serialize( + def _import_tours_get_serialize( self, - property_id, - reservation_id, - type, - amount, - notes, - item_id, _request_auth, _content_type, _headers, @@ -627,18 +495,6 @@ def _post_adjustment_post_serialize( # process the query parameters # process the header parameters # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if type is not None: - _form_params.append(('type', type)) - if amount is not None: - _form_params.append(('amount', amount)) - if notes is not None: - _form_params.append(('notes', notes)) - if item_id is not None: - _form_params.append(('itemID', item_id)) # process the body parameter @@ -650,19 +506,6 @@ def _post_adjustment_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -671,8 +514,8 @@ def _post_adjustment_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/postAdjustment', + method='GET', + resource_path='/import/tours', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cloudbeds_pms_v1_2/api/integration_api.py b/cloudbeds_pms_v1_3/api/integration_api.py similarity index 79% rename from cloudbeds_pms_v1_2/api/integration_api.py rename to cloudbeds_pms_v1_3/api/integration_api.py index 991c6fc..f75ceb0 100644 --- a/cloudbeds_pms_v1_2/api/integration_api.py +++ b/cloudbeds_pms_v1_3/api/integration_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,20 +18,23 @@ from datetime import datetime from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Optional, Union +from typing import List, Optional, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse -from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse -from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse -from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse -from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse -from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse -from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner +from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse +from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class IntegrationApi: @@ -592,6 +595,7 @@ def _get_app_settings_get_serialize( def get_app_state_get( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -607,10 +611,12 @@ def get_app_state_get( ) -> GetAppStateResponse: """getAppState - Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. :param property_id: Property identifier to be queried :type property_id: str + :param client_id: Client identifier + :type client_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -635,6 +641,7 @@ def get_app_state_get( _param = self._get_app_state_get_serialize( property_id=property_id, + client_id=client_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -659,6 +666,7 @@ def get_app_state_get( def get_app_state_get_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -674,10 +682,12 @@ def get_app_state_get_with_http_info( ) -> ApiResponse[GetAppStateResponse]: """getAppState - Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. :param property_id: Property identifier to be queried :type property_id: str + :param client_id: Client identifier + :type client_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -702,6 +712,7 @@ def get_app_state_get_with_http_info( _param = self._get_app_state_get_serialize( property_id=property_id, + client_id=client_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -726,6 +737,7 @@ def get_app_state_get_with_http_info( def get_app_state_get_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -741,10 +753,12 @@ def get_app_state_get_without_preload_content( ) -> RESTResponseType: """getAppState - Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. :param property_id: Property identifier to be queried :type property_id: str + :param client_id: Client identifier + :type client_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -769,6 +783,7 @@ def get_app_state_get_without_preload_content( _param = self._get_app_state_get_serialize( property_id=property_id, + client_id=client_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -788,6 +803,7 @@ def get_app_state_get_without_preload_content( def _get_app_state_get_serialize( self, property_id, + client_id, _request_auth, _content_type, _headers, @@ -814,6 +830,10 @@ def _get_app_state_get_serialize( _query_params.append(('propertyID', property_id)) + if client_id is not None: + + _query_params.append(('clientID', client_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -1507,6 +1527,598 @@ def _post_app_error_post_serialize( + @validate_call + def post_app_settings_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + settings: Annotated[Optional[List[PostAppSettingsRequestSettingsInner]], Field(description="An array of setings")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAppSettingsResponse: + """postAppSettings + + Update the current app settings for a property.
+ + :param property_id: Property identifier to be queried + :type property_id: str + :param settings: An array of setings + :type settings: List[PostAppSettingsRequestSettingsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_settings_post_serialize( + property_id=property_id, + settings=settings, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppSettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_app_settings_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + settings: Annotated[Optional[List[PostAppSettingsRequestSettingsInner]], Field(description="An array of setings")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAppSettingsResponse]: + """postAppSettings + + Update the current app settings for a property.
+ + :param property_id: Property identifier to be queried + :type property_id: str + :param settings: An array of setings + :type settings: List[PostAppSettingsRequestSettingsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_settings_post_serialize( + property_id=property_id, + settings=settings, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppSettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_app_settings_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, + settings: Annotated[Optional[List[PostAppSettingsRequestSettingsInner]], Field(description="An array of setings")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postAppSettings + + Update the current app settings for a property.
+ + :param property_id: Property identifier to be queried + :type property_id: str + :param settings: An array of setings + :type settings: List[PostAppSettingsRequestSettingsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_settings_post_serialize( + property_id=property_id, + settings=settings, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppSettingsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_app_settings_post_serialize( + self, + property_id, + settings, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'settings': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if settings is not None: + _form_params.append(('settings', settings)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postAppSettings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_app_state_internal_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostAppStateInternalResponse: + """postAppStateInternal + + Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be updated + :type property_id: str + :param client_id: Client identifier + :type client_id: str + :param app_state: Current integration state between third-party and property. + :type app_state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_state_internal_post_serialize( + property_id=property_id, + client_id=client_id, + app_state=app_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppStateInternalResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_app_state_internal_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostAppStateInternalResponse]: + """postAppStateInternal + + Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be updated + :type property_id: str + :param client_id: Client identifier + :type client_id: str + :param app_state: Current integration state between third-party and property. + :type app_state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_state_internal_post_serialize( + property_id=property_id, + client_id=client_id, + app_state=app_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppStateInternalResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_app_state_internal_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postAppStateInternal + + Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + + :param property_id: Property identifier to be updated + :type property_id: str + :param client_id: Client identifier + :type client_id: str + :param app_state: Current integration state between third-party and property. + :type app_state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_app_state_internal_post_serialize( + property_id=property_id, + client_id=client_id, + app_state=app_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostAppStateInternalResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_app_state_internal_post_serialize( + self, + property_id, + client_id, + app_state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if client_id is not None: + _form_params.append(('clientID', client_id)) + if app_state is not None: + _form_params.append(('appState', app_state)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postAppStateInternal', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def post_app_state_post( self, diff --git a/cloudbeds_pms_v1_2/api/house_account_api.py b/cloudbeds_pms_v1_3/api/invoices_api.py similarity index 78% rename from cloudbeds_pms_v1_2/api/house_account_api.py rename to cloudbeds_pms_v1_3/api/invoices_api.py index 332dc3e..aa9e504 100644 --- a/cloudbeds_pms_v1_2/api/house_account_api.py +++ b/cloudbeds_pms_v1_3/api/invoices_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,19 +16,18 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictStr, field_validator -from typing import Optional +from pydantic import Field, StrictBytes, StrictStr, field_validator +from typing import Optional, Tuple, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse -from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse -from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType -class HouseAccountApi: +class InvoicesApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -42,8 +41,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_house_account_list_get( + def get_invoice_get( self, + invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, @@ -57,11 +57,13 @@ def get_house_account_list_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetHouseAccountListResponse: - """getHouseAccountList + ) -> GetInvoiceResponse: + """getInvoice - Pulls list of active house accounts + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + :param invoice_id: Invoice ID (required) + :type invoice_id: str :param property_id: Property ID :type property_id: str :param _request_timeout: timeout setting for this request. If one @@ -86,7 +88,8 @@ def get_house_account_list_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_house_account_list_get_serialize( + _param = self._get_invoice_get_serialize( + invoice_id=invoice_id, property_id=property_id, _request_auth=_request_auth, _content_type=_content_type, @@ -95,7 +98,7 @@ def get_house_account_list_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountListResponse", + '200': "GetInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -109,8 +112,9 @@ def get_house_account_list_get( @validate_call - def get_house_account_list_get_with_http_info( + def get_invoice_get_with_http_info( self, + invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, @@ -124,11 +128,13 @@ def get_house_account_list_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetHouseAccountListResponse]: - """getHouseAccountList + ) -> ApiResponse[GetInvoiceResponse]: + """getInvoice - Pulls list of active house accounts + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + :param invoice_id: Invoice ID (required) + :type invoice_id: str :param property_id: Property ID :type property_id: str :param _request_timeout: timeout setting for this request. If one @@ -153,7 +159,8 @@ def get_house_account_list_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_house_account_list_get_serialize( + _param = self._get_invoice_get_serialize( + invoice_id=invoice_id, property_id=property_id, _request_auth=_request_auth, _content_type=_content_type, @@ -162,7 +169,7 @@ def get_house_account_list_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountListResponse", + '200': "GetInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -176,8 +183,9 @@ def get_house_account_list_get_with_http_info( @validate_call - def get_house_account_list_get_without_preload_content( + def get_invoice_get_without_preload_content( self, + invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, @@ -192,10 +200,12 @@ def get_house_account_list_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getHouseAccountList + """getInvoice - Pulls list of active house accounts + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + :param invoice_id: Invoice ID (required) + :type invoice_id: str :param property_id: Property ID :type property_id: str :param _request_timeout: timeout setting for this request. If one @@ -220,7 +230,8 @@ def get_house_account_list_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_house_account_list_get_serialize( + _param = self._get_invoice_get_serialize( + invoice_id=invoice_id, property_id=property_id, _request_auth=_request_auth, _content_type=_content_type, @@ -229,7 +240,7 @@ def get_house_account_list_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountListResponse", + '200': "GetInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -238,8 +249,9 @@ def get_house_account_list_get_without_preload_content( return response_data.response - def _get_house_account_list_get_serialize( + def _get_invoice_get_serialize( self, + invoice_id, property_id, _request_auth, _content_type, @@ -267,6 +279,10 @@ def _get_house_account_list_get_serialize( _query_params.append(('propertyID', property_id)) + if invoice_id is not None: + + _query_params.append(('invoiceID', invoice_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -289,7 +305,7 @@ def _get_house_account_list_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getHouseAccountList', + resource_path='/getInvoice', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -306,11 +322,10 @@ def _get_house_account_list_get_serialize( @validate_call - def post_new_house_account_post( + def invoice_get( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, - is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -323,17 +338,15 @@ def post_new_house_account_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostNewHouseAccountResponse: - """postNewHouseAccount + ) -> GetInvoiceResponse: + """invoice - Add a new House Account + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. :param property_id: Property ID :type property_id: str - :param account_name: House Account name - :type account_name: str - :param is_private: Whether House Account is available only to user - :type is_private: bool + :param invoice_id: Invoice ID + :type invoice_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -356,10 +369,9 @@ def post_new_house_account_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_new_house_account_post_serialize( + _param = self._invoice_get_serialize( property_id=property_id, - account_name=account_name, - is_private=is_private, + invoice_id=invoice_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -367,7 +379,7 @@ def post_new_house_account_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostNewHouseAccountResponse", + '200': "GetInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -381,11 +393,10 @@ def post_new_house_account_post( @validate_call - def post_new_house_account_post_with_http_info( + def invoice_get_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, - is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -398,17 +409,15 @@ def post_new_house_account_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostNewHouseAccountResponse]: - """postNewHouseAccount + ) -> ApiResponse[GetInvoiceResponse]: + """invoice - Add a new House Account + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. :param property_id: Property ID :type property_id: str - :param account_name: House Account name - :type account_name: str - :param is_private: Whether House Account is available only to user - :type is_private: bool + :param invoice_id: Invoice ID + :type invoice_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -431,10 +440,9 @@ def post_new_house_account_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_new_house_account_post_serialize( + _param = self._invoice_get_serialize( property_id=property_id, - account_name=account_name, - is_private=is_private, + invoice_id=invoice_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -442,7 +450,7 @@ def post_new_house_account_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostNewHouseAccountResponse", + '200': "GetInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -456,11 +464,10 @@ def post_new_house_account_post_with_http_info( @validate_call - def post_new_house_account_post_without_preload_content( + def invoice_get_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - account_name: Annotated[Optional[StrictStr], Field(description="House Account name")] = None, - is_private: Annotated[Optional[StrictBool], Field(description="Whether House Account is available only to user")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -474,16 +481,14 @@ def post_new_house_account_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postNewHouseAccount + """invoice - Add a new House Account + Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. :param property_id: Property ID :type property_id: str - :param account_name: House Account name - :type account_name: str - :param is_private: Whether House Account is available only to user - :type is_private: bool + :param invoice_id: Invoice ID + :type invoice_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -506,10 +511,9 @@ def post_new_house_account_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_new_house_account_post_serialize( + _param = self._invoice_get_serialize( property_id=property_id, - account_name=account_name, - is_private=is_private, + invoice_id=invoice_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -517,7 +521,7 @@ def post_new_house_account_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostNewHouseAccountResponse", + '200': "GetInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -526,11 +530,10 @@ def post_new_house_account_post_without_preload_content( return response_data.response - def _post_new_house_account_post_serialize( + def _invoice_get_serialize( self, property_id, - account_name, - is_private, + invoice_id, _request_auth, _content_type, _headers, @@ -553,14 +556,16 @@ def _post_new_house_account_post_serialize( # process the path parameters # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if invoice_id is not None: + + _query_params.append(('invoiceID', invoice_id)) + # process the header parameters # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if account_name is not None: - _form_params.append(('accountName', account_name)) - if is_private is not None: - _form_params.append(('isPrivate', is_private)) # process the body parameter @@ -572,19 +577,6 @@ def _post_new_house_account_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -593,8 +585,8 @@ def _post_new_house_account_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/postNewHouseAccount', + method='GET', + resource_path='/invoice', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -611,11 +603,12 @@ def _post_new_house_account_post_serialize( @validate_call - def put_house_account_status_put( + def patch_invoice_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -628,17 +621,19 @@ def put_house_account_status_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PutHouseAccountStatusResponse: - """putHouseAccountStatus + ) -> PostPatchInvoiceResponse: + """patchInvoice - Change specific house account to either open or closed. + Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. :param property_id: Property ID :type property_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param status: House Account status + :param invoice_id: Invoice unique ID + :type invoice_id: str + :param status: Desired new invoice status :type status: str + :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -661,10 +656,11 @@ def put_house_account_status_put( :return: Returns the result object. """ # noqa: E501 - _param = self._put_house_account_status_put_serialize( + _param = self._patch_invoice_post_serialize( property_id=property_id, - house_account_id=house_account_id, + invoice_id=invoice_id, status=status, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -672,7 +668,7 @@ def put_house_account_status_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutHouseAccountStatusResponse", + '200': "PostPatchInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -686,11 +682,12 @@ def put_house_account_status_put( @validate_call - def put_house_account_status_put_with_http_info( + def patch_invoice_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -703,17 +700,19 @@ def put_house_account_status_put_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PutHouseAccountStatusResponse]: - """putHouseAccountStatus + ) -> ApiResponse[PostPatchInvoiceResponse]: + """patchInvoice - Change specific house account to either open or closed. + Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. :param property_id: Property ID :type property_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param status: House Account status + :param invoice_id: Invoice unique ID + :type invoice_id: str + :param status: Desired new invoice status :type status: str + :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -736,10 +735,11 @@ def put_house_account_status_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_house_account_status_put_serialize( + _param = self._patch_invoice_post_serialize( property_id=property_id, - house_account_id=house_account_id, + invoice_id=invoice_id, status=status, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -747,7 +747,7 @@ def put_house_account_status_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutHouseAccountStatusResponse", + '200': "PostPatchInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -761,11 +761,12 @@ def put_house_account_status_put_with_http_info( @validate_call - def put_house_account_status_put_without_preload_content( + def patch_invoice_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="House Account status")] = None, + invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, + status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -779,16 +780,18 @@ def put_house_account_status_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """putHouseAccountStatus + """patchInvoice - Change specific house account to either open or closed. + Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. :param property_id: Property ID :type property_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param status: House Account status + :param invoice_id: Invoice unique ID + :type invoice_id: str + :param status: Desired new invoice status :type status: str + :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -811,10 +814,11 @@ def put_house_account_status_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_house_account_status_put_serialize( + _param = self._patch_invoice_post_serialize( property_id=property_id, - house_account_id=house_account_id, + invoice_id=invoice_id, status=status, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -822,7 +826,7 @@ def put_house_account_status_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutHouseAccountStatusResponse", + '200': "PostPatchInvoiceResponse", } response_data = self.api_client.call_api( *_param, @@ -831,11 +835,12 @@ def put_house_account_status_put_without_preload_content( return response_data.response - def _put_house_account_status_put_serialize( + def _patch_invoice_post_serialize( self, property_id, - house_account_id, + invoice_id, status, + file, _request_auth, _content_type, _headers, @@ -862,10 +867,12 @@ def _put_house_account_status_put_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if house_account_id is not None: - _form_params.append(('houseAccountID', house_account_id)) + if invoice_id is not None: + _form_params.append(('invoiceID', invoice_id)) if status is not None: _form_params.append(('status', status)) + if file is not None: + _files['file'] = file # process the body parameter @@ -898,8 +905,8 @@ def _put_house_account_status_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/putHouseAccountStatus', + method='POST', + resource_path='/patchInvoice', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cloudbeds_pms_v1_2/api/item_api.py b/cloudbeds_pms_v1_3/api/item_api.py similarity index 81% rename from cloudbeds_pms_v1_2/api/item_api.py rename to cloudbeds_pms_v1_3/api/item_api.py index 40887d4..1dd8370 100644 --- a/cloudbeds_pms_v1_2/api/item_api.py +++ b/cloudbeds_pms_v1_3/api/item_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,28 +16,30 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from datetime import datetime +from datetime import date, datetime from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import List, Optional, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse -from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse -from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse -from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner -from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse -from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse -from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner -from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse -from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse -from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse -from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class ItemApi: @@ -480,6 +482,287 @@ def _append_custom_item_post_serialize( + @validate_call + def delete_item_from_reservation_delete( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + sold_product_id: Annotated[StrictStr, Field(description="Item identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteItemFromReservationResponse: + """deleteItemFromReservation + + Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param sold_product_id: Item identifier (required) + :type sold_product_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_item_from_reservation_delete_serialize( + reservation_id=reservation_id, + sold_product_id=sold_product_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteItemFromReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_item_from_reservation_delete_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + sold_product_id: Annotated[StrictStr, Field(description="Item identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteItemFromReservationResponse]: + """deleteItemFromReservation + + Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param sold_product_id: Item identifier (required) + :type sold_product_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_item_from_reservation_delete_serialize( + reservation_id=reservation_id, + sold_product_id=sold_product_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteItemFromReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_item_from_reservation_delete_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], + sold_product_id: Annotated[StrictStr, Field(description="Item identifier")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """deleteItemFromReservation + + Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + + :param reservation_id: Reservation identifier (required) + :type reservation_id: str + :param sold_product_id: Item identifier (required) + :type sold_product_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_item_from_reservation_delete_serialize( + reservation_id=reservation_id, + sold_product_id=sold_product_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteItemFromReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_item_from_reservation_delete_serialize( + self, + reservation_id, + sold_product_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if sold_product_id is not None: + + _query_params.append(('soldProductID', sold_product_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/deleteItemFromReservation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_item_categories_get( self, @@ -2113,7 +2396,7 @@ def post_item_post( item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2154,7 +2437,7 @@ def post_item_post( :param sale_date: posting date :type sale_date: datetime :param payments: list of payments If the item is already paid - :type payments: List[PostItemRequestPaymentsInner] + :type payments: List[PostItemToReservationRequestPaymentsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2224,7 +2507,7 @@ def post_item_post_with_http_info( item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2265,7 +2548,7 @@ def post_item_post_with_http_info( :param sale_date: posting date :type sale_date: datetime :param payments: list of payments If the item is already paid - :type payments: List[PostItemRequestPaymentsInner] + :type payments: List[PostItemToReservationRequestPaymentsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2335,7 +2618,7 @@ def post_item_post_without_preload_content( item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2376,7 +2659,7 @@ def post_item_post_without_preload_content( :param sale_date: posting date :type sale_date: datetime :param payments: list of payments If the item is already paid - :type payments: List[PostItemRequestPaymentsInner] + :type payments: List[PostItemToReservationRequestPaymentsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2541,9 +2824,17 @@ def _post_item_post_serialize( @validate_call - def post_items_to_inventory_post( + def post_item_to_reservation_post( self, - item: Optional[PostItemsToInventoryRequestItem] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, + item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, + item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, + sale_date: Annotated[Optional[date], Field(description="posting date")] = None, + payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2556,7 +2847,395 @@ def post_items_to_inventory_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostItemsToInventoryResponse: + ) -> PostItemToReservationResponse: + """postItemToReservation + + Adds an item to a reservation. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param item_id: Item identifier + :type item_id: str + :param item_quantity: Items quantity + :type item_quantity: int + :param item_price: Item price, if not sent, items registered price will be used + :type item_price: str + :param item_note: Item note + :type item_note: str + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. + :type item_paid: bool + :param sale_date: posting date + :type sale_date: date + :param payments: list of payments If the item is already paid + :type payments: List[PostItemToReservationRequestPaymentsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_to_reservation_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + item_id=item_id, + item_quantity=item_quantity, + item_price=item_price, + item_note=item_note, + item_paid=item_paid, + sale_date=sale_date, + payments=payments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemToReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_item_to_reservation_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, + item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, + item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, + sale_date: Annotated[Optional[date], Field(description="posting date")] = None, + payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostItemToReservationResponse]: + """postItemToReservation + + Adds an item to a reservation. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param item_id: Item identifier + :type item_id: str + :param item_quantity: Items quantity + :type item_quantity: int + :param item_price: Item price, if not sent, items registered price will be used + :type item_price: str + :param item_note: Item note + :type item_note: str + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. + :type item_paid: bool + :param sale_date: posting date + :type sale_date: date + :param payments: list of payments If the item is already paid + :type payments: List[PostItemToReservationRequestPaymentsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_to_reservation_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + item_id=item_id, + item_quantity=item_quantity, + item_price=item_price, + item_note=item_note, + item_paid=item_paid, + sale_date=sale_date, + payments=payments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemToReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_item_to_reservation_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, + item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, + item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, + item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, + item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, + sale_date: Annotated[Optional[date], Field(description="posting date")] = None, + payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postItemToReservation + + Adds an item to a reservation. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param item_id: Item identifier + :type item_id: str + :param item_quantity: Items quantity + :type item_quantity: int + :param item_price: Item price, if not sent, items registered price will be used + :type item_price: str + :param item_note: Item note + :type item_note: str + :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. + :type item_paid: bool + :param sale_date: posting date + :type sale_date: date + :param payments: list of payments If the item is already paid + :type payments: List[PostItemToReservationRequestPaymentsInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_item_to_reservation_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + item_id=item_id, + item_quantity=item_quantity, + item_price=item_price, + item_note=item_note, + item_paid=item_paid, + sale_date=sale_date, + payments=payments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostItemToReservationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_item_to_reservation_post_serialize( + self, + property_id, + reservation_id, + item_id, + item_quantity, + item_price, + item_note, + item_paid, + sale_date, + payments, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'payments': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if item_id is not None: + _form_params.append(('itemID', item_id)) + if item_quantity is not None: + _form_params.append(('itemQuantity', item_quantity)) + if item_price is not None: + _form_params.append(('itemPrice', item_price)) + if item_note is not None: + _form_params.append(('itemNote', item_note)) + if item_paid is not None: + _form_params.append(('itemPaid', item_paid)) + if sale_date is not None: + _form_params.append(('saleDate', sale_date)) + if payments is not None: + _form_params.append(('payments', payments)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postItemToReservation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_items_to_inventory_post( + self, + item: Optional[PostItemsToInventoryRequestItem] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostItemsToInventoryResponse: """postItemsToInventory Adds new items batch
¹ only if item.stockInventory = true
@@ -2819,8 +3498,9 @@ def _post_items_to_inventory_post_serialize( def post_void_item_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. reservationID or houseAccountID are necessary.")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. reservationID or houseAccountID are necessary.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, sold_product_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, _request_timeout: Union[ None, @@ -2837,14 +3517,16 @@ def post_void_item_post( ) -> PostVoidItemResponse: """postVoidItem - Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + Voids the itemID transaction on the specified Reservation ID, House Account ID, or Group. If payments were sent in calls [postItem](https://developers.cloudbeds.com/reference/post_postitem) or [postCustomItem](https://developers.cloudbeds.com/reference/post_postcustomitem), they will be deleted too. :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation identifier. reservationID or houseAccountID are necessary. + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. :type reservation_id: str - :param house_account_id: House Account identifier. reservationID or houseAccountID are necessary. + :param house_account_id: House Account identifier. Required if no reservationID or groupCode is provided. :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str :param sold_product_id: Item identifier :type sold_product_id: str :param _request_timeout: timeout setting for this request. If one @@ -2873,6 +3555,7 @@ def post_void_item_post( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, + group_code=group_code, sold_product_id=sold_product_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2898,8 +3581,9 @@ def post_void_item_post( def post_void_item_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. reservationID or houseAccountID are necessary.")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. reservationID or houseAccountID are necessary.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, sold_product_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, _request_timeout: Union[ None, @@ -2916,14 +3600,16 @@ def post_void_item_post_with_http_info( ) -> ApiResponse[PostVoidItemResponse]: """postVoidItem - Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + Voids the itemID transaction on the specified Reservation ID, House Account ID, or Group. If payments were sent in calls [postItem](https://developers.cloudbeds.com/reference/post_postitem) or [postCustomItem](https://developers.cloudbeds.com/reference/post_postcustomitem), they will be deleted too. :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation identifier. reservationID or houseAccountID are necessary. + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. :type reservation_id: str - :param house_account_id: House Account identifier. reservationID or houseAccountID are necessary. + :param house_account_id: House Account identifier. Required if no reservationID or groupCode is provided. :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str :param sold_product_id: Item identifier :type sold_product_id: str :param _request_timeout: timeout setting for this request. If one @@ -2952,6 +3638,7 @@ def post_void_item_post_with_http_info( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, + group_code=group_code, sold_product_id=sold_product_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2977,8 +3664,9 @@ def post_void_item_post_with_http_info( def post_void_item_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. reservationID or houseAccountID are necessary.")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. reservationID or houseAccountID are necessary.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. Required if no houseAccountID or groupCode is provided.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. Required if no reservationID or groupCode is provided.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group identifier. Required if no reservationID or houseAccountID is provided.")] = None, sold_product_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, _request_timeout: Union[ None, @@ -2995,14 +3683,16 @@ def post_void_item_post_without_preload_content( ) -> RESTResponseType: """postVoidItem - Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + Voids the itemID transaction on the specified Reservation ID, House Account ID, or Group. If payments were sent in calls [postItem](https://developers.cloudbeds.com/reference/post_postitem) or [postCustomItem](https://developers.cloudbeds.com/reference/post_postcustomitem), they will be deleted too. :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation identifier. reservationID or houseAccountID are necessary. + :param reservation_id: Reservation identifier. Required if no houseAccountID or groupCode is provided. :type reservation_id: str - :param house_account_id: House Account identifier. reservationID or houseAccountID are necessary. + :param house_account_id: House Account identifier. Required if no reservationID or groupCode is provided. :type house_account_id: str + :param group_code: Group identifier. Required if no reservationID or houseAccountID is provided. + :type group_code: str :param sold_product_id: Item identifier :type sold_product_id: str :param _request_timeout: timeout setting for this request. If one @@ -3031,6 +3721,7 @@ def post_void_item_post_without_preload_content( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, + group_code=group_code, sold_product_id=sold_product_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3053,6 +3744,7 @@ def _post_void_item_post_serialize( property_id, reservation_id, house_account_id, + group_code, sold_product_id, _request_auth, _content_type, @@ -3084,6 +3776,8 @@ def _post_void_item_post_serialize( _form_params.append(('reservationID', reservation_id)) if house_account_id is not None: _form_params.append(('houseAccountID', house_account_id)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) if sold_product_id is not None: _form_params.append(('soldProductID', sold_product_id)) # process the body parameter diff --git a/cloudbeds_pms_v1_2/api/package_api.py b/cloudbeds_pms_v1_3/api/package_api.py similarity index 98% rename from cloudbeds_pms_v1_2/api/package_api.py rename to cloudbeds_pms_v1_3/api/package_api.py index a8e4ca2..1dfe48e 100644 --- a/cloudbeds_pms_v1_2/api/package_api.py +++ b/cloudbeds_pms_v1_3/api/package_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,11 +19,11 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class PackageApi: diff --git a/cloudbeds_pms_v1_3/api/payment_api.py b/cloudbeds_pms_v1_3/api/payment_api.py new file mode 100644 index 0000000..3be2efe --- /dev/null +++ b/cloudbeds_pms_v1_3/api/payment_api.py @@ -0,0 +1,4774 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date, datetime +from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Optional, Union +from typing_extensions import Annotated +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse +from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse +from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType + + +class PaymentApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_payment_methods_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPaymentMethodsResponse: + """getPaymentMethods + + Get a list of active methods for a property, or list of properties + + :param property_id: ID for the property to be queried + :type property_id: str + :param lang: Language that payment methods name should return (if available). + :type lang: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_methods_get_serialize( + property_id=property_id, + lang=lang, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentMethodsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payment_methods_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPaymentMethodsResponse]: + """getPaymentMethods + + Get a list of active methods for a property, or list of properties + + :param property_id: ID for the property to be queried + :type property_id: str + :param lang: Language that payment methods name should return (if available). + :type lang: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_methods_get_serialize( + property_id=property_id, + lang=lang, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentMethodsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payment_methods_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + lang: Annotated[Optional[StrictStr], Field(description="Language that payment methods name should return (if available).")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPaymentMethods + + Get a list of active methods for a property, or list of properties + + :param property_id: ID for the property to be queried + :type property_id: str + :param lang: Language that payment methods name should return (if available). + :type lang: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payment_methods_get_serialize( + property_id=property_id, + lang=lang, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentMethodsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payment_methods_get_serialize( + self, + property_id, + lang, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if lang is not None: + + _query_params.append(('lang', lang)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPaymentMethods', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_payments_capabilities_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPaymentsCapabilitiesResponse: + """getPaymentsCapabilities + + Lists the payment capabilities of a given property + + :param property_id: ID for the property to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_capabilities_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsCapabilitiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payments_capabilities_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPaymentsCapabilitiesResponse]: + """getPaymentsCapabilities + + Lists the payment capabilities of a given property + + :param property_id: ID for the property to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_capabilities_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsCapabilitiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payments_capabilities_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the property to be queried")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPaymentsCapabilities + + Lists the payment capabilities of a given property + + :param property_id: ID for the property to be queried + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_capabilities_get_serialize( + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsCapabilitiesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payments_capabilities_get_serialize( + self, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPaymentsCapabilities', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_payments_get( + self, + reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], + house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], + guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, + include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPaymentsResponse: + """getPayments + + Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + + :param reservation_id: ¹ ID for the reservation to be queried. (required) + :type reservation_id: str + :param house_account_id: ¹ ID for the house account to be queried. (required) + :type house_account_id: str + :param guest_id: ¹ ID for the guest to be queried. (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. + :type created_to: datetime + :param include_payment_allocation: Adds payment allocation to response, when available. + :type include_payment_allocation: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_get_serialize( + reservation_id=reservation_id, + house_account_id=house_account_id, + guest_id=guest_id, + property_id=property_id, + created_from=created_from, + created_to=created_to, + include_payment_allocation=include_payment_allocation, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_payments_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], + house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], + guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, + include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPaymentsResponse]: + """getPayments + + Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + + :param reservation_id: ¹ ID for the reservation to be queried. (required) + :type reservation_id: str + :param house_account_id: ¹ ID for the house account to be queried. (required) + :type house_account_id: str + :param guest_id: ¹ ID for the guest to be queried. (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. + :type created_to: datetime + :param include_payment_allocation: Adds payment allocation to response, when available. + :type include_payment_allocation: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_get_serialize( + reservation_id=reservation_id, + house_account_id=house_account_id, + guest_id=guest_id, + property_id=property_id, + created_from=created_from, + created_to=created_to, + include_payment_allocation=include_payment_allocation, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_payments_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], + house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], + guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, + include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPayments + + Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + + :param reservation_id: ¹ ID for the reservation to be queried. (required) + :type reservation_id: str + :param house_account_id: ¹ ID for the house account to be queried. (required) + :type house_account_id: str + :param guest_id: ¹ ID for the guest to be queried. (required) + :type guest_id: str + :param property_id: Property ID + :type property_id: str + :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. + :type created_from: datetime + :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. + :type created_to: datetime + :param include_payment_allocation: Adds payment allocation to response, when available. + :type include_payment_allocation: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_payments_get_serialize( + reservation_id=reservation_id, + house_account_id=house_account_id, + guest_id=guest_id, + property_id=property_id, + created_from=created_from, + created_to=created_to, + include_payment_allocation=include_payment_allocation, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPaymentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_payments_get_serialize( + self, + reservation_id, + house_account_id, + guest_id, + property_id, + created_from, + created_to, + include_payment_allocation, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if house_account_id is not None: + + _query_params.append(('houseAccountID', house_account_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if created_from is not None: + if isinstance(created_from, datetime): + _query_params.append( + ( + 'createdFrom', + created_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdFrom', created_from)) + + if created_to is not None: + if isinstance(created_to, datetime): + _query_params.append( + ( + 'createdTo', + created_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdTo', created_to)) + + if include_payment_allocation is not None: + + _query_params.append(('includePaymentAllocation', include_payment_allocation)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPayments', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_pending_transactions_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPendingTransactionsResponse: + """getPendingTransactions + + Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pending_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + created_from=created_from, + created_to=created_to, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPendingTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_pending_transactions_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPendingTransactionsResponse]: + """getPendingTransactions + + Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pending_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + created_from=created_from, + created_to=created_to, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPendingTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_pending_transactions_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getPendingTransactions + + Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pending_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + created_from=created_from, + created_to=created_to, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPendingTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_pending_transactions_get_serialize( + self, + property_id, + include_debit, + include_credit, + include_deleted, + include_children, + reservation_id, + sub_reservation_id, + room_id, + guest_id, + house_account_id, + transaction_ids, + results_from, + results_to, + modified_from, + modified_to, + created_from, + created_to, + page_number, + page_size, + sort_by, + order_by, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if include_debit is not None: + + _query_params.append(('includeDebit', include_debit)) + + if include_credit is not None: + + _query_params.append(('includeCredit', include_credit)) + + if include_deleted is not None: + + _query_params.append(('includeDeleted', include_deleted)) + + if include_children is not None: + + _query_params.append(('includeChildren', include_children)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if sub_reservation_id is not None: + + _query_params.append(('subReservationID', sub_reservation_id)) + + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if house_account_id is not None: + + _query_params.append(('houseAccountID', house_account_id)) + + if transaction_ids is not None: + + _query_params.append(('transactionIDs', transaction_ids)) + + if results_from is not None: + if isinstance(results_from, date): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, date): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, date): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, date): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) + + if created_from is not None: + if isinstance(created_from, datetime): + _query_params.append( + ( + 'createdFrom', + created_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdFrom', created_from)) + + if created_to is not None: + if isinstance(created_to, datetime): + _query_params.append( + ( + 'createdTo', + created_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdTo', created_to)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if sort_by is not None: + + _query_params.append(('sortBy', sort_by)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getPendingTransactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_transactions_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetTransactionsResponse: + """getTransactions + + Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_from: date + :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param transaction_filter: Transaction filter is used to filter transactions result + :type transaction_filter: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + service_date_from=service_date_from, + service_date_to=service_date_to, + created_from=created_from, + created_to=created_to, + transaction_filter=transaction_filter, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_transactions_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetTransactionsResponse]: + """getTransactions + + Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_from: date + :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param transaction_filter: Transaction filter is used to filter transactions result + :type transaction_filter: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + service_date_from=service_date_from, + service_date_to=service_date_to, + created_from=created_from, + created_to=created_to, + transaction_filter=transaction_filter, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_transactions_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, + include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, + include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, + transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, + modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, + modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, + service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, + created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, + created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, + transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getTransactions + + Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param include_debit: If the response should include debit transactions + :type include_debit: bool + :param include_credit: If the response should include credit transactions + :type include_credit: bool + :param include_deleted: If the response should include deleted transactions + :type include_deleted: bool + :param include_children: If the response should include children transactions (requires the parameter transactionIDs) + :type include_children: bool + :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. + :type reservation_id: str + :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result + :type sub_reservation_id: str + :param room_id: Room ID, used to filter transactions result + :type room_id: str + :param guest_id: Guest ID, used to filter transactions result + :type guest_id: str + :param house_account_id: House Account ID, used to filter transactions result + :type house_account_id: str + :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. + :type transaction_ids: str + :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) + :type results_from: date + :param results_to: Superior limit date, used to filter transactions result (posted transaction date) + :type results_to: date + :param modified_from: Inferior limit date, used to filter transactions result + :type modified_from: date + :param modified_to: Superior limit date, used to filter transactions result + :type modified_to: date + :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_from: date + :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured + :type service_date_to: date + :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. + :type created_from: datetime + :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. + :type created_to: datetime + :param transaction_filter: Transaction filter is used to filter transactions result + :type transaction_filter: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param sort_by: Sort response results by field + :type sort_by: str + :param order_by: Order response in DESCending or ASCending order, used together with sortBy + :type order_by: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_transactions_get_serialize( + property_id=property_id, + include_debit=include_debit, + include_credit=include_credit, + include_deleted=include_deleted, + include_children=include_children, + reservation_id=reservation_id, + sub_reservation_id=sub_reservation_id, + room_id=room_id, + guest_id=guest_id, + house_account_id=house_account_id, + transaction_ids=transaction_ids, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + service_date_from=service_date_from, + service_date_to=service_date_to, + created_from=created_from, + created_to=created_to, + transaction_filter=transaction_filter, + page_number=page_number, + page_size=page_size, + sort_by=sort_by, + order_by=order_by, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTransactionsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_transactions_get_serialize( + self, + property_id, + include_debit, + include_credit, + include_deleted, + include_children, + reservation_id, + sub_reservation_id, + room_id, + guest_id, + house_account_id, + transaction_ids, + results_from, + results_to, + modified_from, + modified_to, + service_date_from, + service_date_to, + created_from, + created_to, + transaction_filter, + page_number, + page_size, + sort_by, + order_by, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if include_debit is not None: + + _query_params.append(('includeDebit', include_debit)) + + if include_credit is not None: + + _query_params.append(('includeCredit', include_credit)) + + if include_deleted is not None: + + _query_params.append(('includeDeleted', include_deleted)) + + if include_children is not None: + + _query_params.append(('includeChildren', include_children)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if sub_reservation_id is not None: + + _query_params.append(('subReservationID', sub_reservation_id)) + + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if house_account_id is not None: + + _query_params.append(('houseAccountID', house_account_id)) + + if transaction_ids is not None: + + _query_params.append(('transactionIDs', transaction_ids)) + + if results_from is not None: + if isinstance(results_from, date): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, date): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, date): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, date): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) + + if service_date_from is not None: + if isinstance(service_date_from, date): + _query_params.append( + ( + 'serviceDateFrom', + service_date_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('serviceDateFrom', service_date_from)) + + if service_date_to is not None: + if isinstance(service_date_to, date): + _query_params.append( + ( + 'serviceDateTo', + service_date_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('serviceDateTo', service_date_to)) + + if created_from is not None: + if isinstance(created_from, datetime): + _query_params.append( + ( + 'createdFrom', + created_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdFrom', created_from)) + + if created_to is not None: + if isinstance(created_to, datetime): + _query_params.append( + ( + 'createdTo', + created_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('createdTo', created_to)) + + if transaction_filter is not None: + + _query_params.append(('transactionFilter', transaction_filter)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if sort_by is not None: + + _query_params.append(('sortBy', sort_by)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getTransactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_charge_post( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostChargeResponse: + """postCharge + + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_charge_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostChargeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_charge_post_with_http_info( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostChargeResponse]: + """postCharge + + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_charge_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostChargeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_charge_post_without_preload_content( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCharge + + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID + :type reservation_id: str + :param house_account_id: House Account ID + :type house_account_id: str + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_charge_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostChargeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_charge_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + group_id, + accounts_receivable_ledger_id, + amount, + currency, + description, + payment_method_id, + is_deposit, + redirect_url, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if group_id is not None: + _form_params.append(('groupID', group_id)) + if accounts_receivable_ledger_id is not None: + _form_params.append(('accountsReceivableLedgerID', accounts_receivable_ledger_id)) + if amount is not None: + _form_params.append(('amount', amount)) + if currency is not None: + _form_params.append(('currency', currency)) + if description is not None: + _form_params.append(('description', description)) + if payment_method_id is not None: + _form_params.append(('paymentMethodId', payment_method_id)) + if is_deposit is not None: + _form_params.append(('isDeposit', is_deposit)) + if redirect_url is not None: + _form_params.append(('redirectUrl', redirect_url)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCharge', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_credit_card_post( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCardResponse: + """postCreditCard + + Returns the rate of the room type selected, based on the provided parameters + + :param property_id: + :type property_id: str + :param reservation_id: + :type reservation_id: str + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_credit_card_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_credit_card_post_with_http_info( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCardResponse]: + """postCreditCard + + Returns the rate of the room type selected, based on the provided parameters + + :param property_id: + :type property_id: str + :param reservation_id: + :type reservation_id: str + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_credit_card_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_credit_card_post_without_preload_content( + self, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCreditCard + + Returns the rate of the room type selected, based on the provided parameters + + :param property_id: + :type property_id: str + :param reservation_id: + :type reservation_id: str + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_credit_card_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_credit_card_post_serialize( + self, + property_id, + reservation_id, + card_token, + payment_method_id, + return_url, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) + if payment_method_id is not None: + _form_params.append(('paymentMethodId', payment_method_id)) + if return_url is not None: + _form_params.append(('returnUrl', return_url)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCreditCard', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_custom_payment_method_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostCustomPaymentMethodResponse: + """postCustomPaymentMethod + + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomPaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_custom_payment_method_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostCustomPaymentMethodResponse]: + """postCustomPaymentMethod + + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomPaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_custom_payment_method_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postCustomPaymentMethod + + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostCustomPaymentMethodResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_custom_payment_method_post_serialize( + self, + property_id, + method, + method_name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if method is not None: + _form_params.append(('method', method)) + if method_name is not None: + _form_params.append(('methodName', method_name)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postCustomPaymentMethod', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_payment_cash_post( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPaymentCashResponse: + """postPaymentCash + + Add a payment done by cash to a specified reservation + + :param reservation_id: Reservation identifier + :type reservation_id: str + :param amount: Amount paid on this payment + :type amount: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_cash_post_serialize( + reservation_id=reservation_id, + amount=amount, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentCashResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_payment_cash_post_with_http_info( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPaymentCashResponse]: + """postPaymentCash + + Add a payment done by cash to a specified reservation + + :param reservation_id: Reservation identifier + :type reservation_id: str + :param amount: Amount paid on this payment + :type amount: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_cash_post_serialize( + reservation_id=reservation_id, + amount=amount, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentCashResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_payment_cash_post_without_preload_content( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postPaymentCash + + Add a payment done by cash to a specified reservation + + :param reservation_id: Reservation identifier + :type reservation_id: str + :param amount: Amount paid on this payment + :type amount: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_cash_post_serialize( + reservation_id=reservation_id, + amount=amount, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentCashResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_payment_cash_post_serialize( + self, + reservation_id, + amount, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if amount is not None: + _form_params.append(('amount', amount)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postPaymentCash', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_payment_credit_card_post( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + card_id: Annotated[Optional[StrictStr], Field(description="Credit Card ID used on payment. Can be retrieved with reservation information")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPaymentCreditCardResponse: + """postPaymentCreditCard + + Add a payment done by credit card to a specified reservation + + :param reservation_id: Reservation identifier + :type reservation_id: str + :param amount: Amount paid on this payment + :type amount: float + :param card_id: Credit Card ID used on payment. Can be retrieved with reservation information + :type card_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_credit_card_post_serialize( + reservation_id=reservation_id, + amount=amount, + card_id=card_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentCreditCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_payment_credit_card_post_with_http_info( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + card_id: Annotated[Optional[StrictStr], Field(description="Credit Card ID used on payment. Can be retrieved with reservation information")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPaymentCreditCardResponse]: + """postPaymentCreditCard + + Add a payment done by credit card to a specified reservation + + :param reservation_id: Reservation identifier + :type reservation_id: str + :param amount: Amount paid on this payment + :type amount: float + :param card_id: Credit Card ID used on payment. Can be retrieved with reservation information + :type card_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_credit_card_post_serialize( + reservation_id=reservation_id, + amount=amount, + card_id=card_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentCreditCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_payment_credit_card_post_without_preload_content( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + card_id: Annotated[Optional[StrictStr], Field(description="Credit Card ID used on payment. Can be retrieved with reservation information")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postPaymentCreditCard + + Add a payment done by credit card to a specified reservation + + :param reservation_id: Reservation identifier + :type reservation_id: str + :param amount: Amount paid on this payment + :type amount: float + :param card_id: Credit Card ID used on payment. Can be retrieved with reservation information + :type card_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_credit_card_post_serialize( + reservation_id=reservation_id, + amount=amount, + card_id=card_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentCreditCardResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_payment_credit_card_post_serialize( + self, + reservation_id, + amount, + card_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if amount is not None: + _form_params.append(('amount', amount)) + if card_id is not None: + _form_params.append(('cardID', card_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postPaymentCreditCard', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_payment_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, + card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, + description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostPaymentResponse: + """postPayment + + Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. + :type sub_reservation_id: str + :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. + :type type: str + :param amount: Amount paid on this transaction + :type amount: float + :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" + :type card_type: str + :param description: Note to be added to payment + :type description: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sub_reservation_id=sub_reservation_id, + type=type, + amount=amount, + card_type=card_type, + description=description, + is_deposit=is_deposit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_payment_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, + card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, + description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostPaymentResponse]: + """postPayment + + Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. + :type sub_reservation_id: str + :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. + :type type: str + :param amount: Amount paid on this transaction + :type amount: float + :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" + :type card_type: str + :param description: Note to be added to payment + :type description: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sub_reservation_id=sub_reservation_id, + type=type, + amount=amount, + card_type=card_type, + description=description, + is_deposit=is_deposit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_payment_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, + type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, + card_type: Annotated[Optional[StrictStr], Field(description="If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\"")] = None, + description: Annotated[Optional[StrictStr], Field(description="Note to be added to payment")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postPayment + + Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. + :type sub_reservation_id: str + :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. + :type type: str + :param amount: Amount paid on this transaction + :type amount: float + :param card_type: If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" + :type card_type: str + :param description: Note to be added to payment + :type description: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + sub_reservation_id=sub_reservation_id, + type=type, + amount=amount, + card_type=card_type, + description=description, + is_deposit=is_deposit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_payment_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + sub_reservation_id, + type, + amount, + card_type, + description, + is_deposit, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if sub_reservation_id is not None: + _form_params.append(('subReservationID', sub_reservation_id)) + if type is not None: + _form_params.append(('type', type)) + if amount is not None: + _form_params.append(('amount', amount)) + if card_type is not None: + _form_params.append(('cardType', card_type)) + if description is not None: + _form_params.append(('description', description)) + if is_deposit is not None: + _form_params.append(('isDeposit', is_deposit)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postPayment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_void_payment_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostVoidPaymentResponse: + """postVoidPayment + + Voids a payment (using paymentID) to a specified reservation or house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param payment_id: paymentID of transaction that should be voided. + :type payment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + payment_id=payment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_void_payment_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostVoidPaymentResponse]: + """postVoidPayment + + Voids a payment (using paymentID) to a specified reservation or house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param payment_id: paymentID of transaction that should be voided. + :type payment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + payment_id=payment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_void_payment_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + payment_id: Annotated[Optional[StrictStr], Field(description="paymentID of transaction that should be voided.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postVoidPayment + + Voids a payment (using paymentID) to a specified reservation or house account. + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation identifier + :type reservation_id: str + :param house_account_id: House Account identifier is necessary if reservationID not sent + :type house_account_id: str + :param payment_id: paymentID of transaction that should be voided. + :type payment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_void_payment_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + house_account_id=house_account_id, + payment_id=payment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostVoidPaymentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_void_payment_post_serialize( + self, + property_id, + reservation_id, + house_account_id, + payment_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if payment_id is not None: + _form_params.append(('paymentID', payment_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postVoidPayment', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/rate_api.py b/cloudbeds_pms_v1_3/api/rate_api.py similarity index 97% rename from cloudbeds_pms_v1_2/api/rate_api.py rename to cloudbeds_pms_v1_3/api/rate_api.py index ee41d0b..67f95ff 100644 --- a/cloudbeds_pms_v1_2/api/rate_api.py +++ b/cloudbeds_pms_v1_3/api/rate_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,17 +20,17 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import List, Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse -from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse -from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class RateApi: @@ -1423,9 +1423,9 @@ def _patch_rate_post_serialize( @validate_call - def put_rate_post( + def put_rate_put( self, - rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + rates: Annotated[Optional[List[PutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1438,13 +1438,13 @@ def put_rate_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostPutRateResponse: + ) -> PutRateResponse: """putRate Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. :param rates: Array of rates to update - :type rates: List[PostPutRateRequestRatesInner] + :type rates: List[PutRateRequestRatesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1467,7 +1467,7 @@ def put_rate_post( :return: Returns the result object. """ # noqa: E501 - _param = self._put_rate_post_serialize( + _param = self._put_rate_put_serialize( rates=rates, _request_auth=_request_auth, _content_type=_content_type, @@ -1476,7 +1476,7 @@ def put_rate_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPutRateResponse", + '200': "PutRateResponse", } response_data = self.api_client.call_api( *_param, @@ -1490,9 +1490,9 @@ def put_rate_post( @validate_call - def put_rate_post_with_http_info( + def put_rate_put_with_http_info( self, - rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + rates: Annotated[Optional[List[PutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1505,13 +1505,13 @@ def put_rate_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostPutRateResponse]: + ) -> ApiResponse[PutRateResponse]: """putRate Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. :param rates: Array of rates to update - :type rates: List[PostPutRateRequestRatesInner] + :type rates: List[PutRateRequestRatesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1534,7 +1534,7 @@ def put_rate_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_rate_post_serialize( + _param = self._put_rate_put_serialize( rates=rates, _request_auth=_request_auth, _content_type=_content_type, @@ -1543,7 +1543,7 @@ def put_rate_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPutRateResponse", + '200': "PutRateResponse", } response_data = self.api_client.call_api( *_param, @@ -1557,9 +1557,9 @@ def put_rate_post_with_http_info( @validate_call - def put_rate_post_without_preload_content( + def put_rate_put_without_preload_content( self, - rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + rates: Annotated[Optional[List[PutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1578,7 +1578,7 @@ def put_rate_post_without_preload_content( Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. :param rates: Array of rates to update - :type rates: List[PostPutRateRequestRatesInner] + :type rates: List[PutRateRequestRatesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1601,7 +1601,7 @@ def put_rate_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_rate_post_serialize( + _param = self._put_rate_put_serialize( rates=rates, _request_auth=_request_auth, _content_type=_content_type, @@ -1610,7 +1610,7 @@ def put_rate_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPutRateResponse", + '200': "PutRateResponse", } response_data = self.api_client.call_api( *_param, @@ -1619,7 +1619,7 @@ def put_rate_post_without_preload_content( return response_data.response - def _put_rate_post_serialize( + def _put_rate_put_serialize( self, rates, _request_auth, @@ -1681,7 +1681,7 @@ def _put_rate_post_serialize( ] return self.api_client.param_serialize( - method='POST', + method='PUT', resource_path='/putRate', path_params=_path_params, query_params=_query_params, diff --git a/cloudbeds_pms_v1_2/api/reservation_api.py b/cloudbeds_pms_v1_3/api/reservation_api.py similarity index 75% rename from cloudbeds_pms_v1_2/api/reservation_api.py rename to cloudbeds_pms_v1_3/api/reservation_api.py index b11785f..a499c4e 100644 --- a/cloudbeds_pms_v1_2/api/reservation_api.py +++ b/cloudbeds_pms_v1_3/api/reservation_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,29 +20,36 @@ from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse -from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse -from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse -from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse -from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse -from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse -from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse -from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner -from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse -from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse -from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse +from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class ReservationApi: @@ -357,10 +364,10 @@ def _delete_reservation_note_delete_serialize( @validate_call - def get_reservation_assignments_get( + def get_reservation_arrivals_get( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -373,15 +380,15 @@ def get_reservation_assignments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationAssignmentsResponse: - """getReservationAssignments + ) -> GetReservationArrivalsResponse: + """getReservationArrivals - Returns a list of rooms/reservations assigned for a selected date. + Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. - :param property_id: Property ID - :type property_id: str - :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. - :type var_date: date + :param results_from: Inferior limit date, used to filter reservations result + :type results_from: date + :param results_to: Superior limit date, used to filter reservations result + :type results_to: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -404,9 +411,9 @@ def get_reservation_assignments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_assignments_get_serialize( - property_id=property_id, - var_date=var_date, + _param = self._get_reservation_arrivals_get_serialize( + results_from=results_from, + results_to=results_to, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -414,7 +421,7 @@ def get_reservation_assignments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationAssignmentsResponse", + '200': "GetReservationArrivalsResponse", } response_data = self.api_client.call_api( *_param, @@ -428,10 +435,10 @@ def get_reservation_assignments_get( @validate_call - def get_reservation_assignments_get_with_http_info( + def get_reservation_arrivals_get_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -444,15 +451,15 @@ def get_reservation_assignments_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationAssignmentsResponse]: - """getReservationAssignments + ) -> ApiResponse[GetReservationArrivalsResponse]: + """getReservationArrivals - Returns a list of rooms/reservations assigned for a selected date. + Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. - :param property_id: Property ID - :type property_id: str - :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. - :type var_date: date + :param results_from: Inferior limit date, used to filter reservations result + :type results_from: date + :param results_to: Superior limit date, used to filter reservations result + :type results_to: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -475,9 +482,9 @@ def get_reservation_assignments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_assignments_get_serialize( - property_id=property_id, - var_date=var_date, + _param = self._get_reservation_arrivals_get_serialize( + results_from=results_from, + results_to=results_to, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -485,7 +492,7 @@ def get_reservation_assignments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationAssignmentsResponse", + '200': "GetReservationArrivalsResponse", } response_data = self.api_client.call_api( *_param, @@ -499,10 +506,10 @@ def get_reservation_assignments_get_with_http_info( @validate_call - def get_reservation_assignments_get_without_preload_content( + def get_reservation_arrivals_get_without_preload_content( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -516,14 +523,14 @@ def get_reservation_assignments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservationAssignments + """getReservationArrivals - Returns a list of rooms/reservations assigned for a selected date. + Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. - :param property_id: Property ID - :type property_id: str - :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. - :type var_date: date + :param results_from: Inferior limit date, used to filter reservations result + :type results_from: date + :param results_to: Superior limit date, used to filter reservations result + :type results_to: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -546,9 +553,9 @@ def get_reservation_assignments_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_assignments_get_serialize( - property_id=property_id, - var_date=var_date, + _param = self._get_reservation_arrivals_get_serialize( + results_from=results_from, + results_to=results_to, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -556,7 +563,7 @@ def get_reservation_assignments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationAssignmentsResponse", + '200': "GetReservationArrivalsResponse", } response_data = self.api_client.call_api( *_param, @@ -565,10 +572,10 @@ def get_reservation_assignments_get_without_preload_content( return response_data.response - def _get_reservation_assignments_get_serialize( + def _get_reservation_arrivals_get_serialize( self, - property_id, - var_date, + results_from, + results_to, _request_auth, _content_type, _headers, @@ -591,22 +598,31 @@ def _get_reservation_assignments_get_serialize( # process the path parameters # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) + if results_from is not None: + if isinstance(results_from, date): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) - if var_date is not None: - if isinstance(var_date, date): + if results_to is not None: + if isinstance(results_to, date): _query_params.append( ( - 'date', - var_date.strftime( + 'resultsTo', + results_to.strftime( self.api_client.configuration.date_format ) ) ) else: - _query_params.append(('date', var_date)) + _query_params.append(('resultsTo', results_to)) # process the header parameters # process the form parameters @@ -630,7 +646,7 @@ def _get_reservation_assignments_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getReservationAssignments', + resource_path='/getReservationArrivals', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -647,10 +663,10 @@ def _get_reservation_assignments_get_serialize( @validate_call - def get_reservation_get( + def get_reservation_assignments_get( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -663,15 +679,15 @@ def get_reservation_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationResponse: - """getReservation + ) -> GetReservationAssignmentsResponse: + """getReservationAssignments - Returns information on a booking specified by the reservationID parameter + Returns a list of rooms/reservations assigned for a selected date. - :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) - :type reservation_id: str :param property_id: Property ID :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -694,9 +710,9 @@ def get_reservation_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_get_serialize( - reservation_id=reservation_id, + _param = self._get_reservation_assignments_get_serialize( property_id=property_id, + var_date=var_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -704,7 +720,7 @@ def get_reservation_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationResponse", + '200': "GetReservationAssignmentsResponse", } response_data = self.api_client.call_api( *_param, @@ -718,10 +734,10 @@ def get_reservation_get( @validate_call - def get_reservation_get_with_http_info( + def get_reservation_assignments_get_with_http_info( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -734,15 +750,15 @@ def get_reservation_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationResponse]: - """getReservation + ) -> ApiResponse[GetReservationAssignmentsResponse]: + """getReservationAssignments - Returns information on a booking specified by the reservationID parameter + Returns a list of rooms/reservations assigned for a selected date. - :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) - :type reservation_id: str :param property_id: Property ID :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -765,9 +781,9 @@ def get_reservation_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_get_serialize( - reservation_id=reservation_id, + _param = self._get_reservation_assignments_get_serialize( property_id=property_id, + var_date=var_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -775,7 +791,7 @@ def get_reservation_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationResponse", + '200': "GetReservationAssignmentsResponse", } response_data = self.api_client.call_api( *_param, @@ -789,10 +805,10 @@ def get_reservation_get_with_http_info( @validate_call - def get_reservation_get_without_preload_content( + def get_reservation_assignments_get_without_preload_content( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -806,14 +822,14 @@ def get_reservation_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservation + """getReservationAssignments - Returns information on a booking specified by the reservationID parameter + Returns a list of rooms/reservations assigned for a selected date. - :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) - :type reservation_id: str :param property_id: Property ID :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -836,9 +852,9 @@ def get_reservation_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_get_serialize( - reservation_id=reservation_id, + _param = self._get_reservation_assignments_get_serialize( property_id=property_id, + var_date=var_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -846,7 +862,7 @@ def get_reservation_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationResponse", + '200': "GetReservationAssignmentsResponse", } response_data = self.api_client.call_api( *_param, @@ -855,10 +871,10 @@ def get_reservation_get_without_preload_content( return response_data.response - def _get_reservation_get_serialize( + def _get_reservation_assignments_get_serialize( self, - reservation_id, property_id, + var_date, _request_auth, _content_type, _headers, @@ -885,9 +901,18 @@ def _get_reservation_get_serialize( _query_params.append(('propertyID', property_id)) - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) + if var_date is not None: + if isinstance(var_date, date): + _query_params.append( + ( + 'date', + var_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('date', var_date)) # process the header parameters # process the form parameters @@ -911,7 +936,7 @@ def _get_reservation_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getReservation', + resource_path='/getReservationAssignments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -928,10 +953,10 @@ def _get_reservation_get_serialize( @validate_call - def get_reservation_invoice_information_get( + def get_reservation_departures_get( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -944,15 +969,15 @@ def get_reservation_invoice_information_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationInvoiceInformationResponse: - """getReservationInvoiceInformation + ) -> GetReservationDeparturesResponse: + """getReservationDepartures - Returns information that can be used to create an invoice for the selected reservation + Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str + :param results_from: Inferior limit date, used to filter reservations result + :type results_from: date + :param results_to: Superior limit date, used to filter reservations result + :type results_to: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -975,9 +1000,9 @@ def get_reservation_invoice_information_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_invoice_information_get_serialize( - reservation_id=reservation_id, - property_id=property_id, + _param = self._get_reservation_departures_get_serialize( + results_from=results_from, + results_to=results_to, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -985,7 +1010,7 @@ def get_reservation_invoice_information_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInvoiceInformationResponse", + '200': "GetReservationDeparturesResponse", } response_data = self.api_client.call_api( *_param, @@ -999,10 +1024,10 @@ def get_reservation_invoice_information_get( @validate_call - def get_reservation_invoice_information_get_with_http_info( + def get_reservation_departures_get_with_http_info( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1015,15 +1040,15 @@ def get_reservation_invoice_information_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationInvoiceInformationResponse]: - """getReservationInvoiceInformation + ) -> ApiResponse[GetReservationDeparturesResponse]: + """getReservationDepartures - Returns information that can be used to create an invoice for the selected reservation + Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str + :param results_from: Inferior limit date, used to filter reservations result + :type results_from: date + :param results_to: Superior limit date, used to filter reservations result + :type results_to: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1046,9 +1071,9 @@ def get_reservation_invoice_information_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_invoice_information_get_serialize( - reservation_id=reservation_id, - property_id=property_id, + _param = self._get_reservation_departures_get_serialize( + results_from=results_from, + results_to=results_to, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1056,7 +1081,7 @@ def get_reservation_invoice_information_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInvoiceInformationResponse", + '200': "GetReservationDeparturesResponse", } response_data = self.api_client.call_api( *_param, @@ -1070,10 +1095,10 @@ def get_reservation_invoice_information_get_with_http_info( @validate_call - def get_reservation_invoice_information_get_without_preload_content( + def get_reservation_departures_get_without_preload_content( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, + results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1087,14 +1112,14 @@ def get_reservation_invoice_information_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservationInvoiceInformation + """getReservationDepartures - Returns information that can be used to create an invoice for the selected reservation + Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str + :param results_from: Inferior limit date, used to filter reservations result + :type results_from: date + :param results_to: Superior limit date, used to filter reservations result + :type results_to: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1117,9 +1142,9 @@ def get_reservation_invoice_information_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_invoice_information_get_serialize( - reservation_id=reservation_id, - property_id=property_id, + _param = self._get_reservation_departures_get_serialize( + results_from=results_from, + results_to=results_to, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1127,7 +1152,7 @@ def get_reservation_invoice_information_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInvoiceInformationResponse", + '200': "GetReservationDeparturesResponse", } response_data = self.api_client.call_api( *_param, @@ -1136,10 +1161,10 @@ def get_reservation_invoice_information_get_without_preload_content( return response_data.response - def _get_reservation_invoice_information_get_serialize( + def _get_reservation_departures_get_serialize( self, - reservation_id, - property_id, + results_from, + results_to, _request_auth, _content_type, _headers, @@ -1162,13 +1187,31 @@ def _get_reservation_invoice_information_get_serialize( # process the path parameters # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if reservation_id is not None: + if results_from is not None: + if isinstance(results_from, date): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) - _query_params.append(('reservationID', reservation_id)) + if results_to is not None: + if isinstance(results_to, date): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) # process the header parameters # process the form parameters @@ -1192,7 +1235,7 @@ def _get_reservation_invoice_information_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getReservationInvoiceInformation', + resource_path='/getReservationDepartures', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1209,9 +1252,9 @@ def _get_reservation_invoice_information_get_serialize( @validate_call - def get_reservation_notes_get( + def get_reservation_get( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, @@ -1225,12 +1268,12 @@ def get_reservation_notes_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationNotesResponse: - """getReservationNotes + ) -> GetReservationResponse: + """getReservation - Retrieves reservation notes based on parameters + Returns information on a booking specified by the reservationID parameter - :param reservation_id: Reservation Unique Identifier (required) + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) :type reservation_id: str :param property_id: Property ID :type property_id: str @@ -1256,7 +1299,7 @@ def get_reservation_notes_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_notes_get_serialize( + _param = self._get_reservation_get_serialize( reservation_id=reservation_id, property_id=property_id, _request_auth=_request_auth, @@ -1266,7 +1309,7 @@ def get_reservation_notes_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationNotesResponse", + '200': "GetReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -1280,9 +1323,9 @@ def get_reservation_notes_get( @validate_call - def get_reservation_notes_get_with_http_info( + def get_reservation_get_with_http_info( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, @@ -1296,12 +1339,12 @@ def get_reservation_notes_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationNotesResponse]: - """getReservationNotes + ) -> ApiResponse[GetReservationResponse]: + """getReservation - Retrieves reservation notes based on parameters + Returns information on a booking specified by the reservationID parameter - :param reservation_id: Reservation Unique Identifier (required) + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) :type reservation_id: str :param property_id: Property ID :type property_id: str @@ -1327,7 +1370,7 @@ def get_reservation_notes_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_notes_get_serialize( + _param = self._get_reservation_get_serialize( reservation_id=reservation_id, property_id=property_id, _request_auth=_request_auth, @@ -1337,7 +1380,7 @@ def get_reservation_notes_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationNotesResponse", + '200': "GetReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -1351,9 +1394,9 @@ def get_reservation_notes_get_with_http_info( @validate_call - def get_reservation_notes_get_without_preload_content( + def get_reservation_get_without_preload_content( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, @@ -1368,11 +1411,11 @@ def get_reservation_notes_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservationNotes + """getReservation - Retrieves reservation notes based on parameters + Returns information on a booking specified by the reservationID parameter - :param reservation_id: Reservation Unique Identifier (required) + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) :type reservation_id: str :param property_id: Property ID :type property_id: str @@ -1398,7 +1441,7 @@ def get_reservation_notes_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_notes_get_serialize( + _param = self._get_reservation_get_serialize( reservation_id=reservation_id, property_id=property_id, _request_auth=_request_auth, @@ -1408,7 +1451,7 @@ def get_reservation_notes_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationNotesResponse", + '200': "GetReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -1417,7 +1460,7 @@ def get_reservation_notes_get_without_preload_content( return response_data.response - def _get_reservation_notes_get_serialize( + def _get_reservation_get_serialize( self, reservation_id, property_id, @@ -1473,7 +1516,7 @@ def _get_reservation_notes_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getReservationNotes', + resource_path='/getReservation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1490,32 +1533,10 @@ def _get_reservation_notes_get_serialize( @validate_call - def get_reservations_get( + def get_reservation_in_house_get( self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, - check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, - check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, - check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, - check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, - room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, - source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, - rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, - first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, - last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + with_room_details: Annotated[Optional[StrictBool], Field(description="Include rooms details")] = None, + include_guest_info: Annotated[Optional[StrictBool], Field(description="Include guest details")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1528,59 +1549,15 @@ def get_reservations_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationsResponse: - """getReservations + ) -> GetReservationInHouseResponse: + """getReservationInHouse - Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
- :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param status: Filter by current reservation status - :type status: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date - :type results_to: datetime - :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date - :type modified_to: datetime - :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date - :type check_in_from: date - :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date - :type check_in_to: date - :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date - :type check_out_from: date - :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date - :type check_out_to: date - :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. - :type room_id: str - :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. - :type room_name: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. - :type include_all_rooms: bool - :param source_id: Filters reservation with the supplied source ID. - :type source_id: str - :param source_reservation_id: Filters reservation with the supplied reservation source ID. - :type source_reservation_id: str - :param rate_plan_id: Filters reservation with the supplied rate plan ID. - :type rate_plan_id: str - :param first_name: Filters reservation with the supplied primary guest first name. - :type first_name: str - :param last_name: Filters reservation with the supplied primary guest last name. - :type last_name: str - :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). - :type guest_id: str - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int + :param with_room_details: Include rooms details + :type with_room_details: bool + :param include_guest_info: Include guest details + :type include_guest_info: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1603,31 +1580,9 @@ def get_reservations_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservations_get_serialize( - property_id=property_id, - status=status, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - check_in_from=check_in_from, - check_in_to=check_in_to, - check_out_from=check_out_from, - check_out_to=check_out_to, - room_id=room_id, - room_name=room_name, - include_guests_details=include_guests_details, - include_custom_fields=include_custom_fields, - include_all_rooms=include_all_rooms, - source_id=source_id, - source_reservation_id=source_reservation_id, - rate_plan_id=rate_plan_id, - first_name=first_name, - last_name=last_name, - guest_id=guest_id, - sort_by_recent=sort_by_recent, - page_number=page_number, - page_size=page_size, + _param = self._get_reservation_in_house_get_serialize( + with_room_details=with_room_details, + include_guest_info=include_guest_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1635,7 +1590,7 @@ def get_reservations_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsResponse", + '200': "GetReservationInHouseResponse", } response_data = self.api_client.call_api( *_param, @@ -1649,32 +1604,10 @@ def get_reservations_get( @validate_call - def get_reservations_get_with_http_info( + def get_reservation_in_house_get_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, - check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, - check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, - check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, - check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, - room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, - source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, - rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, - first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, - last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + with_room_details: Annotated[Optional[StrictBool], Field(description="Include rooms details")] = None, + include_guest_info: Annotated[Optional[StrictBool], Field(description="Include guest details")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1687,59 +1620,15 @@ def get_reservations_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationsResponse]: - """getReservations + ) -> ApiResponse[GetReservationInHouseResponse]: + """getReservationInHouse - Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
- :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param status: Filter by current reservation status - :type status: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date - :type results_to: datetime - :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date - :type modified_to: datetime - :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date - :type check_in_from: date - :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date - :type check_in_to: date - :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date - :type check_out_from: date - :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date - :type check_out_to: date - :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. - :type room_id: str - :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. - :type room_name: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. - :type include_all_rooms: bool - :param source_id: Filters reservation with the supplied source ID. - :type source_id: str - :param source_reservation_id: Filters reservation with the supplied reservation source ID. - :type source_reservation_id: str - :param rate_plan_id: Filters reservation with the supplied rate plan ID. - :type rate_plan_id: str - :param first_name: Filters reservation with the supplied primary guest first name. - :type first_name: str - :param last_name: Filters reservation with the supplied primary guest last name. - :type last_name: str - :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). - :type guest_id: str - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int + :param with_room_details: Include rooms details + :type with_room_details: bool + :param include_guest_info: Include guest details + :type include_guest_info: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1762,31 +1651,9 @@ def get_reservations_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservations_get_serialize( - property_id=property_id, - status=status, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - check_in_from=check_in_from, - check_in_to=check_in_to, - check_out_from=check_out_from, - check_out_to=check_out_to, - room_id=room_id, - room_name=room_name, - include_guests_details=include_guests_details, - include_custom_fields=include_custom_fields, - include_all_rooms=include_all_rooms, - source_id=source_id, - source_reservation_id=source_reservation_id, - rate_plan_id=rate_plan_id, - first_name=first_name, - last_name=last_name, - guest_id=guest_id, - sort_by_recent=sort_by_recent, - page_number=page_number, - page_size=page_size, + _param = self._get_reservation_in_house_get_serialize( + with_room_details=with_room_details, + include_guest_info=include_guest_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1794,7 +1661,7 @@ def get_reservations_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsResponse", + '200': "GetReservationInHouseResponse", } response_data = self.api_client.call_api( *_param, @@ -1808,32 +1675,10 @@ def get_reservations_get_with_http_info( @validate_call - def get_reservations_get_without_preload_content( + def get_reservation_in_house_get_without_preload_content( self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, - check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, - check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, - check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, - check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, - room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, - source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, - rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, - first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, - last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + with_room_details: Annotated[Optional[StrictBool], Field(description="Include rooms details")] = None, + include_guest_info: Annotated[Optional[StrictBool], Field(description="Include guest details")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1847,58 +1692,14 @@ def get_reservations_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservations + """getReservationInHouse - Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
- :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param status: Filter by current reservation status - :type status: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date - :type results_to: datetime - :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date - :type modified_to: datetime - :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date - :type check_in_from: date - :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date - :type check_in_to: date - :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date - :type check_out_from: date - :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date - :type check_out_to: date - :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. - :type room_id: str - :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. - :type room_name: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. - :type include_all_rooms: bool - :param source_id: Filters reservation with the supplied source ID. - :type source_id: str - :param source_reservation_id: Filters reservation with the supplied reservation source ID. - :type source_reservation_id: str - :param rate_plan_id: Filters reservation with the supplied rate plan ID. - :type rate_plan_id: str - :param first_name: Filters reservation with the supplied primary guest first name. - :type first_name: str - :param last_name: Filters reservation with the supplied primary guest last name. - :type last_name: str - :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). - :type guest_id: str - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int + :param with_room_details: Include rooms details + :type with_room_details: bool + :param include_guest_info: Include guest details + :type include_guest_info: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1921,31 +1722,9 @@ def get_reservations_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservations_get_serialize( - property_id=property_id, - status=status, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - check_in_from=check_in_from, - check_in_to=check_in_to, - check_out_from=check_out_from, - check_out_to=check_out_to, - room_id=room_id, - room_name=room_name, - include_guests_details=include_guests_details, - include_custom_fields=include_custom_fields, - include_all_rooms=include_all_rooms, - source_id=source_id, - source_reservation_id=source_reservation_id, - rate_plan_id=rate_plan_id, - first_name=first_name, - last_name=last_name, - guest_id=guest_id, - sort_by_recent=sort_by_recent, - page_number=page_number, - page_size=page_size, + _param = self._get_reservation_in_house_get_serialize( + with_room_details=with_room_details, + include_guest_info=include_guest_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1953,7 +1732,7 @@ def get_reservations_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsResponse", + '200': "GetReservationInHouseResponse", } response_data = self.api_client.call_api( *_param, @@ -1962,32 +1741,10 @@ def get_reservations_get_without_preload_content( return response_data.response - def _get_reservations_get_serialize( + def _get_reservation_in_house_get_serialize( self, - property_id, - status, - results_from, - results_to, - modified_from, - modified_to, - check_in_from, - check_in_to, - check_out_from, - check_out_to, - room_id, - room_name, - include_guests_details, - include_custom_fields, - include_all_rooms, - source_id, - source_reservation_id, - rate_plan_id, - first_name, - last_name, - guest_id, - sort_by_recent, - page_number, - page_size, + with_room_details, + include_guest_info, _request_auth, _content_type, _headers, @@ -2010,173 +1767,2088 @@ def _get_reservations_get_serialize( # process the path parameters # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if status is not None: - - _query_params.append(('status', status)) - - if results_from is not None: - if isinstance(results_from, datetime): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, datetime): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - if modified_from is not None: - if isinstance(modified_from, datetime): - _query_params.append( - ( - 'modifiedFrom', - modified_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedFrom', modified_from)) - - if modified_to is not None: - if isinstance(modified_to, datetime): - _query_params.append( - ( - 'modifiedTo', - modified_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedTo', modified_to)) - - if check_in_from is not None: - if isinstance(check_in_from, date): - _query_params.append( - ( - 'checkInFrom', - check_in_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkInFrom', check_in_from)) - - if check_in_to is not None: - if isinstance(check_in_to, date): - _query_params.append( - ( - 'checkInTo', - check_in_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkInTo', check_in_to)) - - if check_out_from is not None: - if isinstance(check_out_from, date): - _query_params.append( - ( - 'checkOutFrom', - check_out_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkOutFrom', check_out_from)) - - if check_out_to is not None: - if isinstance(check_out_to, date): - _query_params.append( - ( - 'checkOutTo', - check_out_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkOutTo', check_out_to)) - - if room_id is not None: - - _query_params.append(('roomID', room_id)) - - if room_name is not None: - - _query_params.append(('roomName', room_name)) - - if include_guests_details is not None: - - _query_params.append(('includeGuestsDetails', include_guests_details)) - - if include_custom_fields is not None: - - _query_params.append(('includeCustomFields', include_custom_fields)) - - if include_all_rooms is not None: - - _query_params.append(('includeAllRooms', include_all_rooms)) - - if source_id is not None: - - _query_params.append(('sourceId', source_id)) - - if source_reservation_id is not None: - - _query_params.append(('sourceReservationId', source_reservation_id)) - - if rate_plan_id is not None: - - _query_params.append(('ratePlanId', rate_plan_id)) - - if first_name is not None: - - _query_params.append(('firstName', first_name)) - - if last_name is not None: + if with_room_details is not None: - _query_params.append(('lastName', last_name)) + _query_params.append(('withRoomDetails', with_room_details)) - if guest_id is not None: + if include_guest_info is not None: - _query_params.append(('guestID', guest_id)) + _query_params.append(('includeGuestInfo', include_guest_info)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationInHouse', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservation_invoice_information_get( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationInvoiceInformationResponse: + """getReservationInvoiceInformation + + Returns information that can be used to create an invoice for the selected reservation + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_invoice_information_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationInvoiceInformationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservation_invoice_information_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationInvoiceInformationResponse]: + """getReservationInvoiceInformation + + Returns information that can be used to create an invoice for the selected reservation + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_invoice_information_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationInvoiceInformationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservation_invoice_information_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationInvoiceInformation + + Returns information that can be used to create an invoice for the selected reservation + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_invoice_information_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationInvoiceInformationResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservation_invoice_information_get_serialize( + self, + reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationInvoiceInformation', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservation_notes_get( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationNotesResponse: + """getReservationNotes + + Retrieves reservation notes based on parameters + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservation_notes_get_with_http_info( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationNotesResponse]: + """getReservationNotes + + Retrieves reservation notes based on parameters + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservation_notes_get_without_preload_content( + self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationNotes + + Retrieves reservation notes based on parameters + + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationNotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservation_notes_get_serialize( + self, + reservation_id, + property_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationNotes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservations_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationsResponse: + """getReservations + + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_get_serialize( + property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + guest_id=guest_id, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservations_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationsResponse]: + """getReservations + + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_get_serialize( + property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + guest_id=guest_id, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservations_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservations + + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. + :type property_id: str + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_get_serialize( + property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + guest_id=guest_id, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservations_get_serialize( + self, + property_id, + status, + results_from, + results_to, + modified_from, + modified_to, + check_in_from, + check_in_to, + check_out_from, + check_out_to, + room_id, + room_name, + include_guests_details, + include_custom_fields, + include_all_rooms, + source_id, + source_reservation_id, + rate_plan_id, + first_name, + last_name, + guest_id, + sort_by_recent, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if status is not None: + + _query_params.append(('status', status)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, datetime): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, datetime): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) + + if check_in_from is not None: + if isinstance(check_in_from, date): + _query_params.append( + ( + 'checkInFrom', + check_in_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInFrom', check_in_from)) + + if check_in_to is not None: + if isinstance(check_in_to, date): + _query_params.append( + ( + 'checkInTo', + check_in_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInTo', check_in_to)) + + if check_out_from is not None: + if isinstance(check_out_from, date): + _query_params.append( + ( + 'checkOutFrom', + check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutFrom', check_out_from)) + + if check_out_to is not None: + if isinstance(check_out_to, date): + _query_params.append( + ( + 'checkOutTo', + check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutTo', check_out_to)) + + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if room_name is not None: + + _query_params.append(('roomName', room_name)) + + if include_guests_details is not None: + + _query_params.append(('includeGuestsDetails', include_guests_details)) + + if include_custom_fields is not None: + + _query_params.append(('includeCustomFields', include_custom_fields)) + + if include_all_rooms is not None: + + _query_params.append(('includeAllRooms', include_all_rooms)) + + if source_id is not None: + + _query_params.append(('sourceId', source_id)) + + if source_reservation_id is not None: + + _query_params.append(('sourceReservationId', source_reservation_id)) + + if rate_plan_id is not None: + + _query_params.append(('ratePlanId', rate_plan_id)) + + if first_name is not None: + + _query_params.append(('firstName', first_name)) + + if last_name is not None: + + _query_params.append(('lastName', last_name)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if sort_by_recent is not None: + + _query_params.append(('sortByRecent', sort_by_recent)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_reservations_with_rate_details_get( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetReservationsWithRateDetailsResponse: + """getReservationsWithRateDetails + + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, + reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsWithRateDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_reservations_with_rate_details_get_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetReservationsWithRateDetailsResponse]: + """getReservationsWithRateDetails + + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, + reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsWithRateDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_reservations_with_rate_details_get_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservationsWithRateDetails + + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, + reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetReservationsWithRateDetailsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_reservations_with_rate_details_get_serialize( + self, + property_id, + results_from, + results_to, + modified_from, + modified_to, + sort_by_recent, + reservation_id, + reservation_check_out_from, + reservation_check_out_to, + include_deleted, + exclude_statuses, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, datetime): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, datetime): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) if sort_by_recent is not None: _query_params.append(('sortByRecent', sort_by_recent)) + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if reservation_check_out_from is not None: + if isinstance(reservation_check_out_from, date): + _query_params.append( + ( + 'reservationCheckOutFrom', + reservation_check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('reservationCheckOutFrom', reservation_check_out_from)) + + if reservation_check_out_to is not None: + if isinstance(reservation_check_out_to, date): + _query_params.append( + ( + 'reservationCheckOutTo', + reservation_check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('reservationCheckOutTo', reservation_check_out_to)) + + if include_deleted is not None: + + _query_params.append(('includeDeleted', include_deleted)) + + if exclude_statuses is not None: + + _query_params.append(('excludeStatuses', exclude_statuses)) + if page_number is not None: _query_params.append(('pageNumber', page_number)) if page_size is not None: - _query_params.append(('pageSize', page_size)) + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getReservationsWithRateDetails', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_sources_get( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetSourcesResponse: + """getSources + + Gets available property sources + + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sources_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourcesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_sources_get_with_http_info( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetSourcesResponse]: + """getSources + + Gets available property sources + + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sources_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourcesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_sources_get_without_preload_content( + self, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getSources + + Gets available property sources + + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sources_get_serialize( + property_ids=property_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourcesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_sources_get_serialize( + self, + property_ids, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) # process the header parameters # process the form parameters @@ -2199,8 +3871,283 @@ def _get_reservations_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/getReservations', + method='GET', + resource_path='/getSources', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_reservation_check_in_post( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostReservationCheckInResponse: + """postReservationCheckIn + + Confirm a guest checkin to a reservation + + :param reservation_id: Reservation Unique Identifier. + :type reservation_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_check_in_post_serialize( + reservation_id=reservation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationCheckInResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_reservation_check_in_post_with_http_info( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostReservationCheckInResponse]: + """postReservationCheckIn + + Confirm a guest checkin to a reservation + + :param reservation_id: Reservation Unique Identifier. + :type reservation_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_check_in_post_serialize( + reservation_id=reservation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationCheckInResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_reservation_check_in_post_without_preload_content( + self, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postReservationCheckIn + + Confirm a guest checkin to a reservation + + :param reservation_id: Reservation Unique Identifier. + :type reservation_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_check_in_post_serialize( + reservation_id=reservation_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostReservationCheckInResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_reservation_check_in_post_serialize( + self, + reservation_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postReservationCheckIn', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2217,21 +4164,9 @@ def _get_reservations_get_serialize( @validate_call - def get_reservations_with_rate_details_get( + def post_reservation_check_out_post( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, - reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, - exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2244,37 +4179,13 @@ def get_reservations_with_rate_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationsWithRateDetailsResponse: - """getReservationsWithRateDetails + ) -> PostReservationCheckOutResponse: + """postReservationCheckOut - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + CheckOut guest from a reservation - :param property_id: Property ID - :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date - :type results_to: datetime - :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_to: datetime - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :param reservation_id: Reservation Unique Identifier. :type reservation_id: str - :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_from: date - :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_to: date - :param include_deleted: Include deleted reservations - :type include_deleted: bool - :param exclude_statuses: List of statuses (separated by comma) to be excluded from search - :type exclude_statuses: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2297,20 +4208,8 @@ def get_reservations_with_rate_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservations_with_rate_details_get_serialize( - property_id=property_id, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - sort_by_recent=sort_by_recent, + _param = self._post_reservation_check_out_post_serialize( reservation_id=reservation_id, - reservation_check_out_from=reservation_check_out_from, - reservation_check_out_to=reservation_check_out_to, - include_deleted=include_deleted, - exclude_statuses=exclude_statuses, - page_number=page_number, - page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2318,7 +4217,7 @@ def get_reservations_with_rate_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsWithRateDetailsResponse", + '200': "PostReservationCheckOutResponse", } response_data = self.api_client.call_api( *_param, @@ -2332,21 +4231,9 @@ def get_reservations_with_rate_details_get( @validate_call - def get_reservations_with_rate_details_get_with_http_info( + def post_reservation_check_out_post_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, - reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, - exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2359,37 +4246,13 @@ def get_reservations_with_rate_details_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationsWithRateDetailsResponse]: - """getReservationsWithRateDetails + ) -> ApiResponse[PostReservationCheckOutResponse]: + """postReservationCheckOut - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + CheckOut guest from a reservation - :param property_id: Property ID - :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date - :type results_to: datetime - :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_to: datetime - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :param reservation_id: Reservation Unique Identifier. :type reservation_id: str - :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_from: date - :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_to: date - :param include_deleted: Include deleted reservations - :type include_deleted: bool - :param exclude_statuses: List of statuses (separated by comma) to be excluded from search - :type exclude_statuses: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2406,26 +4269,14 @@ def get_reservations_with_rate_details_get_with_http_info( in the spec for a single request. :type _headers: dict, optional :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservations_with_rate_details_get_serialize( - property_id=property_id, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - sort_by_recent=sort_by_recent, + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_check_out_post_serialize( reservation_id=reservation_id, - reservation_check_out_from=reservation_check_out_from, - reservation_check_out_to=reservation_check_out_to, - include_deleted=include_deleted, - exclude_statuses=exclude_statuses, - page_number=page_number, - page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2433,7 +4284,7 @@ def get_reservations_with_rate_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsWithRateDetailsResponse", + '200': "PostReservationCheckOutResponse", } response_data = self.api_client.call_api( *_param, @@ -2447,21 +4298,9 @@ def get_reservations_with_rate_details_get_with_http_info( @validate_call - def get_reservations_with_rate_details_get_without_preload_content( + def post_reservation_check_out_post_without_preload_content( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, - reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, - exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2475,36 +4314,12 @@ def get_reservations_with_rate_details_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservationsWithRateDetails + """postReservationCheckOut - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + CheckOut guest from a reservation - :param property_id: Property ID - :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date - :type results_to: datetime - :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_to: datetime - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. + :param reservation_id: Reservation Unique Identifier. :type reservation_id: str - :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_from: date - :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_to: date - :param include_deleted: Include deleted reservations - :type include_deleted: bool - :param exclude_statuses: List of statuses (separated by comma) to be excluded from search - :type exclude_statuses: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2527,20 +4342,8 @@ def get_reservations_with_rate_details_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservations_with_rate_details_get_serialize( - property_id=property_id, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - sort_by_recent=sort_by_recent, + _param = self._post_reservation_check_out_post_serialize( reservation_id=reservation_id, - reservation_check_out_from=reservation_check_out_from, - reservation_check_out_to=reservation_check_out_to, - include_deleted=include_deleted, - exclude_statuses=exclude_statuses, - page_number=page_number, - page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2548,7 +4351,7 @@ def get_reservations_with_rate_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsWithRateDetailsResponse", + '200': "PostReservationCheckOutResponse", } response_data = self.api_client.call_api( *_param, @@ -2557,21 +4360,9 @@ def get_reservations_with_rate_details_get_without_preload_content( return response_data.response - def _get_reservations_with_rate_details_get_serialize( + def _post_reservation_check_out_post_serialize( self, - property_id, - results_from, - results_to, - modified_from, - modified_to, - sort_by_recent, reservation_id, - reservation_check_out_from, - reservation_check_out_to, - include_deleted, - exclude_statuses, - page_number, - page_size, _request_auth, _content_type, _headers, @@ -2594,114 +4385,10 @@ def _get_reservations_with_rate_details_get_serialize( # process the path parameters # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if results_from is not None: - if isinstance(results_from, datetime): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, datetime): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - if modified_from is not None: - if isinstance(modified_from, datetime): - _query_params.append( - ( - 'modifiedFrom', - modified_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedFrom', modified_from)) - - if modified_to is not None: - if isinstance(modified_to, datetime): - _query_params.append( - ( - 'modifiedTo', - modified_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedTo', modified_to)) - - if sort_by_recent is not None: - - _query_params.append(('sortByRecent', sort_by_recent)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if reservation_check_out_from is not None: - if isinstance(reservation_check_out_from, date): - _query_params.append( - ( - 'reservationCheckOutFrom', - reservation_check_out_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('reservationCheckOutFrom', reservation_check_out_from)) - - if reservation_check_out_to is not None: - if isinstance(reservation_check_out_to, date): - _query_params.append( - ( - 'reservationCheckOutTo', - reservation_check_out_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('reservationCheckOutTo', reservation_check_out_to)) - - if include_deleted is not None: - - _query_params.append(('includeDeleted', include_deleted)) - - if exclude_statuses is not None: - - _query_params.append(('excludeStatuses', exclude_statuses)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - # process the header parameters # process the form parameters + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) # process the body parameter @@ -2713,6 +4400,19 @@ def _get_reservations_with_rate_details_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2721,8 +4421,8 @@ def _get_reservations_with_rate_details_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/getReservationsWithRateDetails', + method='POST', + resource_path='/postReservationCheckOut', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2739,9 +4439,11 @@ def _get_reservations_with_rate_details_get_serialize( @validate_call - def get_sources_get( + def post_reservation_document_post( self, - property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2754,13 +4456,17 @@ def get_sources_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetSourcesResponse: - """getSources + ) -> PostReservationDocumentResponse: + """postReservationDocument - Gets available property sources + Attaches a document to a reservation - :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
- :type property_ids: str + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2783,8 +4489,10 @@ def get_sources_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_sources_get_serialize( - property_ids=property_ids, + _param = self._post_reservation_document_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2792,7 +4500,7 @@ def get_sources_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourcesResponse", + '200': "PostReservationDocumentResponse", } response_data = self.api_client.call_api( *_param, @@ -2806,9 +4514,11 @@ def get_sources_get( @validate_call - def get_sources_get_with_http_info( + def post_reservation_document_post_with_http_info( self, - property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2821,13 +4531,17 @@ def get_sources_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetSourcesResponse]: - """getSources + ) -> ApiResponse[PostReservationDocumentResponse]: + """postReservationDocument - Gets available property sources + Attaches a document to a reservation - :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
- :type property_ids: str + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2849,9 +4563,11 @@ def get_sources_get_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - - _param = self._get_sources_get_serialize( - property_ids=property_ids, + + _param = self._post_reservation_document_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2859,7 +4575,7 @@ def get_sources_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourcesResponse", + '200': "PostReservationDocumentResponse", } response_data = self.api_client.call_api( *_param, @@ -2873,9 +4589,11 @@ def get_sources_get_with_http_info( @validate_call - def get_sources_get_without_preload_content( + def post_reservation_document_post_without_preload_content( self, - property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2889,12 +4607,16 @@ def get_sources_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getSources + """postReservationDocument - Gets available property sources + Attaches a document to a reservation - :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
- :type property_ids: str + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2917,8 +4639,10 @@ def get_sources_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_sources_get_serialize( - property_ids=property_ids, + _param = self._post_reservation_document_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2926,7 +4650,7 @@ def get_sources_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourcesResponse", + '200': "PostReservationDocumentResponse", } response_data = self.api_client.call_api( *_param, @@ -2935,9 +4659,11 @@ def get_sources_get_without_preload_content( return response_data.response - def _get_sources_get_serialize( + def _post_reservation_document_post_serialize( self, - property_ids, + property_id, + reservation_id, + file, _request_auth, _content_type, _headers, @@ -2960,12 +4686,14 @@ def _get_sources_get_serialize( # process the path parameters # process the query parameters - if property_ids is not None: - - _query_params.append(('propertyIDs', property_ids)) - # process the header parameters # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if file is not None: + _files['file'] = file # process the body parameter @@ -2977,6 +4705,19 @@ def _get_sources_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2985,8 +4726,8 @@ def _get_sources_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/getSources', + method='POST', + resource_path='/postReservationDocument', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3003,11 +4744,12 @@ def _get_sources_get_serialize( @validate_call - def post_reservation_document_post( + def post_reservation_note_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3020,17 +4762,19 @@ def post_reservation_document_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationDocumentResponse: - """postReservationDocument + ) -> PostReservationNoteResponse: + """postReservationNote - Attaches a document to a reservation + Adds a reservation note :param property_id: Property ID :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB - :type file: bytearray + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3053,10 +4797,11 @@ def post_reservation_document_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_document_post_serialize( + _param = self._post_reservation_note_post_serialize( property_id=property_id, reservation_id=reservation_id, - file=file, + reservation_note=reservation_note, + user_id=user_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3064,7 +4809,7 @@ def post_reservation_document_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationDocumentResponse", + '200': "PostReservationNoteResponse", } response_data = self.api_client.call_api( *_param, @@ -3078,11 +4823,12 @@ def post_reservation_document_post( @validate_call - def post_reservation_document_post_with_http_info( + def post_reservation_note_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3095,17 +4841,19 @@ def post_reservation_document_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationDocumentResponse]: - """postReservationDocument + ) -> ApiResponse[PostReservationNoteResponse]: + """postReservationNote - Attaches a document to a reservation + Adds a reservation note :param property_id: Property ID :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB - :type file: bytearray + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3128,10 +4876,11 @@ def post_reservation_document_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_document_post_serialize( + _param = self._post_reservation_note_post_serialize( property_id=property_id, reservation_id=reservation_id, - file=file, + reservation_note=reservation_note, + user_id=user_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3139,7 +4888,7 @@ def post_reservation_document_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationDocumentResponse", + '200': "PostReservationNoteResponse", } response_data = self.api_client.call_api( *_param, @@ -3153,11 +4902,12 @@ def post_reservation_document_post_with_http_info( @validate_call - def post_reservation_document_post_without_preload_content( + def post_reservation_note_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3171,16 +4921,18 @@ def post_reservation_document_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postReservationDocument + """postReservationNote - Attaches a document to a reservation + Adds a reservation note :param property_id: Property ID :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB - :type file: bytearray + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3203,10 +4955,11 @@ def post_reservation_document_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_document_post_serialize( + _param = self._post_reservation_note_post_serialize( property_id=property_id, reservation_id=reservation_id, - file=file, + reservation_note=reservation_note, + user_id=user_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3214,7 +4967,7 @@ def post_reservation_document_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationDocumentResponse", + '200': "PostReservationNoteResponse", } response_data = self.api_client.call_api( *_param, @@ -3223,11 +4976,12 @@ def post_reservation_document_post_without_preload_content( return response_data.response - def _post_reservation_document_post_serialize( + def _post_reservation_note_post_serialize( self, property_id, reservation_id, - file, + reservation_note, + user_id, _request_auth, _content_type, _headers, @@ -3256,8 +5010,10 @@ def _post_reservation_document_post_serialize( _form_params.append(('propertyID', property_id)) if reservation_id is not None: _form_params.append(('reservationID', reservation_id)) - if file is not None: - _files['file'] = file + if reservation_note is not None: + _form_params.append(('reservationNote', reservation_note)) + if user_id is not None: + _form_params.append(('userID', user_id)) # process the body parameter @@ -3291,7 +5047,7 @@ def _post_reservation_document_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/postReservationDocument', + resource_path='/postReservationNote', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3308,12 +5064,33 @@ def _post_reservation_document_post_serialize( @validate_call - def post_reservation_note_post( + def post_reservation_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3326,19 +5103,61 @@ def post_reservation_note_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationNoteResponse: - """postReservationNote + ) -> PostReservationResponse: + """postReservation - Adds a reservation note + Adds a reservation to the selected property :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param reservation_note: Note to be added to reservation - :type reservation_note: str - :param user_id: User ID Identify the actual user that is posting the note - :type user_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str + :param custom_fields: Array with custom fields information + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3361,11 +5180,32 @@ def post_reservation_note_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_note_post_serialize( + _param = self._post_reservation_post_serialize( property_id=property_id, - reservation_id=reservation_id, - reservation_note=reservation_note, - user_id=user_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + estimated_arrival_time=estimated_arrival_time, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, + custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + group_code=group_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3373,7 +5213,7 @@ def post_reservation_note_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationNoteResponse", + '200': "PostReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -3387,12 +5227,33 @@ def post_reservation_note_post( @validate_call - def post_reservation_note_post_with_http_info( + def post_reservation_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3405,19 +5266,61 @@ def post_reservation_note_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationNoteResponse]: - """postReservationNote + ) -> ApiResponse[PostReservationResponse]: + """postReservation - Adds a reservation note + Adds a reservation to the selected property :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param reservation_note: Note to be added to reservation - :type reservation_note: str - :param user_id: User ID Identify the actual user that is posting the note - :type user_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str + :param custom_fields: Array with custom fields information + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3440,11 +5343,32 @@ def post_reservation_note_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_note_post_serialize( + _param = self._post_reservation_post_serialize( property_id=property_id, - reservation_id=reservation_id, - reservation_note=reservation_note, - user_id=user_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + estimated_arrival_time=estimated_arrival_time, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, + custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + group_code=group_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3452,7 +5376,7 @@ def post_reservation_note_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationNoteResponse", + '200': "PostReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -3466,12 +5390,33 @@ def post_reservation_note_post_with_http_info( @validate_call - def post_reservation_note_post_without_preload_content( + def post_reservation_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3485,18 +5430,60 @@ def post_reservation_note_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postReservationNote + """postReservation - Adds a reservation note + Adds a reservation to the selected property :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param reservation_note: Note to be added to reservation - :type reservation_note: str - :param user_id: User ID Identify the actual user that is posting the note - :type user_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. + :type estimated_arrival_time: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str + :param custom_fields: Array with custom fields information + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3519,11 +5506,32 @@ def post_reservation_note_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_note_post_serialize( + _param = self._post_reservation_post_serialize( property_id=property_id, - reservation_id=reservation_id, - reservation_note=reservation_note, - user_id=user_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + estimated_arrival_time=estimated_arrival_time, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, + custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + group_code=group_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3531,7 +5539,7 @@ def post_reservation_note_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationNoteResponse", + '200': "PostReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -3540,12 +5548,33 @@ def post_reservation_note_post_without_preload_content( return response_data.response - def _post_reservation_note_post_serialize( + def _post_reservation_post_serialize( self, property_id, - reservation_id, - reservation_note, - user_id, + source_id, + third_party_identifier, + start_date, + end_date, + guest_first_name, + guest_last_name, + guest_gender, + guest_country, + guest_zip, + guest_email, + guest_phone, + estimated_arrival_time, + rooms, + adults, + children, + payment_method, + card_token, + payment_authorization_code, + custom_fields, + promo_code, + allotment_block_code, + group_code, + date_created, + send_email_confirmation, _request_auth, _content_type, _headers, @@ -3555,6 +5584,10 @@ def _post_reservation_note_post_serialize( _host = None _collection_formats: Dict[str, str] = { + 'rooms': 'csv', + 'adults': 'csv', + 'children': 'csv', + 'customFields': 'csv', } _path_params: Dict[str, str] = {} @@ -3572,12 +5605,54 @@ def _post_reservation_note_post_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if reservation_note is not None: - _form_params.append(('reservationNote', reservation_note)) - if user_id is not None: - _form_params.append(('userID', user_id)) + if source_id is not None: + _form_params.append(('sourceID', source_id)) + if third_party_identifier is not None: + _form_params.append(('thirdPartyIdentifier', third_party_identifier)) + if start_date is not None: + _form_params.append(('startDate', start_date)) + if end_date is not None: + _form_params.append(('endDate', end_date)) + if guest_first_name is not None: + _form_params.append(('guestFirstName', guest_first_name)) + if guest_last_name is not None: + _form_params.append(('guestLastName', guest_last_name)) + if guest_gender is not None: + _form_params.append(('guestGender', guest_gender)) + if guest_country is not None: + _form_params.append(('guestCountry', guest_country)) + if guest_zip is not None: + _form_params.append(('guestZip', guest_zip)) + if guest_email is not None: + _form_params.append(('guestEmail', guest_email)) + if guest_phone is not None: + _form_params.append(('guestPhone', guest_phone)) + if estimated_arrival_time is not None: + _form_params.append(('estimatedArrivalTime', estimated_arrival_time)) + if rooms is not None: + _form_params.append(('rooms', rooms)) + if adults is not None: + _form_params.append(('adults', adults)) + if children is not None: + _form_params.append(('children', children)) + if payment_method is not None: + _form_params.append(('paymentMethod', payment_method)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) + if payment_authorization_code is not None: + _form_params.append(('paymentAuthorizationCode', payment_authorization_code)) + if custom_fields is not None: + _form_params.append(('customFields', custom_fields)) + if promo_code is not None: + _form_params.append(('promoCode', promo_code)) + if allotment_block_code is not None: + _form_params.append(('allotmentBlockCode', allotment_block_code)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) + if date_created is not None: + _form_params.append(('dateCreated', date_created)) + if send_email_confirmation is not None: + _form_params.append(('sendEmailConfirmation', send_email_confirmation)) # process the body parameter @@ -3611,7 +5686,7 @@ def _post_reservation_note_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/postReservationNote', + resource_path='/postReservation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3628,33 +5703,13 @@ def _post_reservation_note_post_serialize( @validate_call - def post_reservation_post( + def put_reservation_details_put( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, - third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, - start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, - guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, - guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, - guest_gender: Optional[StrictStr] = None, - guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, - guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, - guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, - guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, - adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, - children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, - payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, - payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, - custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, - promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, - allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, - date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, - send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, + custom_fields: Annotated[Optional[List[PutReservationDetailsRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3667,61 +5722,21 @@ def post_reservation_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationResponse: - """postReservation + ) -> PutReservationDetailsResponse: + """putReservationDetails - Adds a reservation to the selected property + Updates a reservation details :param property_id: Property ID :type property_id: str - :param source_id: The third-party source ID for this reservation. - :type source_id: str - :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. - :type third_party_identifier: str - :param start_date: Check-In date. - :type start_date: date - :param end_date: Check-Out date. - :type end_date: date - :param guest_first_name: First name of the guest - :type guest_first_name: str - :param guest_last_name: Last name of the guest - :type guest_last_name: str - :param guest_gender: - :type guest_gender: str - :param guest_country: Valid ISO-Code for Country (2 characters) - :type guest_country: str - :param guest_zip: ZIP Code - :type guest_zip: str - :param guest_email: Guest email - :type guest_email: str - :param guest_phone: Guest main phone number - :type guest_phone: str + :param reservation_id: Reservation Unique Identifier, one reservation ID per call. + :type reservation_id: str :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str - :param rooms: Array with quantity of rooms - :type rooms: List[PostReservationRequestRoomsInner] - :param adults: Array with number of adults - :type adults: List[PostReservationRequestAdultsInner] - :param children: Array with number of children - :type children: List[PostReservationRequestChildrenInner] - :param payment_method: Payment Method of choice. - :type payment_method: str - :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. - :type card_token: str - :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. - :type payment_authorization_code: str + :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date + :type status: str :param custom_fields: Array with custom fields information - :type custom_fields: List[PostReservationRequestCustomFieldsInner] - :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". - :type promo_code: str - :param allotment_block_code: Allotment block code to add reservation to allotment block. - :type allotment_block_code: str - :param group_code: Code from the Aggregate Allotment block the reservation will be added to. - :type group_code: str - :param date_created: Date reservation was made. Defaults to current date if omitted. - :type date_created: datetime - :param send_email_confirmation: Send confirmation email to guest. - :type send_email_confirmation: bool + :type custom_fields: List[PutReservationDetailsRequestCustomFieldsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3744,32 +5759,12 @@ def post_reservation_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_post_serialize( + _param = self._put_reservation_details_put_serialize( property_id=property_id, - source_id=source_id, - third_party_identifier=third_party_identifier, - start_date=start_date, - end_date=end_date, - guest_first_name=guest_first_name, - guest_last_name=guest_last_name, - guest_gender=guest_gender, - guest_country=guest_country, - guest_zip=guest_zip, - guest_email=guest_email, - guest_phone=guest_phone, + reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, - rooms=rooms, - adults=adults, - children=children, - payment_method=payment_method, - card_token=card_token, - payment_authorization_code=payment_authorization_code, + status=status, custom_fields=custom_fields, - promo_code=promo_code, - allotment_block_code=allotment_block_code, - group_code=group_code, - date_created=date_created, - send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3777,7 +5772,7 @@ def post_reservation_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationResponse", + '200': "PutReservationDetailsResponse", } response_data = self.api_client.call_api( *_param, @@ -3791,100 +5786,40 @@ def post_reservation_post( @validate_call - def post_reservation_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, - third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, - start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, - guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, - guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, - guest_gender: Optional[StrictStr] = None, - guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, - guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, - guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, - guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, - estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, - adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, - children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, - payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, - payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, - custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, - promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, - allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, - date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, - send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationResponse]: - """postReservation - - Adds a reservation to the selected property - - :param property_id: Property ID - :type property_id: str - :param source_id: The third-party source ID for this reservation. - :type source_id: str - :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. - :type third_party_identifier: str - :param start_date: Check-In date. - :type start_date: date - :param end_date: Check-Out date. - :type end_date: date - :param guest_first_name: First name of the guest - :type guest_first_name: str - :param guest_last_name: Last name of the guest - :type guest_last_name: str - :param guest_gender: - :type guest_gender: str - :param guest_country: Valid ISO-Code for Country (2 characters) - :type guest_country: str - :param guest_zip: ZIP Code - :type guest_zip: str - :param guest_email: Guest email - :type guest_email: str - :param guest_phone: Guest main phone number - :type guest_phone: str + def put_reservation_details_put_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, + estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, + custom_fields: Annotated[Optional[List[PutReservationDetailsRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PutReservationDetailsResponse]: + """putReservationDetails + + Updates a reservation details + + :param property_id: Property ID + :type property_id: str + :param reservation_id: Reservation Unique Identifier, one reservation ID per call. + :type reservation_id: str :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str - :param rooms: Array with quantity of rooms - :type rooms: List[PostReservationRequestRoomsInner] - :param adults: Array with number of adults - :type adults: List[PostReservationRequestAdultsInner] - :param children: Array with number of children - :type children: List[PostReservationRequestChildrenInner] - :param payment_method: Payment Method of choice. - :type payment_method: str - :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. - :type card_token: str - :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. - :type payment_authorization_code: str + :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date + :type status: str :param custom_fields: Array with custom fields information - :type custom_fields: List[PostReservationRequestCustomFieldsInner] - :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". - :type promo_code: str - :param allotment_block_code: Allotment block code to add reservation to allotment block. - :type allotment_block_code: str - :param group_code: Code from the Aggregate Allotment block the reservation will be added to. - :type group_code: str - :param date_created: Date reservation was made. Defaults to current date if omitted. - :type date_created: datetime - :param send_email_confirmation: Send confirmation email to guest. - :type send_email_confirmation: bool + :type custom_fields: List[PutReservationDetailsRequestCustomFieldsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3907,32 +5842,12 @@ def post_reservation_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_post_serialize( + _param = self._put_reservation_details_put_serialize( property_id=property_id, - source_id=source_id, - third_party_identifier=third_party_identifier, - start_date=start_date, - end_date=end_date, - guest_first_name=guest_first_name, - guest_last_name=guest_last_name, - guest_gender=guest_gender, - guest_country=guest_country, - guest_zip=guest_zip, - guest_email=guest_email, - guest_phone=guest_phone, + reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, - rooms=rooms, - adults=adults, - children=children, - payment_method=payment_method, - card_token=card_token, - payment_authorization_code=payment_authorization_code, + status=status, custom_fields=custom_fields, - promo_code=promo_code, - allotment_block_code=allotment_block_code, - group_code=group_code, - date_created=date_created, - send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3940,7 +5855,7 @@ def post_reservation_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationResponse", + '200': "PutReservationDetailsResponse", } response_data = self.api_client.call_api( *_param, @@ -3954,33 +5869,13 @@ def post_reservation_post_with_http_info( @validate_call - def post_reservation_post_without_preload_content( + def put_reservation_details_put_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, - third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, - start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, - guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, - guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, - guest_gender: Optional[StrictStr] = None, - guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, - guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, - guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, - guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, - adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, - children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, - payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, - payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, - custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, - promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, - allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, - date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, - send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, + custom_fields: Annotated[Optional[List[PutReservationDetailsRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3994,60 +5889,20 @@ def post_reservation_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postReservation + """putReservationDetails - Adds a reservation to the selected property + Updates a reservation details :param property_id: Property ID :type property_id: str - :param source_id: The third-party source ID for this reservation. - :type source_id: str - :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. - :type third_party_identifier: str - :param start_date: Check-In date. - :type start_date: date - :param end_date: Check-Out date. - :type end_date: date - :param guest_first_name: First name of the guest - :type guest_first_name: str - :param guest_last_name: Last name of the guest - :type guest_last_name: str - :param guest_gender: - :type guest_gender: str - :param guest_country: Valid ISO-Code for Country (2 characters) - :type guest_country: str - :param guest_zip: ZIP Code - :type guest_zip: str - :param guest_email: Guest email - :type guest_email: str - :param guest_phone: Guest main phone number - :type guest_phone: str + :param reservation_id: Reservation Unique Identifier, one reservation ID per call. + :type reservation_id: str :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str - :param rooms: Array with quantity of rooms - :type rooms: List[PostReservationRequestRoomsInner] - :param adults: Array with number of adults - :type adults: List[PostReservationRequestAdultsInner] - :param children: Array with number of children - :type children: List[PostReservationRequestChildrenInner] - :param payment_method: Payment Method of choice. - :type payment_method: str - :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. - :type card_token: str - :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. - :type payment_authorization_code: str + :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date + :type status: str :param custom_fields: Array with custom fields information - :type custom_fields: List[PostReservationRequestCustomFieldsInner] - :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". - :type promo_code: str - :param allotment_block_code: Allotment block code to add reservation to allotment block. - :type allotment_block_code: str - :param group_code: Code from the Aggregate Allotment block the reservation will be added to. - :type group_code: str - :param date_created: Date reservation was made. Defaults to current date if omitted. - :type date_created: datetime - :param send_email_confirmation: Send confirmation email to guest. - :type send_email_confirmation: bool + :type custom_fields: List[PutReservationDetailsRequestCustomFieldsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4070,32 +5925,12 @@ def post_reservation_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_post_serialize( + _param = self._put_reservation_details_put_serialize( property_id=property_id, - source_id=source_id, - third_party_identifier=third_party_identifier, - start_date=start_date, - end_date=end_date, - guest_first_name=guest_first_name, - guest_last_name=guest_last_name, - guest_gender=guest_gender, - guest_country=guest_country, - guest_zip=guest_zip, - guest_email=guest_email, - guest_phone=guest_phone, + reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, - rooms=rooms, - adults=adults, - children=children, - payment_method=payment_method, - card_token=card_token, - payment_authorization_code=payment_authorization_code, + status=status, custom_fields=custom_fields, - promo_code=promo_code, - allotment_block_code=allotment_block_code, - group_code=group_code, - date_created=date_created, - send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4103,7 +5938,7 @@ def post_reservation_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationResponse", + '200': "PutReservationDetailsResponse", } response_data = self.api_client.call_api( *_param, @@ -4112,33 +5947,13 @@ def post_reservation_post_without_preload_content( return response_data.response - def _post_reservation_post_serialize( + def _put_reservation_details_put_serialize( self, property_id, - source_id, - third_party_identifier, - start_date, - end_date, - guest_first_name, - guest_last_name, - guest_gender, - guest_country, - guest_zip, - guest_email, - guest_phone, + reservation_id, estimated_arrival_time, - rooms, - adults, - children, - payment_method, - card_token, - payment_authorization_code, + status, custom_fields, - promo_code, - allotment_block_code, - group_code, - date_created, - send_email_confirmation, _request_auth, _content_type, _headers, @@ -4148,9 +5963,6 @@ def _post_reservation_post_serialize( _host = None _collection_formats: Dict[str, str] = { - 'rooms': 'csv', - 'adults': 'csv', - 'children': 'csv', 'customFields': 'csv', } @@ -4169,54 +5981,14 @@ def _post_reservation_post_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if source_id is not None: - _form_params.append(('sourceID', source_id)) - if third_party_identifier is not None: - _form_params.append(('thirdPartyIdentifier', third_party_identifier)) - if start_date is not None: - _form_params.append(('startDate', start_date)) - if end_date is not None: - _form_params.append(('endDate', end_date)) - if guest_first_name is not None: - _form_params.append(('guestFirstName', guest_first_name)) - if guest_last_name is not None: - _form_params.append(('guestLastName', guest_last_name)) - if guest_gender is not None: - _form_params.append(('guestGender', guest_gender)) - if guest_country is not None: - _form_params.append(('guestCountry', guest_country)) - if guest_zip is not None: - _form_params.append(('guestZip', guest_zip)) - if guest_email is not None: - _form_params.append(('guestEmail', guest_email)) - if guest_phone is not None: - _form_params.append(('guestPhone', guest_phone)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) if estimated_arrival_time is not None: _form_params.append(('estimatedArrivalTime', estimated_arrival_time)) - if rooms is not None: - _form_params.append(('rooms', rooms)) - if adults is not None: - _form_params.append(('adults', adults)) - if children is not None: - _form_params.append(('children', children)) - if payment_method is not None: - _form_params.append(('paymentMethod', payment_method)) - if card_token is not None: - _form_params.append(('cardToken', card_token)) - if payment_authorization_code is not None: - _form_params.append(('paymentAuthorizationCode', payment_authorization_code)) + if status is not None: + _form_params.append(('status', status)) if custom_fields is not None: _form_params.append(('customFields', custom_fields)) - if promo_code is not None: - _form_params.append(('promoCode', promo_code)) - if allotment_block_code is not None: - _form_params.append(('allotmentBlockCode', allotment_block_code)) - if group_code is not None: - _form_params.append(('groupCode', group_code)) - if date_created is not None: - _form_params.append(('dateCreated', date_created)) - if send_email_confirmation is not None: - _form_params.append(('sendEmailConfirmation', send_email_confirmation)) # process the body parameter @@ -4249,8 +6021,8 @@ def _post_reservation_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/postReservation', + method='PUT', + resource_path='/putReservationDetails', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cloudbeds_pms_v1_2/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py similarity index 91% rename from cloudbeds_pms_v1_2/api/room_api.py rename to cloudbeds_pms_v1_3/api/room_api.py index 5117a6a..232f462 100644 --- a/cloudbeds_pms_v1_2/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,25 +20,26 @@ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import List, Optional, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse -from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse -from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse -from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse -from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse -from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse -from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse -from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse -from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse - -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class RoomApi: @@ -4392,6 +4393,401 @@ def _post_room_check_out_post_serialize( + @validate_call + def post_room_type_post( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_type_name: Annotated[Optional[StrictStr], Field(description="Room Type Name")] = None, + room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type Short Name")] = None, + room_type_description: Annotated[Optional[StrictStr], Field(description="Room Type Description")] = None, + max_guests: Annotated[Optional[StrictInt], Field(description="Max number of guests allowed in the room type")] = None, + adults_included: Annotated[Optional[StrictInt], Field(description="Number of adults included on the basic room rate")] = None, + children_included: Annotated[Optional[StrictInt], Field(description="Number of children included on the basic room rate")] = None, + rooms_available: Annotated[Optional[StrictInt], Field(description="Number of rooms available, based on the parameters provided")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="If room is private (true) or shared (false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostRoomTypeResponse: + """postRoomType + + Create a new accommodation type + + :param property_id: Property ID + :type property_id: str + :param room_type_name: Room Type Name + :type room_type_name: str + :param room_type_name_short: Room Type Short Name + :type room_type_name_short: str + :param room_type_description: Room Type Description + :type room_type_description: str + :param max_guests: Max number of guests allowed in the room type + :type max_guests: int + :param adults_included: Number of adults included on the basic room rate + :type adults_included: int + :param children_included: Number of children included on the basic room rate + :type children_included: int + :param rooms_available: Number of rooms available, based on the parameters provided + :type rooms_available: int + :param is_private: If room is private (true) or shared (false) + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_type_post_serialize( + property_id=property_id, + room_type_name=room_type_name, + room_type_name_short=room_type_name_short, + room_type_description=room_type_description, + max_guests=max_guests, + adults_included=adults_included, + children_included=children_included, + rooms_available=rooms_available, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomTypeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_room_type_post_with_http_info( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_type_name: Annotated[Optional[StrictStr], Field(description="Room Type Name")] = None, + room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type Short Name")] = None, + room_type_description: Annotated[Optional[StrictStr], Field(description="Room Type Description")] = None, + max_guests: Annotated[Optional[StrictInt], Field(description="Max number of guests allowed in the room type")] = None, + adults_included: Annotated[Optional[StrictInt], Field(description="Number of adults included on the basic room rate")] = None, + children_included: Annotated[Optional[StrictInt], Field(description="Number of children included on the basic room rate")] = None, + rooms_available: Annotated[Optional[StrictInt], Field(description="Number of rooms available, based on the parameters provided")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="If room is private (true) or shared (false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostRoomTypeResponse]: + """postRoomType + + Create a new accommodation type + + :param property_id: Property ID + :type property_id: str + :param room_type_name: Room Type Name + :type room_type_name: str + :param room_type_name_short: Room Type Short Name + :type room_type_name_short: str + :param room_type_description: Room Type Description + :type room_type_description: str + :param max_guests: Max number of guests allowed in the room type + :type max_guests: int + :param adults_included: Number of adults included on the basic room rate + :type adults_included: int + :param children_included: Number of children included on the basic room rate + :type children_included: int + :param rooms_available: Number of rooms available, based on the parameters provided + :type rooms_available: int + :param is_private: If room is private (true) or shared (false) + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_type_post_serialize( + property_id=property_id, + room_type_name=room_type_name, + room_type_name_short=room_type_name_short, + room_type_description=room_type_description, + max_guests=max_guests, + adults_included=adults_included, + children_included=children_included, + rooms_available=rooms_available, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomTypeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_room_type_post_without_preload_content( + self, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + room_type_name: Annotated[Optional[StrictStr], Field(description="Room Type Name")] = None, + room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type Short Name")] = None, + room_type_description: Annotated[Optional[StrictStr], Field(description="Room Type Description")] = None, + max_guests: Annotated[Optional[StrictInt], Field(description="Max number of guests allowed in the room type")] = None, + adults_included: Annotated[Optional[StrictInt], Field(description="Number of adults included on the basic room rate")] = None, + children_included: Annotated[Optional[StrictInt], Field(description="Number of children included on the basic room rate")] = None, + rooms_available: Annotated[Optional[StrictInt], Field(description="Number of rooms available, based on the parameters provided")] = None, + is_private: Annotated[Optional[StrictBool], Field(description="If room is private (true) or shared (false)")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """postRoomType + + Create a new accommodation type + + :param property_id: Property ID + :type property_id: str + :param room_type_name: Room Type Name + :type room_type_name: str + :param room_type_name_short: Room Type Short Name + :type room_type_name_short: str + :param room_type_description: Room Type Description + :type room_type_description: str + :param max_guests: Max number of guests allowed in the room type + :type max_guests: int + :param adults_included: Number of adults included on the basic room rate + :type adults_included: int + :param children_included: Number of children included on the basic room rate + :type children_included: int + :param rooms_available: Number of rooms available, based on the parameters provided + :type rooms_available: int + :param is_private: If room is private (true) or shared (false) + :type is_private: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_room_type_post_serialize( + property_id=property_id, + room_type_name=room_type_name, + room_type_name_short=room_type_name_short, + room_type_description=room_type_description, + max_guests=max_guests, + adults_included=adults_included, + children_included=children_included, + rooms_available=rooms_available, + is_private=is_private, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRoomTypeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_room_type_post_serialize( + self, + property_id, + room_type_name, + room_type_name_short, + room_type_description, + max_guests, + adults_included, + children_included, + rooms_available, + is_private, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if room_type_name is not None: + _form_params.append(('roomTypeName', room_type_name)) + if room_type_name_short is not None: + _form_params.append(('roomTypeNameShort', room_type_name_short)) + if room_type_description is not None: + _form_params.append(('roomTypeDescription', room_type_description)) + if max_guests is not None: + _form_params.append(('maxGuests', max_guests)) + if adults_included is not None: + _form_params.append(('adultsIncluded', adults_included)) + if children_included is not None: + _form_params.append(('childrenIncluded', children_included)) + if rooms_available is not None: + _form_params.append(('roomsAvailable', rooms_available)) + if is_private is not None: + _form_params.append(('isPrivate', is_private)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-www-form-urlencoded' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/postRoomType', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def put_room_block_put( self, diff --git a/cloudbeds_pms_v1_3/api/rooms_api.py b/cloudbeds_pms_v1_3/api/rooms_api.py new file mode 100644 index 0000000..01b0272 --- /dev/null +++ b/cloudbeds_pms_v1_3/api/rooms_api.py @@ -0,0 +1,441 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from datetime import date +from pydantic import Field, StrictBool, StrictInt, StrictStr +from typing import Optional +from typing_extensions import Annotated +from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse + +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType + + +class RoomsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def get_hotel_room_types_get( + self, + property_ids: Annotated[StrictStr, Field(description="Property ID list, comma-separated, i.e. 37,345,89")], + start_date: Annotated[Optional[date], Field(description="Check-In date. Required for rates to be returned.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date. Required for rates to be returned.")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for rates to be returned.")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for rates to be returned.")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetHotelRoomTypesResponse: + """getHotelRoomTypes + + Returns a list of room types of a specific property, or a list of properties + + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 (required) + :type property_ids: str + :param start_date: Check-In date. Required for rates to be returned. + :type start_date: date + :param end_date: Check-Out date. Required for rates to be returned. + :type end_date: date + :param adults: Number of adults. Required for rates to be returned. + :type adults: int + :param children: Number of children. Required for rates to be returned. + :type children: int + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotel_room_types_get_serialize( + property_ids=property_ids, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_hotel_room_types_get_with_http_info( + self, + property_ids: Annotated[StrictStr, Field(description="Property ID list, comma-separated, i.e. 37,345,89")], + start_date: Annotated[Optional[date], Field(description="Check-In date. Required for rates to be returned.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date. Required for rates to be returned.")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for rates to be returned.")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for rates to be returned.")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetHotelRoomTypesResponse]: + """getHotelRoomTypes + + Returns a list of room types of a specific property, or a list of properties + + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 (required) + :type property_ids: str + :param start_date: Check-In date. Required for rates to be returned. + :type start_date: date + :param end_date: Check-Out date. Required for rates to be returned. + :type end_date: date + :param adults: Number of adults. Required for rates to be returned. + :type adults: int + :param children: Number of children. Required for rates to be returned. + :type children: int + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotel_room_types_get_serialize( + property_ids=property_ids, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_hotel_room_types_get_without_preload_content( + self, + property_ids: Annotated[StrictStr, Field(description="Property ID list, comma-separated, i.e. 37,345,89")], + start_date: Annotated[Optional[date], Field(description="Check-In date. Required for rates to be returned.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date. Required for rates to be returned.")] = None, + adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for rates to be returned.")] = None, + children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for rates to be returned.")] = None, + detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getHotelRoomTypes + + Returns a list of room types of a specific property, or a list of properties + + :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 (required) + :type property_ids: str + :param start_date: Check-In date. Required for rates to be returned. + :type start_date: date + :param end_date: Check-Out date. Required for rates to be returned. + :type end_date: date + :param adults: Number of adults. Required for rates to be returned. + :type adults: int + :param children: Number of children. Required for rates to be returned. + :type children: int + :param detailed_rates: If detailed rates are expected + :type detailed_rates: bool + :param page_number: Page number + :type page_number: int + :param page_size: Page size + :type page_size: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_hotel_room_types_get_serialize( + property_ids=property_ids, + start_date=start_date, + end_date=end_date, + adults=adults, + children=children, + detailed_rates=detailed_rates, + page_number=page_number, + page_size=page_size, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetHotelRoomTypesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_hotel_room_types_get_serialize( + self, + property_ids, + start_date, + end_date, + adults, + children, + detailed_rates, + page_number, + page_size, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + + if start_date is not None: + if isinstance(start_date, date): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, date): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if adults is not None: + + _query_params.append(('adults', adults)) + + if children is not None: + + _query_params.append(('children', children)) + + if detailed_rates is not None: + + _query_params.append(('detailedRates', detailed_rates)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/getHotelRoomTypes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cloudbeds_pms_v1_2/api/taxes_and_fees_api.py b/cloudbeds_pms_v1_3/api/taxes_and_fees_api.py similarity index 97% rename from cloudbeds_pms_v1_2/api/taxes_and_fees_api.py rename to cloudbeds_pms_v1_3/api/taxes_and_fees_api.py index b81b697..a6d4031 100644 --- a/cloudbeds_pms_v1_2/api/taxes_and_fees_api.py +++ b/cloudbeds_pms_v1_3/api/taxes_and_fees_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,11 +19,11 @@ from pydantic import Field, StrictBool, StrictStr from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class TaxesAndFeesApi: diff --git a/cloudbeds_pms_v1_2/api/user_api.py b/cloudbeds_pms_v1_3/api/user_api.py similarity index 96% rename from cloudbeds_pms_v1_2/api/user_api.py rename to cloudbeds_pms_v1_3/api/user_api.py index ecc56dd..5530540 100644 --- a/cloudbeds_pms_v1_2/api/user_api.py +++ b/cloudbeds_pms_v1_3/api/user_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,11 +19,11 @@ from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse -from cloudbeds_pms_v1_2.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_2.api_response import ApiResponse -from cloudbeds_pms_v1_2.rest import RESTResponseType +from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.rest import RESTResponseType class UserApi: diff --git a/cloudbeds_pms_v1_2/api_client.py b/cloudbeds_pms_v1_3/api_client.py similarity index 98% rename from cloudbeds_pms_v1_2/api_client.py rename to cloudbeds_pms_v1_3/api_client.py index cde5258..26d92ca 100644 --- a/cloudbeds_pms_v1_2/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,11 +26,11 @@ from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr -from cloudbeds_pms_v1_2.configuration import Configuration -from cloudbeds_pms_v1_2.api_response import ApiResponse, T as ApiResponseT -import cloudbeds_pms_v1_2.models -from cloudbeds_pms_v1_2 import rest -from cloudbeds_pms_v1_2.exceptions import ( +from cloudbeds_pms_v1_3.configuration import Configuration +from cloudbeds_pms_v1_3.api_response import ApiResponse, T as ApiResponseT +import cloudbeds_pms_v1_3.models +from cloudbeds_pms_v1_3 import rest +from cloudbeds_pms_v1_3.exceptions import ( ApiValueError, ApiException, BadRequestException, @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.3.0/python' + self.user_agent = 'OpenAPI-Generator/1.0.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -449,7 +449,7 @@ def __deserialize(self, data, klass): if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(cloudbeds_pms_v1_2.models, klass) + klass = getattr(cloudbeds_pms_v1_3.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) diff --git a/cloudbeds_pms_v1_2/api_response.py b/cloudbeds_pms_v1_3/api_response.py similarity index 100% rename from cloudbeds_pms_v1_2/api_response.py rename to cloudbeds_pms_v1_3/api_response.py diff --git a/cloudbeds_pms_v1_2/configuration.py b/cloudbeds_pms_v1_3/configuration.py similarity index 97% rename from cloudbeds_pms_v1_2/configuration.py rename to cloudbeds_pms_v1_3/configuration.py index 75e65c7..647176d 100644 --- a/cloudbeds_pms_v1_2/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -176,7 +176,7 @@ class Configuration: You can programmatically set the cookie: -conf = cloudbeds_pms_v1_2.Configuration( +conf = cloudbeds_pms_v1_3.Configuration( api_key={'cookieAuth': 'abc123'} api_key_prefix={'cookieAuth': 'JSESSIONID'} ) @@ -207,7 +207,7 @@ def __init__( ) -> None: """Constructor """ - self._base_path = "https://api.cloudbeds.com/api/v1.2" if host is None else host + self._base_path = "https://api.cloudbeds.com/api/v1.3" if host is None else host """Default Base url """ self.server_index = 0 if server_index is None and host is None else server_index @@ -250,7 +250,7 @@ def __init__( self.logger = {} """Logging Settings """ - self.logger["package_logger"] = logging.getLogger("cloudbeds_pms_v1_2") + self.logger["package_logger"] = logging.getLogger("cloudbeds_pms_v1_3") self.logger["urllib3_logger"] = logging.getLogger("urllib3") self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format @@ -531,8 +531,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v1.2\n"\ - "SDK Package Version: 1.3.0".\ + "Version of the API: v1.3\n"\ + "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: @@ -542,7 +542,7 @@ def get_host_settings(self) -> List[HostSetting]: """ return [ { - 'url': "https://api.cloudbeds.com/api/v1.2", + 'url': "https://api.cloudbeds.com/api/v1.3", 'description': "No description provided", } ] diff --git a/cloudbeds_pms_v1_3/docs/AdjustmentApi.md b/cloudbeds_pms_v1_3/docs/AdjustmentApi.md new file mode 100644 index 0000000..3dcc5e2 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/AdjustmentApi.md @@ -0,0 +1,358 @@ +# cloudbeds_pms_v1_3.AdjustmentApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_adjustment_delete**](AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment +[**get_adjustment_get**](AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment +[**get_adjustments_get**](AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments +[**post_adjustment_post**](AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment + + +# **delete_adjustment_delete** +> DeleteAdjustmentResponse delete_adjustment_delete(reservation_id, adjustment_id, property_id=property_id) + +deleteAdjustment + +Voids the AdjustmentID transaction on the specified reservationID + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.AdjustmentApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier + adjustment_id = 'adjustment_id_example' # str | Adjustment identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # deleteAdjustment + api_response = api_instance.delete_adjustment_delete(reservation_id, adjustment_id, property_id=property_id) + print("The response of AdjustmentApi->delete_adjustment_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->delete_adjustment_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation identifier | + **adjustment_id** | **str**| Adjustment identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**DeleteAdjustmentResponse**](DeleteAdjustmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_adjustment_get** +> GetAdjustmentResponse get_adjustment_get(adjustment_id, property_id=property_id) + +getAdjustment + +Gets the details for the one AdjustmentID + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.AdjustmentApi(api_client) + adjustment_id = 'adjustment_id_example' # str | Adjustment identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getAdjustment + api_response = api_instance.get_adjustment_get(adjustment_id, property_id=property_id) + print("The response of AdjustmentApi->get_adjustment_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->get_adjustment_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **adjustment_id** | **str**| Adjustment identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetAdjustmentResponse**](GetAdjustmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_adjustments_get** +> GetAdjustmentsResponse get_adjustments_get(reservation_id, property_id=property_id) + +getAdjustments + +Gets all the Adjustments and their details to a specified reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.AdjustmentApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier + property_id = 'property_id_example' # str | Property ID (optional) + + try: + # getAdjustments + api_response = api_instance.get_adjustments_get(reservation_id, property_id=property_id) + print("The response of AdjustmentApi->get_adjustments_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->get_adjustments_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation identifier | + **property_id** | **str**| Property ID | [optional] + +### Return type + +[**GetAdjustmentsResponse**](GetAdjustmentsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_adjustment_post** +> PostAdjustmentResponse post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) + +postAdjustment + +Adds an adjustment to a reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.AdjustmentApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + type = 'type_example' # str | Apply Adjustment to (optional) + amount = 3.4 # float | Adjustment amount (optional) + notes = 'notes_example' # str | Adjustment notes (optional) + item_id = 'item_id_example' # str | Apply Adjustment to. Identifier for: product, tax, fee. Not for rate (optional) + + try: + # postAdjustment + api_response = api_instance.post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) + print("The response of AdjustmentApi->post_adjustment_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdjustmentApi->post_adjustment_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **type** | **str**| Apply Adjustment to | [optional] + **amount** | **float**| Adjustment amount | [optional] + **notes** | **str**| Adjustment notes | [optional] + **item_id** | **str**| Apply Adjustment to. Identifier for: product, tax, fee. Not for rate | [optional] + +### Return type + +[**PostAdjustmentResponse**](PostAdjustmentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md similarity index 89% rename from cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md rename to cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md index 6f0ec85..50990c6 100644 --- a/cloudbeds_pms_v1_2/docs/AllotmentBlocksApi.md +++ b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.AllotmentBlocksApi +# cloudbeds_pms_v1_3.AllotmentBlocksApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,15 +26,15 @@ Add a note to an allotment block * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -51,9 +51,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) allotment_block_code = 'allotment_block_code_example' # str | Allotment Block Code (optional) text = 'text_example' # str | Note's text (optional) @@ -112,17 +112,17 @@ Retreive allotment blocks @apiQuery {Integer} propertyID Property ID * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -139,9 +139,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) group_code = 'group_code_example' # str | The unique identifier of the group profile the allotment block should be created (optional) allotment_block_name = 'allotment_block_name_example' # str | The name for the allotment block (optional) rate_type = 'rate_type_example' # str | The rate type for the associated intervals (optional) @@ -149,8 +149,8 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: allotment_type = 'allotment_type_example' # str | The allotment type (optional) allotment_block_status = 'allotment_block_status_example' # str | The status for the allotment block under (optional) allow_overbooking = True # bool | If false, or omitted, then this command will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. (optional) - auto_release = cloudbeds_pms_v1_2.PostCreateAllotmentBlockRequestAutoRelease() # PostCreateAllotmentBlockRequestAutoRelease | (optional) - allotment_intervals = [cloudbeds_pms_v1_2.PostCreateAllotmentBlockRequestAllotmentIntervalsInner()] # List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner] | The day-based data for the allotment block. (optional) + auto_release = cloudbeds_pms_v1_3.PostCreateAllotmentBlockRequestAutoRelease() # PostCreateAllotmentBlockRequestAutoRelease | (optional) + allotment_intervals = [cloudbeds_pms_v1_3.PostCreateAllotmentBlockRequestAllotmentIntervalsInner()] # List[PostCreateAllotmentBlockRequestAllotmentIntervalsInner] | The day-based data for the allotment block. (optional) try: # createAllotmentBlock @@ -212,15 +212,15 @@ Delete allotment blocks * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -237,9 +237,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) allotment_block_code = 'allotment_block_code_example' # str | The unique code of the allotment Block (optional) try: @@ -294,15 +294,15 @@ Retrieve allotment blocks * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -319,9 +319,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) property_id = 'property_id_example' # str | Property ID (optional, by default all authorized properties will be included) allotment_block_code = 'allotment_block_code_example' # str | Allotment block code (optional) allotment_block_name = 'allotment_block_name_example' # str | Allotment block name (optional) @@ -394,15 +394,15 @@ List notes added to an allotment block * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -419,9 +419,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) property_id = 'property_id_example' # str | Property ID allotment_block_code = 'allotment_block_code_example' # str | Allotment block code status = 'status_example' # str | Note status (optional) @@ -484,15 +484,15 @@ Update a note on an allotment block * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -509,9 +509,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) allotment_block_code = 'allotment_block_code_example' # str | Allotment Block Code (optional) note_id = 'note_id_example' # str | Note's ID (optional) @@ -574,17 +574,17 @@ Update an allotment block @apiQuery {Integer} propertyID Property ID * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -601,16 +601,16 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AllotmentBlocksApi(api_client) + api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) allotment_block_code = 'allotment_block_code_example' # str | The allotment block code identifying the allotment block to update (optional) allotment_block_name = 'allotment_block_name_example' # str | The name for the allotment block (optional) allow_overbooking = True # bool | If false, or omitted, then this update will fail if it would result in an overbooking. If true, then the update will succeed even if it results in an overbooking. (optional) allotment_type = 'allotment_type_example' # str | The allotment type (optional) allotment_block_status = 'allotment_block_status_example' # str | The status for the allotment block under (optional) - auto_release = cloudbeds_pms_v1_2.PostUpdateAllotmentBlockRequestAutoRelease() # PostUpdateAllotmentBlockRequestAutoRelease | (optional) - allotment_intervals = [cloudbeds_pms_v1_2.PostUpdateAllotmentBlockRequestAllotmentIntervalsInner()] # List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner] | The day-based data for the allotment block. (optional) + auto_release = cloudbeds_pms_v1_3.PostUpdateAllotmentBlockRequestAutoRelease() # PostUpdateAllotmentBlockRequestAutoRelease | (optional) + allotment_intervals = [cloudbeds_pms_v1_3.PostUpdateAllotmentBlockRequestAllotmentIntervalsInner()] # List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInner] | The day-based data for the allotment block. (optional) try: # updateAllotmentBlock diff --git a/cloudbeds_pms_v1_2/docs/AppSettingsApi.md b/cloudbeds_pms_v1_3/docs/AppSettingsApi.md similarity index 68% rename from cloudbeds_pms_v1_2/docs/AppSettingsApi.md rename to cloudbeds_pms_v1_3/docs/AppSettingsApi.md index 7d93b78..ff5b6b3 100644 --- a/cloudbeds_pms_v1_2/docs/AppSettingsApi.md +++ b/cloudbeds_pms_v1_3/docs/AppSettingsApi.md @@ -1,12 +1,13 @@ -# cloudbeds_pms_v1_2.AppSettingsApi +# cloudbeds_pms_v1_3.AppSettingsApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_app_property_settings_post**](AppSettingsApi.md#delete_app_property_settings_post) | **POST** /deleteAppPropertySettings | deleteAppPropertySettings [**get_app_property_settings_get**](AppSettingsApi.md#get_app_property_settings_get) | **GET** /getAppPropertySettings | getAppPropertySettings [**post_app_property_settings_post**](AppSettingsApi.md#post_app_property_settings_post) | **POST** /postAppPropertySettings | postAppPropertySettings +[**post_bulk_app_property_settings_post**](AppSettingsApi.md#post_bulk_app_property_settings_post) | **POST** /postBulkAppPropertySettings | postBulkAppPropertySettings [**put_app_property_settings_post**](AppSettingsApi.md#put_app_property_settings_post) | **POST** /putAppPropertySettings | putAppPropertySettings @@ -23,15 +24,15 @@ deleteAppPropertySettings * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -48,9 +49,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + api_instance = cloudbeds_pms_v1_3.AppSettingsApi(api_client) property_id = 'property_id_example' # str | Key (optional) key = 'key_example' # str | Key (optional) @@ -107,15 +108,15 @@ Returns the app property settings * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -132,9 +133,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + api_instance = cloudbeds_pms_v1_3.AppSettingsApi(api_client) property_id = 'property_id_example' # str | Property ID key = 'key_example' # str | Key (optional) @@ -191,15 +192,15 @@ postAppPropertySettings * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -216,9 +217,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + api_instance = cloudbeds_pms_v1_3.AppSettingsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) app_client_id = 'app_client_id_example' # str | Application Client ID (optional) key = 'key_example' # str | Key (optional) @@ -266,6 +267,92 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **post_bulk_app_property_settings_post** +> PostBulkAppPropertySettingsResponse post_bulk_app_property_settings_post(property_id=property_id, app_client_id=app_client_id, settings=settings) + +postBulkAppPropertySettings + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.AppSettingsApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + app_client_id = 'app_client_id_example' # str | Application Client ID (optional) + settings = 'settings_example' # str | JSON array of settings values (optional) + + try: + # postBulkAppPropertySettings + api_response = api_instance.post_bulk_app_property_settings_post(property_id=property_id, app_client_id=app_client_id, settings=settings) + print("The response of AppSettingsApi->post_bulk_app_property_settings_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AppSettingsApi->post_bulk_app_property_settings_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **app_client_id** | **str**| Application Client ID | [optional] + **settings** | **str**| JSON array of settings values | [optional] + +### Return type + +[**PostBulkAppPropertySettingsResponse**](PostBulkAppPropertySettingsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **put_app_property_settings_post** > PostPutAppPropertySettingsResponse put_app_property_settings_post(property_id=property_id, key=key, value=value) @@ -279,15 +366,15 @@ putAppPropertySettings * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -304,9 +391,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AppSettingsApi(api_client) + api_instance = cloudbeds_pms_v1_3.AppSettingsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) key = 'key_example' # str | Key (optional) value = 'value_example' # str | Value (optional) diff --git a/cloudbeds_pms_v1_2/docs/AuthenticationApi.md b/cloudbeds_pms_v1_3/docs/AuthenticationApi.md similarity index 70% rename from cloudbeds_pms_v1_2/docs/AuthenticationApi.md rename to cloudbeds_pms_v1_3/docs/AuthenticationApi.md index 2a98728..6103639 100644 --- a/cloudbeds_pms_v1_2/docs/AuthenticationApi.md +++ b/cloudbeds_pms_v1_3/docs/AuthenticationApi.md @@ -1,14 +1,79 @@ -# cloudbeds_pms_v1_2.AuthenticationApi +# cloudbeds_pms_v1_3.AuthenticationApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- +[**access_token_check_post**](AuthenticationApi.md#access_token_check_post) | **POST** /access_token_check | access_token_check [**access_token_post**](AuthenticationApi.md#access_token_post) | **POST** /access_token | access_token [**oauth_metadata_get**](AuthenticationApi.md#oauth_metadata_get) | **GET** /oauth/metadata | metadata [**userinfo_get**](AuthenticationApi.md#userinfo_get) | **GET** /userinfo | userinfo +# **access_token_check_post** +> PostAccessTokenCheckResponse access_token_check_post() + +access_token_check + +A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. + +### Example + + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.AuthenticationApi(api_client) + + try: + # access_token_check + api_response = api_instance.access_token_check_post() + print("The response of AuthenticationApi->access_token_check_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthenticationApi->access_token_check_post: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**PostAccessTokenCheckResponse**](PostAccessTokenCheckResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **access_token_post** > PostAccessTokenResponse access_token_post(grant_type=grant_type, client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri, code=code, refresh_token=refresh_token) @@ -20,22 +85,22 @@ Query the authorization server for an access token used to access property resou ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AuthenticationApi(api_client) + api_instance = cloudbeds_pms_v1_3.AuthenticationApi(api_client) grant_type = 'grant_type_example' # str | The OAuth2 grant type. (optional) client_id = 'client_id_example' # str | The client identifier. Each client must be provisioned an identifier. (optional) client_secret = 'client_secret_example' # str | The client secret. Each client must be provisioned a secret. (optional) @@ -98,22 +163,22 @@ In the context of properties being distributed across multiple localizations, th ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AuthenticationApi(api_client) + api_instance = cloudbeds_pms_v1_3.AuthenticationApi(api_client) try: # metadata @@ -162,22 +227,22 @@ Returns information on user who authorized connection ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.AuthenticationApi(api_client) + api_instance = cloudbeds_pms_v1_3.AuthenticationApi(api_client) property_id = 'property_id_example' # str | Specify a property ID when using role_details (optional) role_details = True # bool | Specify whether to include role and acl details of the user. (optional) diff --git a/cloudbeds_pms_v1_3/docs/BetaApi.md b/cloudbeds_pms_v1_3/docs/BetaApi.md new file mode 100644 index 0000000..ec10ab5 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/BetaApi.md @@ -0,0 +1,93 @@ +# cloudbeds_pms_v1_3.BetaApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_async_api_job_get**](BetaApi.md#get_async_api_job_get) | **GET** /getAsyncApiJob | getAsyncApiJob + + +# **get_async_api_job_get** +> GetAsyncApiJobResponse get_async_api_job_get(job_reference_id=job_reference_id, status=status) + +getAsyncApiJob + +Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.BetaApi(api_client) + job_reference_id = 'job_reference_id_example' # str | Filter Rate Jobs by jobReferenceID (optional) + status = 'status_example' # str | Filter Rate Jobs based on status (optional) + + try: + # getAsyncApiJob + api_response = api_instance.get_async_api_job_get(job_reference_id=job_reference_id, status=status) + print("The response of BetaApi->get_async_api_job_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BetaApi->get_async_api_job_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_reference_id** | **str**| Filter Rate Jobs by jobReferenceID | [optional] + **status** | **str**| Filter Rate Jobs based on status | [optional] + +### Return type + +[**GetAsyncApiJobResponse**](GetAsyncApiJobResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_3/docs/CRMApi.md b/cloudbeds_pms_v1_3/docs/CRMApi.md new file mode 100644 index 0000000..483f854 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/CRMApi.md @@ -0,0 +1,180 @@ +# cloudbeds_pms_v1_3.CRMApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**crm_cache_remove_post**](CRMApi.md#crm_cache_remove_post) | **POST** /crm/cache_remove | PostCRMCacheRemove +[**crm_cache_update_post**](CRMApi.md#crm_cache_update_post) | **POST** /crm/cache_update | PostCRMCacheUpdate + + +# **crm_cache_remove_post** +> PostCRMCacheRemoveResponse crm_cache_remove_post(property_id=property_id, association_id=association_id) + +PostCRMCacheRemove + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.CRMApi(api_client) + property_id = ['property_id_example'] # List[str] | Property IDs that needs the cache to be removed (optional) + association_id = 'association_id_example' # str | Association ID that needs the cache to be removed (optional) + + try: + # PostCRMCacheRemove + api_response = api_instance.crm_cache_remove_post(property_id=property_id, association_id=association_id) + print("The response of CRMApi->crm_cache_remove_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CRMApi->crm_cache_remove_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | [**List[str]**](str.md)| Property IDs that needs the cache to be removed | [optional] + **association_id** | **str**| Association ID that needs the cache to be removed | [optional] + +### Return type + +[**PostCRMCacheRemoveResponse**](PostCRMCacheRemoveResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_cache_update_post** +> PostCRMCacheUpdateResponse crm_cache_update_post(property_id=property_id, clear=clear, clear_packages=clear_packages) + +PostCRMCacheUpdate + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.CRMApi(api_client) + property_id = 'property_id_example' # str | Property ID that needs the cache to be updated (optional) + clear = True # bool | If property cache should be cleared (optional) + clear_packages = True # bool | If packages cache should be cleared for the property (optional) + + try: + # PostCRMCacheUpdate + api_response = api_instance.crm_cache_update_post(property_id=property_id, clear=clear, clear_packages=clear_packages) + print("The response of CRMApi->crm_cache_update_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CRMApi->crm_cache_update_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID that needs the cache to be updated | [optional] + **clear** | **bool**| If property cache should be cleared | [optional] + **clear_packages** | **bool**| If packages cache should be cleared for the property | [optional] + +### Return type + +[**PostCRMCacheUpdateResponse**](PostCRMCacheUpdateResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/CurrencyApi.md b/cloudbeds_pms_v1_3/docs/CurrencyApi.md similarity index 83% rename from cloudbeds_pms_v1_2/docs/CurrencyApi.md rename to cloudbeds_pms_v1_3/docs/CurrencyApi.md index 5127275..8c4e1d4 100644 --- a/cloudbeds_pms_v1_2/docs/CurrencyApi.md +++ b/cloudbeds_pms_v1_3/docs/CurrencyApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.CurrencyApi +# cloudbeds_pms_v1_3.CurrencyApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -20,15 +20,15 @@ Get currency settings * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -45,9 +45,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.CurrencyApi(api_client) + api_instance = cloudbeds_pms_v1_3.CurrencyApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: diff --git a/cloudbeds_pms_v1_2/docs/CustomFieldsApi.md b/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md similarity index 90% rename from cloudbeds_pms_v1_2/docs/CustomFieldsApi.md rename to cloudbeds_pms_v1_3/docs/CustomFieldsApi.md index 685d797..876e7bd 100644 --- a/cloudbeds_pms_v1_2/docs/CustomFieldsApi.md +++ b/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.CustomFieldsApi +# cloudbeds_pms_v1_3.CustomFieldsApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,15 +21,15 @@ Gets custom fields list
¹ data.displayed = \"booking\" - Display this fie * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -46,9 +46,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.CustomFieldsApi(api_client) + api_instance = cloudbeds_pms_v1_3.CustomFieldsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) custom_field_id = 'custom_field_id_example' # str | Field identifier (optional) shortcode = 'shortcode_example' # str | Internal reference and is used for integration purposes such as custom links and the API (optional) @@ -107,15 +107,15 @@ Sets custom fields. The call should only be made once to add the field to the sy * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -132,9 +132,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.CustomFieldsApi(api_client) + api_instance = cloudbeds_pms_v1_3.CustomFieldsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) name = 'name_example' # str | Field name (optional) shortcode = 'shortcode_example' # str | Internal reference and is used for integration purposes such as custom links and the API (optional) diff --git a/cloudbeds_pms_v1_2/docs/DashboardApi.md b/cloudbeds_pms_v1_3/docs/DashboardApi.md similarity index 84% rename from cloudbeds_pms_v1_2/docs/DashboardApi.md rename to cloudbeds_pms_v1_3/docs/DashboardApi.md index 89e8c2f..f9ef6f6 100644 --- a/cloudbeds_pms_v1_2/docs/DashboardApi.md +++ b/cloudbeds_pms_v1_3/docs/DashboardApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.DashboardApi +# cloudbeds_pms_v1_3.DashboardApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -20,15 +20,15 @@ Returns basic information about the current state of the hotel * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -45,9 +45,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.DashboardApi(api_client) + api_instance = cloudbeds_pms_v1_3.DashboardApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) var_date = '2013-10-20' # date | Return data for this date. Format: YYYY-MM-DD (optional) diff --git a/cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md b/cloudbeds_pms_v1_3/docs/DeleteAdjustmentResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md rename to cloudbeds_pms_v1_3/docs/DeleteAdjustmentResponse.md index 68fb514..ca9f4bb 100644 --- a/cloudbeds_pms_v1_2/docs/DeleteAdjustmentResponse.md +++ b/cloudbeds_pms_v1_3/docs/DeleteAdjustmentResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md b/cloudbeds_pms_v1_3/docs/DeleteGuestNoteResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md rename to cloudbeds_pms_v1_3/docs/DeleteGuestNoteResponse.md index 9256a6e..eb99715 100644 --- a/cloudbeds_pms_v1_2/docs/DeleteGuestNoteResponse.md +++ b/cloudbeds_pms_v1_3/docs/DeleteGuestNoteResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md b/cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md new file mode 100644 index 0000000..4e1a975 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md @@ -0,0 +1,30 @@ +# DeleteItemFromReservationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteItemFromReservationResponse from a JSON string +delete_item_from_reservation_response_instance = DeleteItemFromReservationResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteItemFromReservationResponse.to_json()) + +# convert the object into a dict +delete_item_from_reservation_response_dict = delete_item_from_reservation_response_instance.to_dict() +# create an instance of DeleteItemFromReservationResponse from a dict +delete_item_from_reservation_response_from_dict = DeleteItemFromReservationResponse.from_dict(delete_item_from_reservation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md b/cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md rename to cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md index a2e983c..9757037 100644 --- a/cloudbeds_pms_v1_2/docs/DeleteReservationNoteResponse.md +++ b/cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md rename to cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md index 4d664b8..4703204 100644 --- a/cloudbeds_pms_v1_2/docs/DeleteRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md b/cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md similarity index 93% rename from cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md rename to cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md index 02e2c04..0ae0350 100644 --- a/cloudbeds_pms_v1_2/docs/DeleteWebhookResponse.md +++ b/cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/EmailsApi.md b/cloudbeds_pms_v1_3/docs/EmailsApi.md similarity index 88% rename from cloudbeds_pms_v1_2/docs/EmailsApi.md rename to cloudbeds_pms_v1_3/docs/EmailsApi.md index 7262d40..5c3ce07 100644 --- a/cloudbeds_pms_v1_2/docs/EmailsApi.md +++ b/cloudbeds_pms_v1_3/docs/EmailsApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.EmailsApi +# cloudbeds_pms_v1_3.EmailsApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -23,15 +23,15 @@ Returns a list of all existing email scheduling. This call is only available for * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -48,9 +48,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + api_instance = cloudbeds_pms_v1_3.EmailsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: @@ -105,15 +105,15 @@ Returns a list of all existing email templates. This call is only available for * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -130,9 +130,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + api_instance = cloudbeds_pms_v1_3.EmailsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: @@ -187,16 +187,16 @@ Creates a new email schedule for existing email template. Email template can be * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule -from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -213,13 +213,13 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + api_instance = cloudbeds_pms_v1_3.EmailsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) email_template_id = 'email_template_id_example' # str | ID of the email template that will be used when sending an email. (optional) schedule_name = 'schedule_name_example' # str | User friendly schedule name that appears in the list. Should contain app name. (optional) - schedule = cloudbeds_pms_v1_2.PostEmailScheduleRequestSchedule() # PostEmailScheduleRequestSchedule | (optional) + schedule = cloudbeds_pms_v1_3.PostEmailScheduleRequestSchedule() # PostEmailScheduleRequestSchedule | (optional) try: # postEmailSchedule @@ -276,17 +276,17 @@ Creates a new email template. See the full list of available language parameters * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody -from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject -from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -303,16 +303,16 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.EmailsApi(api_client) + api_instance = cloudbeds_pms_v1_3.EmailsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) email_type = nonMarketing # str | Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties. (optional) (default to nonMarketing) name = 'name_example' # str | Template name (optional) var_from = 'var_from_example' # str | Email address from which the email message may be sent (optional) from_name = 'from_name_example' # str | from which the email message may be sent. If empty email will be used (optional) - subject = cloudbeds_pms_v1_2.PostEmailTemplateRequestSubject() # PostEmailTemplateRequestSubject | (optional) - body = cloudbeds_pms_v1_2.PostEmailTemplateRequestBody() # PostEmailTemplateRequestBody | (optional) + subject = cloudbeds_pms_v1_3.PostEmailTemplateRequestSubject() # PostEmailTemplateRequestSubject | (optional) + body = cloudbeds_pms_v1_3.PostEmailTemplateRequestBody() # PostEmailTemplateRequestBody | (optional) reply_to = 'reply_to_example' # str | Email address to which the email message may be replied. If empty, the value on from parameter will be used. (optional) reply_to_name = 'reply_to_name_example' # str | Name to which the email message may be replied. If empty, email will be used. (optional) autofill_all_languages = True # bool | If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false. (optional) diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md new file mode 100644 index 0000000..9a7d44b --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md @@ -0,0 +1,30 @@ +# GetAdjustmentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetAdjustmentResponseData**](GetAdjustmentResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentResponse from a JSON string +get_adjustment_response_instance = GetAdjustmentResponse.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentResponse.to_json()) + +# convert the object into a dict +get_adjustment_response_dict = get_adjustment_response_instance.to_dict() +# create an instance of GetAdjustmentResponse from a dict +get_adjustment_response_from_dict = GetAdjustmentResponse.from_dict(get_adjustment_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md new file mode 100644 index 0000000..e39da92 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md @@ -0,0 +1,42 @@ +# GetAdjustmentResponseData + +Adjustment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustment_id** | **str** | Adjustment unique identifier | [optional] +**property_id** | **str** | unique hotel identifier | [optional] +**created** | **datetime** | Adjustment created time | [optional] +**room_id** | **str** | Adjustment room id | [optional] +**room_name** | **str** | Room name of Adjustment | [optional] +**reservation_identifier** | **str** | Reservation Unique Identifier | [optional] +**description** | **str** | Adjustment description | [optional] +**notes** | **str** | Adjustment notes | [optional] +**amount** | **float** | Adjustment amount | [optional] +**currency** | **float** | Adjustment currency | [optional] +**posted** | **float** | Adjustment posted transaction | [optional] +**type** | **str** | Adjustment type | [optional] +**void_id** | **str** | Voided adjustment transaction unique identifier. Null if adjustment not voided | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentResponseData from a JSON string +get_adjustment_response_data_instance = GetAdjustmentResponseData.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentResponseData.to_json()) + +# convert the object into a dict +get_adjustment_response_data_dict = get_adjustment_response_data_instance.to_dict() +# create an instance of GetAdjustmentResponseData from a dict +get_adjustment_response_data_from_dict = GetAdjustmentResponseData.from_dict(get_adjustment_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md new file mode 100644 index 0000000..53b62cb --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md @@ -0,0 +1,30 @@ +# GetAdjustmentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetAdjustmentsResponseData**](GetAdjustmentsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentsResponse from a JSON string +get_adjustments_response_instance = GetAdjustmentsResponse.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentsResponse.to_json()) + +# convert the object into a dict +get_adjustments_response_dict = get_adjustments_response_instance.to_dict() +# create an instance of GetAdjustmentsResponse from a dict +get_adjustments_response_from_dict = GetAdjustmentsResponse.from_dict(get_adjustments_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md new file mode 100644 index 0000000..0f8b3d0 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md @@ -0,0 +1,37 @@ +# GetAdjustmentsResponseData + +Adjustments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustment_id** | **str** | Adjustment unique identifier | [optional] +**created** | **datetime** | Adjustment created time | [optional] +**room_id** | **str** | Adjustment room id | [optional] +**room_name** | **str** | Room name of Adjustment | [optional] +**description** | **str** | Adjustment description | [optional] +**notes** | **str** | Adjustment notes | [optional] +**amount** | **float** | Adjustment amount | [optional] +**type** | **str** | Adjustment type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAdjustmentsResponseData from a JSON string +get_adjustments_response_data_instance = GetAdjustmentsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetAdjustmentsResponseData.to_json()) + +# convert the object into a dict +get_adjustments_response_data_dict = get_adjustments_response_data_instance.to_dict() +# create an instance of GetAdjustmentsResponseData from a dict +get_adjustments_response_data_from_dict = GetAdjustmentsResponseData.from_dict(get_adjustments_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md rename to cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponse.md index a14af29..2d94282 100644 --- a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md index a8fd956..db45c93 100644 --- a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md rename to cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md index e91d33a..bcd225f 100644 --- a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md rename to cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md index 4c502e0..edc7a6a 100644 --- a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md rename to cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md index 1f6428b..a37efe5 100644 --- a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md rename to cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md index b6cacce..c575ea3 100644 --- a/cloudbeds_pms_v1_2/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md b/cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md rename to cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponse.md index a9cd456..c6e59c5 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md b/cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md rename to cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseData.md index b252369..e12fc42 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md b/cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseDataOneOf.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md rename to cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseDataOneOf.md index 9361d35..b11acd1 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppPropertySettingsResponseDataOneOf.md +++ b/cloudbeds_pms_v1_3/docs/GetAppPropertySettingsResponseDataOneOf.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md b/cloudbeds_pms_v1_3/docs/GetAppSettingsResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md rename to cloudbeds_pms_v1_3/docs/GetAppSettingsResponse.md index 0d170d7..b023ef0 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppSettingsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetAppSettingsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md b/cloudbeds_pms_v1_3/docs/GetAppSettingsResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md rename to cloudbeds_pms_v1_3/docs/GetAppSettingsResponseData.md index a805b20..0c38a3c 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppSettingsResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetAppSettingsResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAppStateResponse.md b/cloudbeds_pms_v1_3/docs/GetAppStateResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetAppStateResponse.md rename to cloudbeds_pms_v1_3/docs/GetAppStateResponse.md index 9fd7e56..16dbbf8 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppStateResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetAppStateResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md b/cloudbeds_pms_v1_3/docs/GetAppStateResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md rename to cloudbeds_pms_v1_3/docs/GetAppStateResponseData.md index f8e12d0..0a29036 100644 --- a/cloudbeds_pms_v1_2/docs/GetAppStateResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetAppStateResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md new file mode 100644 index 0000000..fccf9a5 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md @@ -0,0 +1,32 @@ +# GetAsyncApiJobResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**has_next_page** | **bool** | Returns true if there is another page of results after this one | [optional] +**next_page** | **str** | The URL of the next page of results if there is one | [optional] +**data** | [**List[GetAsyncApiJobResponseDataInner]**](GetAsyncApiJobResponseDataInner.md) | Job details | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponse from a JSON string +get_async_api_job_response_instance = GetAsyncApiJobResponse.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponse.to_json()) + +# convert the object into a dict +get_async_api_job_response_dict = get_async_api_job_response_instance.to_dict() +# create an instance of GetAsyncApiJobResponse from a dict +get_async_api_job_response_from_dict = GetAsyncApiJobResponse.from_dict(get_async_api_job_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md new file mode 100644 index 0000000..7ee3092 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md @@ -0,0 +1,32 @@ +# GetAsyncApiJobResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_reference_id** | **str** | Reference ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the rate:batch_job | [optional] +**date_created** | **date** | Rate Job creation datetime | [optional] +**status** | **str** | Status of the Rate Job. in_progress - job is processing. completed - job has completed successfully. error - there was an error with 1 or more updates requested in this job. Allowed values: in_progressgu, completed, error | [optional] +**updates** | [**List[GetAsyncApiJobResponseDataInnerUpdatesInner]**](GetAsyncApiJobResponseDataInnerUpdatesInner.md) | Array of actions produced from this job | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponseDataInner from a JSON string +get_async_api_job_response_data_inner_instance = GetAsyncApiJobResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponseDataInner.to_json()) + +# convert the object into a dict +get_async_api_job_response_data_inner_dict = get_async_api_job_response_data_inner_instance.to_dict() +# create an instance of GetAsyncApiJobResponseDataInner from a dict +get_async_api_job_response_data_inner_from_dict = GetAsyncApiJobResponseDataInner.from_dict(get_async_api_job_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md new file mode 100644 index 0000000..a454abf --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md @@ -0,0 +1,53 @@ +# GetAsyncApiJobResponseDataInnerUpdatesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_id** | **str** | Rate ID for which action was taken | [optional] +**action** | **str** | Action taken for this interval as part of this job. in_progress - interval wait for it turn. updated - interval was updated. created - new interval was created with the new date range. error - there was an error when attempting this update. Allowed values: in_progress, updated, created, error | [optional] +**start_date** | **date** | Interval start date | [optional] +**end_date** | **date** | Interval end date | [optional] +**rate** | **float** | Value of rate which was updated | [optional] +**max_los** | **int** | Maximum length of stay for this rate | [optional] +**min_los** | **int** | Minimum length of stay for this rate | [optional] +**closed_to_arrival** | **bool** | If this rate is closed to arrival | [optional] +**closed_to_departure** | **bool** | If this rate is closed to departure | [optional] +**cut_off** | **int** | Cutoff for this rate | [optional] +**last_minute_booking** | **int** | Last minute booking for this rate | [optional] +**property_id** | **str** | Property ID associated to the allotment block | [optional] +**allotment_block_code** | **str** | Allotment block code | [optional] +**allotment_block_status** | **str** | Allotment block status | [optional] +**allotment_block_name** | **str** | Allotment block name | [optional] +**allotment_block_id** | **str** | Allotment block ID | [optional] +**rate_type** | **str** | Rate type for the allotment block | [optional] +**rate_plan_id** | **str** | Rate plan ID if applicable | [optional] +**allotment_type** | **str** | the type of allotment block | [optional] +**group_id** | **str** | Group profile ID associated to the allotment block | [optional] +**groupcode** | **str** | Group profile code associated to the allotment block | [optional] +**is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] +**auto_release** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease**](GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md) | | [optional] +**allotment_intervals** | [**List[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner]**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] +**message** | **str** | Error message | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a JSON string +get_async_api_job_response_data_inner_updates_inner_instance = GetAsyncApiJobResponseDataInnerUpdatesInner.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponseDataInnerUpdatesInner.to_json()) + +# convert the object into a dict +get_async_api_job_response_data_inner_updates_inner_dict = get_async_api_job_response_data_inner_updates_inner_instance.to_dict() +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a dict +get_async_api_job_response_data_inner_updates_inner_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInner.from_dict(get_async_api_job_response_data_inner_updates_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md new file mode 100644 index 0000000..debb637 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md @@ -0,0 +1,33 @@ +# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | Room type ID | [optional] +**start_date** | **date** | Interval start date | [optional] +**end_date** | **date** | Interval end date | [optional] +**availability** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md) | | [optional] +**restrictions** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a JSON string +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.to_json()) + +# convert the object into a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_instance.to_dict() +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md new file mode 100644 index 0000000..de04c6a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md @@ -0,0 +1,35 @@ +# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability + +Interval availability data by day in interval + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **date** | Day within interval | [optional] +**block_remaining** | **int** | Number of units remaining for the room type for this day | [optional] +**block_allotted** | **int** | Total number of units available for the room type for this day | [optional] +**block_confirmed** | **int** | Number of units booked for the room type for this day | [optional] +**rate** | **str** | the price | [optional] +**guest_pricing** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a JSON string +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.to_json()) + +# convert the object into a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_instance.to_dict() +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md new file mode 100644 index 0000000..adde090 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md @@ -0,0 +1,35 @@ +# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing + +Guest pricing data if applicable. Note: the number of results varies here based on the occupancy settings and custom guest pricing for the room type. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adult1** | **str** | Price for adult 1 | [optional] +**adult2** | **str** | Price for adult 2 | [optional] +**adult3** | **str** | Price for adult 3 | [optional] +**child1** | **str** | Price for child 1 | [optional] +**child2** | **str** | Price for child 2 | [optional] +**child3** | **str** | Price for child 3 | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a JSON string +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.to_json()) + +# convert the object into a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_instance.to_dict() +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md new file mode 100644 index 0000000..e19d727 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md @@ -0,0 +1,35 @@ +# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions + +Interval restrictions if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_los** | **int** | Minimum length of stay requirement | [optional] +**max_los** | **int** | Maximum length of stay requirement | [optional] +**cut_off_days** | **int** | How many days before arrival should the guests be required to book | [optional] +**last_minute_booking_days** | **int** | Hoe many days before the arrival guests are allowed to book | [optional] +**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] +**closed_to_departure** | **int** | If the interval dates are closed for departure | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a JSON string +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.to_json()) + +# convert the object into a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_instance.to_dict() +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a dict +get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md new file mode 100644 index 0000000..4f1c270 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md @@ -0,0 +1,32 @@ +# GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease + +auto-release data if applicable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**release_type** | **str** | The type of auto-release | [optional] +**days** | **int** | The number of days prior to the end of the allotment block to begin releasing dates from the allotment block | [optional] +**release_time** | **str** | The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'... | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a JSON string +get_async_api_job_response_data_inner_updates_inner_auto_release_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.from_json(json) +# print the JSON string representation of the object +print(GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.to_json()) + +# convert the object into a dict +get_async_api_job_response_data_inner_updates_inner_auto_release_dict = get_async_api_job_response_data_inner_updates_inner_auto_release_instance.to_dict() +# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a dict +get_async_api_job_response_data_inner_updates_inner_auto_release_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.from_dict(get_async_api_job_response_data_inner_updates_inner_auto_release_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponse.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md rename to cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponse.md index 6bfbb68..f677fe4 100644 --- a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponse.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInner.md index d842c88..610768d 100644 --- a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md rename to cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md index b4abba8..891fa1c 100644 --- a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md similarity index 98% rename from cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md index 4f6fd79..3bba861 100644 --- a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner.md @@ -29,7 +29,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md index 0e618f5..b5dc184 100644 --- a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md rename to cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md index 7e1181c..0dc9653 100644 --- a/cloudbeds_pms_v1_2/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md rename to cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponse.md index d1ee746..82f1688 100644 --- a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md rename to cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseData.md index a0edd83..ba38572 100644 --- a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseData.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataFormat.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md rename to cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataFormat.md index 7aec04a..f90118c 100644 --- a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataFormat.md +++ b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataFormat.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRates.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md rename to cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRates.md index 1ddf0b2..18b7062 100644 --- a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRates.md +++ b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRates.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRatesFixedInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md rename to cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRatesFixedInner.md index 6aaebd6..fc1354b 100644 --- a/cloudbeds_pms_v1_2/docs/GetCurrencySettingsResponseDataRatesFixedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetCurrencySettingsResponseDataRatesFixedInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md b/cloudbeds_pms_v1_3/docs/GetCustomFieldsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md rename to cloudbeds_pms_v1_3/docs/GetCustomFieldsResponse.md index 82f603c..5bb17db 100644 --- a/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetCustomFieldsResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetCustomFieldsResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetCustomFieldsResponseDataInner.md index d000e1b..0ace04b 100644 --- a/cloudbeds_pms_v1_2/docs/GetCustomFieldsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetCustomFieldsResponseDataInner.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetDashboardResponse.md b/cloudbeds_pms_v1_3/docs/GetDashboardResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetDashboardResponse.md rename to cloudbeds_pms_v1_3/docs/GetDashboardResponse.md index 9271ee7..f4d8caa 100644 --- a/cloudbeds_pms_v1_2/docs/GetDashboardResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetDashboardResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md b/cloudbeds_pms_v1_3/docs/GetDashboardResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md rename to cloudbeds_pms_v1_3/docs/GetDashboardResponseData.md index 81343bf..ffa80ce 100644 --- a/cloudbeds_pms_v1_2/docs/GetDashboardResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetDashboardResponseData.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md b/cloudbeds_pms_v1_3/docs/GetEmailScheduleResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md rename to cloudbeds_pms_v1_3/docs/GetEmailScheduleResponse.md index a233e89..748fee0 100644 --- a/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetEmailScheduleResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetEmailScheduleResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetEmailScheduleResponseDataInner.md index 658ebc3..f4f691b 100644 --- a/cloudbeds_pms_v1_2/docs/GetEmailScheduleResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetEmailScheduleResponseDataInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md b/cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md rename to cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponse.md index e88835a..3ff5541 100644 --- a/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponseDataInner.md index 2043d12..198096e 100644 --- a/cloudbeds_pms_v1_2/docs/GetEmailTemplatesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetEmailTemplatesResponseDataInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetFilesResponse.md b/cloudbeds_pms_v1_3/docs/GetFilesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetFilesResponse.md rename to cloudbeds_pms_v1_3/docs/GetFilesResponse.md index 099fced..b88dc19 100644 --- a/cloudbeds_pms_v1_2/docs/GetFilesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetFilesResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetFilesResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetFilesResponseDataInner.md index b43564d..b8c24bf 100644 --- a/cloudbeds_pms_v1_2/docs/GetFilesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetFilesResponseDataInner.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md b/cloudbeds_pms_v1_3/docs/GetGroupNotesResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md rename to cloudbeds_pms_v1_3/docs/GetGroupNotesResponse.md index cfa7dfa..c45352f 100644 --- a/cloudbeds_pms_v1_2/docs/GetGroupNotesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupNotesResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md b/cloudbeds_pms_v1_3/docs/GetGroupNotesResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md rename to cloudbeds_pms_v1_3/docs/GetGroupNotesResponseData.md index 8e4736b..b8909df 100644 --- a/cloudbeds_pms_v1_2/docs/GetGroupNotesResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupNotesResponseData.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGroupsResponse.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md similarity index 93% rename from cloudbeds_pms_v1_2/docs/GetGroupsResponse.md rename to cloudbeds_pms_v1_3/docs/GetGroupsResponse.md index 70a91ca..e54af0d 100644 --- a/cloudbeds_pms_v1_2/docs/GetGroupsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md index e26c8f8..ec72d3f 100644 --- a/cloudbeds_pms_v1_2/docs/GetGroupsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestListResponse.md b/cloudbeds_pms_v1_3/docs/GetGuestListResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestListResponse.md rename to cloudbeds_pms_v1_3/docs/GetGuestListResponse.md index a6fcc8d..ef5dafc 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestListResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestListResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md similarity index 98% rename from cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md rename to cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md index 5e3478c..78cb657 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValue.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md @@ -42,7 +42,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValueGuestNotesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md rename to cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValueGuestNotesInner.md index 9013855..245d0f1 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestListResponseDataValueGuestNotesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValueGuestNotesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md b/cloudbeds_pms_v1_3/docs/GetGuestNotesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md rename to cloudbeds_pms_v1_3/docs/GetGuestNotesResponse.md index ab0ac20..a5cdf25 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestNotesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestNotesResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGuestNotesResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetGuestNotesResponseDataInner.md index 01339e1..82fb88c 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestNotesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestNotesResponseDataInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponse.md b/cloudbeds_pms_v1_3/docs/GetGuestResponse.md similarity index 93% rename from cloudbeds_pms_v1_2/docs/GetGuestResponse.md rename to cloudbeds_pms_v1_3/docs/GetGuestResponse.md index fe199f5..1d836af 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md b/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetGuestResponseData.md rename to cloudbeds_pms_v1_3/docs/GetGuestResponseData.md index 5404ad2..31d62ea 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md @@ -37,7 +37,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataBirthDate.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md rename to cloudbeds_pms_v1_3/docs/GetGuestResponseDataBirthDate.md index 0f538f9..4708dd0 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataBirthDate.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataBirthDate.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataCustomFieldsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md rename to cloudbeds_pms_v1_3/docs/GetGuestResponseDataCustomFieldsInner.md index 46c324d..73e0473 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataCustomFieldsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataCustomFieldsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentExpirationDate.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md rename to cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentExpirationDate.md index 2220185..18763c7 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentExpirationDate.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentExpirationDate.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentIssueDate.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md rename to cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentIssueDate.md index dfee72d..b2e422f 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestResponseDataDocumentIssueDate.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponseDataDocumentIssueDate.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md b/cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md rename to cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponse.md index 7104992..e286e8e 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponseDataInner.md index 9dd3add..5923f7c 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestsByFilterResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsByFilterResponseDataInner.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md b/cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md rename to cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponse.md index 6998f74..15c2dc0 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponseDataInner.md similarity index 98% rename from cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponseDataInner.md index f4501aa..0a3a572 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestsByStatusResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsByStatusResponseDataInner.md @@ -48,7 +48,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md rename to cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponse.md index 5c1d6bc..ac4b7b5 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md similarity index 98% rename from cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md index 5217724..d1ed34e 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md @@ -43,7 +43,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md rename to cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md index 7750b0b..5d3bd66 100644 --- a/cloudbeds_pms_v1_2/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInnerCustomFieldsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md rename to cloudbeds_pms_v1_3/docs/GetHotelDetailsResponse.md index bcf9935..14d42b2 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseData.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md rename to cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseData.md index 6d94e25..6286cde 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseData.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyAddress.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md rename to cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyAddress.md index de4fe07..b3dde96 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyAddress.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyAddress.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md rename to cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md index 10de9d0..e9d8713 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyCurrency.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyImageInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md rename to cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyImageInner.md index b250481..b5b6b99 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyImageInner.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyImageInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyPolicy.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md rename to cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyPolicy.md index 64c8377..8bedfaa 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelDetailsResponseDataPropertyPolicy.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyPolicy.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md b/cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md new file mode 100644 index 0000000..3b3db40 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md @@ -0,0 +1,33 @@ +# GetHotelRoomTypesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**count** | **int** | Number of results returned | [optional] +**data** | **List[str]** | Room Types details | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHotelRoomTypesResponse from a JSON string +get_hotel_room_types_response_instance = GetHotelRoomTypesResponse.from_json(json) +# print the JSON string representation of the object +print(GetHotelRoomTypesResponse.to_json()) + +# convert the object into a dict +get_hotel_room_types_response_dict = get_hotel_room_types_response_instance.to_dict() +# create an instance of GetHotelRoomTypesResponse from a dict +get_hotel_room_types_response_from_dict = GetHotelRoomTypesResponse.from_dict(get_hotel_room_types_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHotelsResponse.md b/cloudbeds_pms_v1_3/docs/GetHotelsResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetHotelsResponse.md rename to cloudbeds_pms_v1_3/docs/GetHotelsResponse.md index dd77040..9a2ca9b 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelsResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md index 660d5b3..799c963 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md b/cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md rename to cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md index 3e00b97..80c8d46 100644 --- a/cloudbeds_pms_v1_2/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md new file mode 100644 index 0000000..ca3fa5d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md @@ -0,0 +1,30 @@ +# GetHouseAccountDetailsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**GetHouseAccountDetailsResponseData**](GetHouseAccountDetailsResponseData.md) | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponse from a JSON string +get_house_account_details_response_instance = GetHouseAccountDetailsResponse.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponse.to_json()) + +# convert the object into a dict +get_house_account_details_response_dict = get_house_account_details_response_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponse from a dict +get_house_account_details_response_from_dict = GetHouseAccountDetailsResponse.from_dict(get_house_account_details_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md new file mode 100644 index 0000000..9be8c16 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md @@ -0,0 +1,31 @@ +# GetHouseAccountDetailsResponseData + +Includes records list for House Account and summary info covering the date range specified + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | [**List[GetHouseAccountDetailsResponseDataTotalInner]**](GetHouseAccountDetailsResponseDataTotalInner.md) | Section with summary records info | [optional] +**records** | [**List[GetHouseAccountDetailsResponseDataRecordsInner]**](GetHouseAccountDetailsResponseDataRecordsInner.md) | Section with records list | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponseData from a JSON string +get_house_account_details_response_data_instance = GetHouseAccountDetailsResponseData.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponseData.to_json()) + +# convert the object into a dict +get_house_account_details_response_data_dict = get_house_account_details_response_data_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponseData from a dict +get_house_account_details_response_data_from_dict = GetHouseAccountDetailsResponseData.from_dict(get_house_account_details_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md new file mode 100644 index 0000000..32e1340 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md @@ -0,0 +1,43 @@ +# GetHouseAccountDetailsResponseDataRecordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**transaction_id** | **str** | Transaction ID | [optional] +**user_name** | **str** | User name | [optional] +**description** | **str** | Record description | [optional] +**notes** | **str** | Record notes | [optional] +**quantity** | **str** | Quantity of items (for product type record) | [optional] +**debit** | **str** | Debit amount (non formatted) | [optional] +**credit** | **str** | Credit amount (non formatted) | [optional] +**debit_formatter** | **str** | Debit amount (formatted) | [optional] +**credit_formatted** | **str** | Credit amount (formatted) | [optional] +**currency** | **str** | Currency string | [optional] +**transaction_code** | **str** | Transaction code | [optional] +**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] +**transaction_date** | **date** | Transaction date | [optional] +**transaction_date_time** | **datetime** | Transaction date and time | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string +get_house_account_details_response_data_records_inner_instance = GetHouseAccountDetailsResponseDataRecordsInner.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponseDataRecordsInner.to_json()) + +# convert the object into a dict +get_house_account_details_response_data_records_inner_dict = get_house_account_details_response_data_records_inner_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict +get_house_account_details_response_data_records_inner_from_dict = GetHouseAccountDetailsResponseDataRecordsInner.from_dict(get_house_account_details_response_data_records_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md new file mode 100644 index 0000000..9e55d0d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md @@ -0,0 +1,32 @@ +# GetHouseAccountDetailsResponseDataTotalInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Total number of House Account records | [optional] +**quantity** | **str** | Total items quantity of product type records | [optional] +**debit** | **str** | Total debit (formatted) | [optional] +**credit** | **str** | Total credit (formatted) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string +get_house_account_details_response_data_total_inner_instance = GetHouseAccountDetailsResponseDataTotalInner.from_json(json) +# print the JSON string representation of the object +print(GetHouseAccountDetailsResponseDataTotalInner.to_json()) + +# convert the object into a dict +get_house_account_details_response_data_total_inner_dict = get_house_account_details_response_data_total_inner_instance.to_dict() +# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict +get_house_account_details_response_data_total_inner_from_dict = GetHouseAccountDetailsResponseDataTotalInner.from_dict(get_house_account_details_response_data_total_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountListResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md rename to cloudbeds_pms_v1_3/docs/GetHouseAccountListResponse.md index 4ecfa2a..a351c0b 100644 --- a/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetHouseAccountListResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountListResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetHouseAccountListResponseDataInner.md index 148a834..f06393a 100644 --- a/cloudbeds_pms_v1_2/docs/GetHouseAccountListResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetHouseAccountListResponseDataInner.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md b/cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md rename to cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md index f69eb46..9a59eac 100644 --- a/cloudbeds_pms_v1_2/docs/GetHousekeepersResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetHousekeepersResponseDataInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetHousekeepersResponseDataInner.md index db9bd58..09581da 100644 --- a/cloudbeds_pms_v1_2/docs/GetHousekeepersResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetHousekeepersResponseDataInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md b/cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md rename to cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponse.md index 71780d1..205ea32 100644 --- a/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponseDataInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponseDataInner.md index 8ec08bc..8db0f6a 100644 --- a/cloudbeds_pms_v1_2/docs/GetHousekeepingStatusResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponseDataInner.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md b/cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md new file mode 100644 index 0000000..cb5b05d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md @@ -0,0 +1,30 @@ +# GetImportDummyReservationsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | **List[str]** | Reservations details | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetImportDummyReservationsResponse from a JSON string +get_import_dummy_reservations_response_instance = GetImportDummyReservationsResponse.from_json(json) +# print the JSON string representation of the object +print(GetImportDummyReservationsResponse.to_json()) + +# convert the object into a dict +get_import_dummy_reservations_response_dict = get_import_dummy_reservations_response_instance.to_dict() +# create an instance of GetImportDummyReservationsResponse from a dict +get_import_dummy_reservations_response_from_dict = GetImportDummyReservationsResponse.from_dict(get_import_dummy_reservations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetImportToursResponse.md b/cloudbeds_pms_v1_3/docs/GetImportToursResponse.md new file mode 100644 index 0000000..17e0333 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetImportToursResponse.md @@ -0,0 +1,30 @@ +# GetImportToursResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | **List[str]** | Tours details | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetImportToursResponse from a JSON string +get_import_tours_response_instance = GetImportToursResponse.from_json(json) +# print the JSON string representation of the object +print(GetImportToursResponse.to_json()) + +# convert the object into a dict +get_import_tours_response_dict = get_import_tours_response_instance.to_dict() +# create an instance of GetImportToursResponse from a dict +get_import_tours_response_from_dict = GetImportToursResponse.from_dict(get_import_tours_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md rename to cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md index c2d2d75..ba48c76 100644 --- a/cloudbeds_pms_v1_2/docs/GetInvoiceResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md rename to cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md index 882aba7..e7a2f7d 100644 --- a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData +from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md rename to cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md index 0699d51..6b36fcf 100644 --- a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataBilledTo.md +++ b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md rename to cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md index 45108e0..5688bf0 100644 --- a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md rename to cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md index 8a96762..9d870ac 100644 --- a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerFeesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md rename to cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md index 628c143..3f08d4b 100644 --- a/cloudbeds_pms_v1_2/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md b/cloudbeds_pms_v1_3/docs/GetItemCategoriesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md rename to cloudbeds_pms_v1_3/docs/GetItemCategoriesResponse.md index 21735ab..91eba54 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetItemCategoriesResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetItemCategoriesResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetItemCategoriesResponseDataInner.md index 01bc259..82de320 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemCategoriesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetItemCategoriesResponseDataInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponse.md b/cloudbeds_pms_v1_3/docs/GetItemResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetItemResponse.md rename to cloudbeds_pms_v1_3/docs/GetItemResponse.md index f26e987..338014d 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetItemResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponseData.md b/cloudbeds_pms_v1_3/docs/GetItemResponseData.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetItemResponseData.md rename to cloudbeds_pms_v1_3/docs/GetItemResponseData.md index d957fff..221b509 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetItemResponseData.md @@ -31,7 +31,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md b/cloudbeds_pms_v1_3/docs/GetItemResponseDataFeesInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md rename to cloudbeds_pms_v1_3/docs/GetItemResponseDataFeesInner.md index efe2d6d..efffbb1 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemResponseDataFeesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetItemResponseDataFeesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md b/cloudbeds_pms_v1_3/docs/GetItemResponseDataTaxesInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md rename to cloudbeds_pms_v1_3/docs/GetItemResponseDataTaxesInner.md index 0c4960d..b6b4f3c 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemResponseDataTaxesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetItemResponseDataTaxesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemsResponse.md b/cloudbeds_pms_v1_3/docs/GetItemsResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetItemsResponse.md rename to cloudbeds_pms_v1_3/docs/GetItemsResponse.md index a736628..1fcaf17 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetItemsResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetItemsResponseDataInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetItemsResponseDataInner.md index 79d9c40..0d83f32 100644 --- a/cloudbeds_pms_v1_2/docs/GetItemsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetItemsResponseDataInner.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md b/cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md rename to cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponse.md index 2d854ae..5f67fc4 100644 --- a/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponseDataInner.md index 219ccd6..8101ee7 100644 --- a/cloudbeds_pms_v1_2/docs/GetListAllotmentBlockNotesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetListAllotmentBlockNotesResponseDataInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetMetadataResponse.md b/cloudbeds_pms_v1_3/docs/GetMetadataResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetMetadataResponse.md rename to cloudbeds_pms_v1_3/docs/GetMetadataResponse.md index 53384c1..0da123b 100644 --- a/cloudbeds_pms_v1_2/docs/GetMetadataResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetMetadataResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md b/cloudbeds_pms_v1_3/docs/GetMetadataResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md rename to cloudbeds_pms_v1_3/docs/GetMetadataResponseData.md index cbba1c6..b616f06 100644 --- a/cloudbeds_pms_v1_2/docs/GetMetadataResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetMetadataResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md b/cloudbeds_pms_v1_3/docs/GetMetadataResponseDataApi.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md rename to cloudbeds_pms_v1_3/docs/GetMetadataResponseDataApi.md index eef4c15..5dc79cc 100644 --- a/cloudbeds_pms_v1_2/docs/GetMetadataResponseDataApi.md +++ b/cloudbeds_pms_v1_3/docs/GetMetadataResponseDataApi.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPackagesResponse.md b/cloudbeds_pms_v1_3/docs/GetPackagesResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetPackagesResponse.md rename to cloudbeds_pms_v1_3/docs/GetPackagesResponse.md index 4969440..0a5d68f 100644 --- a/cloudbeds_pms_v1_2/docs/GetPackagesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetPackagesResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md b/cloudbeds_pms_v1_3/docs/GetPackagesResponseData.md similarity index 93% rename from cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md rename to cloudbeds_pms_v1_3/docs/GetPackagesResponseData.md index d0897ac..3771226 100644 --- a/cloudbeds_pms_v1_2/docs/GetPackagesResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetPackagesResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md rename to cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponse.md index 855deab..54e6175 100644 --- a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md rename to cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md index a5837ab..a4b095b 100644 --- a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md rename to cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md index f72b80c..33fe1e1 100644 --- a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataGatewayInner.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md rename to cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md index 17dbefa..de8c2b2 100644 --- a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md rename to cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md index 13ecb76..b999e1e 100644 --- a/cloudbeds_pms_v1_2/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md b/cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md rename to cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md index 403f5d0..b62d106 100644 --- a/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponseDataInner.md index 0ca2d89..cf70f5d 100644 --- a/cloudbeds_pms_v1_2/docs/GetPaymentsCapabilitiesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponseDataInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md b/cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md new file mode 100644 index 0000000..fa48bb6 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md @@ -0,0 +1,33 @@ +# GetPaymentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetPaymentsResponseDataInner]**](GetPaymentsResponseDataInner.md) | Transaction list | [optional] +**count** | **int** | Number of results returned, based on pagination | [optional] +**total** | **int** | Total number of results | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsResponse from a JSON string +get_payments_response_instance = GetPaymentsResponse.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsResponse.to_json()) + +# convert the object into a dict +get_payments_response_dict = get_payments_response_instance.to_dict() +# create an instance of GetPaymentsResponse from a dict +get_payments_response_from_dict = GetPaymentsResponse.from_dict(get_payments_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md new file mode 100644 index 0000000..6f66d8c --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md @@ -0,0 +1,59 @@ +# GetPaymentsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_id** | **str** | Transaction identifier | [optional] +**payment_id** | **str** | Payment ID | [optional] +**property_id** | **str** | Property ID | [optional] +**transaction_date_time** | **datetime** | Transaction DateTime | [optional] +**transaction_date_time_utc** | **datetime** | Transaction DateTime on UTC timezone | [optional] +**user_id** | **str** | User ID that generated payment | [optional] +**user_name** | **str** | User name that generated payment | [optional] +**room_id** | **str** | ID of room. Only available when reservationID is sent. | [optional] +**room_name** | **str** | Name/Number of room. Only available when reservationID is sent. | [optional] +**guest_id** | **str** | Guest ID. Only available when reservationID or guestID is sent. | [optional] +**guest_name** | **str** | Guest Name. Only available when reservationID or guestID is sent. | [optional] +**guest_check_in** | **date** | Guest Check-In date. Only available when reservationID is sent. | [optional] +**guest_check_out** | **date** | Guest Check-Out date. Only available when reservationID is sent. | [optional] +**reservation_id** | **str** | Reservation ID. Only available when reservationID is sent. | [optional] +**sub_reservation_id** | **str** | Sub reservation ID. Only available when reservationID is sent. | [optional] +**reservation_status** | **str** | Current reservation status. Only available when reservationID is sent. | [optional] +**house_account_id** | **str** | House Account ID, Only available when houseAccountID is sent. | [optional] +**house_account_name** | **str** | House Account Name, Only available when houseAccountID is sent. | [optional] +**description** | **str** | Description of the transaction | [optional] +**payment_method** | **str** | Payment Method of the transaction | [optional] +**quantity** | **int** | | [optional] +**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] +**currency** | **str** | Currency of the transaction | [optional] +**is_posted** | **bool** | | [optional] +**is_voided** | **bool** | | [optional] +**is_deleted** | **bool** | | [optional] +**state** | **str** | | [optional] +**is_allocated** | **bool** | only if includePaymentAllocation=true | [optional] +**total_allocated** | **float** | ² Amount of allocated payment | [optional] +**total_unallocated** | **float** | ² Amount of unallocated payment | [optional] +**payment_allocation** | [**List[GetPaymentsResponseDataInnerPaymentAllocationInner]**](GetPaymentsResponseDataInnerPaymentAllocationInner.md) | ² | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsResponseDataInner from a JSON string +get_payments_response_data_inner_instance = GetPaymentsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsResponseDataInner.to_json()) + +# convert the object into a dict +get_payments_response_data_inner_dict = get_payments_response_data_inner_instance.to_dict() +# create an instance of GetPaymentsResponseDataInner from a dict +get_payments_response_data_inner_from_dict = GetPaymentsResponseDataInner.from_dict(get_payments_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md new file mode 100644 index 0000000..c9aba96 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md @@ -0,0 +1,34 @@ +# GetPaymentsResponseDataInnerPaymentAllocationInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | ² Type of item described in allocation | [optional] +**reference** | **str** | ² Reference of item described in allocation | [optional] +**name** | **str** | ² Name of item described in allocation | [optional] +**amount** | **float** | ² Amount of allocated of payment total | [optional] +**taxes** | **List[str]** | ² Taxes of allocated payment. Values are an array numeric of taxes IDs | [optional] +**fees** | **List[str]** | ² Fees of allocated payment. Values are an array numeric of fees IDs | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string +get_payments_response_data_inner_payment_allocation_inner_instance = GetPaymentsResponseDataInnerPaymentAllocationInner.from_json(json) +# print the JSON string representation of the object +print(GetPaymentsResponseDataInnerPaymentAllocationInner.to_json()) + +# convert the object into a dict +get_payments_response_data_inner_payment_allocation_inner_dict = get_payments_response_data_inner_payment_allocation_inner_instance.to_dict() +# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict +get_payments_response_data_inner_payment_allocation_inner_from_dict = GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(get_payments_response_data_inner_payment_allocation_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md b/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md new file mode 100644 index 0000000..9577f0a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md @@ -0,0 +1,33 @@ +# GetPendingTransactionsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetPendingTransactionsResponseDataInner]**](GetPendingTransactionsResponseDataInner.md) | Transaction list covering the date range specified | [optional] +**count** | **int** | Number of results returned, based on pagination and filter parameters | [optional] +**total** | **int** | Total count of results, based on filter parameters | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPendingTransactionsResponse from a JSON string +get_pending_transactions_response_instance = GetPendingTransactionsResponse.from_json(json) +# print the JSON string representation of the object +print(GetPendingTransactionsResponse.to_json()) + +# convert the object into a dict +get_pending_transactions_response_dict = get_pending_transactions_response_instance.to_dict() +# create an instance of GetPendingTransactionsResponse from a dict +get_pending_transactions_response_from_dict = GetPendingTransactionsResponse.from_dict(get_pending_transactions_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md new file mode 100644 index 0000000..5e3b6c1 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md @@ -0,0 +1,60 @@ +# GetPendingTransactionsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**reservation_id** | **str** | Reservation ID | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID | [optional] +**house_account_id** | **str** | House Account ID | [optional] +**house_account_name** | **str** | House Account Name | [optional] +**guest_id** | **str** | Guest ID | [optional] +**property_name** | **str** | Property Name | [optional] +**transaction_date_time** | **datetime** | DateTime that the transaction was stored | [optional] +**transaction_date_time_utc** | **datetime** | DateTime that the transaction was stored, in UTC timezone | [optional] +**transaction_modified_date_time** | **datetime** | DateTime that the transaction was last modified | [optional] +**transaction_modified_date_time_utc** | **datetime** | DateTime that the transaction was last modified, in UTC timezone | [optional] +**guest_check_in** | **date** | Reservation Check-in date | [optional] +**guest_check_out** | **date** | Reservation Check-out date | [optional] +**room_type_id** | **str** | ID of the room type | [optional] +**room_type_name** | **str** | Name of the room type | [optional] +**room_name** | **str** | Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room. | [optional] +**guest_name** | **str** | Name of the first guest of the reservation | [optional] +**description** | **str** | Description of the transaction | [optional] +**category** | **str** | Category of the transaction | [optional] +**transaction_code** | **str** | Transaction identifier that can be used, or left blank | [optional] +**notes** | **str** | If any special information needs to be added to the transaction, it will be in this field | [optional] +**quantity** | **int** | | [optional] +**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] +**currency** | **str** | Currency of the transaction | [optional] +**user_name** | **str** | User responsible for creating the transaction | [optional] +**transaction_type** | **str** | Consolidated transaction type | [optional] +**transaction_category** | **str** | Transaction category | [optional] +**item_category_name** | **str** | Item category name | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] +**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] +**card_type** | **str** | Abbreviated name of credit card type | [optional] +**is_deleted** | **bool** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPendingTransactionsResponseDataInner from a JSON string +get_pending_transactions_response_data_inner_instance = GetPendingTransactionsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetPendingTransactionsResponseDataInner.to_json()) + +# convert the object into a dict +get_pending_transactions_response_data_inner_dict = get_pending_transactions_response_data_inner_instance.to_dict() +# create an instance of GetPendingTransactionsResponseDataInner from a dict +get_pending_transactions_response_data_inner_from_dict = GetPendingTransactionsResponseDataInner.from_dict(get_pending_transactions_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md b/cloudbeds_pms_v1_3/docs/GetRateJobsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md rename to cloudbeds_pms_v1_3/docs/GetRateJobsResponse.md index e73a704..8174447 100644 --- a/cloudbeds_pms_v1_2/docs/GetRateJobsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRateJobsResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInner.md index 393507a..a4fc16e 100644 --- a/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md b/cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInnerUpdatesInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md rename to cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInnerUpdatesInner.md index d44a984..6d486c3 100644 --- a/cloudbeds_pms_v1_2/docs/GetRateJobsResponseDataInnerUpdatesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInnerUpdatesInner.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md b/cloudbeds_pms_v1_3/docs/GetRatePlansResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md rename to cloudbeds_pms_v1_3/docs/GetRatePlansResponse.md index 37fe9ba..da2cc80 100644 --- a/cloudbeds_pms_v1_2/docs/GetRatePlansResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRatePlansResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInner.md index d3f0f56..e19227a 100644 --- a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInner.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md b/cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerAddOnsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md rename to cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerAddOnsInner.md index 2854983..22334b0 100644 --- a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerAddOnsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerAddOnsInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md b/cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md rename to cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md index 76d4244..9fc807d 100644 --- a/cloudbeds_pms_v1_2/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRateResponse.md b/cloudbeds_pms_v1_3/docs/GetRateResponse.md similarity index 93% rename from cloudbeds_pms_v1_2/docs/GetRateResponse.md rename to cloudbeds_pms_v1_3/docs/GetRateResponse.md index 612b8ae..f0606cc 100644 --- a/cloudbeds_pms_v1_2/docs/GetRateResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRateResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRateResponseData.md b/cloudbeds_pms_v1_3/docs/GetRateResponseData.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetRateResponseData.md rename to cloudbeds_pms_v1_3/docs/GetRateResponseData.md index 78a161a..ccd9131 100644 --- a/cloudbeds_pms_v1_2/docs/GetRateResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetRateResponseData.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md b/cloudbeds_pms_v1_3/docs/GetRateResponseDataRoomRateDetailedInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md rename to cloudbeds_pms_v1_3/docs/GetRateResponseDataRoomRateDetailedInner.md index 0d17412..2d38b62 100644 --- a/cloudbeds_pms_v1_2/docs/GetRateResponseDataRoomRateDetailedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRateResponseDataRoomRateDetailedInner.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md new file mode 100644 index 0000000..20008d5 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md @@ -0,0 +1,31 @@ +# GetReservationArrivalsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationArrivalsResponseDataInner]**](GetReservationArrivalsResponseDataInner.md) | Details for the arrivals scheduled for today | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationArrivalsResponse from a JSON string +get_reservation_arrivals_response_instance = GetReservationArrivalsResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationArrivalsResponse.to_json()) + +# convert the object into a dict +get_reservation_arrivals_response_dict = get_reservation_arrivals_response_instance.to_dict() +# create an instance of GetReservationArrivalsResponse from a dict +get_reservation_arrivals_response_from_dict = GetReservationArrivalsResponse.from_dict(get_reservation_arrivals_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md new file mode 100644 index 0000000..7c1149b --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md @@ -0,0 +1,35 @@ +# GetReservationArrivalsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | Guest ID | [optional] +**guest_name** | **str** | Guest Name | [optional] +**room_id** | **str** | Room ID where the guest is assigned | [optional] +**balance** | **float** | Balance owed at the time | [optional] +**reservation_id** | **str** | Reservation identifier, used for all query operations | [optional] +**sub_reservation_id** | **str** | Unique Room-Reservation identifier | [optional] +**estimated_arrival_time** | **str** | Estimated arrival time, 24-hour format. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationArrivalsResponseDataInner from a JSON string +get_reservation_arrivals_response_data_inner_instance = GetReservationArrivalsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationArrivalsResponseDataInner.to_json()) + +# convert the object into a dict +get_reservation_arrivals_response_data_inner_dict = get_reservation_arrivals_response_data_inner_instance.to_dict() +# create an instance of GetReservationArrivalsResponseDataInner from a dict +get_reservation_arrivals_response_data_inner_from_dict = GetReservationArrivalsResponseDataInner.from_dict(get_reservation_arrivals_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md rename to cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponse.md index 916b1fe..1c1bf82 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInner.md index cb84c94..0d459b1 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md index b4e5021..c3ab841 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md new file mode 100644 index 0000000..bc83111 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md @@ -0,0 +1,31 @@ +# GetReservationDeparturesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationDeparturesResponseDataInner]**](GetReservationDeparturesResponseDataInner.md) | Details for the arrivals scheduled for today | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationDeparturesResponse from a JSON string +get_reservation_departures_response_instance = GetReservationDeparturesResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationDeparturesResponse.to_json()) + +# convert the object into a dict +get_reservation_departures_response_dict = get_reservation_departures_response_instance.to_dict() +# create an instance of GetReservationDeparturesResponse from a dict +get_reservation_departures_response_from_dict = GetReservationDeparturesResponse.from_dict(get_reservation_departures_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md new file mode 100644 index 0000000..9e42256 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md @@ -0,0 +1,33 @@ +# GetReservationDeparturesResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_name** | **str** | Main Guest Name | [optional] +**guest_id** | **str** | Guest ID, can be used to get the corresponding guest details from \"reservationDetails\". | [optional] +**balance** | **float** | Balance owed at the time | [optional] +**reservation_id** | **str** | Reservation identifier, used for all query operations | [optional] +**reservation_details** | **List[object]** | Reservation details, please check response from \"getReservation\" method | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationDeparturesResponseDataInner from a JSON string +get_reservation_departures_response_data_inner_instance = GetReservationDeparturesResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationDeparturesResponseDataInner.to_json()) + +# convert the object into a dict +get_reservation_departures_response_data_inner_dict = get_reservation_departures_response_data_inner_instance.to_dict() +# create an instance of GetReservationDeparturesResponseDataInner from a dict +get_reservation_departures_response_data_inner_from_dict = GetReservationDeparturesResponseDataInner.from_dict(get_reservation_departures_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md new file mode 100644 index 0000000..0a3efdf --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md @@ -0,0 +1,31 @@ +# GetReservationInHouseResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetReservationInHouseResponseDataInner]**](GetReservationInHouseResponseDataInner.md) | Details for the arrivals scheduled for today | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInHouseResponse from a JSON string +get_reservation_in_house_response_instance = GetReservationInHouseResponse.from_json(json) +# print the JSON string representation of the object +print(GetReservationInHouseResponse.to_json()) + +# convert the object into a dict +get_reservation_in_house_response_dict = get_reservation_in_house_response_instance.to_dict() +# create an instance of GetReservationInHouseResponse from a dict +get_reservation_in_house_response_from_dict = GetReservationInHouseResponse.from_dict(get_reservation_in_house_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md new file mode 100644 index 0000000..5d8d095 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md @@ -0,0 +1,54 @@ +# GetReservationInHouseResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | Guest identifier | [optional] +**guest_name** | **str** | Guest Name | [optional] +**main_guest_id** | **str** | Guest identifier who made reservation | [optional] +**main_guest_name** | **str** | Guest Name who made reservation | [optional] +**balance** | **float** | Balance owed at the time | [optional] +**reservation_id** | **str** | Reservation identifier, used for all query operations | [optional] +**room_check_out** | **date** | Check-out date for the room | [optional] +**reservation_custom_fields** | **List[object]** | Reservation Custom Fields, if existent | [optional] +**room_id** | **str** | ¹ Room identifier | [optional] +**room_name** | **str** | ¹ Room name | [optional] +**guest_first_name** | **str** | Guest's First Name | [optional] +**guest_last_name** | **str** | Guest's Last Name | [optional] +**guest_phone** | **str** | Guest's Phone | [optional] +**guest_address1** | **str** | Guest's Address (line 1) | [optional] +**guest_address2** | **str** | Guest's Address (line 2) | [optional] +**guest_city** | **str** | Guest's Address City | [optional] +**guest_state** | **str** | Guest's Address State | [optional] +**guest_country** | **str** | Guest's Address Country | [optional] +**guest_zip** | **str** | Guest's Address Zip code | [optional] +**guest_birth_date** | **date** | Guest's BirthDate | [optional] +**guest_document_type** | **str** | Guest's Document Type | [optional] +**guest_document_number** | **str** | Guest's Document Number | [optional] +**guest_document_issue_date** | **date** | Guest's Document Issue Date | [optional] +**guest_document_issuing_country** | **str** | Guest's Document Issuing Country | [optional] +**guest_document_expiration_date** | **date** | Guest's Document Expiration Date | [optional] +**guest_custom_fields** | **List[object]** | Guest's Custom Fields, if any | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationInHouseResponseDataInner from a JSON string +get_reservation_in_house_response_data_inner_instance = GetReservationInHouseResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetReservationInHouseResponseDataInner.to_json()) + +# convert the object into a dict +get_reservation_in_house_response_data_inner_dict = get_reservation_in_house_response_data_inner_instance.to_dict() +# create an instance of GetReservationInHouseResponseDataInner from a dict +get_reservation_in_house_response_data_inner_from_dict = GetReservationInHouseResponseDataInner.from_dict(get_reservation_in_house_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md index c85836f..56663e7 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md index 1f5e8d6..7bc3cd0 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md @@ -23,11 +23,12 @@ Name | Type | Description | Notes **reservation_fees_total** | **float** | Total sum for fees | [optional] **balance** | **float** | Balance currently owed | [optional] **balance_detailed** | [**List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]**](GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) | Reservation balance detailed with the information available on PC app, describing the financial items calculated | [optional] +**reservation_origin** | **str** | Reservation Origin | [optional] ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md index 47dccad..50c417b 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md index 87a388a..47bb9aa 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md index f0adcc7..783ee5d 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md index 7c5ba78..f3064cf 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md index 3c0fd67..3cbc335 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md index 95c8359..f7d45a1 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md index b898b3c..e08412d 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md index 98aa305..86b4bba 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationNotesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md rename to cloudbeds_pms_v1_3/docs/GetReservationNotesResponse.md index 8d15625..cb4518f 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationNotesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationNotesResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationNotesResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationNotesResponseDataInner.md index d91b7b8..9ccde69 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationNotesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationNotesResponseDataInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationResponse.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponse.md index 06e54a0..b0f654d 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseData.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseData.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseData.md index c0b2618..e40478e 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseData.md @@ -31,11 +31,12 @@ Name | Type | Description | Notes **allotment_block_code** | **str** | Allotment block code | [optional] **channel_provided_credit_card** | **bool** | Whether a credit card was provided by the channel. Only included for reservations originating from OTAs. | [optional] **group_inventory** | [**List[GetReservationResponseDataGroupInventoryInner]**](GetReservationResponseDataGroupInventoryInner.md) | Aggregate allotment block information | [optional] +**origin** | **str** | Reservation origin | [optional] ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md index 91ba4eb..354f141 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md index 0bcaa3d..0ea1549 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md index 98bcee0..bed026f 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataBalanceDetailedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataCardsOnFileInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataCardsOnFileInner.md index 831aa2a..4146253 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataCardsOnFileInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataCardsOnFileInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGroupInventoryInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataGroupInventoryInner.md index 8b0227d..b5b2c18 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGroupInventoryInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGroupInventoryInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md similarity index 98% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md index 856f8b0..9e2f0ac 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md @@ -42,7 +42,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md index f651485..5ad9428 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md index 229dedb..0c5cbee 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md index c714fa8..9552f42 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md index e5433da..cea934a 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationResponseDataUnassignedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md rename to cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponse.md index 8116e48..246883c 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md b/cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseData.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md rename to cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseData.md index 1815d6c..d4f111e 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseData.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseDataGuestsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseDataGuestsInner.md index 6baeabf..352ea9f 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationRoomDetailsResponseDataGuestsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationRoomDetailsResponseDataGuestsInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationsResponse.md rename to cloudbeds_pms_v1_3/docs/GetReservationsResponse.md index a8b0a47..1370542 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md index 39a9f95..dbbe742 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md @@ -27,11 +27,12 @@ Name | Type | Description | Notes **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of reservation custom fields. Only returned if \"includeCustomFields\" is true | [optional] **rooms** | [**List[GetReservationsResponseDataInnerRoomsInner]**](GetReservationsResponseDataInnerRoomsInner.md) | Array with rooms information. Only returned if \"includeAllRooms\" is true | [optional] **guest_list** | [**Dict[str, GetReservationsResponseDataInnerGuestListValue]**](GetReservationsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] +**origin** | **str** | Reservation origin | [optional] ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md similarity index 98% rename from cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md rename to cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md index 1cc4c71..f9a6821 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md @@ -45,7 +45,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md index 420ffe7..ff7b27b 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md index 73ac01f..9275c6a 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md index 201a74f..400b271 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md rename to cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md index c510de7..bf3a36b 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md index 02f3950..44b86e5 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md @@ -27,11 +27,12 @@ Name | Type | Description | Notes **balance_detailed** | [**List[GetReservationResponseDataBalanceDetailedInner]**](GetReservationResponseDataBalanceDetailedInner.md) | Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated | [optional] **detailed_rates** | **List[object]** | Associative object, where key is the date, and value is the total rate for that date. | [optional] **rooms** | [**List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]**](GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) | Array with rooms information | [optional] +**origin** | **str** | Reservation origin | [optional] ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md index 14dab99..0800259 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md rename to cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md index 15a4cb2..0778e30 100644 --- a/cloudbeds_pms_v1_2/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md rename to cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md index 263cefb..236c63b 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md index 05e6d76..0427df7 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomBlocksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md b/cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md rename to cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md index b85140f..847481c 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomTypesResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomTypesResponseDataInner.md index 9777aaa..c46f314 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomTypesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomTypesResponseDataInner.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md rename to cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponse.md index ea346d1..7c75c4c 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseData.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md rename to cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseData.md index ad4ace8..443c69c 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseData.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md index e2f00fb..0d4eaa4 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataFeesInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md index 94421e6..cf3c9df 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponseDataTaxesInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponse.md b/cloudbeds_pms_v1_3/docs/GetRoomsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomsResponse.md rename to cloudbeds_pms_v1_3/docs/GetRoomsResponse.md index 201e2e7..244ea32 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInner.md index ee36cea..f4cdc55 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInner.md index c972629..dfee54c 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInner.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md b/cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md index 3042204..69df754 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md b/cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md rename to cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponse.md index 350fb40..ea8b834 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInner.md index 2b67372..2ee6cdc 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md rename to cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md index 9437cd8..22b9e46 100644 --- a/cloudbeds_pms_v1_2/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomsUnassignedResponseDataInnerRoomsInner.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponse.md b/cloudbeds_pms_v1_3/docs/GetSourcesResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetSourcesResponse.md rename to cloudbeds_pms_v1_3/docs/GetSourcesResponse.md index 48cbd39..107d747 100644 --- a/cloudbeds_pms_v1_2/docs/GetSourcesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetSourcesResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInner.md index 35e36b0..42013c8 100644 --- a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInner.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md b/cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerFeesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md rename to cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerFeesInner.md index 8c1eb16..adc05c5 100644 --- a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerFeesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerFeesInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md b/cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md rename to cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md index a042b03..bf37f2f 100644 --- a/cloudbeds_pms_v1_2/docs/GetSourcesResponseDataInnerTaxesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md rename to cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md index 42f6c8b..9b67f61 100644 --- a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md similarity index 98% rename from cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md index 7144662..706b17b 100644 --- a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md rename to cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md index 4a103e3..6d3bed4 100644 --- a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md rename to cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md index 01c9f3a..815d807 100644 --- a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md rename to cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md index f307943..f7fd29d 100644 --- a/cloudbeds_pms_v1_2/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md b/cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md new file mode 100644 index 0000000..5fc201f --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md @@ -0,0 +1,34 @@ +# GetTransactionsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**List[GetTransactionsResponseDataInner]**](GetTransactionsResponseDataInner.md) | Transaction list covering the date range specified | [optional] +**cloudbeds_accounting** | **bool** | if true it means the data comes from the new accounting solution | [optional] +**count** | **int** | Number of results returned, based on pagination and filter parameters | [optional] +**total** | **int** | Total count of results, based on filter parameters | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTransactionsResponse from a JSON string +get_transactions_response_instance = GetTransactionsResponse.from_json(json) +# print the JSON string representation of the object +print(GetTransactionsResponse.to_json()) + +# convert the object into a dict +get_transactions_response_dict = get_transactions_response_instance.to_dict() +# create an instance of GetTransactionsResponse from a dict +get_transactions_response_from_dict = GetTransactionsResponse.from_dict(get_transactions_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md new file mode 100644 index 0000000..f140457 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md @@ -0,0 +1,61 @@ +# GetTransactionsResponseDataInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Property ID | [optional] +**reservation_id** | **str** | Reservation ID | [optional] +**sub_reservation_id** | **str** | Sub Reservation ID | [optional] +**house_account_id** | **str** | House Account ID | [optional] +**house_account_name** | **str** | House Account Name | [optional] +**guest_id** | **str** | Guest ID | [optional] +**property_name** | **str** | Property Name | [optional] +**transaction_date_time** | **datetime** | DateTime that the transaction was stored | [optional] +**transaction_date_time_utc** | **datetime** | DateTime that the transaction was stored, in UTC timezone | [optional] +**transaction_modified_date_time** | **datetime** | DateTime that the transaction was last modified | [optional] +**transaction_modified_date_time_utc** | **datetime** | DateTime that the transaction was last modified, in UTC timezone | [optional] +**guest_check_in** | **date** | Reservation Check-in date | [optional] +**guest_check_out** | **date** | Reservation Check-out date | [optional] +**room_type_id** | **str** | ID of the room type | [optional] +**room_type_name** | **str** | Name of the room type | [optional] +**room_name** | **str** | Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room. | [optional] +**guest_name** | **str** | Name of the first guest of the reservation | [optional] +**description** | **str** | Description of the transaction | [optional] +**category** | **str** | Category of the transaction | [optional] +**transaction_code** | **str** | Transaction identifier that can be used, or left blank | [optional] +**notes** | **str** | If any special information needs to be added to the transaction, it will be in this field | [optional] +**quantity** | **int** | | [optional] +**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] +**currency** | **str** | Currency of the transaction | [optional] +**user_name** | **str** | User responsible for creating the transaction | [optional] +**transaction_type** | **str** | Consolidated transaction type | [optional] +**transaction_category** | **str** | Transaction category | [optional] +**item_category_name** | **str** | Item category name | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] +**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] +**card_type** | **str** | Abbreviated name of credit card type | [optional] +**is_deleted** | **bool** | | [optional] +**service_date** | **str** | will represent the date when a product or service is delivered | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTransactionsResponseDataInner from a JSON string +get_transactions_response_data_inner_instance = GetTransactionsResponseDataInner.from_json(json) +# print the JSON string representation of the object +print(GetTransactionsResponseDataInner.to_json()) + +# convert the object into a dict +get_transactions_response_data_inner_dict = get_transactions_response_data_inner_instance.to_dict() +# create an instance of GetTransactionsResponseDataInner from a dict +get_transactions_response_data_inner_from_dict = GetTransactionsResponseDataInner.from_dict(get_transactions_response_data_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md b/cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md rename to cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md index 3c1242c..60cb6d6 100644 --- a/cloudbeds_pms_v1_2/docs/GetUserinfoResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md b/cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md rename to cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md index 78ffdf8..a935000 100644 --- a/cloudbeds_pms_v1_2/docs/GetUserinfoResponseRolesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetUsersResponse.md b/cloudbeds_pms_v1_3/docs/GetUsersResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetUsersResponse.md rename to cloudbeds_pms_v1_3/docs/GetUsersResponse.md index dedbe1a..4fb415c 100644 --- a/cloudbeds_pms_v1_2/docs/GetUsersResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetUsersResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md index f2f5c74..efe63a7 100644 --- a/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner +from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md b/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md rename to cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md index 72b5060..08e3e92 100644 --- a/cloudbeds_pms_v1_2/docs/GetUsersResponseDataInnerUserRole.md +++ b/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md b/cloudbeds_pms_v1_3/docs/GetWebhooksResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md rename to cloudbeds_pms_v1_3/docs/GetWebhooksResponse.md index d0f9144..012cbe0 100644 --- a/cloudbeds_pms_v1_2/docs/GetWebhooksResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetWebhooksResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInner.md index 0e1e301..3acb99e 100644 --- a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInner.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerEvent.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md rename to cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerEvent.md index a85f401..a1850b5 100644 --- a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerEvent.md +++ b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerEvent.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerKey.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md rename to cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerKey.md index 8c538fc..f51aea5 100644 --- a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerKey.md +++ b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerKey.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerOwner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md rename to cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerOwner.md index 192db64..1dd8a43 100644 --- a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerOwner.md +++ b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerOwner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerSubscriptionData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md rename to cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerSubscriptionData.md index cd2f096..2266e54 100644 --- a/cloudbeds_pms_v1_2/docs/GetWebhooksResponseDataInnerSubscriptionData.md +++ b/cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerSubscriptionData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/GroupsApi.md b/cloudbeds_pms_v1_3/docs/GroupsApi.md similarity index 89% rename from cloudbeds_pms_v1_2/docs/GroupsApi.md rename to cloudbeds_pms_v1_3/docs/GroupsApi.md index ef20c75..2b2fc70 100644 --- a/cloudbeds_pms_v1_2/docs/GroupsApi.md +++ b/cloudbeds_pms_v1_3/docs/GroupsApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.GroupsApi +# cloudbeds_pms_v1_3.GroupsApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -24,15 +24,15 @@ Returns group notes * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -49,9 +49,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + api_instance = cloudbeds_pms_v1_3.GroupsApi(api_client) property_id = 'property_id_example' # str | Property ID group_code = 'group_code_example' # str | Group code page_size = 56 # int | Number of groups notes to return per page (min: 1, max: 100) @@ -112,15 +112,15 @@ Returns the groups for a property * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -137,9 +137,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + api_instance = cloudbeds_pms_v1_3.GroupsApi(api_client) property_id = 'property_id_example' # str | Property ID group_code = 'group_code_example' # str | Unique ID for a group (optional) type = 'type_example' # str | The type of group (optional) @@ -208,15 +208,15 @@ Updates an existing group with information provided. At least one information fi * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -233,9 +233,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + api_instance = cloudbeds_pms_v1_3.GroupsApi(api_client) group_code = 'group_code_example' # str | code for a group (optional) property_id = 'property_id_example' # str | Property ID (optional) name = 'name_example' # str | Name for a group (optional) @@ -310,15 +310,15 @@ Adds a group note * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -335,9 +335,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + api_instance = cloudbeds_pms_v1_3.GroupsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) group_code = 'group_code_example' # str | Group code (optional) group_note = 'group_note_example' # str | Group note (optional) @@ -396,15 +396,15 @@ Adds a group to the property. Please note that the default setting for 'Route to * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -421,9 +421,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GroupsApi(api_client) + api_instance = cloudbeds_pms_v1_3.GroupsApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) name = 'name_example' # str | Name for a group (optional) type = 'type_example' # str | The type of group (optional) diff --git a/cloudbeds_pms_v1_2/docs/GuestApi.md b/cloudbeds_pms_v1_3/docs/GuestApi.md similarity index 86% rename from cloudbeds_pms_v1_2/docs/GuestApi.md rename to cloudbeds_pms_v1_3/docs/GuestApi.md index 6ba9e1d..1534578 100644 --- a/cloudbeds_pms_v1_2/docs/GuestApi.md +++ b/cloudbeds_pms_v1_3/docs/GuestApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.GuestApi +# cloudbeds_pms_v1_3.GuestApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -11,6 +11,7 @@ Method | HTTP request | Description [**get_guests_by_filter_get**](GuestApi.md#get_guests_by_filter_get) | **GET** /getGuestsByFilter | getGuestsByFilter [**get_guests_by_status_get**](GuestApi.md#get_guests_by_status_get) | **GET** /getGuestsByStatus | getGuestsByStatus [**get_guests_modified_get**](GuestApi.md#get_guests_modified_get) | **GET** /getGuestsModified | getGuestsModified +[**post_guest_credit_card_post**](GuestApi.md#post_guest_credit_card_post) | **POST** /postGuestCreditCard | postGuestCreditCard [**post_guest_document_post**](GuestApi.md#post_guest_document_post) | **POST** /postGuestDocument | postGuestDocument [**post_guest_note_post**](GuestApi.md#post_guest_note_post) | **POST** /postGuestNote | postGuestNote [**post_guest_photo_post**](GuestApi.md#post_guest_photo_post) | **POST** /postGuestPhoto | postGuestPhoto @@ -33,15 +34,15 @@ Archives an existing guest note. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -58,9 +59,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) guest_id = 'guest_id_example' # str | Guest ID note_id = 'note_id_example' # str | Note ID property_id = 'property_id_example' # str | Property ID (optional) @@ -119,15 +120,15 @@ Returns information on a guest specified by the Reservation ID parameter * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -144,9 +145,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. Required if no guestID is provided. (optional) guest_id = 'guest_id_example' # str | Guest ID. Required if no reservationID is provided. (optional) @@ -205,15 +206,15 @@ Returns a list of guests, ordered by modification date ### Group account support * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -230,9 +231,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter guests result, based on latest creation/modification date (optional) results_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter guests result, based on latest creation/modification date (optional) @@ -321,15 +322,15 @@ Retrieves a guest notes * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -346,9 +347,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) guest_id = 'guest_id_example' # str | Guest ID property_id = 'property_id_example' # str | Property ID (optional) @@ -405,15 +406,15 @@ Returns a list of guests matching the selected parameters ### Group account supp * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -430,9 +431,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) status = 'status_example' # str | Current guest status property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) reservation_id = 'reservation_id_example' # str | (optional) @@ -503,15 +504,15 @@ Returns a list of guests in the current status (Not Checked In, In House, Checke * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -528,9 +529,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) status = 'status_example' # str | Guest status during the period property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) results_from = '2013-10-20T19:20:30+01:00' # datetime | Used to filter guests result, and returns only the guests that were last modified starting on \"resultsFrom\" value (optional) @@ -595,15 +596,15 @@ Returns a list of guests based on their modification date. Note that when a gues * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -620,9 +621,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) in_house = False # bool | When used, and true, will return guests only currently in-house. If the guest checks-out, it will not appear on the results. (optional) (default to False) results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter guests result, based on latest creation/modification date (optional) @@ -682,6 +683,98 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **post_guest_credit_card_post** +> PostGuestCreditCardResponse post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv) + +postGuestCreditCard + +Add a new credit card to guest file + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) + card_name = 'card_name_example' # str | Cardholder Name, as written in card (optional) + card_number = 'card_number_example' # str | Credit Card number (optional) + card_expiry_month = 56 # int | Credit Card expiration month (optional) + card_expiry_year = 56 # int | Credit Card expiration year (2 or 4 digits) (optional) + card_cvv = 'card_cvv_example' # str | Credit Card CVV code (optional) + + try: + # postGuestCreditCard + api_response = api_instance.post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv) + print("The response of GuestApi->post_guest_credit_card_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GuestApi->post_guest_credit_card_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation Unique Identifier | [optional] + **card_name** | **str**| Cardholder Name, as written in card | [optional] + **card_number** | **str**| Credit Card number | [optional] + **card_expiry_month** | **int**| Credit Card expiration month | [optional] + **card_expiry_year** | **int**| Credit Card expiration year (2 or 4 digits) | [optional] + **card_cvv** | **str**| Credit Card CVV code | [optional] + +### Return type + +[**PostGuestCreditCardResponse**](PostGuestCreditCardResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **post_guest_document_post** > PostGuestDocumentResponse post_guest_document_post(property_id=property_id, guest_id=guest_id, file=file) @@ -695,15 +788,15 @@ Attaches a document to a guest * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -720,9 +813,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) guest_id = 'guest_id_example' # str | Guest Unique Identifier (optional) file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) @@ -781,15 +874,15 @@ Adds a guest note * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -806,9 +899,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) guest_id = 'guest_id_example' # str | Guest ID (optional) guest_note = 'guest_note_example' # str | Note to be added to guest profile. It's strictly forbidden to send unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. (optional) @@ -869,15 +962,15 @@ Attaches a photo to a guest * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -894,9 +987,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) guest_id = 'guest_id_example' # str | Guest Unique Identifier (optional) file = None # bytearray | Form-based File Upload
Allowed file types: *.jpg, *.jpeg, *.png, *.gif
Allowed max file size: 15MB (optional) @@ -953,16 +1046,16 @@ Adds a guest to reservation as an additional guest. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -979,9 +1072,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation ID (optional) guest_first_name = 'guest_first_name_example' # str | (optional) @@ -1002,7 +1095,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) - custom_fields = [cloudbeds_pms_v1_2.PostGuestRequestCustomFieldsInner()] # List[PostGuestRequestCustomFieldsInner] | Only guest custom fields are allowed. (optional) + custom_fields = [cloudbeds_pms_v1_3.PostGuestRequestCustomFieldsInner()] # List[PostGuestRequestCustomFieldsInner] | Only guest custom fields are allowed. (optional) guest_note = 'guest_note_example' # str | Note to be added to the Guest (optional) reservation_note = 'reservation_note_example' # str | Note to be added only to the Reservation. (optional) guest_company_name = 'guest_company_name_example' # str | Guest company name (optional) @@ -1086,15 +1179,15 @@ Assigns guest(s) to a room in a reservation and adds these guests as additional * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -1111,9 +1204,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation ID (optional) room_id = 56 # int | Room ID already assigned to Reservation (optional) @@ -1178,15 +1271,15 @@ Updates an existing guest note. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -1203,9 +1296,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) guest_id = 'guest_id_example' # str | Guest ID (optional) note_id = 'note_id_example' # str | Note ID (optional) @@ -1266,16 +1359,16 @@ Updates an existing guest with information provided. At least one information fi * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -1292,9 +1385,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.GuestApi(api_client) + api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) guest_id = 'guest_id_example' # str | Valid Guest ID (optional) guest_first_name = 'guest_first_name_example' # str | (optional) @@ -1315,7 +1408,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) - guest_custom_fields = [cloudbeds_pms_v1_2.PutGuestRequestGuestCustomFieldsInner()] # List[PutGuestRequestGuestCustomFieldsInner] | (optional) + guest_custom_fields = [cloudbeds_pms_v1_3.PutGuestRequestGuestCustomFieldsInner()] # List[PutGuestRequestGuestCustomFieldsInner] | (optional) guest_company_name = 'guest_company_name_example' # str | Guest company name (optional) guest_company_tax_id = 'guest_company_tax_id_example' # str | Guest company tax ID (optional) guest_tax_id = 'guest_tax_id_example' # str | Guest tax ID unencrypted payment data through the API. Numeric values longer than 12 characters and considered valid by Luhn's algorithm will be rejected. (optional) diff --git a/cloudbeds_pms_v1_2/docs/HotelApi.md b/cloudbeds_pms_v1_3/docs/HotelApi.md similarity index 88% rename from cloudbeds_pms_v1_2/docs/HotelApi.md rename to cloudbeds_pms_v1_3/docs/HotelApi.md index c4a906d..c1f9457 100644 --- a/cloudbeds_pms_v1_2/docs/HotelApi.md +++ b/cloudbeds_pms_v1_3/docs/HotelApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.HotelApi +# cloudbeds_pms_v1_3.HotelApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -23,15 +23,15 @@ Returns a list of files attached to a hotel or group profile, ordered by creatio * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -48,9 +48,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + api_instance = cloudbeds_pms_v1_3.HotelApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) group_code = 'group_code_example' # str | The group code, if the files are to be fetched from a group profile (optional) sort_by = date # str | Sort By parameter (optional) (default to date) @@ -117,15 +117,15 @@ Returns the details of a specific hotel, identified by \"propertyID\" * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -142,9 +142,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + api_instance = cloudbeds_pms_v1_3.HotelApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: @@ -199,15 +199,15 @@ Returns a list of hotels, filtered by the parameters passed ### Group account su * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -224,9 +224,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + api_instance = cloudbeds_pms_v1_3.HotelApi(api_client) property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) property_name = 'property_name_example' # str | Property name, or part of it (optional) property_city = 'property_city_example' # str | Property city, or part of it (optional) @@ -289,15 +289,15 @@ Attaches a file to a hotel * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -314,9 +314,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HotelApi(api_client) + api_instance = cloudbeds_pms_v1_3.HotelApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) group_code = 'group_code_example' # str | optional - the group code if the file is to be attached to a group profile (optional) diff --git a/cloudbeds_pms_v1_2/docs/HouseAccountApi.md b/cloudbeds_pms_v1_3/docs/HouseAccountApi.md similarity index 63% rename from cloudbeds_pms_v1_2/docs/HouseAccountApi.md rename to cloudbeds_pms_v1_3/docs/HouseAccountApi.md index d57e930..edfaa84 100644 --- a/cloudbeds_pms_v1_2/docs/HouseAccountApi.md +++ b/cloudbeds_pms_v1_3/docs/HouseAccountApi.md @@ -1,14 +1,103 @@ -# cloudbeds_pms_v1_2.HouseAccountApi +# cloudbeds_pms_v1_3.HouseAccountApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- +[**get_house_account_details_get**](HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails [**get_house_account_list_get**](HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList [**post_new_house_account_post**](HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount [**put_house_account_status_put**](HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus +# **get_house_account_details_get** +> GetHouseAccountDetailsResponse get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) + +getHouseAccountDetails + +Pulls details of specific house account + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.HouseAccountApi(api_client) + house_account_id = 'house_account_id_example' # str | House Account ID to get details for + property_id = 'property_id_example' # str | Property ID (optional) + results_from = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) + results_to = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) + + try: + # getHouseAccountDetails + api_response = api_instance.get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) + print("The response of HouseAccountApi->get_house_account_details_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HouseAccountApi->get_house_account_details_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **house_account_id** | **str**| House Account ID to get details for | + **property_id** | **str**| Property ID | [optional] + **results_from** | **date**| date\"] Inferior limit date, used to filter result records | [optional] + **results_to** | **date**| date\"] Inferior limit date, used to filter result records | [optional] + +### Return type + +[**GetHouseAccountDetailsResponse**](GetHouseAccountDetailsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_house_account_list_get** > GetHouseAccountListResponse get_house_account_list_get(property_id=property_id) @@ -22,15 +111,15 @@ Pulls list of active house accounts * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -47,9 +136,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) + api_instance = cloudbeds_pms_v1_3.HouseAccountApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: @@ -104,15 +193,15 @@ Add a new House Account * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -129,9 +218,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) + api_instance = cloudbeds_pms_v1_3.HouseAccountApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) account_name = 'account_name_example' # str | House Account name (optional) is_private = False # bool | Whether House Account is available only to user (optional) (default to False) @@ -190,15 +279,15 @@ Change specific house account to either open or closed. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -215,9 +304,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HouseAccountApi(api_client) + api_instance = cloudbeds_pms_v1_3.HouseAccountApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) house_account_id = 'house_account_id_example' # str | House Account ID (optional) status = 'status_example' # str | House Account status (optional) diff --git a/cloudbeds_pms_v1_2/docs/HousekeepingApi.md b/cloudbeds_pms_v1_3/docs/HousekeepingApi.md similarity index 90% rename from cloudbeds_pms_v1_2/docs/HousekeepingApi.md rename to cloudbeds_pms_v1_3/docs/HousekeepingApi.md index d72e66d..9c27ed8 100644 --- a/cloudbeds_pms_v1_2/docs/HousekeepingApi.md +++ b/cloudbeds_pms_v1_3/docs/HousekeepingApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.HousekeepingApi +# cloudbeds_pms_v1_3.HousekeepingApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,15 +25,15 @@ Returns a list of housekeepers ### Group account support * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -50,9 +50,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + api_instance = cloudbeds_pms_v1_3.HousekeepingApi(api_client) property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89). It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) page_number = 1 # int | Results page number (optional) (default to 1) page_size = 100 # int | Results page size. Max = 1000 (optional) (default to 100) @@ -111,15 +111,15 @@ Returns the current date's housekeeping information The housekeeping status is c * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -136,9 +136,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + api_instance = cloudbeds_pms_v1_3.HousekeepingApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) room_type_ids = 'room_type_ids_example' # str | Filter by room type ID. If more than one, send as comma-separated, i.e. 37,345,89 (optional) housekeeper_ids = 'housekeeper_ids_example' # str | Use this parameter to filter by housekeeper. If you need to specify multiple housekeepers, send their IDs as a comma-separated list (e.g., 37, 345, 89). To retrieve unassigned housekeepers, use the value 0. (optional) @@ -205,15 +205,15 @@ Add New Housekeeper * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -230,9 +230,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + api_instance = cloudbeds_pms_v1_3.HousekeepingApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) name = 'name_example' # str | Housekeeper name (optional) @@ -289,15 +289,15 @@ Assign rooms (single or multiple) to an existing housekeeper * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -314,9 +314,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + api_instance = cloudbeds_pms_v1_3.HousekeepingApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) room_ids = 'room_ids_example' # str | List of room IDs comma-separated, i.e. 37,345,89 (optional) housekeeper_id = 'housekeeper_id_example' # str | Housekeeper ID. To designate a room as unassigned, simply set the value to 0. (optional) @@ -375,15 +375,15 @@ Switches the current date's housekeeping status for a specific room ID to either * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -400,9 +400,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + api_instance = cloudbeds_pms_v1_3.HousekeepingApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) room_id = 'room_id_example' # str | Room ID (optional) room_condition = 'room_condition_example' # str | New room condition. If no optional parameters are sent, will switch from current room condition. \\\"inspected\\\" status is available only if the property has the feature enabled. (optional) @@ -469,15 +469,15 @@ Edit Housekeeper Details * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -494,9 +494,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.HousekeepingApi(api_client) + api_instance = cloudbeds_pms_v1_3.HousekeepingApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) name = 'name_example' # str | Housekeeper name (optional) housekeeper_id = 'housekeeper_id_example' # str | Housekeeper ID (optional) diff --git a/cloudbeds_pms_v1_3/docs/ImportApi.md b/cloudbeds_pms_v1_3/docs/ImportApi.md new file mode 100644 index 0000000..6720da0 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/ImportApi.md @@ -0,0 +1,166 @@ +# cloudbeds_pms_v1_3.ImportApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**import_dummy_reservations_get**](ImportApi.md#import_dummy_reservations_get) | **GET** /import/dummyReservations | GetImportDummyReservations +[**import_tours_get**](ImportApi.md#import_tours_get) | **GET** /import/tours | GetImportTours + + +# **import_dummy_reservations_get** +> GetImportDummyReservationsResponse import_dummy_reservations_get() + +GetImportDummyReservations + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ImportApi(api_client) + + try: + # GetImportDummyReservations + api_response = api_instance.import_dummy_reservations_get() + print("The response of ImportApi->import_dummy_reservations_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ImportApi->import_dummy_reservations_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetImportDummyReservationsResponse**](GetImportDummyReservationsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **import_tours_get** +> GetImportToursResponse import_tours_get() + +GetImportTours + + + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ImportApi(api_client) + + try: + # GetImportTours + api_response = api_instance.import_tours_get() + print("The response of ImportApi->import_tours_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ImportApi->import_tours_get: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetImportToursResponse**](GetImportToursResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/IntegrationApi.md b/cloudbeds_pms_v1_3/docs/IntegrationApi.md similarity index 68% rename from cloudbeds_pms_v1_2/docs/IntegrationApi.md rename to cloudbeds_pms_v1_3/docs/IntegrationApi.md index 2c390bc..577f171 100644 --- a/cloudbeds_pms_v1_2/docs/IntegrationApi.md +++ b/cloudbeds_pms_v1_3/docs/IntegrationApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.IntegrationApi +# cloudbeds_pms_v1_3.IntegrationApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -9,6 +9,8 @@ Method | HTTP request | Description [**get_app_state_get**](IntegrationApi.md#get_app_state_get) | **GET** /getAppState | getAppState [**get_webhooks_get**](IntegrationApi.md#get_webhooks_get) | **GET** /getWebhooks | getWebhooks [**post_app_error_post**](IntegrationApi.md#post_app_error_post) | **POST** /postAppError | postAppError +[**post_app_settings_post**](IntegrationApi.md#post_app_settings_post) | **POST** /postAppSettings | postAppSettings +[**post_app_state_internal_post**](IntegrationApi.md#post_app_state_internal_post) | **POST** /postAppStateInternal | postAppStateInternal [**post_app_state_post**](IntegrationApi.md#post_app_state_post) | **POST** /postAppState | postAppState [**post_government_receipt_post**](IntegrationApi.md#post_government_receipt_post) | **POST** /postGovernmentReceipt | postGovernmentReceipt [**post_webhook_post**](IntegrationApi.md#post_webhook_post) | **POST** /postWebhook | postWebhook @@ -25,22 +27,22 @@ Remove subscription for webhook. Read the [Webhooks guide](https://integrations. ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) subscription_id = 'subscription_id_example' # str | Subscription ID property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) @@ -95,22 +97,22 @@ Get the current app settings for a property.
```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property identifier to be queried (optional) try: @@ -153,37 +155,38 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_app_state_get** -> GetAppStateResponse get_app_state_get(property_id=property_id) +> GetAppStateResponse get_app_state_get(property_id=property_id, client_id=client_id) getAppState -Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. +Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. ### Example ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property identifier to be queried (optional) + client_id = 'client_id_example' # str | Client identifier (optional) try: # getAppState - api_response = api_instance.get_app_state_get(property_id=property_id) + api_response = api_instance.get_app_state_get(property_id=property_id, client_id=client_id) print("The response of IntegrationApi->get_app_state_get:\n") pprint(api_response) except Exception as e: @@ -198,6 +201,7 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property identifier to be queried | [optional] + **client_id** | **str**| Client identifier | [optional] ### Return type @@ -231,22 +235,22 @@ List webhooks for which the API client is subscribed to. ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: @@ -301,15 +305,15 @@ Submit the error received by the hybrid integration from the partner to the MFD * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -326,9 +330,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property identifier to be queried (optional) timestamp = '2013-10-20T19:20:30+01:00' # datetime | Date/time that the error was received by the middleware (optional) event_type = 'event_type_example' # str | Description for the type of event that caused the error (optional) @@ -386,6 +390,149 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **post_app_settings_post** +> PostAppSettingsResponse post_app_settings_post(property_id=property_id, settings=settings) + +postAppSettings + +Update the current app settings for a property.
+ +### Example + + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner +from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property identifier to be queried (optional) + settings = [cloudbeds_pms_v1_3.PostAppSettingsRequestSettingsInner()] # List[PostAppSettingsRequestSettingsInner] | An array of setings (optional) + + try: + # postAppSettings + api_response = api_instance.post_app_settings_post(property_id=property_id, settings=settings) + print("The response of IntegrationApi->post_app_settings_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->post_app_settings_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property identifier to be queried | [optional] + **settings** | [**List[PostAppSettingsRequestSettingsInner]**](PostAppSettingsRequestSettingsInner.md)| An array of setings | [optional] + +### Return type + +[**PostAppSettingsResponse**](PostAppSettingsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_app_state_internal_post** +> PostAppStateInternalResponse post_app_state_internal_post(property_id=property_id, client_id=client_id, app_state=app_state) + +postAppStateInternal + +Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + +### Example + + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) + property_id = 'property_id_example' # str | Property identifier to be updated (optional) + client_id = 'client_id_example' # str | Client identifier (optional) + app_state = 'app_state_example' # str | Current integration state between third-party and property. (optional) + + try: + # postAppStateInternal + api_response = api_instance.post_app_state_internal_post(property_id=property_id, client_id=client_id, app_state=app_state) + print("The response of IntegrationApi->post_app_state_internal_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IntegrationApi->post_app_state_internal_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property identifier to be updated | [optional] + **client_id** | **str**| Client identifier | [optional] + **app_state** | **str**| Current integration state between third-party and property. | [optional] + +### Return type + +[**PostAppStateInternalResponse**](PostAppStateInternalResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **post_app_state_post** > PostAppStateResponse post_app_state_post(property_id=property_id, app_state=app_state) @@ -397,22 +544,22 @@ Update app integration state for a property ID.
This call is only availab ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property identifier to be updated (optional) app_state = 'app_state_example' # str | Current integration state between third-party and property. (optional) @@ -467,22 +614,22 @@ Add a Government Receipt to a Reservation or House Account ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property identifier to be updated (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier. It, or houseAccountID, is necessary. (optional) house_account_id = 'house_account_id_example' # str | House Account identifier. It, or reservationID, is necessary. (optional) @@ -549,22 +696,22 @@ Subscribe a webhook for a specified event. Read the [Webhooks guide](https://int ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.IntegrationApi(api_client) + api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) object = 'object_example' # str | Event object (optional) action = 'action_example' # str | Event action (optional) diff --git a/cloudbeds_pms_v1_2/docs/InvoicesApi.md b/cloudbeds_pms_v1_3/docs/InvoicesApi.md similarity index 61% rename from cloudbeds_pms_v1_2/docs/InvoicesApi.md rename to cloudbeds_pms_v1_3/docs/InvoicesApi.md index 4397ae1..921ebfc 100644 --- a/cloudbeds_pms_v1_2/docs/InvoicesApi.md +++ b/cloudbeds_pms_v1_3/docs/InvoicesApi.md @@ -1,10 +1,11 @@ -# cloudbeds_pms_v1_2.InvoicesApi +# cloudbeds_pms_v1_3.InvoicesApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_invoice_get**](InvoicesApi.md#get_invoice_get) | **GET** /getInvoice | getInvoice +[**invoice_get**](InvoicesApi.md#invoice_get) | **GET** /invoice | invoice [**patch_invoice_post**](InvoicesApi.md#patch_invoice_post) | **POST** /patchInvoice | patchInvoice @@ -21,15 +22,15 @@ Returns invoice data. This call is only available for third-party integration pa * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -46,9 +47,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.InvoicesApi(api_client) + api_instance = cloudbeds_pms_v1_3.InvoicesApi(api_client) invoice_id = 'invoice_id_example' # str | Invoice ID property_id = 'property_id_example' # str | Property ID (optional) @@ -92,6 +93,90 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **invoice_get** +> GetInvoiceResponse invoice_get(property_id=property_id, invoice_id=invoice_id) + +invoice + +Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.InvoicesApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + invoice_id = 'invoice_id_example' # str | Invoice ID (optional) + + try: + # invoice + api_response = api_instance.invoice_get(property_id=property_id, invoice_id=invoice_id) + print("The response of InvoicesApi->invoice_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling InvoicesApi->invoice_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **invoice_id** | **str**| Invoice ID | [optional] + +### Return type + +[**GetInvoiceResponse**](GetInvoiceResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_invoice_post** > PostPatchInvoiceResponse patch_invoice_post(property_id=property_id, invoice_id=invoice_id, status=status, file=file) @@ -105,15 +190,15 @@ Update invoice state. This call is only available for third-party integration pa * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -130,9 +215,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.InvoicesApi(api_client) + api_instance = cloudbeds_pms_v1_3.InvoicesApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) invoice_id = 'invoice_id_example' # str | Invoice unique ID (optional) status = 'status_example' # str | Desired new invoice status (optional) diff --git a/cloudbeds_pms_v1_2/docs/ItemApi.md b/cloudbeds_pms_v1_3/docs/ItemApi.md similarity index 72% rename from cloudbeds_pms_v1_2/docs/ItemApi.md rename to cloudbeds_pms_v1_3/docs/ItemApi.md index 90b4249..52e86fd 100644 --- a/cloudbeds_pms_v1_2/docs/ItemApi.md +++ b/cloudbeds_pms_v1_3/docs/ItemApi.md @@ -1,16 +1,18 @@ -# cloudbeds_pms_v1_2.ItemApi +# cloudbeds_pms_v1_3.ItemApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- [**append_custom_item_post**](ItemApi.md#append_custom_item_post) | **POST** /appendCustomItem | appendCustomItem +[**delete_item_from_reservation_delete**](ItemApi.md#delete_item_from_reservation_delete) | **DELETE** /deleteItemFromReservation | deleteItemFromReservation [**get_item_categories_get**](ItemApi.md#get_item_categories_get) | **GET** /getItemCategories | getItemCategories [**get_item_get**](ItemApi.md#get_item_get) | **GET** /getItem | getItem [**get_items_get**](ItemApi.md#get_items_get) | **GET** /getItems | getItems [**post_custom_item_post**](ItemApi.md#post_custom_item_post) | **POST** /postCustomItem | postCustomItem [**post_item_category_post**](ItemApi.md#post_item_category_post) | **POST** /postItemCategory | postItemCategory [**post_item_post**](ItemApi.md#post_item_post) | **POST** /postItem | postItem +[**post_item_to_reservation_post**](ItemApi.md#post_item_to_reservation_post) | **POST** /postItemToReservation | postItemToReservation [**post_items_to_inventory_post**](ItemApi.md#post_items_to_inventory_post) | **POST** /postItemsToInventory | postItemsToInventory [**post_void_item_post**](ItemApi.md#post_void_item_post) | **POST** /postVoidItem | postVoidItem [**put_item_to_inventory_put**](ItemApi.md#put_item_to_inventory_put) | **PUT** /putItemToInventory | putItemToInventory @@ -29,17 +31,17 @@ Append single, or multiple, custom items and their associated payments to a exis * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -56,19 +58,19 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier. Required if no houseAccountID is provided. (optional) reference_id = 'reference_id_example' # str | partner's transaction reference. If exist then Cloudbeds will prevent adding of duplicates (optional) sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier (optional) room_id = 'room_id_example' # str | Room identifier (Ignored if subReservationID exist) (optional) - items = [cloudbeds_pms_v1_2.PostCustomItemRequestItemsInner()] # List[PostCustomItemRequestItemsInner] | list of items will be posted (optional) + items = [cloudbeds_pms_v1_3.PostCustomItemRequestItemsInner()] # List[PostCustomItemRequestItemsInner] | list of items will be posted (optional) sale_date = '2013-10-20T19:20:30+01:00' # datetime | posting date (optional) guest_id = 'guest_id_example' # str | Guest identifier (optional) guest_name = 'guest_name_example' # str | (Ignored if guestID exist) (optional) - payments = [cloudbeds_pms_v1_2.PostCustomItemRequestPaymentsInner()] # List[PostCustomItemRequestPaymentsInner] | list of payments If the item is already paid (optional) + payments = [cloudbeds_pms_v1_3.PostCustomItemRequestPaymentsInner()] # List[PostCustomItemRequestPaymentsInner] | list of payments If the item is already paid (optional) item_paid = False # bool | If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. (Ignored if payments array exist) (optional) (default to False) try: @@ -120,6 +122,90 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_item_from_reservation_delete** +> DeleteItemFromReservationResponse delete_item_from_reservation_delete(reservation_id, sold_product_id) + +deleteItemFromReservation + +Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier + sold_product_id = 'sold_product_id_example' # str | Item identifier + + try: + # deleteItemFromReservation + api_response = api_instance.delete_item_from_reservation_delete(reservation_id, sold_product_id) + print("The response of ItemApi->delete_item_from_reservation_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->delete_item_from_reservation_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation identifier | + **sold_product_id** | **str**| Item identifier | + +### Return type + +[**DeleteItemFromReservationResponse**](DeleteItemFromReservationResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_item_categories_get** > GetItemCategoriesResponse get_item_categories_get(property_id=property_id) @@ -133,15 +219,15 @@ Gets the item category list * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -158,9 +244,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: @@ -215,15 +301,15 @@ Gets the details for the one itemID
1 only if data.stockInvento * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -240,9 +326,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) item_id = 'item_id_example' # str | Item identifier property_id = 'property_id_example' # str | Property ID (optional) @@ -299,15 +385,15 @@ Gets all the items and their prices the hotel has created in myfrontdesk
PostItemToReservationResponse post_item_to_reservation_post(property_id=property_id, reservation_id=reservation_id, item_id=item_id, item_quantity=item_quantity, item_price=item_price, item_note=item_note, item_paid=item_paid, sale_date=sale_date, payments=payments) + +postItemToReservation + +Adds an item to a reservation. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + item_id = 'item_id_example' # str | Item identifier (optional) + item_quantity = 56 # int | Items quantity (optional) + item_price = 'item_price_example' # str | Item price, if not sent, items registered price will be used (optional) + item_note = 'item_note_example' # str | Item note (optional) + item_paid = False # bool | If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. (optional) (default to False) + sale_date = '2013-10-20' # date | posting date (optional) + payments = [cloudbeds_pms_v1_3.PostItemToReservationRequestPaymentsInner()] # List[PostItemToReservationRequestPaymentsInner] | list of payments If the item is already paid (optional) + + try: + # postItemToReservation + api_response = api_instance.post_item_to_reservation_post(property_id=property_id, reservation_id=reservation_id, item_id=item_id, item_quantity=item_quantity, item_price=item_price, item_note=item_note, item_paid=item_paid, sale_date=sale_date, payments=payments) + print("The response of ItemApi->post_item_to_reservation_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ItemApi->post_item_to_reservation_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **item_id** | **str**| Item identifier | [optional] + **item_quantity** | **int**| Items quantity | [optional] + **item_price** | **str**| Item price, if not sent, items registered price will be used | [optional] + **item_note** | **str**| Item note | [optional] + **item_paid** | **bool**| If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. | [optional] [default to False] + **sale_date** | **date**| posting date | [optional] + **payments** | [**List[PostItemToReservationRequestPaymentsInner]**](PostItemToReservationRequestPaymentsInner.md)| list of payments If the item is already paid | [optional] + +### Return type + +[**PostItemToReservationResponse**](PostItemToReservationResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **post_items_to_inventory_post** > PostItemsToInventoryResponse post_items_to_inventory_post(item=item) @@ -686,16 +871,16 @@ Adds new items batch
¹ only if item.stockInventory = true
* Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -712,10 +897,10 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) - item = cloudbeds_pms_v1_2.PostItemsToInventoryRequestItem() # PostItemsToInventoryRequestItem | (optional) + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) + item = cloudbeds_pms_v1_3.PostItemsToInventoryRequestItem() # PostItemsToInventoryRequestItem | (optional) try: # postItemsToInventory @@ -757,11 +942,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_void_item_post** -> PostVoidItemResponse post_void_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sold_product_id=sold_product_id) +> PostVoidItemResponse post_void_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sold_product_id=sold_product_id) postVoidItem -Voids the itemID transaction on the specified Reservation ID or House Account ID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. +Voids the itemID transaction on the specified Reservation ID, House Account ID, or Group. If payments were sent in calls [postItem](https://developers.cloudbeds.com/reference/post_postitem) or [postCustomItem](https://developers.cloudbeds.com/reference/post_postcustomitem), they will be deleted too. ### Example @@ -769,15 +954,15 @@ Voids the itemID transaction on the specified Reservation ID or House Account ID * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -794,17 +979,18 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) - reservation_id = 'reservation_id_example' # str | Reservation identifier. reservationID or houseAccountID are necessary. (optional) - house_account_id = 'house_account_id_example' # str | House Account identifier. reservationID or houseAccountID are necessary. (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier. Required if no houseAccountID or groupCode is provided. (optional) + house_account_id = 'house_account_id_example' # str | House Account identifier. Required if no reservationID or groupCode is provided. (optional) + group_code = 'group_code_example' # str | Group identifier. Required if no reservationID or houseAccountID is provided. (optional) sold_product_id = 'sold_product_id_example' # str | Item identifier (optional) try: # postVoidItem - api_response = api_instance.post_void_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sold_product_id=sold_product_id) + api_response = api_instance.post_void_item_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sold_product_id=sold_product_id) print("The response of ItemApi->post_void_item_post:\n") pprint(api_response) except Exception as e: @@ -819,8 +1005,9 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] - **reservation_id** | **str**| Reservation identifier. reservationID or houseAccountID are necessary. | [optional] - **house_account_id** | **str**| House Account identifier. reservationID or houseAccountID are necessary. | [optional] + **reservation_id** | **str**| Reservation identifier. Required if no houseAccountID or groupCode is provided. | [optional] + **house_account_id** | **str**| House Account identifier. Required if no reservationID or groupCode is provided. | [optional] + **group_code** | **str**| Group identifier. Required if no reservationID or houseAccountID is provided. | [optional] **sold_product_id** | **str**| Item identifier | [optional] ### Return type @@ -857,15 +1044,15 @@ Updates an item with information provided
¹ only if item.stockInventory = * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -882,9 +1069,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ItemApi(api_client) + api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) item_id = 'item_id_example' # str | Item identifier (optional) item_name = 'item_name_example' # str | Item name (optional) diff --git a/cloudbeds_pms_v1_2/docs/PackageApi.md b/cloudbeds_pms_v1_3/docs/PackageApi.md similarity index 85% rename from cloudbeds_pms_v1_2/docs/PackageApi.md rename to cloudbeds_pms_v1_3/docs/PackageApi.md index 7f66869..9e19706 100644 --- a/cloudbeds_pms_v1_2/docs/PackageApi.md +++ b/cloudbeds_pms_v1_3/docs/PackageApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.PackageApi +# cloudbeds_pms_v1_3.PackageApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,15 +21,15 @@ Return a list of billing package names for a property * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -46,9 +46,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PackageApi(api_client) + api_instance = cloudbeds_pms_v1_3.PackageApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: @@ -103,15 +103,15 @@ This efficient method allows you to retrieve the collection of packages associat * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -128,9 +128,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.PackageApi(api_client) + api_instance = cloudbeds_pms_v1_3.PackageApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) try: diff --git a/cloudbeds_pms_v1_3/docs/PaymentApi.md b/cloudbeds_pms_v1_3/docs/PaymentApi.md new file mode 100644 index 0000000..33d1230 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PaymentApi.md @@ -0,0 +1,1168 @@ +# cloudbeds_pms_v1_3.PaymentApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_payment_methods_get**](PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods +[**get_payments_capabilities_get**](PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities +[**get_payments_get**](PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments +[**get_pending_transactions_get**](PaymentApi.md#get_pending_transactions_get) | **GET** /getPendingTransactions | getPendingTransactions +[**get_transactions_get**](PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions +[**post_charge_post**](PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge +[**post_credit_card_post**](PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard +[**post_custom_payment_method_post**](PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod +[**post_payment_cash_post**](PaymentApi.md#post_payment_cash_post) | **POST** /postPaymentCash | postPaymentCash +[**post_payment_credit_card_post**](PaymentApi.md#post_payment_credit_card_post) | **POST** /postPaymentCreditCard | postPaymentCreditCard +[**post_payment_post**](PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment +[**post_void_payment_post**](PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment + + +# **get_payment_methods_get** +> GetPaymentMethodsResponse get_payment_methods_get(property_id=property_id, lang=lang) + +getPaymentMethods + +Get a list of active methods for a property, or list of properties + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | ID for the property to be queried (optional) + lang = en # str | Language that payment methods name should return (if available). (optional) (default to en) + + try: + # getPaymentMethods + api_response = api_instance.get_payment_methods_get(property_id=property_id, lang=lang) + print("The response of PaymentApi->get_payment_methods_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_payment_methods_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the property to be queried | [optional] + **lang** | **str**| Language that payment methods name should return (if available). | [optional] [default to en] + +### Return type + +[**GetPaymentMethodsResponse**](GetPaymentMethodsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_payments_capabilities_get** +> GetPaymentsCapabilitiesResponse get_payments_capabilities_get(property_id=property_id) + +getPaymentsCapabilities + +Lists the payment capabilities of a given property + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | ID for the property to be queried (optional) + + try: + # getPaymentsCapabilities + api_response = api_instance.get_payments_capabilities_get(property_id=property_id) + print("The response of PaymentApi->get_payments_capabilities_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_payments_capabilities_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the property to be queried | [optional] + +### Return type + +[**GetPaymentsCapabilitiesResponse**](GetPaymentsCapabilitiesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_payments_get** +> GetPaymentsResponse get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) + +getPayments + +Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + reservation_id = 'reservation_id_example' # str | ¹ ID for the reservation to be queried. + house_account_id = 'house_account_id_example' # str | ¹ ID for the house account to be queried. + guest_id = 'guest_id_example' # str | ¹ ID for the guest to be queried. + property_id = 'property_id_example' # str | Property ID (optional) + created_from = '2013-10-20T19:20:30+01:00' # datetime | Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. (optional) + created_to = '2013-10-20T19:20:30+01:00' # datetime | Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. (optional) + include_payment_allocation = False # bool | Adds payment allocation to response, when available. (optional) (default to False) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 100 # int | Page size (optional) (default to 100) + + try: + # getPayments + api_response = api_instance.get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) + print("The response of PaymentApi->get_payments_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_payments_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| ¹ ID for the reservation to be queried. | + **house_account_id** | **str**| ¹ ID for the house account to be queried. | + **guest_id** | **str**| ¹ ID for the guest to be queried. | + **property_id** | **str**| Property ID | [optional] + **created_from** | **datetime**| Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. | [optional] + **created_to** | **datetime**| Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. | [optional] + **include_payment_allocation** | **bool**| Adds payment allocation to response, when available. | [optional] [default to False] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 100] + +### Return type + +[**GetPaymentsResponse**](GetPaymentsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pending_transactions_get** +> GetPendingTransactionsResponse get_pending_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) + +getPendingTransactions + +Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) + include_debit = True # bool | If the response should include debit transactions (optional) (default to True) + include_credit = True # bool | If the response should include credit transactions (optional) (default to True) + include_deleted = False # bool | If the response should include deleted transactions (optional) (default to False) + include_children = False # bool | If the response should include children transactions (requires the parameter transactionIDs) (optional) (default to False) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation Identifier, used to filter transactions result (optional) + room_id = 'room_id_example' # str | Room ID, used to filter transactions result (optional) + guest_id = 'guest_id_example' # str | Guest ID, used to filter transactions result (optional) + house_account_id = 'house_account_id_example' # str | House Account ID, used to filter transactions result (optional) + transaction_ids = 'transaction_ids_example' # str | List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. (optional) + results_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (posted transaction date) (optional) + results_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (posted transaction date) (optional) + modified_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (optional) + modified_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (optional) + created_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. (optional) + created_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. (optional) + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + sort_by = 'sort_by_example' # str | Sort response results by field (optional) + order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) + + try: + # getPendingTransactions + api_response = api_instance.get_pending_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) + print("The response of PaymentApi->get_pending_transactions_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_pending_transactions_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] + **include_debit** | **bool**| If the response should include debit transactions | [optional] [default to True] + **include_credit** | **bool**| If the response should include credit transactions | [optional] [default to True] + **include_deleted** | **bool**| If the response should include deleted transactions | [optional] [default to False] + **include_children** | **bool**| If the response should include children transactions (requires the parameter transactionIDs) | [optional] [default to False] + **reservation_id** | **str**| Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. | [optional] + **sub_reservation_id** | **str**| Sub Reservation Identifier, used to filter transactions result | [optional] + **room_id** | **str**| Room ID, used to filter transactions result | [optional] + **guest_id** | **str**| Guest ID, used to filter transactions result | [optional] + **house_account_id** | **str**| House Account ID, used to filter transactions result | [optional] + **transaction_ids** | **str**| List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. | [optional] + **results_from** | **date**| Inferior limit date, used to filter transactions result (posted transaction date) | [optional] + **results_to** | **date**| Superior limit date, used to filter transactions result (posted transaction date) | [optional] + **modified_from** | **date**| Inferior limit date, used to filter transactions result | [optional] + **modified_to** | **date**| Superior limit date, used to filter transactions result | [optional] + **created_from** | **datetime**| Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. | [optional] + **created_to** | **datetime**| Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. | [optional] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + **sort_by** | **str**| Sort response results by field | [optional] + **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] + +### Return type + +[**GetPendingTransactionsResponse**](GetPendingTransactionsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_transactions_get** +> GetTransactionsResponse get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) + +getTransactions + +Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) + include_debit = True # bool | If the response should include debit transactions (optional) (default to True) + include_credit = True # bool | If the response should include credit transactions (optional) (default to True) + include_deleted = False # bool | If the response should include deleted transactions (optional) (default to False) + include_children = False # bool | If the response should include children transactions (requires the parameter transactionIDs) (optional) (default to False) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation Identifier, used to filter transactions result (optional) + room_id = 'room_id_example' # str | Room ID, used to filter transactions result (optional) + guest_id = 'guest_id_example' # str | Guest ID, used to filter transactions result (optional) + house_account_id = 'house_account_id_example' # str | House Account ID, used to filter transactions result (optional) + transaction_ids = 'transaction_ids_example' # str | List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. (optional) + results_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (posted transaction date) (optional) + results_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (posted transaction date) (optional) + modified_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (optional) + modified_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (optional) + service_date_from = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) + service_date_to = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) + created_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. (optional) + created_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. (optional) + transaction_filter = 'simple_transactions,adjustments,adjustments_voids,voids,refunds' # str | Transaction filter is used to filter transactions result (optional) (default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds') + page_number = 1 # int | Results page number (optional) (default to 1) + page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) + sort_by = 'sort_by_example' # str | Sort response results by field (optional) + order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) + + try: + # getTransactions + api_response = api_instance.get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) + print("The response of PaymentApi->get_transactions_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->get_transactions_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] + **include_debit** | **bool**| If the response should include debit transactions | [optional] [default to True] + **include_credit** | **bool**| If the response should include credit transactions | [optional] [default to True] + **include_deleted** | **bool**| If the response should include deleted transactions | [optional] [default to False] + **include_children** | **bool**| If the response should include children transactions (requires the parameter transactionIDs) | [optional] [default to False] + **reservation_id** | **str**| Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. | [optional] + **sub_reservation_id** | **str**| Sub Reservation Identifier, used to filter transactions result | [optional] + **room_id** | **str**| Room ID, used to filter transactions result | [optional] + **guest_id** | **str**| Guest ID, used to filter transactions result | [optional] + **house_account_id** | **str**| House Account ID, used to filter transactions result | [optional] + **transaction_ids** | **str**| List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. | [optional] + **results_from** | **date**| Inferior limit date, used to filter transactions result (posted transaction date) | [optional] + **results_to** | **date**| Superior limit date, used to filter transactions result (posted transaction date) | [optional] + **modified_from** | **date**| Inferior limit date, used to filter transactions result | [optional] + **modified_to** | **date**| Superior limit date, used to filter transactions result | [optional] + **service_date_from** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] + **service_date_to** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] + **created_from** | **datetime**| Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. | [optional] + **created_to** | **datetime**| Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. | [optional] + **transaction_filter** | **str**| Transaction filter is used to filter transactions result | [optional] [default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds'] + **page_number** | **int**| Results page number | [optional] [default to 1] + **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] + **sort_by** | **str**| Sort response results by field | [optional] + **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] + +### Return type + +[**GetTransactionsResponse**](GetTransactionsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_charge_post** +> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) + +postCharge + +Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | (optional) + reservation_id = 'reservation_id_example' # str | Reservation ID (optional) + house_account_id = 'house_account_id_example' # str | House Account ID (optional) + group_id = 'group_id_example' # str | Group ID (optional) + accounts_receivable_ledger_id = 'accounts_receivable_ledger_id_example' # str | Accounts Receivable Ledger ID (optional) + amount = 'amount_example' # str | Amount to charge (optional) + currency = 'currency_example' # str | Currency to charge (optional) + description = 'description_example' # str | Description of the payment to display on folio (optional) + payment_method_id = 'payment_method_id_example' # str | Payment method UUID (optional) + is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) + redirect_url = 'redirect_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) + + try: + # postCharge + api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) + print("The response of PaymentApi->post_charge_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_charge_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| | [optional] + **reservation_id** | **str**| Reservation ID | [optional] + **house_account_id** | **str**| House Account ID | [optional] + **group_id** | **str**| Group ID | [optional] + **accounts_receivable_ledger_id** | **str**| Accounts Receivable Ledger ID | [optional] + **amount** | **str**| Amount to charge | [optional] + **currency** | **str**| Currency to charge | [optional] + **description** | **str**| Description of the payment to display on folio | [optional] + **payment_method_id** | **str**| Payment method UUID | [optional] + **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] + **redirect_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] + +### Return type + +[**PostChargeResponse**](PostChargeResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_credit_card_post** +> PostCardResponse post_credit_card_post(property_id=property_id, reservation_id=reservation_id, card_token=card_token, payment_method_id=payment_method_id, return_url=return_url) + +postCreditCard + +Returns the rate of the room type selected, based on the provided parameters + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | (optional) + reservation_id = 'reservation_id_example' # str | (optional) + card_token = 'card_token_example' # str | cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided (optional) + payment_method_id = 'payment_method_id_example' # str | Payment Method ID provided by the payments SDK (optional) + return_url = 'return_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) + + try: + # postCreditCard + api_response = api_instance.post_credit_card_post(property_id=property_id, reservation_id=reservation_id, card_token=card_token, payment_method_id=payment_method_id, return_url=return_url) + print("The response of PaymentApi->post_credit_card_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_credit_card_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| | [optional] + **reservation_id** | **str**| | [optional] + **card_token** | **str**| cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided | [optional] + **payment_method_id** | **str**| Payment Method ID provided by the payments SDK | [optional] + **return_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] + +### Return type + +[**PostCardResponse**](PostCardResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_custom_payment_method_post** +> PostCustomPaymentMethodResponse post_custom_payment_method_post(property_id=property_id, method=method, method_name=method_name) + +postCustomPaymentMethod + +Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | Property ID, if not sent will retrieve property ID from credentials, only one property ID call. (optional) + method = 'method_example' # str | Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. (optional) + method_name = 'method_name_example' # str | Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. (optional) + + try: + # postCustomPaymentMethod + api_response = api_instance.post_custom_payment_method_post(property_id=property_id, method=method, method_name=method_name) + print("The response of PaymentApi->post_custom_payment_method_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_custom_payment_method_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID, if not sent will retrieve property ID from credentials, only one property ID call. | [optional] + **method** | **str**| Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. | [optional] + **method_name** | **str**| Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. | [optional] + +### Return type + +[**PostCustomPaymentMethodResponse**](PostCustomPaymentMethodResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_payment_cash_post** +> PostPaymentCashResponse post_payment_cash_post(reservation_id=reservation_id, amount=amount) + +postPaymentCash + +Add a payment done by cash to a specified reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + amount = 3.4 # float | Amount paid on this payment (optional) + + try: + # postPaymentCash + api_response = api_instance.post_payment_cash_post(reservation_id=reservation_id, amount=amount) + print("The response of PaymentApi->post_payment_cash_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_payment_cash_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation identifier | [optional] + **amount** | **float**| Amount paid on this payment | [optional] + +### Return type + +[**PostPaymentCashResponse**](PostPaymentCashResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_payment_credit_card_post** +> PostPaymentCreditCardResponse post_payment_credit_card_post(reservation_id=reservation_id, amount=amount, card_id=card_id) + +postPaymentCreditCard + +Add a payment done by credit card to a specified reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + amount = 3.4 # float | Amount paid on this payment (optional) + card_id = 'card_id_example' # str | Credit Card ID used on payment. Can be retrieved with reservation information (optional) + + try: + # postPaymentCreditCard + api_response = api_instance.post_payment_credit_card_post(reservation_id=reservation_id, amount=amount, card_id=card_id) + print("The response of PaymentApi->post_payment_credit_card_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_payment_credit_card_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation identifier | [optional] + **amount** | **float**| Amount paid on this payment | [optional] + **card_id** | **str**| Credit Card ID used on payment. Can be retrieved with reservation information | [optional] + +### Return type + +[**PostPaymentCreditCardResponse**](PostPaymentCreditCardResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_payment_post** +> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) + +postPayment + +Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) + sub_reservation_id = 'sub_reservation_id_example' # str | The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. (optional) + type = 'type_example' # str | Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. (optional) + amount = 3.4 # float | Amount paid on this transaction (optional) + card_type = 'card_type_example' # str | If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" (optional) + description = 'description_example' # str | Note to be added to payment (optional) + is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) + + try: + # postPayment + api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) + print("The response of PaymentApi->post_payment_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_payment_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] + **sub_reservation_id** | **str**| The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. | [optional] + **type** | **str**| Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] + **amount** | **float**| Amount paid on this transaction | [optional] + **card_type** | **str**| If type = credit, cardType is necessary. Allowed values are property based, but possible strings are: \\\"visa\\\",\\\"master\\\",\\\"amex\\\",\\\"aura\\\",\\\"diners\\\",\\\"hiper\\\",\\\"elo\\\",\\\"Discover\\\",\\\"jcb\\\",\\\"maestro\\\",\\\"dan\\\",\\\"PostCard\\\",\\\"Eurocard\\\",\\\"union_pay\\\" | [optional] + **description** | **str**| Note to be added to payment | [optional] + **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] + +### Return type + +[**PostPaymentResponse**](PostPaymentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_void_payment_post** +> PostVoidPaymentResponse post_void_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, payment_id=payment_id) + +postVoidPayment + +Voids a payment (using paymentID) to a specified reservation or house account. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) + house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) + payment_id = 'payment_id_example' # str | paymentID of transaction that should be voided. (optional) + + try: + # postVoidPayment + api_response = api_instance.post_void_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, payment_id=payment_id) + print("The response of PaymentApi->post_void_payment_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PaymentApi->post_void_payment_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation identifier | [optional] + **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] + **payment_id** | **str**| paymentID of transaction that should be voided. | [optional] + +### Return type + +[**PostVoidPaymentResponse**](PostVoidPaymentResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md b/cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md new file mode 100644 index 0000000..9f028ae --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md @@ -0,0 +1,29 @@ +# PostAccessTokenCheckResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **str** | True if the access_token is valid. False otherwise. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAccessTokenCheckResponse from a JSON string +post_access_token_check_response_instance = PostAccessTokenCheckResponse.from_json(json) +# print the JSON string representation of the object +print(PostAccessTokenCheckResponse.to_json()) + +# convert the object into a dict +post_access_token_check_response_dict = post_access_token_check_response_instance.to_dict() +# create an instance of PostAccessTokenCheckResponse from a dict +post_access_token_check_response_from_dict = PostAccessTokenCheckResponse.from_dict(post_access_token_check_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md b/cloudbeds_pms_v1_3/docs/PostAccessTokenResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md rename to cloudbeds_pms_v1_3/docs/PostAccessTokenResponse.md index 4629cfb..39bde77 100644 --- a/cloudbeds_pms_v1_2/docs/PostAccessTokenResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostAccessTokenResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md b/cloudbeds_pms_v1_3/docs/PostAccessTokenResponseResourcesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md rename to cloudbeds_pms_v1_3/docs/PostAccessTokenResponseResourcesInner.md index 82be470..b24f00e 100644 --- a/cloudbeds_pms_v1_2/docs/PostAccessTokenResponseResourcesInner.md +++ b/cloudbeds_pms_v1_3/docs/PostAccessTokenResponseResourcesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md b/cloudbeds_pms_v1_3/docs/PostAdjustmentResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md rename to cloudbeds_pms_v1_3/docs/PostAdjustmentResponse.md index 12294c2..e7e7950 100644 --- a/cloudbeds_pms_v1_2/docs/PostAdjustmentResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostAdjustmentResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md b/cloudbeds_pms_v1_3/docs/PostAdjustmentResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md rename to cloudbeds_pms_v1_3/docs/PostAdjustmentResponseData.md index 7a89384..ed5d3b2 100644 --- a/cloudbeds_pms_v1_2/docs/PostAdjustmentResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostAdjustmentResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md b/cloudbeds_pms_v1_3/docs/PostAppErrorResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md rename to cloudbeds_pms_v1_3/docs/PostAppErrorResponse.md index b21df3a..30e4002 100644 --- a/cloudbeds_pms_v1_2/docs/PostAppErrorResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostAppErrorResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md b/cloudbeds_pms_v1_3/docs/PostAppErrorResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md rename to cloudbeds_pms_v1_3/docs/PostAppErrorResponseData.md index 1658d55..4bb944c 100644 --- a/cloudbeds_pms_v1_2/docs/PostAppErrorResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostAppErrorResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md b/cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md rename to cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponse.md index e6cce5c..6d5e11e 100644 --- a/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md b/cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md rename to cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponseData.md index 1c827c6..9c6ca84 100644 --- a/cloudbeds_pms_v1_2/docs/PostAppPropertySettingResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md b/cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md new file mode 100644 index 0000000..147150b --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md @@ -0,0 +1,30 @@ +# PostAppSettingsRequestSettingsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | A name of a setting option | [optional] +**value** | **str** | A value of a setting option | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppSettingsRequestSettingsInner from a JSON string +post_app_settings_request_settings_inner_instance = PostAppSettingsRequestSettingsInner.from_json(json) +# print the JSON string representation of the object +print(PostAppSettingsRequestSettingsInner.to_json()) + +# convert the object into a dict +post_app_settings_request_settings_inner_dict = post_app_settings_request_settings_inner_instance.to_dict() +# create an instance of PostAppSettingsRequestSettingsInner from a dict +post_app_settings_request_settings_inner_from_dict = PostAppSettingsRequestSettingsInner.from_dict(post_app_settings_request_settings_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md b/cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md new file mode 100644 index 0000000..5473364 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md @@ -0,0 +1,30 @@ +# PostAppSettingsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | **object** | Application settings details | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppSettingsResponse from a JSON string +post_app_settings_response_instance = PostAppSettingsResponse.from_json(json) +# print the JSON string representation of the object +print(PostAppSettingsResponse.to_json()) + +# convert the object into a dict +post_app_settings_response_dict = post_app_settings_response_instance.to_dict() +# create an instance of PostAppSettingsResponse from a dict +post_app_settings_response_from_dict = PostAppSettingsResponse.from_dict(post_app_settings_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md b/cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md new file mode 100644 index 0000000..6e8a8df --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md @@ -0,0 +1,29 @@ +# PostAppStateInternalResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostAppStateInternalResponse from a JSON string +post_app_state_internal_response_instance = PostAppStateInternalResponse.from_json(json) +# print the JSON string representation of the object +print(PostAppStateInternalResponse.to_json()) + +# convert the object into a dict +post_app_state_internal_response_dict = post_app_state_internal_response_instance.to_dict() +# create an instance of PostAppStateInternalResponse from a dict +post_app_state_internal_response_from_dict = PostAppStateInternalResponse.from_dict(post_app_state_internal_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostAppStateResponse.md b/cloudbeds_pms_v1_3/docs/PostAppStateResponse.md similarity index 93% rename from cloudbeds_pms_v1_2/docs/PostAppStateResponse.md rename to cloudbeds_pms_v1_3/docs/PostAppStateResponse.md index ce4a013..7ce0481 100644 --- a/cloudbeds_pms_v1_2/docs/PostAppStateResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostAppStateResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md b/cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md rename to cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponse.md index f71b4bb..bd36561 100644 --- a/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md b/cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md rename to cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponseData.md index d6ff77c..96a44e1 100644 --- a/cloudbeds_pms_v1_2/docs/PostAppendCustomItemResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponseData.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md b/cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md new file mode 100644 index 0000000..33ac0f7 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md @@ -0,0 +1,29 @@ +# PostBulkAppPropertySettingsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Success | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostBulkAppPropertySettingsResponse from a JSON string +post_bulk_app_property_settings_response_instance = PostBulkAppPropertySettingsResponse.from_json(json) +# print the JSON string representation of the object +print(PostBulkAppPropertySettingsResponse.to_json()) + +# convert the object into a dict +post_bulk_app_property_settings_response_dict = post_bulk_app_property_settings_response_instance.to_dict() +# create an instance of PostBulkAppPropertySettingsResponse from a dict +post_bulk_app_property_settings_response_from_dict = PostBulkAppPropertySettingsResponse.from_dict(post_bulk_app_property_settings_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md b/cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md new file mode 100644 index 0000000..14a2baf --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md @@ -0,0 +1,29 @@ +# PostCRMCacheRemoveResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCRMCacheRemoveResponse from a JSON string +post_crm_cache_remove_response_instance = PostCRMCacheRemoveResponse.from_json(json) +# print the JSON string representation of the object +print(PostCRMCacheRemoveResponse.to_json()) + +# convert the object into a dict +post_crm_cache_remove_response_dict = post_crm_cache_remove_response_instance.to_dict() +# create an instance of PostCRMCacheRemoveResponse from a dict +post_crm_cache_remove_response_from_dict = PostCRMCacheRemoveResponse.from_dict(post_crm_cache_remove_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md b/cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md new file mode 100644 index 0000000..0ce8bd7 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md @@ -0,0 +1,29 @@ +# PostCRMCacheUpdateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostCRMCacheUpdateResponse from a JSON string +post_crm_cache_update_response_instance = PostCRMCacheUpdateResponse.from_json(json) +# print the JSON string representation of the object +print(PostCRMCacheUpdateResponse.to_json()) + +# convert the object into a dict +post_crm_cache_update_response_dict = post_crm_cache_update_response_instance.to_dict() +# create an instance of PostCRMCacheUpdateResponse from a dict +post_crm_cache_update_response_from_dict = PostCRMCacheUpdateResponse.from_dict(post_crm_cache_update_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostCardResponse.md b/cloudbeds_pms_v1_3/docs/PostCardResponse.md similarity index 93% rename from cloudbeds_pms_v1_2/docs/PostCardResponse.md rename to cloudbeds_pms_v1_3/docs/PostCardResponse.md index fab7577..e06aee7 100644 --- a/cloudbeds_pms_v1_2/docs/PostCardResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostCardResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCardResponseData.md b/cloudbeds_pms_v1_3/docs/PostCardResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostCardResponseData.md rename to cloudbeds_pms_v1_3/docs/PostCardResponseData.md index 7ffff7f..22fd001 100644 --- a/cloudbeds_pms_v1_2/docs/PostCardResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostCardResponseData.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponse.md b/cloudbeds_pms_v1_3/docs/PostChargeResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostChargeResponse.md rename to cloudbeds_pms_v1_3/docs/PostChargeResponse.md index b822c16..df5e18b 100644 --- a/cloudbeds_pms_v1_2/docs/PostChargeResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostChargeResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponseData.md b/cloudbeds_pms_v1_3/docs/PostChargeResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostChargeResponseData.md rename to cloudbeds_pms_v1_3/docs/PostChargeResponseData.md index 6e60941..bc69424 100644 --- a/cloudbeds_pms_v1_2/docs/PostChargeResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostChargeResponseData.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md b/cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextAction.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md rename to cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextAction.md index 62fc7df..2a20446 100644 --- a/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextAction.md +++ b/cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextAction.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md b/cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextActionDetails.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md rename to cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextActionDetails.md index 9c1faa7..dbf65a6 100644 --- a/cloudbeds_pms_v1_2/docs/PostChargeResponseDataNextActionDetails.md +++ b/cloudbeds_pms_v1_3/docs/PostChargeResponseDataNextActionDetails.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponse.md index a3a8c3d..08087f4 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponseData.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponseData.md index bcf8a20..44a978c 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockNotesResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockNotesResponseData.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md index 0a409e5..7987c77 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md index 6cb0820..b24224b 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md index 23ce4cf..1dd6afe 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md index 684c90a..004b3ff 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAutoRelease.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAutoRelease.md index 34b0aed..8b4a55f 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockRequestAutoRelease.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAutoRelease.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponse.md index 73220f8..d152b03 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md index 0de5d40..608c906 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md index a249fab..ec04b7f 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md index 54dc045..a8df6fe 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md index 193b786..b8c634c 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md index 4ee8627..da61289 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md rename to cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md index a29b8f4..4d33482 100644 --- a/cloudbeds_pms_v1_2/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAutoRelease.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md b/cloudbeds_pms_v1_3/docs/PostCustomFieldResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md rename to cloudbeds_pms_v1_3/docs/PostCustomFieldResponse.md index dbb0976..53648e1 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomFieldResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomFieldResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md b/cloudbeds_pms_v1_3/docs/PostCustomFieldResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md rename to cloudbeds_pms_v1_3/docs/PostCustomFieldResponseData.md index d0909bf..282fb8d 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomFieldResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomFieldResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md rename to cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInner.md index b765c76..c1d277b 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInner.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemFeesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md rename to cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemFeesInner.md index e40b1c0..e044b63 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemFeesInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemFeesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md rename to cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md index a4554a3..741ecdd 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestItemsInnerItemTaxesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestPaymentsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md rename to cloudbeds_pms_v1_3/docs/PostCustomItemRequestPaymentsInner.md index bd29c63..de4c46d 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomItemRequestPaymentsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemRequestPaymentsInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md b/cloudbeds_pms_v1_3/docs/PostCustomItemResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md rename to cloudbeds_pms_v1_3/docs/PostCustomItemResponse.md index 72525a4..395e7a2 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomItemResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md b/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md rename to cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md index 8ca134a..4d2fa69 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomItemResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md b/cloudbeds_pms_v1_3/docs/PostCustomPaymentMethodResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md rename to cloudbeds_pms_v1_3/docs/PostCustomPaymentMethodResponse.md index 46fd2b9..4648911 100644 --- a/cloudbeds_pms_v1_2/docs/PostCustomPaymentMethodResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomPaymentMethodResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostDeleteAllotmentBlockResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md rename to cloudbeds_pms_v1_3/docs/PostDeleteAllotmentBlockResponse.md index 5ea248b..61b912a 100644 --- a/cloudbeds_pms_v1_2/docs/PostDeleteAllotmentBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostDeleteAllotmentBlockResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md b/cloudbeds_pms_v1_3/docs/PostDeleteAppPropertySettingsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md rename to cloudbeds_pms_v1_3/docs/PostDeleteAppPropertySettingsResponse.md index eabe682..36d5af8 100644 --- a/cloudbeds_pms_v1_2/docs/PostDeleteAppPropertySettingsResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostDeleteAppPropertySettingsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md b/cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestSchedule.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md rename to cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestSchedule.md index ab09407..7c98dbe 100644 --- a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestSchedule.md +++ b/cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestSchedule.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md b/cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationEvent.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md rename to cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationEvent.md index 8ae1212..27558de 100644 --- a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationEvent.md +++ b/cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationEvent.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md b/cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md rename to cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md index 3d5746a..b2867e6 100644 --- a/cloudbeds_pms_v1_2/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md +++ b/cloudbeds_pms_v1_3/docs/PostEmailScheduleRequestScheduleReservationStatusChange.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md b/cloudbeds_pms_v1_3/docs/PostEmailScheduleResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md rename to cloudbeds_pms_v1_3/docs/PostEmailScheduleResponse.md index 420c42c..4c29143 100644 --- a/cloudbeds_pms_v1_2/docs/PostEmailScheduleResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostEmailScheduleResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md b/cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestBody.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md rename to cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestBody.md index b942eeb..10d503a 100644 --- a/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestBody.md +++ b/cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestBody.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md b/cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestSubject.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md rename to cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestSubject.md index e8670c5..c08a565 100644 --- a/cloudbeds_pms_v1_2/docs/PostEmailTemplateRequestSubject.md +++ b/cloudbeds_pms_v1_3/docs/PostEmailTemplateRequestSubject.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md b/cloudbeds_pms_v1_3/docs/PostEmailTemplateResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md rename to cloudbeds_pms_v1_3/docs/PostEmailTemplateResponse.md index 24e5416..c3aeccf 100644 --- a/cloudbeds_pms_v1_2/docs/PostEmailTemplateResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostEmailTemplateResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostFileResponse.md b/cloudbeds_pms_v1_3/docs/PostFileResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostFileResponse.md rename to cloudbeds_pms_v1_3/docs/PostFileResponse.md index d7e690e..a7c2583 100644 --- a/cloudbeds_pms_v1_2/docs/PostFileResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostFileResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md b/cloudbeds_pms_v1_3/docs/PostGovernmentReceiptResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md rename to cloudbeds_pms_v1_3/docs/PostGovernmentReceiptResponse.md index 88a97fd..3bbcc7b 100644 --- a/cloudbeds_pms_v1_2/docs/PostGovernmentReceiptResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostGovernmentReceiptResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md b/cloudbeds_pms_v1_3/docs/PostGroupNoteResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md rename to cloudbeds_pms_v1_3/docs/PostGroupNoteResponse.md index ce2ac96..f09b1b8 100644 --- a/cloudbeds_pms_v1_2/docs/PostGroupNoteResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostGroupNoteResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md b/cloudbeds_pms_v1_3/docs/PostGroupNoteResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/PostGroupNoteResponseDataInner.md index 2286d1e..790db21 100644 --- a/cloudbeds_pms_v1_2/docs/PostGroupNoteResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/PostGroupNoteResponseDataInner.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md b/cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md new file mode 100644 index 0000000..18f7529 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md @@ -0,0 +1,29 @@ +# PostGuestCreditCardResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostGuestCreditCardResponse from a JSON string +post_guest_credit_card_response_instance = PostGuestCreditCardResponse.from_json(json) +# print the JSON string representation of the object +print(PostGuestCreditCardResponse.to_json()) + +# convert the object into a dict +post_guest_credit_card_response_dict = post_guest_credit_card_response_instance.to_dict() +# create an instance of PostGuestCreditCardResponse from a dict +post_guest_credit_card_response_from_dict = PostGuestCreditCardResponse.from_dict(post_guest_credit_card_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md b/cloudbeds_pms_v1_3/docs/PostGuestDocumentResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md rename to cloudbeds_pms_v1_3/docs/PostGuestDocumentResponse.md index a990c70..8f3223e 100644 --- a/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostGuestDocumentResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md b/cloudbeds_pms_v1_3/docs/PostGuestDocumentResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md rename to cloudbeds_pms_v1_3/docs/PostGuestDocumentResponseData.md index bd1c255..346b796 100644 --- a/cloudbeds_pms_v1_2/docs/PostGuestDocumentResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostGuestDocumentResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md b/cloudbeds_pms_v1_3/docs/PostGuestNoteResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md rename to cloudbeds_pms_v1_3/docs/PostGuestNoteResponse.md index 0c874b7..5d10842 100644 --- a/cloudbeds_pms_v1_2/docs/PostGuestNoteResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostGuestNoteResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md b/cloudbeds_pms_v1_3/docs/PostGuestPhotoResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md rename to cloudbeds_pms_v1_3/docs/PostGuestPhotoResponse.md index 9a72a87..63be2a8 100644 --- a/cloudbeds_pms_v1_2/docs/PostGuestPhotoResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostGuestPhotoResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/PostGuestRequestCustomFieldsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md rename to cloudbeds_pms_v1_3/docs/PostGuestRequestCustomFieldsInner.md index f2de80e..f096ccb 100644 --- a/cloudbeds_pms_v1_2/docs/PostGuestRequestCustomFieldsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostGuestRequestCustomFieldsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGuestResponse.md b/cloudbeds_pms_v1_3/docs/PostGuestResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostGuestResponse.md rename to cloudbeds_pms_v1_3/docs/PostGuestResponse.md index bfa889c..2e03e3b 100644 --- a/cloudbeds_pms_v1_2/docs/PostGuestResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostGuestResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md b/cloudbeds_pms_v1_3/docs/PostGuestsToRoomResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md rename to cloudbeds_pms_v1_3/docs/PostGuestsToRoomResponse.md index 97bee65..6be0340 100644 --- a/cloudbeds_pms_v1_2/docs/PostGuestsToRoomResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostGuestsToRoomResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md b/cloudbeds_pms_v1_3/docs/PostHousekeeperResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md rename to cloudbeds_pms_v1_3/docs/PostHousekeeperResponse.md index 3d98d11..19dd776 100644 --- a/cloudbeds_pms_v1_2/docs/PostHousekeeperResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostHousekeeperResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md b/cloudbeds_pms_v1_3/docs/PostHousekeepingAssignmentResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md rename to cloudbeds_pms_v1_3/docs/PostHousekeepingAssignmentResponse.md index 27ae859..4574770 100644 --- a/cloudbeds_pms_v1_2/docs/PostHousekeepingAssignmentResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostHousekeepingAssignmentResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md b/cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md rename to cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md index 48937eb..e3a6ad4 100644 --- a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md b/cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md rename to cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md index 7b5ef6a..cde3097 100644 --- a/cloudbeds_pms_v1_2/docs/PostHousekeepingStatusResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md b/cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md rename to cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md index e9d90cd..4b3fffa 100644 --- a/cloudbeds_pms_v1_2/docs/PostItemCategoryResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostItemResponse.md b/cloudbeds_pms_v1_3/docs/PostItemResponse.md similarity index 86% rename from cloudbeds_pms_v1_2/docs/PostItemResponse.md rename to cloudbeds_pms_v1_3/docs/PostItemResponse.md index c1789e5..5dd611b 100644 --- a/cloudbeds_pms_v1_2/docs/PostItemResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostItemResponse.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**PostItemResponseData**](PostItemResponseData.md) | | [optional] +**data** | [**PostItemToReservationResponseData**](PostItemToReservationResponseData.md) | | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example ```python -from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md b/cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md new file mode 100644 index 0000000..992938d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md @@ -0,0 +1,31 @@ +# PostItemToReservationRequestPaymentsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_type** | **str** | Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] +**amount** | **float** | payment amount | [optional] +**notes** | **str** | payment note | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemToReservationRequestPaymentsInner from a JSON string +post_item_to_reservation_request_payments_inner_instance = PostItemToReservationRequestPaymentsInner.from_json(json) +# print the JSON string representation of the object +print(PostItemToReservationRequestPaymentsInner.to_json()) + +# convert the object into a dict +post_item_to_reservation_request_payments_inner_dict = post_item_to_reservation_request_payments_inner_instance.to_dict() +# create an instance of PostItemToReservationRequestPaymentsInner from a dict +post_item_to_reservation_request_payments_inner_from_dict = PostItemToReservationRequestPaymentsInner.from_dict(post_item_to_reservation_request_payments_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md b/cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md new file mode 100644 index 0000000..adfdb87 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md @@ -0,0 +1,31 @@ +# PostItemToReservationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**data** | [**PostItemToReservationResponseData**](PostItemToReservationResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemToReservationResponse from a JSON string +post_item_to_reservation_response_instance = PostItemToReservationResponse.from_json(json) +# print the JSON string representation of the object +print(PostItemToReservationResponse.to_json()) + +# convert the object into a dict +post_item_to_reservation_response_dict = post_item_to_reservation_response_instance.to_dict() +# create an instance of PostItemToReservationResponse from a dict +post_item_to_reservation_response_from_dict = PostItemToReservationResponse.from_dict(post_item_to_reservation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostItemResponseData.md b/cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md similarity index 61% rename from cloudbeds_pms_v1_2/docs/PostItemResponseData.md rename to cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md index 64b8a4b..45f4ed9 100644 --- a/cloudbeds_pms_v1_2/docs/PostItemResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md @@ -1,4 +1,4 @@ -# PostItemResponseData +# PostItemToReservationResponseData Sold product details @@ -16,19 +16,19 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData # TODO update the JSON string below json = "{}" -# create an instance of PostItemResponseData from a JSON string -post_item_response_data_instance = PostItemResponseData.from_json(json) +# create an instance of PostItemToReservationResponseData from a JSON string +post_item_to_reservation_response_data_instance = PostItemToReservationResponseData.from_json(json) # print the JSON string representation of the object -print(PostItemResponseData.to_json()) +print(PostItemToReservationResponseData.to_json()) # convert the object into a dict -post_item_response_data_dict = post_item_response_data_instance.to_dict() -# create an instance of PostItemResponseData from a dict -post_item_response_data_from_dict = PostItemResponseData.from_dict(post_item_response_data_dict) +post_item_to_reservation_response_data_dict = post_item_to_reservation_response_data_instance.to_dict() +# create an instance of PostItemToReservationResponseData from a dict +post_item_to_reservation_response_data_from_dict = PostItemToReservationResponseData.from_dict(post_item_to_reservation_response_data_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md b/cloudbeds_pms_v1_3/docs/PostItemsToInventoryRequestItem.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md rename to cloudbeds_pms_v1_3/docs/PostItemsToInventoryRequestItem.md index 197d5c3..64602d1 100644 --- a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryRequestItem.md +++ b/cloudbeds_pms_v1_3/docs/PostItemsToInventoryRequestItem.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md b/cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md rename to cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponse.md index 089351c..8d10b91 100644 --- a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md b/cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponseDataInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponseDataInner.md index f50154f..df3079a 100644 --- a/cloudbeds_pms_v1_2/docs/PostItemsToInventoryResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponseDataInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md b/cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md rename to cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponse.md index 1dff8cf..a2985d9 100644 --- a/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md b/cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md rename to cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponseData.md index 692be91..977de68 100644 --- a/cloudbeds_pms_v1_2/docs/PostNewHouseAccountResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md b/cloudbeds_pms_v1_3/docs/PostPatchGroupResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md rename to cloudbeds_pms_v1_3/docs/PostPatchGroupResponse.md index 0284abb..7e2da26 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchGroupResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostPatchGroupResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md b/cloudbeds_pms_v1_3/docs/PostPatchGroupResponseDataInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/PostPatchGroupResponseDataInner.md index ca798a0..864c954 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchGroupResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/PostPatchGroupResponseDataInner.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md b/cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md rename to cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md index d0bbe83..05a0e28 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchInvoiceResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md b/cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md rename to cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInner.md index ff48422..3fc80c5 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInner.md +++ b/cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md b/cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInnerInterval.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md rename to cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInnerInterval.md index 205cbc1..ec45e09 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchRateRequestRatesInnerInterval.md +++ b/cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInnerInterval.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md b/cloudbeds_pms_v1_3/docs/PostPatchRateResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md rename to cloudbeds_pms_v1_3/docs/PostPatchRateResponse.md index 35531d3..1f5ecc7 100644 --- a/cloudbeds_pms_v1_2/docs/PostPatchRateResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostPatchRateResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md b/cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md new file mode 100644 index 0000000..30e675b --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md @@ -0,0 +1,30 @@ +# PostPaymentCashResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPaymentCashResponse from a JSON string +post_payment_cash_response_instance = PostPaymentCashResponse.from_json(json) +# print the JSON string representation of the object +print(PostPaymentCashResponse.to_json()) + +# convert the object into a dict +post_payment_cash_response_dict = post_payment_cash_response_instance.to_dict() +# create an instance of PostPaymentCashResponse from a dict +post_payment_cash_response_from_dict = PostPaymentCashResponse.from_dict(post_payment_cash_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md b/cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md new file mode 100644 index 0000000..e09632a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md @@ -0,0 +1,30 @@ +# PostPaymentCreditCardResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPaymentCreditCardResponse from a JSON string +post_payment_credit_card_response_instance = PostPaymentCreditCardResponse.from_json(json) +# print the JSON string representation of the object +print(PostPaymentCreditCardResponse.to_json()) + +# convert the object into a dict +post_payment_credit_card_response_dict = post_payment_credit_card_response_instance.to_dict() +# create an instance of PostPaymentCreditCardResponse from a dict +post_payment_credit_card_response_from_dict = PostPaymentCreditCardResponse.from_dict(post_payment_credit_card_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPaymentResponse.md b/cloudbeds_pms_v1_3/docs/PostPaymentResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostPaymentResponse.md rename to cloudbeds_pms_v1_3/docs/PostPaymentResponse.md index fa5f330..445e2b5 100644 --- a/cloudbeds_pms_v1_2/docs/PostPaymentResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostPaymentResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md b/cloudbeds_pms_v1_3/docs/PostPutAppPropertySettingsResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md rename to cloudbeds_pms_v1_3/docs/PostPutAppPropertySettingsResponse.md index 946b189..92dd6a7 100644 --- a/cloudbeds_pms_v1_2/docs/PostPutAppPropertySettingsResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostPutAppPropertySettingsResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md b/cloudbeds_pms_v1_3/docs/PostPutGroupResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md rename to cloudbeds_pms_v1_3/docs/PostPutGroupResponse.md index 18a8316..cbbad3f 100644 --- a/cloudbeds_pms_v1_2/docs/PostPutGroupResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostPutGroupResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostPutRateRequest.md b/cloudbeds_pms_v1_3/docs/PostPutRateRequest.md new file mode 100644 index 0000000..88a60a8 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostPutRateRequest.md @@ -0,0 +1,29 @@ +# PostPutRateRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rates** | [**List[PostPutRateRequestRatesInner]**](PostPutRateRequestRatesInner.md) | Array of rates to update | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PostPutRateRequest from a JSON string +post_put_rate_request_instance = PostPutRateRequest.from_json(json) +# print the JSON string representation of the object +print(PostPutRateRequest.to_json()) + +# convert the object into a dict +post_put_rate_request_dict = post_put_rate_request_instance.to_dict() +# create an instance of PostPutRateRequest from a dict +post_put_rate_request_from_dict = PostPutRateRequest.from_dict(post_put_rate_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md b/cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md rename to cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInner.md index 85c467a..3954ff2 100644 --- a/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInner.md +++ b/cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md b/cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInnerIntervalInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md rename to cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInnerIntervalInner.md index d7461e5..60493a0 100644 --- a/cloudbeds_pms_v1_2/docs/PostPutRateRequestRatesInnerIntervalInner.md +++ b/cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInnerIntervalInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostPutRateResponse.md b/cloudbeds_pms_v1_3/docs/PostPutRateResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostPutRateResponse.md rename to cloudbeds_pms_v1_3/docs/PostPutRateResponse.md index 08fae04..036cd9d 100644 --- a/cloudbeds_pms_v1_2/docs/PostPutRateResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostPutRateResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md b/cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md new file mode 100644 index 0000000..79290c4 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md @@ -0,0 +1,30 @@ +# PostReservationCheckInResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationCheckInResponse from a JSON string +post_reservation_check_in_response_instance = PostReservationCheckInResponse.from_json(json) +# print the JSON string representation of the object +print(PostReservationCheckInResponse.to_json()) + +# convert the object into a dict +post_reservation_check_in_response_dict = post_reservation_check_in_response_instance.to_dict() +# create an instance of PostReservationCheckInResponse from a dict +post_reservation_check_in_response_from_dict = PostReservationCheckInResponse.from_dict(post_reservation_check_in_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md b/cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md new file mode 100644 index 0000000..c757e8f --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md @@ -0,0 +1,30 @@ +# PostReservationCheckOutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostReservationCheckOutResponse from a JSON string +post_reservation_check_out_response_instance = PostReservationCheckOutResponse.from_json(json) +# print the JSON string representation of the object +print(PostReservationCheckOutResponse.to_json()) + +# convert the object into a dict +post_reservation_check_out_response_dict = post_reservation_check_out_response_instance.to_dict() +# create an instance of PostReservationCheckOutResponse from a dict +post_reservation_check_out_response_from_dict = PostReservationCheckOutResponse.from_dict(post_reservation_check_out_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md b/cloudbeds_pms_v1_3/docs/PostReservationDocumentResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md rename to cloudbeds_pms_v1_3/docs/PostReservationDocumentResponse.md index cd54abd..80293d2 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationDocumentResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationDocumentResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md b/cloudbeds_pms_v1_3/docs/PostReservationNoteResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md rename to cloudbeds_pms_v1_3/docs/PostReservationNoteResponse.md index 03c3b28..20c20b8 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationNoteResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationNoteResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md b/cloudbeds_pms_v1_3/docs/PostReservationRequestAdultsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md rename to cloudbeds_pms_v1_3/docs/PostReservationRequestAdultsInner.md index 0673424..27cf781 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationRequestAdultsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationRequestAdultsInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md b/cloudbeds_pms_v1_3/docs/PostReservationRequestChildrenInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md rename to cloudbeds_pms_v1_3/docs/PostReservationRequestChildrenInner.md index 24b98b5..1313306 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationRequestChildrenInner.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationRequestChildrenInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/PostReservationRequestCustomFieldsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md rename to cloudbeds_pms_v1_3/docs/PostReservationRequestCustomFieldsInner.md index dafac77..f85a907 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationRequestCustomFieldsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationRequestCustomFieldsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md b/cloudbeds_pms_v1_3/docs/PostReservationRequestRoomsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md rename to cloudbeds_pms_v1_3/docs/PostReservationRequestRoomsInner.md index 87fbf96..521f324 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationRequestRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationRequestRoomsInner.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostReservationResponse.md b/cloudbeds_pms_v1_3/docs/PostReservationResponse.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostReservationResponse.md rename to cloudbeds_pms_v1_3/docs/PostReservationResponse.md index 68aa737..ac6a0ff 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationResponse.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md b/cloudbeds_pms_v1_3/docs/PostReservationResponseUnassignedInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md rename to cloudbeds_pms_v1_3/docs/PostReservationResponseUnassignedInner.md index 2dd4a1e..e076abe 100644 --- a/cloudbeds_pms_v1_2/docs/PostReservationResponseUnassignedInner.md +++ b/cloudbeds_pms_v1_3/docs/PostReservationResponseUnassignedInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomAssignResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md rename to cloudbeds_pms_v1_3/docs/PostRoomAssignResponse.md index 1a57ded..d47f5a6 100644 --- a/cloudbeds_pms_v1_2/docs/PostRoomAssignResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomAssignResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockRequestRoomsInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md rename to cloudbeds_pms_v1_3/docs/PostRoomBlockRequestRoomsInner.md index a43e0a5..bb466b3 100644 --- a/cloudbeds_pms_v1_2/docs/PostRoomBlockRequestRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockRequestRoomsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md rename to cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md index 30f29bb..0870c4f 100644 --- a/cloudbeds_pms_v1_2/docs/PostRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md rename to cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md index 4ad7a05..173e1f4 100644 --- a/cloudbeds_pms_v1_2/docs/PostRoomBlockResponseRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomCheckInResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md rename to cloudbeds_pms_v1_3/docs/PostRoomCheckInResponse.md index a5adcc3..527a0b4 100644 --- a/cloudbeds_pms_v1_2/docs/PostRoomCheckInResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomCheckInResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomCheckOutResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md rename to cloudbeds_pms_v1_3/docs/PostRoomCheckOutResponse.md index f2b54ad..c0d6301 100644 --- a/cloudbeds_pms_v1_2/docs/PostRoomCheckOutResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomCheckOutResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md new file mode 100644 index 0000000..46f42c8 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md @@ -0,0 +1,31 @@ +# PostRoomTypeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns true if the request could be completed | [optional] +**data** | [**PostRoomTypeResponseData**](PostRoomTypeResponseData.md) | | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomTypeResponse from a JSON string +post_room_type_response_instance = PostRoomTypeResponse.from_json(json) +# print the JSON string representation of the object +print(PostRoomTypeResponse.to_json()) + +# convert the object into a dict +post_room_type_response_dict = post_room_type_response_instance.to_dict() +# create an instance of PostRoomTypeResponse from a dict +post_room_type_response_from_dict = PostRoomTypeResponse.from_dict(post_room_type_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md b/cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md new file mode 100644 index 0000000..304354c --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md @@ -0,0 +1,30 @@ +# PostRoomTypeResponseData + +Details for the new accommodation type + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**room_type_id** | **str** | ID for the newly-created accommodation type | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRoomTypeResponseData from a JSON string +post_room_type_response_data_instance = PostRoomTypeResponseData.from_json(json) +# print the JSON string representation of the object +print(PostRoomTypeResponseData.to_json()) + +# convert the object into a dict +post_room_type_response_data_dict = post_room_type_response_data_instance.to_dict() +# create an instance of PostRoomTypeResponseData from a dict +post_room_type_response_data_from_dict = PostRoomTypeResponseData.from_dict(post_room_type_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponse.md index 7ec0060..b9149d4 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md index 4447d1a..47b6555 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockNotesResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md index 485af57..079570f 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md index e4c15e0..2c15f18 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md index bfdfa6c..4965418 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md index eb90543..540ba0e 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAutoRelease.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAutoRelease.md index 0f54279..218a0e4 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockRequestAutoRelease.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAutoRelease.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponse.md index b19d84b..89f78e2 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md index 91e5fe0..add6f07 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md index ffccae2..6dec284 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md similarity index 97% rename from cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md rename to cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md index 323006b..be32d12 100644 --- a/cloudbeds_pms_v1_2/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md b/cloudbeds_pms_v1_3/docs/PostVoidItemResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md rename to cloudbeds_pms_v1_3/docs/PostVoidItemResponse.md index c572ef4..21b294c 100644 --- a/cloudbeds_pms_v1_2/docs/PostVoidItemResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostVoidItemResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md b/cloudbeds_pms_v1_3/docs/PostVoidPaymentResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md rename to cloudbeds_pms_v1_3/docs/PostVoidPaymentResponse.md index d0dbf88..7b7e26e 100644 --- a/cloudbeds_pms_v1_2/docs/PostVoidPaymentResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostVoidPaymentResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostWebhookResponse.md b/cloudbeds_pms_v1_3/docs/PostWebhookResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostWebhookResponse.md rename to cloudbeds_pms_v1_3/docs/PostWebhookResponse.md index bbec14f..9cec124 100644 --- a/cloudbeds_pms_v1_2/docs/PostWebhookResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostWebhookResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md b/cloudbeds_pms_v1_3/docs/PostWebhookResponseData.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md rename to cloudbeds_pms_v1_3/docs/PostWebhookResponseData.md index d47cac4..28ced78 100644 --- a/cloudbeds_pms_v1_2/docs/PostWebhookResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostWebhookResponseData.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md b/cloudbeds_pms_v1_3/docs/PutGuestNoteResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md rename to cloudbeds_pms_v1_3/docs/PutGuestNoteResponse.md index dc6175d..8403f0b 100644 --- a/cloudbeds_pms_v1_2/docs/PutGuestNoteResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutGuestNoteResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/PutGuestRequestGuestCustomFieldsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md rename to cloudbeds_pms_v1_3/docs/PutGuestRequestGuestCustomFieldsInner.md index c91aaad..a398481 100644 --- a/cloudbeds_pms_v1_2/docs/PutGuestRequestGuestCustomFieldsInner.md +++ b/cloudbeds_pms_v1_3/docs/PutGuestRequestGuestCustomFieldsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutGuestResponse.md b/cloudbeds_pms_v1_3/docs/PutGuestResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PutGuestResponse.md rename to cloudbeds_pms_v1_3/docs/PutGuestResponse.md index 953ba70..1e5921a 100644 --- a/cloudbeds_pms_v1_2/docs/PutGuestResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutGuestResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md b/cloudbeds_pms_v1_3/docs/PutHouseAccountStatusResponse.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md rename to cloudbeds_pms_v1_3/docs/PutHouseAccountStatusResponse.md index 3704c1b..f7a477b 100644 --- a/cloudbeds_pms_v1_2/docs/PutHouseAccountStatusResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutHouseAccountStatusResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md b/cloudbeds_pms_v1_3/docs/PutHousekeeperResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md rename to cloudbeds_pms_v1_3/docs/PutHousekeeperResponse.md index c5f6224..486d5a3 100644 --- a/cloudbeds_pms_v1_2/docs/PutHousekeeperResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutHousekeeperResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md b/cloudbeds_pms_v1_3/docs/PutItemToInventoryResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md rename to cloudbeds_pms_v1_3/docs/PutItemToInventoryResponse.md index c0d8e07..35668ac 100644 --- a/cloudbeds_pms_v1_2/docs/PutItemToInventoryResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutItemToInventoryResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md b/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md new file mode 100644 index 0000000..c007c52 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md @@ -0,0 +1,30 @@ +# PutRateRequestRatesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate_id** | **str** | Rate ID | [optional] +**interval** | [**List[PutRateRequestRatesInnerIntervalInner]**](PutRateRequestRatesInnerIntervalInner.md) | Rate update details | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PutRateRequestRatesInner from a JSON string +put_rate_request_rates_inner_instance = PutRateRequestRatesInner.from_json(json) +# print the JSON string representation of the object +print(PutRateRequestRatesInner.to_json()) + +# convert the object into a dict +put_rate_request_rates_inner_dict = put_rate_request_rates_inner_instance.to_dict() +# create an instance of PutRateRequestRatesInner from a dict +put_rate_request_rates_inner_from_dict = PutRateRequestRatesInner.from_dict(put_rate_request_rates_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md b/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md new file mode 100644 index 0000000..e07cad7 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md @@ -0,0 +1,31 @@ +# PutRateRequestRatesInnerIntervalInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **date** | Interval Start date. Format: YYYY-MM-DD | [optional] +**end_date** | **date** | Interval End date. Format: YYYY-MM-DD | [optional] +**rate** | **float** | Base rate for the selected date | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PutRateRequestRatesInnerIntervalInner from a JSON string +put_rate_request_rates_inner_interval_inner_instance = PutRateRequestRatesInnerIntervalInner.from_json(json) +# print the JSON string representation of the object +print(PutRateRequestRatesInnerIntervalInner.to_json()) + +# convert the object into a dict +put_rate_request_rates_inner_interval_inner_dict = put_rate_request_rates_inner_interval_inner_instance.to_dict() +# create an instance of PutRateRequestRatesInnerIntervalInner from a dict +put_rate_request_rates_inner_interval_inner_from_dict = PutRateRequestRatesInnerIntervalInner.from_dict(put_rate_request_rates_inner_interval_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PutRateResponse.md b/cloudbeds_pms_v1_3/docs/PutRateResponse.md new file mode 100644 index 0000000..0ddefe1 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PutRateResponse.md @@ -0,0 +1,31 @@ +# PutRateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns true if the request could be completed | [optional] +**job_reference_id** | **str** | ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook | [optional] +**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutRateResponse from a JSON string +put_rate_response_instance = PutRateResponse.from_json(json) +# print the JSON string representation of the object +print(PutRateResponse.to_json()) + +# convert the object into a dict +put_rate_response_dict = put_rate_response_instance.to_dict() +# create an instance of PutRateResponse from a dict +put_rate_response_from_dict = PutRateResponse.from_dict(put_rate_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md new file mode 100644 index 0000000..0ee830e --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md @@ -0,0 +1,30 @@ +# PutReservationDetailsRequestCustomFieldsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom_field_name** | **str** | Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention | [optional] +**custom_field_value** | **str** | | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PutReservationDetailsRequestCustomFieldsInner from a JSON string +put_reservation_details_request_custom_fields_inner_instance = PutReservationDetailsRequestCustomFieldsInner.from_json(json) +# print the JSON string representation of the object +print(PutReservationDetailsRequestCustomFieldsInner.to_json()) + +# convert the object into a dict +put_reservation_details_request_custom_fields_inner_dict = put_reservation_details_request_custom_fields_inner_instance.to_dict() +# create an instance of PutReservationDetailsRequestCustomFieldsInner from a dict +put_reservation_details_request_custom_fields_inner_from_dict = PutReservationDetailsRequestCustomFieldsInner.from_dict(put_reservation_details_request_custom_fields_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md b/cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md new file mode 100644 index 0000000..a3fd924 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md @@ -0,0 +1,31 @@ +# PutReservationDetailsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | Returns if the request could be completed | [optional] +**message** | **str** | To be used in case any error occurs. | [optional] +**data** | **object** | Returns the reservation data as defined by getReservation call. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutReservationDetailsResponse from a JSON string +put_reservation_details_response_instance = PutReservationDetailsResponse.from_json(json) +# print the JSON string representation of the object +print(PutReservationDetailsResponse.to_json()) + +# convert the object into a dict +put_reservation_details_response_dict = put_reservation_details_response_instance.to_dict() +# create an instance of PutReservationDetailsResponse from a dict +put_reservation_details_response_from_dict = PutReservationDetailsResponse.from_dict(put_reservation_details_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md b/cloudbeds_pms_v1_3/docs/PutReservationNoteResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md rename to cloudbeds_pms_v1_3/docs/PutReservationNoteResponse.md index 303b819..d244da3 100644 --- a/cloudbeds_pms_v1_2/docs/PutReservationNoteResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutReservationNoteResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/PutReservationRequestCustomFieldsInner.md similarity index 95% rename from cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md rename to cloudbeds_pms_v1_3/docs/PutReservationRequestCustomFieldsInner.md index 08598a3..46b0851 100644 --- a/cloudbeds_pms_v1_2/docs/PutReservationRequestCustomFieldsInner.md +++ b/cloudbeds_pms_v1_3/docs/PutReservationRequestCustomFieldsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md b/cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md rename to cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md index 015cd13..3fc794e 100644 --- a/cloudbeds_pms_v1_2/docs/PutReservationRequestRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutReservationResponse.md b/cloudbeds_pms_v1_3/docs/PutReservationResponse.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PutReservationResponse.md rename to cloudbeds_pms_v1_3/docs/PutReservationResponse.md index 133b427..b0d2620 100644 --- a/cloudbeds_pms_v1_2/docs/PutReservationResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutReservationResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md b/cloudbeds_pms_v1_3/docs/PutRoomBlockRequestRoomsInner.md similarity index 94% rename from cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md rename to cloudbeds_pms_v1_3/docs/PutRoomBlockRequestRoomsInner.md index 80fc3af..8184b68 100644 --- a/cloudbeds_pms_v1_2/docs/PutRoomBlockRequestRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PutRoomBlockRequestRoomsInner.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md similarity index 96% rename from cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md rename to cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md index a3ead1a..8b25197 100644 --- a/cloudbeds_pms_v1_2/docs/PutRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse # TODO update the JSON string below json = "{}" diff --git a/cloudbeds_pms_v1_2/docs/RateApi.md b/cloudbeds_pms_v1_3/docs/RateApi.md similarity index 84% rename from cloudbeds_pms_v1_2/docs/RateApi.md rename to cloudbeds_pms_v1_3/docs/RateApi.md index 7989786..9c9e155 100644 --- a/cloudbeds_pms_v1_2/docs/RateApi.md +++ b/cloudbeds_pms_v1_3/docs/RateApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.RateApi +# cloudbeds_pms_v1_3.RateApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -8,7 +8,7 @@ Method | HTTP request | Description [**get_rate_jobs_get**](RateApi.md#get_rate_jobs_get) | **GET** /getRateJobs | getRateJobs [**get_rate_plans_get**](RateApi.md#get_rate_plans_get) | **GET** /getRatePlans | getRatePlans [**patch_rate_post**](RateApi.md#patch_rate_post) | **POST** /patchRate | patchRate -[**put_rate_post**](RateApi.md#put_rate_post) | **POST** /putRate | putRate +[**put_rate_put**](RateApi.md#put_rate_put) | **PUT** /putRate | putRate # **get_rate_get** @@ -24,15 +24,15 @@ Returns the rate of the room type selected, based on the provided parameters * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -49,9 +49,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + api_instance = cloudbeds_pms_v1_3.RateApi(api_client) room_type_id = 'room_type_id_example' # str | Room Type ID start_date = '2013-10-20' # date | Check-in date end_date = '2013-10-20' # date | Check-out date @@ -118,15 +118,15 @@ Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creati * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -143,9 +143,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + api_instance = cloudbeds_pms_v1_3.RateApi(api_client) job_reference_id = 'job_reference_id_example' # str | Filter Rate Jobs by jobReferenceID (optional) status = 'status_example' # str | Filter Rate Jobs based on status (optional) @@ -202,15 +202,15 @@ Returns the rates of the room type or promo code selected, based on the provided * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -227,9 +227,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RateApi(api_client) + api_instance = cloudbeds_pms_v1_3.RateApi(api_client) start_date = '2013-10-20' # date | Check-in date end_date = '2013-10-20' # date | Check-out date property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) @@ -302,16 +302,16 @@ Update the rate of the room based on rateID selected, based on the provided para * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -328,10 +328,10 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RateApi(api_client) - rates = [cloudbeds_pms_v1_2.PostPatchRateRequestRatesInner()] # List[PostPatchRateRequestRatesInner] | Array of rates to update (optional) + api_instance = cloudbeds_pms_v1_3.RateApi(api_client) + rates = [cloudbeds_pms_v1_3.PostPatchRateRequestRatesInner()] # List[PostPatchRateRequestRatesInner] | Array of rates to update (optional) try: # patchRate @@ -372,8 +372,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **put_rate_post** -> PostPutRateResponse put_rate_post(rates=rates) +# **put_rate_put** +> PutRateResponse put_rate_put(rates=rates) putRate @@ -385,16 +385,16 @@ Update the rate of the room based on rateID selected, based on the provided para * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner -from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -411,18 +411,18 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RateApi(api_client) - rates = [cloudbeds_pms_v1_2.PostPutRateRequestRatesInner()] # List[PostPutRateRequestRatesInner] | Array of rates to update (optional) + api_instance = cloudbeds_pms_v1_3.RateApi(api_client) + rates = [cloudbeds_pms_v1_3.PutRateRequestRatesInner()] # List[PutRateRequestRatesInner] | Array of rates to update (optional) try: # putRate - api_response = api_instance.put_rate_post(rates=rates) - print("The response of RateApi->put_rate_post:\n") + api_response = api_instance.put_rate_put(rates=rates) + print("The response of RateApi->put_rate_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling RateApi->put_rate_post: %s\n" % e) + print("Exception when calling RateApi->put_rate_put: %s\n" % e) ``` @@ -432,11 +432,11 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rates** | [**List[PostPutRateRequestRatesInner]**](PostPutRateRequestRatesInner.md)| Array of rates to update | [optional] + **rates** | [**List[PutRateRequestRatesInner]**](PutRateRequestRatesInner.md)| Array of rates to update | [optional] ### Return type -[**PostPutRateResponse**](PostPutRateResponse.md) +[**PutRateResponse**](PutRateResponse.md) ### Authorization diff --git a/cloudbeds_pms_v1_2/docs/ReservationApi.md b/cloudbeds_pms_v1_3/docs/ReservationApi.md similarity index 68% rename from cloudbeds_pms_v1_2/docs/ReservationApi.md rename to cloudbeds_pms_v1_3/docs/ReservationApi.md index b3f4a9c..600bdbb 100644 --- a/cloudbeds_pms_v1_2/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_3/docs/ReservationApi.md @@ -1,20 +1,26 @@ -# cloudbeds_pms_v1_2.ReservationApi +# cloudbeds_pms_v1_3.ReservationApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_reservation_note_delete**](ReservationApi.md#delete_reservation_note_delete) | **DELETE** /deleteReservationNote | deleteReservationNote +[**get_reservation_arrivals_get**](ReservationApi.md#get_reservation_arrivals_get) | **GET** /getReservationArrivals | getReservationArrivals [**get_reservation_assignments_get**](ReservationApi.md#get_reservation_assignments_get) | **GET** /getReservationAssignments | getReservationAssignments +[**get_reservation_departures_get**](ReservationApi.md#get_reservation_departures_get) | **GET** /getReservationDepartures | getReservationDepartures [**get_reservation_get**](ReservationApi.md#get_reservation_get) | **GET** /getReservation | getReservation +[**get_reservation_in_house_get**](ReservationApi.md#get_reservation_in_house_get) | **GET** /getReservationInHouse | getReservationInHouse [**get_reservation_invoice_information_get**](ReservationApi.md#get_reservation_invoice_information_get) | **GET** /getReservationInvoiceInformation | getReservationInvoiceInformation [**get_reservation_notes_get**](ReservationApi.md#get_reservation_notes_get) | **GET** /getReservationNotes | getReservationNotes [**get_reservations_get**](ReservationApi.md#get_reservations_get) | **GET** /getReservations | getReservations [**get_reservations_with_rate_details_get**](ReservationApi.md#get_reservations_with_rate_details_get) | **GET** /getReservationsWithRateDetails | getReservationsWithRateDetails [**get_sources_get**](ReservationApi.md#get_sources_get) | **GET** /getSources | getSources +[**post_reservation_check_in_post**](ReservationApi.md#post_reservation_check_in_post) | **POST** /postReservationCheckIn | postReservationCheckIn +[**post_reservation_check_out_post**](ReservationApi.md#post_reservation_check_out_post) | **POST** /postReservationCheckOut | postReservationCheckOut [**post_reservation_document_post**](ReservationApi.md#post_reservation_document_post) | **POST** /postReservationDocument | postReservationDocument [**post_reservation_note_post**](ReservationApi.md#post_reservation_note_post) | **POST** /postReservationNote | postReservationNote [**post_reservation_post**](ReservationApi.md#post_reservation_post) | **POST** /postReservation | postReservation +[**put_reservation_details_put**](ReservationApi.md#put_reservation_details_put) | **PUT** /putReservationDetails | putReservationDetails [**put_reservation_note_put**](ReservationApi.md#put_reservation_note_put) | **PUT** /putReservationNote | putReservationNote [**put_reservation_put**](ReservationApi.md#put_reservation_put) | **PUT** /putReservation | putReservation @@ -32,15 +38,15 @@ Archives an existing reservation note. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -57,9 +63,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier reservation_note_id = 'reservation_note_id_example' # str | Reservation Note ID property_id = 'property_id_example' # str | Property ID (optional) @@ -105,6 +111,90 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_reservation_arrivals_get** +> GetReservationArrivalsResponse get_reservation_arrivals_get(results_from=results_from, results_to=results_to) + +getReservationArrivals + +Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) + results_from = '2013-10-20' # date | Inferior limit date, used to filter reservations result (optional) + results_to = '2013-10-20' # date | Superior limit date, used to filter reservations result (optional) + + try: + # getReservationArrivals + api_response = api_instance.get_reservation_arrivals_get(results_from=results_from, results_to=results_to) + print("The response of ReservationApi->get_reservation_arrivals_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservation_arrivals_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **results_from** | **date**| Inferior limit date, used to filter reservations result | [optional] + **results_to** | **date**| Superior limit date, used to filter reservations result | [optional] + +### Return type + +[**GetReservationArrivalsResponse**](GetReservationArrivalsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_reservation_assignments_get** > GetReservationAssignmentsResponse get_reservation_assignments_get(property_id=property_id, var_date=var_date) @@ -118,15 +208,15 @@ Returns a list of rooms/reservations assigned for a selected date. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -143,9 +233,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) var_date = '2013-10-20' # date | Date selected to get the assignments. If no date is passed, it will return the results for the current day. (optional) @@ -189,6 +279,90 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_reservation_departures_get** +> GetReservationDeparturesResponse get_reservation_departures_get(results_from=results_from, results_to=results_to) + +getReservationDepartures + +Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) + results_from = '2013-10-20' # date | Inferior limit date, used to filter reservations result (optional) + results_to = '2013-10-20' # date | Superior limit date, used to filter reservations result (optional) + + try: + # getReservationDepartures + api_response = api_instance.get_reservation_departures_get(results_from=results_from, results_to=results_to) + print("The response of ReservationApi->get_reservation_departures_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservation_departures_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **results_from** | **date**| Inferior limit date, used to filter reservations result | [optional] + **results_to** | **date**| Superior limit date, used to filter reservations result | [optional] + +### Return type + +[**GetReservationDeparturesResponse**](GetReservationDeparturesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_reservation_get** > GetReservationResponse get_reservation_get(reservation_id, property_id=property_id) @@ -202,15 +376,15 @@ Returns information on a booking specified by the reservationID parameter * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -227,9 +401,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods property_id = 'property_id_example' # str | Property ID (optional) @@ -273,6 +447,90 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_reservation_in_house_get** +> GetReservationInHouseResponse get_reservation_in_house_get(with_room_details=with_room_details, include_guest_info=include_guest_info) + +getReservationInHouse + +Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
+ +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) + with_room_details = False # bool | Include rooms details (optional) (default to False) + include_guest_info = False # bool | Include guest details (optional) (default to False) + + try: + # getReservationInHouse + api_response = api_instance.get_reservation_in_house_get(with_room_details=with_room_details, include_guest_info=include_guest_info) + print("The response of ReservationApi->get_reservation_in_house_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->get_reservation_in_house_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **with_room_details** | **bool**| Include rooms details | [optional] [default to False] + **include_guest_info** | **bool**| Include guest details | [optional] [default to False] + +### Return type + +[**GetReservationInHouseResponse**](GetReservationInHouseResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_reservation_invoice_information_get** > GetReservationInvoiceInformationResponse get_reservation_invoice_information_get(reservation_id, property_id=property_id) @@ -286,15 +544,15 @@ Returns information that can be used to create an invoice for the selected reser * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -311,9 +569,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier property_id = 'property_id_example' # str | Property ID (optional) @@ -370,15 +628,15 @@ Retrieves reservation notes based on parameters * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -395,9 +653,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier property_id = 'property_id_example' # str | Property ID (optional) @@ -454,15 +712,15 @@ Returns a list of reservations that matched the filters criteria.
Please n * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -479,9 +737,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) status = 'status_example' # str | Filter by current reservation status (optional) results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter reservations, based on booking date (optional) @@ -582,15 +840,15 @@ Returns a list of reservations with added information regarding booked rates and * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -607,9 +865,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago (optional) results_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date (optional) @@ -688,15 +946,15 @@ Gets available property sources * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -713,9 +971,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_ids = 'property_ids_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
(optional) try: @@ -757,6 +1015,170 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **post_reservation_check_in_post** +> PostReservationCheckInResponse post_reservation_check_in_post(reservation_id=reservation_id) + +postReservationCheckIn + +Confirm a guest checkin to a reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. (optional) + + try: + # postReservationCheckIn + api_response = api_instance.post_reservation_check_in_post(reservation_id=reservation_id) + print("The response of ReservationApi->post_reservation_check_in_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->post_reservation_check_in_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation Unique Identifier. | [optional] + +### Return type + +[**PostReservationCheckInResponse**](PostReservationCheckInResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **post_reservation_check_out_post** +> PostReservationCheckOutResponse post_reservation_check_out_post(reservation_id=reservation_id) + +postReservationCheckOut + +CheckOut guest from a reservation + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. (optional) + + try: + # postReservationCheckOut + api_response = api_instance.post_reservation_check_out_post(reservation_id=reservation_id) + print("The response of ReservationApi->post_reservation_check_out_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->post_reservation_check_out_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reservation_id** | **str**| Reservation Unique Identifier. | [optional] + +### Return type + +[**PostReservationCheckOutResponse**](PostReservationCheckOutResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **post_reservation_document_post** > PostReservationDocumentResponse post_reservation_document_post(property_id=property_id, reservation_id=reservation_id, file=file) @@ -770,15 +1192,15 @@ Attaches a document to a reservation * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -795,9 +1217,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) @@ -856,15 +1278,15 @@ Adds a reservation note * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -881,9 +1303,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) reservation_note = 'reservation_note_example' # str | Note to be added to reservation (optional) @@ -944,19 +1366,19 @@ Adds a reservation to the selected property * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner -from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -973,9 +1395,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) source_id = 'source_id_example' # str | The third-party source ID for this reservation. (optional) third_party_identifier = 'third_party_identifier_example' # str | If it was received from a booking channel, this can be an identifier from that channel. (optional) @@ -989,13 +1411,13 @@ with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: guest_email = 'guest_email_example' # str | Guest email (optional) guest_phone = 'guest_phone_example' # str | Guest main phone number (optional) estimated_arrival_time = 'estimated_arrival_time_example' # str | Estimated Arrival Time, 24-hour format. (optional) - rooms = [cloudbeds_pms_v1_2.PostReservationRequestRoomsInner()] # List[PostReservationRequestRoomsInner] | Array with quantity of rooms (optional) - adults = [cloudbeds_pms_v1_2.PostReservationRequestAdultsInner()] # List[PostReservationRequestAdultsInner] | Array with number of adults (optional) - children = [cloudbeds_pms_v1_2.PostReservationRequestChildrenInner()] # List[PostReservationRequestChildrenInner] | Array with number of children (optional) + rooms = [cloudbeds_pms_v1_3.PostReservationRequestRoomsInner()] # List[PostReservationRequestRoomsInner] | Array with quantity of rooms (optional) + adults = [cloudbeds_pms_v1_3.PostReservationRequestAdultsInner()] # List[PostReservationRequestAdultsInner] | Array with number of adults (optional) + children = [cloudbeds_pms_v1_3.PostReservationRequestChildrenInner()] # List[PostReservationRequestChildrenInner] | Array with number of children (optional) payment_method = 'payment_method_example' # str | Payment Method of choice. (optional) card_token = 'card_token_example' # str | Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. (optional) payment_authorization_code = 'payment_authorization_code_example' # str | Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. (optional) - custom_fields = [cloudbeds_pms_v1_2.PostReservationRequestCustomFieldsInner()] # List[PostReservationRequestCustomFieldsInner] | Array with custom fields information (optional) + custom_fields = [cloudbeds_pms_v1_3.PostReservationRequestCustomFieldsInner()] # List[PostReservationRequestCustomFieldsInner] | Array with custom fields information (optional) promo_code = 'promo_code_example' # str | Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". (optional) allotment_block_code = 'allotment_block_code_example' # str | Allotment block code to add reservation to allotment block. (optional) group_code = 'group_code_example' # str | Code from the Aggregate Allotment block the reservation will be added to. (optional) @@ -1065,6 +1487,97 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **put_reservation_details_put** +> PutReservationDetailsResponse put_reservation_details_put(property_id=property_id, reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, status=status, custom_fields=custom_fields) + +putReservationDetails + +Updates a reservation details + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, one reservation ID per call. (optional) + estimated_arrival_time = 'estimated_arrival_time_example' # str | Estimated Arrival Time, 24-hour format. (optional) + status = 'status_example' # str | Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date (optional) + custom_fields = [cloudbeds_pms_v1_3.PutReservationDetailsRequestCustomFieldsInner()] # List[PutReservationDetailsRequestCustomFieldsInner] | Array with custom fields information (optional) + + try: + # putReservationDetails + api_response = api_instance.put_reservation_details_put(property_id=property_id, reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, status=status, custom_fields=custom_fields) + print("The response of ReservationApi->put_reservation_details_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReservationApi->put_reservation_details_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **reservation_id** | **str**| Reservation Unique Identifier, one reservation ID per call. | [optional] + **estimated_arrival_time** | **str**| Estimated Arrival Time, 24-hour format. | [optional] + **status** | **str**| Reservation status<br /> 'confirmed' - Reservation is confirmed<br /> 'not_confirmed' - Reservation not passed confirmation<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] + **custom_fields** | [**List[PutReservationDetailsRequestCustomFieldsInner]**](PutReservationDetailsRequestCustomFieldsInner.md)| Array with custom fields information | [optional] + +### Return type + +[**PutReservationDetailsResponse**](PutReservationDetailsResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **put_reservation_note_put** > PutReservationNoteResponse put_reservation_note_put(property_id=property_id, reservation_id=reservation_id, reservation_note_id=reservation_note_id, reservation_note=reservation_note) @@ -1078,15 +1591,15 @@ Updates an existing reservation note. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -1103,9 +1616,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) reservation_note_id = 'reservation_note_id_example' # str | Reservation Note ID (optional) @@ -1166,17 +1679,17 @@ Updates a reservation, such as custom fields, estimated arrival time, room confi * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -1193,16 +1706,16 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.ReservationApi(api_client) + api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, one reservation ID per call. (optional) estimated_arrival_time = 'estimated_arrival_time_example' # str | Estimated Arrival Time, 24-hour format. (optional) status = 'status_example' # str | Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date (optional) checkout_date = '2013-10-20' # date | Update the checkoutDate across the whole reservation (optional) - custom_fields = [cloudbeds_pms_v1_2.PutReservationRequestCustomFieldsInner()] # List[PutReservationRequestCustomFieldsInner] | Array with custom fields information (optional) - rooms = [cloudbeds_pms_v1_2.PutReservationRequestRoomsInner()] # List[PutReservationRequestRoomsInner] | Array with rooms information to change accommodations assigned to the reservation (optional) + custom_fields = [cloudbeds_pms_v1_3.PutReservationRequestCustomFieldsInner()] # List[PutReservationRequestCustomFieldsInner] | Array with custom fields information (optional) + rooms = [cloudbeds_pms_v1_3.PutReservationRequestRoomsInner()] # List[PutReservationRequestRoomsInner] | Array with rooms information to change accommodations assigned to the reservation (optional) date_created = '2013-10-20T19:20:30+01:00' # datetime | Date reservation was made. Do not change if omitted. (optional) send_status_change_email = False # bool | Send email on reservation status change to property and guest. (optional) (default to False) diff --git a/cloudbeds_pms_v1_2/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md similarity index 82% rename from cloudbeds_pms_v1_2/docs/RoomApi.md rename to cloudbeds_pms_v1_3/docs/RoomApi.md index b9f6bc7..191ffad 100644 --- a/cloudbeds_pms_v1_2/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.RoomApi +# cloudbeds_pms_v1_3.RoomApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -16,6 +16,7 @@ Method | HTTP request | Description [**post_room_block_post**](RoomApi.md#post_room_block_post) | **POST** /postRoomBlock | postRoomBlock [**post_room_check_in_post**](RoomApi.md#post_room_check_in_post) | **POST** /postRoomCheckIn | postRoomCheckIn [**post_room_check_out_post**](RoomApi.md#post_room_check_out_post) | **POST** /postRoomCheckOut | postRoomCheckOut +[**post_room_type_post**](RoomApi.md#post_room_type_post) | **POST** /postRoomType | postRoomType [**put_room_block_put**](RoomApi.md#put_room_block_put) | **PUT** /putRoomBlock | putRoomBlock @@ -32,15 +33,15 @@ Deletes a room block * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -57,9 +58,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) room_block_id = 'room_block_id_example' # str | Room block ID property_id = 'property_id_example' # str | Property ID (optional) @@ -116,15 +117,15 @@ Returns a list of room types with availability considering the informed paramete * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -141,9 +142,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) start_date = '2013-10-20' # date | Check-In date. end_date = '2013-10-20' # date | Check-Out date. rooms = 1 # int | Number of rooms. (default to 1) @@ -224,15 +225,15 @@ Returns information about particular room in reservation by its subReservationID * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -249,9 +250,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation ID of the specific assigned room property_id = 'property_id_example' # str | Property ID (optional) @@ -308,15 +309,15 @@ Returns a list of all room blocks considering the informed parameters. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -333,9 +334,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) room_block_id = 'room_block_id_example' # str | Room block ID (optional) room_type_id = 'room_type_id_example' # str | Room type ID (optional) @@ -404,15 +405,15 @@ Returns a list of room types filtered by the selected parameters ### Group accou * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -429,9 +430,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 (optional) room_type_ids = 'room_type_ids_example' # str | Room Type ID list, If more than one, send as comma-separated, i.e. 37,345,89 (optional) start_date = '2013-10-20' # date | Check-in date. Required for the rates to be returned. (optional) @@ -510,15 +511,15 @@ Get applicable fees and tax to a booking. This is meant to be used on checkout t * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -535,9 +536,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) start_date = '2013-10-20' # date | Check-in date end_date = '2013-10-20' # date | Check-out date rooms_total = 3.4 # float | Total value of the rooms to be booked, with included taxes @@ -600,15 +601,15 @@ Returns a list of all rooms considering the informed parameters. If Check-in/out * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -625,9 +626,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) room_type_id = 'room_type_id_example' # str | Room type ID, comma-separated, i.e. 37,345,89 room_type_name_short = 'room_type_name_short_example' # str | Room Type (short-version) property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 (optional) @@ -696,15 +697,15 @@ Returns a list of unassigned rooms in the property. Call is alias of [getRooms]( * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -721,9 +722,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_ids = 'property_ids_example' # str | List of property IDs, comma-separated, i.e. 37,345,89 (optional) try: @@ -778,15 +779,15 @@ Assign/Reassign a room on a guest reservation * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -803,9 +804,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier (optional) @@ -874,16 +875,16 @@ Adds a room block to the selected property. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -900,15 +901,15 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) room_block_type = 'room_block_type_example' # str | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block (optional) room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_2.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) try: # postRoomBlock @@ -967,15 +968,15 @@ Check-in a room already assigned for a guest * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -992,9 +993,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier, allows for granular control over what room is being checked-in. If sent, roomID is ignored. (optional) @@ -1055,15 +1056,15 @@ Check-out a room already assigned for a guest. If all rooms are checked out, the * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -1080,9 +1081,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier, allows for granular control over what room is being checked out. If sent, roomID is ignored. (optional) @@ -1130,6 +1131,104 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **post_room_type_post** +> PostRoomTypeResponse post_room_type_post(property_id=property_id, room_type_name=room_type_name, room_type_name_short=room_type_name_short, room_type_description=room_type_description, max_guests=max_guests, adults_included=adults_included, children_included=children_included, rooms_available=rooms_available, is_private=is_private) + +postRoomType + +Create a new accommodation type + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) + property_id = 'property_id_example' # str | Property ID (optional) + room_type_name = 'room_type_name_example' # str | Room Type Name (optional) + room_type_name_short = 'room_type_name_short_example' # str | Room Type Short Name (optional) + room_type_description = 'room_type_description_example' # str | Room Type Description (optional) + max_guests = 56 # int | Max number of guests allowed in the room type (optional) + adults_included = 56 # int | Number of adults included on the basic room rate (optional) + children_included = 56 # int | Number of children included on the basic room rate (optional) + rooms_available = 56 # int | Number of rooms available, based on the parameters provided (optional) + is_private = True # bool | If room is private (true) or shared (false) (optional) + + try: + # postRoomType + api_response = api_instance.post_room_type_post(property_id=property_id, room_type_name=room_type_name, room_type_name_short=room_type_name_short, room_type_description=room_type_description, max_guests=max_guests, adults_included=adults_included, children_included=children_included, rooms_available=rooms_available, is_private=is_private) + print("The response of RoomApi->post_room_type_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomApi->post_room_type_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_id** | **str**| Property ID | [optional] + **room_type_name** | **str**| Room Type Name | [optional] + **room_type_name_short** | **str**| Room Type Short Name | [optional] + **room_type_description** | **str**| Room Type Description | [optional] + **max_guests** | **int**| Max number of guests allowed in the room type | [optional] + **adults_included** | **int**| Number of adults included on the basic room rate | [optional] + **children_included** | **int**| Number of children included on the basic room rate | [optional] + **rooms_available** | **int**| Number of rooms available, based on the parameters provided | [optional] + **is_private** | **bool**| If room is private (true) or shared (false) | [optional] + +### Return type + +[**PostRoomTypeResponse**](PostRoomTypeResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **put_room_block_put** > PutRoomBlockResponse put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) @@ -1143,16 +1242,16 @@ Updates a room block. * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -1169,15 +1268,15 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.RoomApi(api_client) + api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) room_block_id = 'room_block_id_example' # str | Room block ID (optional) room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_2.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) try: # putRoomBlock diff --git a/cloudbeds_pms_v1_3/docs/RoomsApi.md b/cloudbeds_pms_v1_3/docs/RoomsApi.md new file mode 100644 index 0000000..30f5959 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/RoomsApi.md @@ -0,0 +1,105 @@ +# cloudbeds_pms_v1_3.RoomsApi + +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_hotel_room_types_get**](RoomsApi.md#get_hotel_room_types_get) | **GET** /getHotelRoomTypes | getHotelRoomTypes + + +# **get_hotel_room_types_get** +> GetHotelRoomTypesResponse get_hotel_room_types_get(property_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, page_number=page_number, page_size=page_size) + +getHotelRoomTypes + +Returns a list of room types of a specific property, or a list of properties + +### Example + +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): + +```python +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse +from cloudbeds_pms_v1_3.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 +# See configuration.py for a list of all supported configuration parameters. +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' + +# Enter a context with an instance of the API client +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cloudbeds_pms_v1_3.RoomsApi(api_client) + property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 + start_date = '2013-10-20' # date | Check-In date. Required for rates to be returned. (optional) + end_date = '2013-10-20' # date | Check-Out date. Required for rates to be returned. (optional) + adults = 56 # int | Number of adults. Required for rates to be returned. (optional) + children = 56 # int | Number of children. Required for rates to be returned. (optional) + detailed_rates = False # bool | If detailed rates are expected (optional) (default to False) + page_number = 1 # int | Page number (optional) (default to 1) + page_size = 20 # int | Page size (optional) (default to 20) + + try: + # getHotelRoomTypes + api_response = api_instance.get_hotel_room_types_get(property_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, page_number=page_number, page_size=page_size) + print("The response of RoomsApi->get_hotel_room_types_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoomsApi->get_hotel_room_types_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **property_ids** | **str**| Property ID list, comma-separated, i.e. 37,345,89 | + **start_date** | **date**| Check-In date. Required for rates to be returned. | [optional] + **end_date** | **date**| Check-Out date. Required for rates to be returned. | [optional] + **adults** | **int**| Number of adults. Required for rates to be returned. | [optional] + **children** | **int**| Number of children. Required for rates to be returned. | [optional] + **detailed_rates** | **bool**| If detailed rates are expected | [optional] [default to False] + **page_number** | **int**| Page number | [optional] [default to 1] + **page_size** | **int**| Page size | [optional] [default to 20] + +### Return type + +[**GetHotelRoomTypesResponse**](GetHotelRoomTypesResponse.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | 200 Response | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md b/cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md similarity index 87% rename from cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md rename to cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md index d7bb451..d9f15f6 100644 --- a/cloudbeds_pms_v1_2/docs/TaxesAndFeesApi.md +++ b/cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.TaxesAndFeesApi +# cloudbeds_pms_v1_3.TaxesAndFeesApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -20,15 +20,15 @@ Returns the taxes and fees set for the property. Read the [Rate-Based tax (Dynam * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -45,9 +45,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.TaxesAndFeesApi(api_client) + api_instance = cloudbeds_pms_v1_3.TaxesAndFeesApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) include_deleted = False # bool | If the response should include deleted taxes and fees (optional) (default to False) include_expired = False # bool | If the response should include expired taxes and fees (optional) (default to False) diff --git a/cloudbeds_pms_v1_2/docs/UserApi.md b/cloudbeds_pms_v1_3/docs/UserApi.md similarity index 83% rename from cloudbeds_pms_v1_2/docs/UserApi.md rename to cloudbeds_pms_v1_3/docs/UserApi.md index 751ceff..e1ed2a8 100644 --- a/cloudbeds_pms_v1_2/docs/UserApi.md +++ b/cloudbeds_pms_v1_3/docs/UserApi.md @@ -1,6 +1,6 @@ -# cloudbeds_pms_v1_2.UserApi +# cloudbeds_pms_v1_3.UserApi -All URIs are relative to *https://api.cloudbeds.com/api/v1.2* +All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -20,15 +20,15 @@ Returns information on the properties' users ### Group account support * Api Key Authentication (api_key): ```python -import cloudbeds_pms_v1_2 -from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse -from cloudbeds_pms_v1_2.rest import ApiException +import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.2 +# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 # See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_2.Configuration( - host = "https://api.cloudbeds.com/api/v1.2" +configuration = cloudbeds_pms_v1_3.Configuration( + host = "https://api.cloudbeds.com/api/v1.3" ) # The client must configure the authentication and authorization parameters @@ -45,9 +45,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] # configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client -with cloudbeds_pms_v1_2.ApiClient(configuration) as api_client: +with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = cloudbeds_pms_v1_2.UserApi(api_client) + api_instance = cloudbeds_pms_v1_3.UserApi(api_client) property_ids = 'property_ids_example' # str | Property numeric identifiers (comma-separated, i.e. 37,345,89) (optional) try: diff --git a/cloudbeds_pms_v1_2/exceptions.py b/cloudbeds_pms_v1_3/exceptions.py similarity index 97% rename from cloudbeds_pms_v1_2/exceptions.py rename to cloudbeds_pms_v1_3/exceptions.py index 9f86f84..5ca213b 100644 --- a/cloudbeds_pms_v1_2/exceptions.py +++ b/cloudbeds_pms_v1_3/exceptions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py new file mode 100644 index 0000000..337f2eb --- /dev/null +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -0,0 +1,385 @@ +# coding: utf-8 + +# flake8: noqa +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +# import models into model package +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse +from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData +from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse +from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse +from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse +from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData +from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner +from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse +from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse +from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner +from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse +from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner +from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner +from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse +from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse +from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse +from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse +from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse +from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse +from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse diff --git a/cloudbeds_pms_v1_2/models/delete_adjustment_response.py b/cloudbeds_pms_v1_3/models/delete_adjustment_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/delete_adjustment_response.py rename to cloudbeds_pms_v1_3/models/delete_adjustment_response.py index d18da9e..5d2d6ad 100644 --- a/cloudbeds_pms_v1_2/models/delete_adjustment_response.py +++ b/cloudbeds_pms_v1_3/models/delete_adjustment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/delete_guest_note_response.py b/cloudbeds_pms_v1_3/models/delete_guest_note_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/delete_guest_note_response.py rename to cloudbeds_pms_v1_3/models/delete_guest_note_response.py index 11cdbad..a4bd7e8 100644 --- a/cloudbeds_pms_v1_2/models/delete_guest_note_response.py +++ b/cloudbeds_pms_v1_3/models/delete_guest_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py b/cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py new file mode 100644 index 0000000..585b972 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeleteItemFromReservationResponse(BaseModel): + """ + DeleteItemFromReservationResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeleteItemFromReservationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeleteItemFromReservationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/delete_reservation_note_response.py b/cloudbeds_pms_v1_3/models/delete_reservation_note_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/delete_reservation_note_response.py rename to cloudbeds_pms_v1_3/models/delete_reservation_note_response.py index 3c59fcb..87a5425 100644 --- a/cloudbeds_pms_v1_2/models/delete_reservation_note_response.py +++ b/cloudbeds_pms_v1_3/models/delete_reservation_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/delete_room_block_response.py b/cloudbeds_pms_v1_3/models/delete_room_block_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/delete_room_block_response.py rename to cloudbeds_pms_v1_3/models/delete_room_block_response.py index aebdd7a..c49f534 100644 --- a/cloudbeds_pms_v1_2/models/delete_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/delete_room_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/delete_webhook_response.py b/cloudbeds_pms_v1_3/models/delete_webhook_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/delete_webhook_response.py rename to cloudbeds_pms_v1_3/models/delete_webhook_response.py index 8d5f64f..5872082 100644 --- a/cloudbeds_pms_v1_2/models/delete_webhook_response.py +++ b/cloudbeds_pms_v1_3/models/delete_webhook_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_adjustment_response.py b/cloudbeds_pms_v1_3/models/get_adjustment_response.py new file mode 100644 index 0000000..04d8b56 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_adjustment_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentResponse(BaseModel): + """ + GetAdjustmentResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetAdjustmentResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetAdjustmentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_adjustment_response_data.py b/cloudbeds_pms_v1_3/models/get_adjustment_response_data.py new file mode 100644 index 0000000..ed5c1f3 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_adjustment_response_data.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentResponseData(BaseModel): + """ + Adjustment + """ # noqa: E501 + adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") + property_id: Optional[StrictStr] = Field(default=None, description="unique hotel identifier", alias="propertyID") + created: Optional[datetime] = Field(default=None, description="Adjustment created time") + room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") + reservation_identifier: Optional[StrictStr] = Field(default=None, description="Reservation Unique Identifier", alias="reservationIdentifier") + description: Optional[StrictStr] = Field(default=None, description="Adjustment description") + notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") + currency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment currency") + posted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment posted transaction") + type: Optional[StrictStr] = Field(default=None, description="Adjustment type") + void_id: Optional[StrictStr] = Field(default=None, description="Voided adjustment transaction unique identifier. Null if adjustment not voided", alias="voidID") + __properties: ClassVar[List[str]] = ["adjustmentID", "propertyID", "created", "roomID", "roomName", "reservationIdentifier", "description", "notes", "amount", "currency", "posted", "type", "voidID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adjustmentID": obj.get("adjustmentID"), + "propertyID": obj.get("propertyID"), + "created": obj.get("created"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "reservationIdentifier": obj.get("reservationIdentifier"), + "description": obj.get("description"), + "notes": obj.get("notes"), + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "posted": obj.get("posted"), + "type": obj.get("type"), + "voidID": obj.get("voidID") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_adjustments_response.py b/cloudbeds_pms_v1_3/models/get_adjustments_response.py new file mode 100644 index 0000000..41feea2 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_adjustments_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentsResponse(BaseModel): + """ + GetAdjustmentsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetAdjustmentsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetAdjustmentsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_adjustments_response_data.py b/cloudbeds_pms_v1_3/models/get_adjustments_response_data.py new file mode 100644 index 0000000..476be80 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_adjustments_response_data.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetAdjustmentsResponseData(BaseModel): + """ + Adjustments + """ # noqa: E501 + adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") + created: Optional[datetime] = Field(default=None, description="Adjustment created time") + room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") + description: Optional[StrictStr] = Field(default=None, description="Adjustment description") + notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") + type: Optional[StrictStr] = Field(default=None, description="Adjustment type") + __properties: ClassVar[List[str]] = ["adjustmentID", "created", "roomID", "roomName", "description", "notes", "amount", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAdjustmentsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adjustmentID": obj.get("adjustmentID"), + "created": obj.get("created"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "description": obj.get("description"), + "notes": obj.get("notes"), + "amount": obj.get("amount"), + "type": obj.get("type") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py rename to cloudbeds_pms_v1_3/models/get_allotment_blocks_response.py index e306c2c..32629e5 100644 --- a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py index 15ab989..d7329f3 100644 --- a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py index 7b094bd..6adfee3 100644 --- a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py rename to cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py index 1425e79..ed1c012 100644 --- a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py rename to cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py index dc7b572..eef2471 100644 --- a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py rename to cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py index 9ce9836..e02abd8 100644 --- a/cloudbeds_pms_v1_2/models/get_allotment_blocks_response_data_inner_auto_release_inner.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py b/cloudbeds_pms_v1_3/models/get_app_property_settings_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_app_property_settings_response.py rename to cloudbeds_pms_v1_3/models/get_app_property_settings_response.py index 91af0db..1bcc4d2 100644 --- a/cloudbeds_pms_v1_2/models/get_app_property_settings_response.py +++ b/cloudbeds_pms_v1_3/models/get_app_property_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py b/cloudbeds_pms_v1_3/models/get_app_property_settings_response_data.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py rename to cloudbeds_pms_v1_3/models/get_app_property_settings_response_data.py index f6a7fad..cf4b252 100644 --- a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_app_property_settings_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self diff --git a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py b/cloudbeds_pms_v1_3/models/get_app_property_settings_response_data_one_of.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py rename to cloudbeds_pms_v1_3/models/get_app_property_settings_response_data_one_of.py index a8d60aa..875776d 100644 --- a/cloudbeds_pms_v1_2/models/get_app_property_settings_response_data_one_of.py +++ b/cloudbeds_pms_v1_3/models/get_app_property_settings_response_data_one_of.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_app_settings_response.py b/cloudbeds_pms_v1_3/models/get_app_settings_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_app_settings_response.py rename to cloudbeds_pms_v1_3/models/get_app_settings_response.py index 186c8e7..d59a966 100644 --- a/cloudbeds_pms_v1_2/models/get_app_settings_response.py +++ b/cloudbeds_pms_v1_3/models/get_app_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_app_settings_response_data.py b/cloudbeds_pms_v1_3/models/get_app_settings_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_app_settings_response_data.py rename to cloudbeds_pms_v1_3/models/get_app_settings_response_data.py index 3eaef0f..d4f4793 100644 --- a/cloudbeds_pms_v1_2/models/get_app_settings_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_app_settings_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_app_state_response.py b/cloudbeds_pms_v1_3/models/get_app_state_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_app_state_response.py rename to cloudbeds_pms_v1_3/models/get_app_state_response.py index 3f853a9..183ebc6 100644 --- a/cloudbeds_pms_v1_2/models/get_app_state_response.py +++ b/cloudbeds_pms_v1_3/models/get_app_state_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_app_state_response_data.py b/cloudbeds_pms_v1_3/models/get_app_state_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_app_state_response_data.py rename to cloudbeds_pms_v1_3/models/get_app_state_response_data.py index e090d64..4dfc32e 100644 --- a/cloudbeds_pms_v1_2/models/get_app_state_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_app_state_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response.py new file mode 100644 index 0000000..84542ad --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponse(BaseModel): + """ + GetAsyncApiJobResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + has_next_page: Optional[StrictBool] = Field(default=None, description="Returns true if there is another page of results after this one", alias="hasNextPage") + next_page: Optional[StrictStr] = Field(default=None, description="The URL of the next page of results if there is one", alias="nextPage") + data: Optional[List[GetAsyncApiJobResponseDataInner]] = Field(default=None, description="Job details") + __properties: ClassVar[List[str]] = ["success", "hasNextPage", "nextPage", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if next_page (nullable) is None + # and model_fields_set contains the field + if self.next_page is None and "next_page" in self.model_fields_set: + _dict['nextPage'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "hasNextPage": obj.get("hasNextPage"), + "nextPage": obj.get("nextPage"), + "data": [GetAsyncApiJobResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py new file mode 100644 index 0000000..75147f6 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponseDataInner(BaseModel): + """ + GetAsyncApiJobResponseDataInner + """ # noqa: E501 + job_reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the rate:batch_job", alias="jobReferenceID") + date_created: Optional[date] = Field(default=None, description="Rate Job creation datetime", alias="dateCreated") + status: Optional[StrictStr] = Field(default=None, description="Status of the Rate Job. in_progress - job is processing. completed - job has completed successfully. error - there was an error with 1 or more updates requested in this job. Allowed values: in_progressgu, completed, error") + updates: Optional[List[GetAsyncApiJobResponseDataInnerUpdatesInner]] = Field(default=None, description="Array of actions produced from this job") + __properties: ClassVar[List[str]] = ["jobReferenceID", "dateCreated", "status", "updates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in updates (list) + _items = [] + if self.updates: + for _item_updates in self.updates: + if _item_updates: + _items.append(_item_updates.to_dict()) + _dict['updates'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobReferenceID": obj.get("jobReferenceID"), + "dateCreated": obj.get("dateCreated"), + "status": obj.get("status"), + "updates": [GetAsyncApiJobResponseDataInnerUpdatesInner.from_dict(_item) for _item in obj["updates"]] if obj.get("updates") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py new file mode 100644 index 0000000..3794ffc --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponseDataInnerUpdatesInner(BaseModel): + """ + GetAsyncApiJobResponseDataInnerUpdatesInner + """ # noqa: E501 + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID for which action was taken", alias="rateID") + action: Optional[StrictStr] = Field(default=None, description="Action taken for this interval as part of this job. in_progress - interval wait for it turn. updated - interval was updated. created - new interval was created with the new date range. error - there was an error when attempting this update. Allowed values: in_progress, updated, created, error") + start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Value of rate which was updated") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay for this rate", alias="maxLos") + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay for this rate", alias="minLos") + closed_to_arrival: Optional[StrictBool] = Field(default=None, description="If this rate is closed to arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictBool] = Field(default=None, description="If this rate is closed to departure", alias="closedToDeparture") + cut_off: Optional[StrictInt] = Field(default=None, description="Cutoff for this rate", alias="cutOff") + last_minute_booking: Optional[StrictInt] = Field(default=None, description="Last minute booking for this rate", alias="lastMinuteBooking") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID associated to the allotment block", alias="propertyID") + allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + allotment_block_status: Optional[StrictStr] = Field(default=None, description="Allotment block status", alias="allotmentBlockStatus") + allotment_block_name: Optional[StrictStr] = Field(default=None, description="Allotment block name", alias="allotmentBlockName") + allotment_block_id: Optional[StrictStr] = Field(default=None, description="Allotment block ID", alias="allotmentBlockId") + rate_type: Optional[StrictStr] = Field(default=None, description="Rate type for the allotment block", alias="rateType") + rate_plan_id: Optional[StrictStr] = Field(default=None, description="Rate plan ID if applicable", alias="ratePlanId") + allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") + group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") + groupcode: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block") + is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") + auto_release: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease] = Field(default=None, alias="autoRelease") + allotment_intervals: Optional[List[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") + message: Optional[StrictStr] = Field(default=None, description="Error message") + __properties: ClassVar[List[str]] = ["rateID", "action", "startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking", "propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupcode", "isAutoRelease", "autoRelease", "allotmentIntervals", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of auto_release + if self.auto_release: + _dict['autoRelease'] = self.auto_release.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in allotment_intervals (list) + _items = [] + if self.allotment_intervals: + for _item_allotment_intervals in self.allotment_intervals: + if _item_allotment_intervals: + _items.append(_item_allotment_intervals.to_dict()) + _dict['allotmentIntervals'] = _items + # set to None if max_los (nullable) is None + # and model_fields_set contains the field + if self.max_los is None and "max_los" in self.model_fields_set: + _dict['maxLos'] = None + + # set to None if min_los (nullable) is None + # and model_fields_set contains the field + if self.min_los is None and "min_los" in self.model_fields_set: + _dict['minLos'] = None + + # set to None if closed_to_arrival (nullable) is None + # and model_fields_set contains the field + if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: + _dict['closedToArrival'] = None + + # set to None if closed_to_departure (nullable) is None + # and model_fields_set contains the field + if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: + _dict['closedToDeparture'] = None + + # set to None if cut_off (nullable) is None + # and model_fields_set contains the field + if self.cut_off is None and "cut_off" in self.model_fields_set: + _dict['cutOff'] = None + + # set to None if last_minute_booking (nullable) is None + # and model_fields_set contains the field + if self.last_minute_booking is None and "last_minute_booking" in self.model_fields_set: + _dict['lastMinuteBooking'] = None + + # set to None if property_id (nullable) is None + # and model_fields_set contains the field + if self.property_id is None and "property_id" in self.model_fields_set: + _dict['propertyID'] = None + + # set to None if allotment_block_code (nullable) is None + # and model_fields_set contains the field + if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: + _dict['allotmentBlockCode'] = None + + # set to None if allotment_block_status (nullable) is None + # and model_fields_set contains the field + if self.allotment_block_status is None and "allotment_block_status" in self.model_fields_set: + _dict['allotmentBlockStatus'] = None + + # set to None if allotment_block_name (nullable) is None + # and model_fields_set contains the field + if self.allotment_block_name is None and "allotment_block_name" in self.model_fields_set: + _dict['allotmentBlockName'] = None + + # set to None if allotment_block_id (nullable) is None + # and model_fields_set contains the field + if self.allotment_block_id is None and "allotment_block_id" in self.model_fields_set: + _dict['allotmentBlockId'] = None + + # set to None if rate_type (nullable) is None + # and model_fields_set contains the field + if self.rate_type is None and "rate_type" in self.model_fields_set: + _dict['rateType'] = None + + # set to None if rate_plan_id (nullable) is None + # and model_fields_set contains the field + if self.rate_plan_id is None and "rate_plan_id" in self.model_fields_set: + _dict['ratePlanId'] = None + + # set to None if allotment_type (nullable) is None + # and model_fields_set contains the field + if self.allotment_type is None and "allotment_type" in self.model_fields_set: + _dict['allotmentType'] = None + + # set to None if group_id (nullable) is None + # and model_fields_set contains the field + if self.group_id is None and "group_id" in self.model_fields_set: + _dict['groupId'] = None + + # set to None if groupcode (nullable) is None + # and model_fields_set contains the field + if self.groupcode is None and "groupcode" in self.model_fields_set: + _dict['groupcode'] = None + + # set to None if is_auto_release (nullable) is None + # and model_fields_set contains the field + if self.is_auto_release is None and "is_auto_release" in self.model_fields_set: + _dict['isAutoRelease'] = None + + # set to None if auto_release (nullable) is None + # and model_fields_set contains the field + if self.auto_release is None and "auto_release" in self.model_fields_set: + _dict['autoRelease'] = None + + # set to None if allotment_intervals (nullable) is None + # and model_fields_set contains the field + if self.allotment_intervals is None and "allotment_intervals" in self.model_fields_set: + _dict['allotmentIntervals'] = None + + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rateID": obj.get("rateID"), + "action": obj.get("action"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rate": obj.get("rate"), + "maxLos": obj.get("maxLos"), + "minLos": obj.get("minLos"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture"), + "cutOff": obj.get("cutOff"), + "lastMinuteBooking": obj.get("lastMinuteBooking"), + "propertyID": obj.get("propertyID"), + "allotmentBlockCode": obj.get("allotmentBlockCode"), + "allotmentBlockStatus": obj.get("allotmentBlockStatus"), + "allotmentBlockName": obj.get("allotmentBlockName"), + "allotmentBlockId": obj.get("allotmentBlockId"), + "rateType": obj.get("rateType"), + "ratePlanId": obj.get("ratePlanId"), + "allotmentType": obj.get("allotmentType"), + "groupId": obj.get("groupId"), + "groupcode": obj.get("groupcode"), + "isAutoRelease": obj.get("isAutoRelease"), + "autoRelease": GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.from_dict(obj["autoRelease"]) if obj.get("autoRelease") is not None else None, + "allotmentIntervals": [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..f3eee5d --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner(BaseModel): + """ + GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") + start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") + availability: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability] = None + restrictions: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions] = None + __properties: ClassVar[List[str]] = ["roomTypeId", "startDate", "endDate", "availability", "restrictions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of availability + if self.availability: + _dict['availability'] = self.availability.to_dict() + # override the default output from pydantic by calling `to_dict()` of restrictions + if self.restrictions: + _dict['restrictions'] = self.restrictions.to_dict() + # set to None if room_type_id (nullable) is None + # and model_fields_set contains the field + if self.room_type_id is None and "room_type_id" in self.model_fields_set: + _dict['roomTypeId'] = None + + # set to None if start_date (nullable) is None + # and model_fields_set contains the field + if self.start_date is None and "start_date" in self.model_fields_set: + _dict['startDate'] = None + + # set to None if end_date (nullable) is None + # and model_fields_set contains the field + if self.end_date is None and "end_date" in self.model_fields_set: + _dict['endDate'] = None + + # set to None if availability (nullable) is None + # and model_fields_set contains the field + if self.availability is None and "availability" in self.model_fields_set: + _dict['availability'] = None + + # set to None if restrictions (nullable) is None + # and model_fields_set contains the field + if self.restrictions is None and "restrictions" in self.model_fields_set: + _dict['restrictions'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeId": obj.get("roomTypeId"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "availability": GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.from_dict(obj["availability"]) if obj.get("availability") is not None else None, + "restrictions": GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py new file mode 100644 index 0000000..be6af7c --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability(BaseModel): + """ + Interval availability data by day in interval + """ # noqa: E501 + var_date: Optional[date] = Field(default=None, description="Day within interval", alias="date") + block_remaining: Optional[StrictInt] = Field(default=None, description="Number of units remaining for the room type for this day", alias="blockRemaining") + block_allotted: Optional[StrictInt] = Field(default=None, description="Total number of units available for the room type for this day", alias="blockAllotted") + block_confirmed: Optional[StrictInt] = Field(default=None, description="Number of units booked for the room type for this day", alias="blockConfirmed") + rate: Optional[StrictStr] = Field(default=None, description="the price") + guest_pricing: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing] = Field(default=None, alias="guestPricing") + __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of guest_pricing + if self.guest_pricing: + _dict['guestPricing'] = self.guest_pricing.to_dict() + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + + # set to None if block_remaining (nullable) is None + # and model_fields_set contains the field + if self.block_remaining is None and "block_remaining" in self.model_fields_set: + _dict['blockRemaining'] = None + + # set to None if block_allotted (nullable) is None + # and model_fields_set contains the field + if self.block_allotted is None and "block_allotted" in self.model_fields_set: + _dict['blockAllotted'] = None + + # set to None if block_confirmed (nullable) is None + # and model_fields_set contains the field + if self.block_confirmed is None and "block_confirmed" in self.model_fields_set: + _dict['blockConfirmed'] = None + + # set to None if rate (nullable) is None + # and model_fields_set contains the field + if self.rate is None and "rate" in self.model_fields_set: + _dict['rate'] = None + + # set to None if guest_pricing (nullable) is None + # and model_fields_set contains the field + if self.guest_pricing is None and "guest_pricing" in self.model_fields_set: + _dict['guestPricing'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "blockRemaining": obj.get("blockRemaining"), + "blockAllotted": obj.get("blockAllotted"), + "blockConfirmed": obj.get("blockConfirmed"), + "rate": obj.get("rate"), + "guestPricing": GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py new file mode 100644 index 0000000..d510cfc --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing(BaseModel): + """ + Guest pricing data if applicable. Note: the number of results varies here based on the occupancy settings and custom guest pricing for the room type. + """ # noqa: E501 + adult1: Optional[StrictStr] = Field(default=None, description="Price for adult 1") + adult2: Optional[StrictStr] = Field(default=None, description="Price for adult 2") + adult3: Optional[StrictStr] = Field(default=None, description="Price for adult 3") + child1: Optional[StrictStr] = Field(default=None, description="Price for child 1") + child2: Optional[StrictStr] = Field(default=None, description="Price for child 2") + child3: Optional[StrictStr] = Field(default=None, description="Price for child 3") + __properties: ClassVar[List[str]] = ["adult1", "adult2", "adult3", "child1", "child2", "child3"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if adult1 (nullable) is None + # and model_fields_set contains the field + if self.adult1 is None and "adult1" in self.model_fields_set: + _dict['adult1'] = None + + # set to None if adult2 (nullable) is None + # and model_fields_set contains the field + if self.adult2 is None and "adult2" in self.model_fields_set: + _dict['adult2'] = None + + # set to None if adult3 (nullable) is None + # and model_fields_set contains the field + if self.adult3 is None and "adult3" in self.model_fields_set: + _dict['adult3'] = None + + # set to None if child1 (nullable) is None + # and model_fields_set contains the field + if self.child1 is None and "child1" in self.model_fields_set: + _dict['child1'] = None + + # set to None if child2 (nullable) is None + # and model_fields_set contains the field + if self.child2 is None and "child2" in self.model_fields_set: + _dict['child2'] = None + + # set to None if child3 (nullable) is None + # and model_fields_set contains the field + if self.child3 is None and "child3" in self.model_fields_set: + _dict['child3'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adult1": obj.get("adult1"), + "adult2": obj.get("adult2"), + "adult3": obj.get("adult3"), + "child1": obj.get("child1"), + "child2": obj.get("child2"), + "child3": obj.get("child3") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..8a6a449 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions(BaseModel): + """ + Interval restrictions if applicable + """ # noqa: E501 + min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") + max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") + cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should the guests be required to book", alias="cutOffDays") + last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="Hoe many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") + closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") + closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure", alias="closedToDeparture") + __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if min_los (nullable) is None + # and model_fields_set contains the field + if self.min_los is None and "min_los" in self.model_fields_set: + _dict['minLos'] = None + + # set to None if max_los (nullable) is None + # and model_fields_set contains the field + if self.max_los is None and "max_los" in self.model_fields_set: + _dict['maxLos'] = None + + # set to None if cut_off_days (nullable) is None + # and model_fields_set contains the field + if self.cut_off_days is None and "cut_off_days" in self.model_fields_set: + _dict['cutOffDays'] = None + + # set to None if last_minute_booking_days (nullable) is None + # and model_fields_set contains the field + if self.last_minute_booking_days is None and "last_minute_booking_days" in self.model_fields_set: + _dict['lastMinuteBookingDays'] = None + + # set to None if closed_to_arrival (nullable) is None + # and model_fields_set contains the field + if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: + _dict['closedToArrival'] = None + + # set to None if closed_to_departure (nullable) is None + # and model_fields_set contains the field + if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: + _dict['closedToDeparture'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minLos": obj.get("minLos"), + "maxLos": obj.get("maxLos"), + "cutOffDays": obj.get("cutOffDays"), + "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), + "closedToArrival": obj.get("closedToArrival"), + "closedToDeparture": obj.get("closedToDeparture") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py new file mode 100644 index 0000000..274bd9a --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease(BaseModel): + """ + auto-release data if applicable + """ # noqa: E501 + release_type: Optional[StrictStr] = Field(default=None, description="The type of auto-release", alias="releaseType") + days: Optional[StrictInt] = Field(default=None, description="The number of days prior to the end of the allotment block to begin releasing dates from the allotment block") + release_time: Optional[StrictStr] = Field(default=None, description="The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'...", alias="releaseTime") + __properties: ClassVar[List[str]] = ["releaseType", "days", "releaseTime"] + + @field_validator('release_type') + def release_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['all_dates', 'by_day', 'by_interval']): + raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if release_type (nullable) is None + # and model_fields_set contains the field + if self.release_type is None and "release_type" in self.model_fields_set: + _dict['releaseType'] = None + + # set to None if days (nullable) is None + # and model_fields_set contains the field + if self.days is None and "days" in self.model_fields_set: + _dict['days'] = None + + # set to None if release_time (nullable) is None + # and model_fields_set contains the field + if self.release_time is None and "release_time" in self.model_fields_set: + _dict['releaseTime'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "releaseType": obj.get("releaseType"), + "days": obj.get("days"), + "releaseTime": obj.get("releaseTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_available_room_types_response.py rename to cloudbeds_pms_v1_3/models/get_available_room_types_response.py index 9cbc951..b462d80 100644 --- a/cloudbeds_pms_v1_2/models/get_available_room_types_response.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner.py index 06bea52..1beceda 100644 --- a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py rename to cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py index 94ce05d..f4ab36e 100644 --- a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_currency_inner.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py index c470f5c..701ba03 100644 --- a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,9 +19,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py index 69356f1..8e0a195 100644 --- a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py rename to cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py index 6cda4c1..863f714 100644 --- a/cloudbeds_pms_v1_2/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response.py b/cloudbeds_pms_v1_3/models/get_currency_settings_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_currency_settings_response.py rename to cloudbeds_pms_v1_3/models/get_currency_settings_response.py index 6ad44d1..65981c6 100644 --- a/cloudbeds_pms_v1_2/models/get_currency_settings_response.py +++ b/cloudbeds_pms_v1_3/models/get_currency_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py rename to cloudbeds_pms_v1_3/models/get_currency_settings_response_data.py index b07bf7f..794888b 100644 --- a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data_format.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py rename to cloudbeds_pms_v1_3/models/get_currency_settings_response_data_format.py index 7e08ada..0db7afe 100644 --- a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_format.py +++ b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data_format.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py rename to cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates.py index 7bb948f..93ae00e 100644 --- a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates.py +++ b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates_fixed_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py rename to cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates_fixed_inner.py index cf31ea9..7cc2073 100644 --- a/cloudbeds_pms_v1_2/models/get_currency_settings_response_data_rates_fixed_inner.py +++ b/cloudbeds_pms_v1_3/models/get_currency_settings_response_data_rates_fixed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_custom_fields_response.py b/cloudbeds_pms_v1_3/models/get_custom_fields_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_custom_fields_response.py rename to cloudbeds_pms_v1_3/models/get_custom_fields_response.py index 07cc62e..2b197fb 100644 --- a/cloudbeds_pms_v1_2/models/get_custom_fields_response.py +++ b/cloudbeds_pms_v1_3/models/get_custom_fields_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py index c9b5f1c..d3559bc 100644 --- a/cloudbeds_pms_v1_2/models/get_custom_fields_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_dashboard_response.py b/cloudbeds_pms_v1_3/models/get_dashboard_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_dashboard_response.py rename to cloudbeds_pms_v1_3/models/get_dashboard_response.py index 27b5ac1..5d66f46 100644 --- a/cloudbeds_pms_v1_2/models/get_dashboard_response.py +++ b/cloudbeds_pms_v1_3/models/get_dashboard_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_dashboard_response_data.py b/cloudbeds_pms_v1_3/models/get_dashboard_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_dashboard_response_data.py rename to cloudbeds_pms_v1_3/models/get_dashboard_response_data.py index 5c8131b..17ae3bd 100644 --- a/cloudbeds_pms_v1_2/models/get_dashboard_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_dashboard_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_email_schedule_response.py b/cloudbeds_pms_v1_3/models/get_email_schedule_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_email_schedule_response.py rename to cloudbeds_pms_v1_3/models/get_email_schedule_response.py index b3004c1..0cd4dab 100644 --- a/cloudbeds_pms_v1_2/models/get_email_schedule_response.py +++ b/cloudbeds_pms_v1_3/models/get_email_schedule_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_email_schedule_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_email_schedule_response_data_inner.py index 9da6294..35214a3 100644 --- a/cloudbeds_pms_v1_2/models/get_email_schedule_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_email_schedule_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_email_templates_response.py b/cloudbeds_pms_v1_3/models/get_email_templates_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_email_templates_response.py rename to cloudbeds_pms_v1_3/models/get_email_templates_response.py index a1ffb2b..430c3dd 100644 --- a/cloudbeds_pms_v1_2/models/get_email_templates_response.py +++ b/cloudbeds_pms_v1_3/models/get_email_templates_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_email_templates_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_email_templates_response_data_inner.py index 5adc17b..dabdcef 100644 --- a/cloudbeds_pms_v1_2/models/get_email_templates_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_email_templates_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_files_response.py b/cloudbeds_pms_v1_3/models/get_files_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_files_response.py rename to cloudbeds_pms_v1_3/models/get_files_response.py index e0c9467..886f5af 100644 --- a/cloudbeds_pms_v1_2/models/get_files_response.py +++ b/cloudbeds_pms_v1_3/models/get_files_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_files_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_files_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_files_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_files_response_data_inner.py index d9d8b5e..ee7c209 100644 --- a/cloudbeds_pms_v1_2/models/get_files_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_files_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_group_notes_response.py b/cloudbeds_pms_v1_3/models/get_group_notes_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_group_notes_response.py rename to cloudbeds_pms_v1_3/models/get_group_notes_response.py index be25a4e..b16e991 100644 --- a/cloudbeds_pms_v1_2/models/get_group_notes_response.py +++ b/cloudbeds_pms_v1_3/models/get_group_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_group_notes_response_data.py b/cloudbeds_pms_v1_3/models/get_group_notes_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_group_notes_response_data.py rename to cloudbeds_pms_v1_3/models/get_group_notes_response_data.py index ab0b1de..be0105f 100644 --- a/cloudbeds_pms_v1_2/models/get_group_notes_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_group_notes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_groups_response.py b/cloudbeds_pms_v1_3/models/get_groups_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_groups_response.py rename to cloudbeds_pms_v1_3/models/get_groups_response.py index 6f0acb9..2ea34ce 100644 --- a/cloudbeds_pms_v1_2/models/get_groups_response.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py index 3ab0400..3c61d90 100644 --- a/cloudbeds_pms_v1_2/models/get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guest_list_response.py b/cloudbeds_pms_v1_3/models/get_guest_list_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_guest_list_response.py rename to cloudbeds_pms_v1_3/models/get_guest_list_response.py index 2dd6388..90e920d 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_list_response.py +++ b/cloudbeds_pms_v1_3/models/get_guest_list_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py similarity index 98% rename from cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py rename to cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py index a5270d1..9772cb9 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value.py +++ b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value_guest_notes_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py rename to cloudbeds_pms_v1_3/models/get_guest_list_response_data_value_guest_notes_inner.py index 774f175..85b83d1 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_list_response_data_value_guest_notes_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value_guest_notes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guest_notes_response.py b/cloudbeds_pms_v1_3/models/get_guest_notes_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_guest_notes_response.py rename to cloudbeds_pms_v1_3/models/get_guest_notes_response.py index 6ea314d..5c62896 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_notes_response.py +++ b/cloudbeds_pms_v1_3/models/get_guest_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guest_notes_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_guest_notes_response_data_inner.py index e9dd748..363bbc5 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_notes_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guest_notes_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guest_response.py b/cloudbeds_pms_v1_3/models/get_guest_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_guest_response.py rename to cloudbeds_pms_v1_3/models/get_guest_response.py index a60a33d..72c56ea 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_response.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data.py b/cloudbeds_pms_v1_3/models/get_guest_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_guest_response_data.py rename to cloudbeds_pms_v1_3/models/get_guest_response_data.py index ffea211..9efe3c4 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,10 +19,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate -from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py b/cloudbeds_pms_v1_3/models/get_guest_response_data_birth_date.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py rename to cloudbeds_pms_v1_3/models/get_guest_response_data_birth_date.py index 3616f28..aa64cb4 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_response_data_birth_date.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data_birth_date.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/get_guest_response_data_custom_fields_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py rename to cloudbeds_pms_v1_3/models/get_guest_response_data_custom_fields_inner.py index d0a7234..d4c07fc 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_response_data_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py b/cloudbeds_pms_v1_3/models/get_guest_response_data_document_expiration_date.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py rename to cloudbeds_pms_v1_3/models/get_guest_response_data_document_expiration_date.py index 41a5b4e..a05f47a 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_response_data_document_expiration_date.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data_document_expiration_date.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py b/cloudbeds_pms_v1_3/models/get_guest_response_data_document_issue_date.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py rename to cloudbeds_pms_v1_3/models/get_guest_response_data_document_issue_date.py index 1e8fe25..1ad8fee 100644 --- a/cloudbeds_pms_v1_2/models/get_guest_response_data_document_issue_date.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data_document_issue_date.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py b/cloudbeds_pms_v1_3/models/get_guests_by_filter_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py rename to cloudbeds_pms_v1_3/models/get_guests_by_filter_response.py index 86ca22a..f51d423 100644 --- a/cloudbeds_pms_v1_2/models/get_guests_by_filter_response.py +++ b/cloudbeds_pms_v1_3/models/get_guests_by_filter_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guests_by_filter_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_guests_by_filter_response_data_inner.py index c9185af..dd7dc20 100644 --- a/cloudbeds_pms_v1_2/models/get_guests_by_filter_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_by_filter_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_status_response.py b/cloudbeds_pms_v1_3/models/get_guests_by_status_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_guests_by_status_response.py rename to cloudbeds_pms_v1_3/models/get_guests_by_status_response.py index be4c174..b59bd58 100644 --- a/cloudbeds_pms_v1_2/models/get_guests_by_status_response.py +++ b/cloudbeds_pms_v1_3/models/get_guests_by_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py similarity index 98% rename from cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py index bf9a9c0..19889ce 100644 --- a/cloudbeds_pms_v1_2/models/get_guests_by_status_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guests_modified_response.py b/cloudbeds_pms_v1_3/models/get_guests_modified_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_guests_modified_response.py rename to cloudbeds_pms_v1_3/models/get_guests_modified_response.py index 4eed4a2..1a612b6 100644 --- a/cloudbeds_pms_v1_2/models/get_guests_modified_response.py +++ b/cloudbeds_pms_v1_3/models/get_guests_modified_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py similarity index 98% rename from cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py index dcb00b7..27b615d 100644 --- a/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner_custom_fields_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py rename to cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner_custom_fields_inner.py index 775c493..922a564 100644 --- a/cloudbeds_pms_v1_2/models/get_guests_modified_response_data_inner_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_hotel_details_response.py rename to cloudbeds_pms_v1_3/models/get_hotel_details_response.py index 3e7e819..e0dfa79 100644 --- a/cloudbeds_pms_v1_2/models/get_hotel_details_response.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py rename to cloudbeds_pms_v1_3/models/get_hotel_details_response_data.py index 852cfd7..0ff8ae9 100644 --- a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,10 +19,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_address.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py rename to cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_address.py index c9902bf..cdbc879 100644 --- a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_address.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_address.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py rename to cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py index 3cab567..fc3d15d 100644 --- a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_currency.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_image_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py rename to cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_image_inner.py index 989ac27..720d2bd 100644 --- a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_image_inner.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_image_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py rename to cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py index 281d7cd..e93cf88 100644 --- a/cloudbeds_pms_v1_2/models/get_hotel_details_response_data_property_policy.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py b/cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py new file mode 100644 index 0000000..3d5617f --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHotelRoomTypesResponse(BaseModel): + """ + GetHotelRoomTypesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned") + data: Optional[List[StrictStr]] = Field(default=None, description="Room Types details") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "count", "data", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHotelRoomTypesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHotelRoomTypesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "count": obj.get("count"), + "data": obj.get("data"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_hotels_response.py b/cloudbeds_pms_v1_3/models/get_hotels_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_hotels_response.py rename to cloudbeds_pms_v1_3/models/get_hotels_response.py index b9659d5..9a36823 100644 --- a/cloudbeds_pms_v1_2/models/get_hotels_response.py +++ b/cloudbeds_pms_v1_3/models/get_hotels_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_hotels_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_hotels_response_data_inner.py index 329a63a..6c57dfa 100644 --- a/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_hotels_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_3/models/get_hotels_response_data_inner_property_currency_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py rename to cloudbeds_pms_v1_3/models/get_hotels_response_data_inner_property_currency_inner.py index db27261..d1aa81a 100644 --- a/cloudbeds_pms_v1_2/models/get_hotels_response_data_inner_property_currency_inner.py +++ b/cloudbeds_pms_v1_3/models/get_hotels_response_data_inner_property_currency_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response.py new file mode 100644 index 0000000..8afdb34 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_house_account_details_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponse(BaseModel): + """ + GetHouseAccountDetailsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[GetHouseAccountDetailsResponseData] = None + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": GetHouseAccountDetailsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py new file mode 100644 index 0000000..3fa19e0 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponseData(BaseModel): + """ + Includes records list for House Account and summary info covering the date range specified + """ # noqa: E501 + total: Optional[List[GetHouseAccountDetailsResponseDataTotalInner]] = Field(default=None, description="Section with summary records info") + records: Optional[List[GetHouseAccountDetailsResponseDataRecordsInner]] = Field(default=None, description="Section with records list") + __properties: ClassVar[List[str]] = ["total", "records"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in total (list) + _items = [] + if self.total: + for _item_total in self.total: + if _item_total: + _items.append(_item_total.to_dict()) + _dict['total'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in records (list) + _items = [] + if self.records: + for _item_records in self.records: + if _item_records: + _items.append(_item_records.to_dict()) + _dict['records'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total": [GetHouseAccountDetailsResponseDataTotalInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, + "records": [GetHouseAccountDetailsResponseDataRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py new file mode 100644 index 0000000..dc8ece4 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponseDataRecordsInner(BaseModel): + """ + GetHouseAccountDetailsResponseDataRecordsInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction ID", alias="transactionID") + user_name: Optional[StrictStr] = Field(default=None, description="User name", alias="userName") + description: Optional[StrictStr] = Field(default=None, description="Record description") + notes: Optional[StrictStr] = Field(default=None, description="Record notes") + quantity: Optional[StrictStr] = Field(default=None, description="Quantity of items (for product type record)") + debit: Optional[StrictStr] = Field(default=None, description="Debit amount (non formatted)") + credit: Optional[StrictStr] = Field(default=None, description="Credit amount (non formatted)") + debit_formatter: Optional[StrictStr] = Field(default=None, description="Debit amount (formatted)", alias="debitFormatter") + credit_formatted: Optional[StrictStr] = Field(default=None, description="Credit amount (formatted)", alias="creditFormatted") + currency: Optional[StrictStr] = Field(default=None, description="Currency string") + transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction code", alias="transactionCode") + parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") + transaction_date: Optional[date] = Field(default=None, description="Transaction date", alias="transactionDate") + transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction date and time", alias="transactionDateTime") + __properties: ClassVar[List[str]] = ["propertyID", "transactionID", "userName", "description", "notes", "quantity", "debit", "credit", "debitFormatter", "creditFormatted", "currency", "transactionCode", "parentTransactionID", "transactionDate", "transactionDateTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "transactionID": obj.get("transactionID"), + "userName": obj.get("userName"), + "description": obj.get("description"), + "notes": obj.get("notes"), + "quantity": obj.get("quantity"), + "debit": obj.get("debit"), + "credit": obj.get("credit"), + "debitFormatter": obj.get("debitFormatter"), + "creditFormatted": obj.get("creditFormatted"), + "currency": obj.get("currency"), + "transactionCode": obj.get("transactionCode"), + "parentTransactionID": obj.get("parentTransactionID"), + "transactionDate": obj.get("transactionDate"), + "transactionDateTime": obj.get("transactionDateTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py new file mode 100644 index 0000000..ecf5f22 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetHouseAccountDetailsResponseDataTotalInner(BaseModel): + """ + GetHouseAccountDetailsResponseDataTotalInner + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, description="Total number of House Account records") + quantity: Optional[StrictStr] = Field(default=None, description="Total items quantity of product type records") + debit: Optional[StrictStr] = Field(default=None, description="Total debit (formatted)") + credit: Optional[StrictStr] = Field(default=None, description="Total credit (formatted)") + __properties: ClassVar[List[str]] = ["count", "quantity", "debit", "credit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "quantity": obj.get("quantity"), + "debit": obj.get("debit"), + "credit": obj.get("credit") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_house_account_list_response.py b/cloudbeds_pms_v1_3/models/get_house_account_list_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_house_account_list_response.py rename to cloudbeds_pms_v1_3/models/get_house_account_list_response.py index 8bc11eb..3c4bf88 100644 --- a/cloudbeds_pms_v1_2/models/get_house_account_list_response.py +++ b/cloudbeds_pms_v1_3/models/get_house_account_list_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py index 80552be..752fb86 100644 --- a/cloudbeds_pms_v1_2/models/get_house_account_list_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_housekeepers_response.py b/cloudbeds_pms_v1_3/models/get_housekeepers_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_housekeepers_response.py rename to cloudbeds_pms_v1_3/models/get_housekeepers_response.py index bd835fe..791faaa 100644 --- a/cloudbeds_pms_v1_2/models/get_housekeepers_response.py +++ b/cloudbeds_pms_v1_3/models/get_housekeepers_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_housekeepers_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_housekeepers_response_data_inner.py index ae24f93..7c4cd08 100644 --- a/cloudbeds_pms_v1_2/models/get_housekeepers_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_housekeepers_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py b/cloudbeds_pms_v1_3/models/get_housekeeping_status_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py rename to cloudbeds_pms_v1_3/models/get_housekeeping_status_response.py index 925636c..732134e 100644 --- a/cloudbeds_pms_v1_2/models/get_housekeeping_status_response.py +++ b/cloudbeds_pms_v1_3/models/get_housekeeping_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py index 35e12fb..ff8d0d8 100644 --- a/cloudbeds_pms_v1_2/models/get_housekeeping_status_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py b/cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py new file mode 100644 index 0000000..05f062b --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetImportDummyReservationsResponse(BaseModel): + """ + GetImportDummyReservationsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[StrictStr]] = Field(default=None, description="Reservations details") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetImportDummyReservationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetImportDummyReservationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": obj.get("data") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_import_tours_response.py b/cloudbeds_pms_v1_3/models/get_import_tours_response.py new file mode 100644 index 0000000..67d2c47 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_import_tours_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetImportToursResponse(BaseModel): + """ + GetImportToursResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[StrictStr]] = Field(default=None, description="Tours details") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetImportToursResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetImportToursResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": obj.get("data") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response.py b/cloudbeds_pms_v1_3/models/get_invoice_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_invoice_response.py rename to cloudbeds_pms_v1_3/models/get_invoice_response.py index f6ca68b..b1c3786 100644 --- a/cloudbeds_pms_v1_2/models/get_invoice_response.py +++ b/cloudbeds_pms_v1_3/models/get_invoice_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData +from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_invoice_response_data.py rename to cloudbeds_pms_v1_3/models/get_invoice_response_data.py index 6718323..e4f91fb 100644 --- a/cloudbeds_pms_v1_2/models/get_invoice_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_invoice_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,10 +19,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py rename to cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py index 35efadf..970ab7a 100644 --- a/cloudbeds_pms_v1_2/models/get_invoice_response_data_billed_to.py +++ b/cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py rename to cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py index c018e11..a08deac 100644 --- a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner.py +++ b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py rename to cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py index c5bc02a..a8abc2f 100644 --- a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_fees_inner.py +++ b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py rename to cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py index 71fe7be..0c5fe56 100644 --- a/cloudbeds_pms_v1_2/models/get_invoice_response_data_items_inner_taxes_inner.py +++ b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_item_categories_response.py b/cloudbeds_pms_v1_3/models/get_item_categories_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_item_categories_response.py rename to cloudbeds_pms_v1_3/models/get_item_categories_response.py index 69721ac..bc53f1b 100644 --- a/cloudbeds_pms_v1_2/models/get_item_categories_response.py +++ b/cloudbeds_pms_v1_3/models/get_item_categories_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_item_categories_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_item_categories_response_data_inner.py index 185ac30..fae9711 100644 --- a/cloudbeds_pms_v1_2/models/get_item_categories_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_item_categories_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_item_response.py b/cloudbeds_pms_v1_3/models/get_item_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_item_response.py rename to cloudbeds_pms_v1_3/models/get_item_response.py index 718b2d9..7b5c8ca 100644 --- a/cloudbeds_pms_v1_2/models/get_item_response.py +++ b/cloudbeds_pms_v1_3/models/get_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_item_response_data.py b/cloudbeds_pms_v1_3/models/get_item_response_data.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_item_response_data.py rename to cloudbeds_pms_v1_3/models/get_item_response_data.py index 0896828..36a4c99 100644 --- a/cloudbeds_pms_v1_2/models/get_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_item_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner -from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py b/cloudbeds_pms_v1_3/models/get_item_response_data_fees_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py rename to cloudbeds_pms_v1_3/models/get_item_response_data_fees_inner.py index 5068f9c..e0adb7f 100644 --- a/cloudbeds_pms_v1_2/models/get_item_response_data_fees_inner.py +++ b/cloudbeds_pms_v1_3/models/get_item_response_data_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_item_response_data_taxes_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py rename to cloudbeds_pms_v1_3/models/get_item_response_data_taxes_inner.py index e38dd23..1d726ea 100644 --- a/cloudbeds_pms_v1_2/models/get_item_response_data_taxes_inner.py +++ b/cloudbeds_pms_v1_3/models/get_item_response_data_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_items_response.py b/cloudbeds_pms_v1_3/models/get_items_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_items_response.py rename to cloudbeds_pms_v1_3/models/get_items_response.py index ef15540..d5da366 100644 --- a/cloudbeds_pms_v1_2/models/get_items_response.py +++ b/cloudbeds_pms_v1_3/models/get_items_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_items_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_items_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_items_response_data_inner.py index fbe5b43..6c91ef5 100644 --- a/cloudbeds_pms_v1_2/models/get_items_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner -from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py b/cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py rename to cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response.py index 10a5836..3bde412 100644 --- a/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response.py +++ b/cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response_data_inner.py index 47e38f0..e559463 100644 --- a/cloudbeds_pms_v1_2/models/get_list_allotment_block_notes_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_list_allotment_block_notes_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_metadata_response.py b/cloudbeds_pms_v1_3/models/get_metadata_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_metadata_response.py rename to cloudbeds_pms_v1_3/models/get_metadata_response.py index d281845..91d06e2 100644 --- a/cloudbeds_pms_v1_2/models/get_metadata_response.py +++ b/cloudbeds_pms_v1_3/models/get_metadata_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_metadata_response_data.py b/cloudbeds_pms_v1_3/models/get_metadata_response_data.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_metadata_response_data.py rename to cloudbeds_pms_v1_3/models/get_metadata_response_data.py index 40728ad..34d888a 100644 --- a/cloudbeds_pms_v1_2/models/get_metadata_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_metadata_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py b/cloudbeds_pms_v1_3/models/get_metadata_response_data_api.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py rename to cloudbeds_pms_v1_3/models/get_metadata_response_data_api.py index de5e491..585628d 100644 --- a/cloudbeds_pms_v1_2/models/get_metadata_response_data_api.py +++ b/cloudbeds_pms_v1_3/models/get_metadata_response_data_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_packages_response.py b/cloudbeds_pms_v1_3/models/get_packages_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_packages_response.py rename to cloudbeds_pms_v1_3/models/get_packages_response.py index 5ca0814..1ed79f5 100644 --- a/cloudbeds_pms_v1_2/models/get_packages_response.py +++ b/cloudbeds_pms_v1_3/models/get_packages_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_packages_response_data.py b/cloudbeds_pms_v1_3/models/get_packages_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_packages_response_data.py rename to cloudbeds_pms_v1_3/models/get_packages_response_data.py index 48c0b3b..6b11130 100644 --- a/cloudbeds_pms_v1_2/models/get_packages_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_packages_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_payment_methods_response.py rename to cloudbeds_pms_v1_3/models/get_payment_methods_response.py index fdca407..9f743f4 100644 --- a/cloudbeds_pms_v1_2/models/get_payment_methods_response.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py rename to cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py index a8eb65b..d004484 100644 --- a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py rename to cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py index d0e8174..e909073 100644 --- a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_gateway_inner.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py rename to cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py index 48a3f25..d1f497f 100644 --- a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner_card_types_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py rename to cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner_card_types_inner.py index a9e9046..da2b5ed 100644 --- a/cloudbeds_pms_v1_2/models/get_payment_methods_response_data_methods_inner_card_types_inner.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner_card_types_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py b/cloudbeds_pms_v1_3/models/get_payments_capabilities_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py rename to cloudbeds_pms_v1_3/models/get_payments_capabilities_response.py index f8f1e43..8742c45 100644 --- a/cloudbeds_pms_v1_2/models/get_payments_capabilities_response.py +++ b/cloudbeds_pms_v1_3/models/get_payments_capabilities_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_payments_capabilities_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_payments_capabilities_response_data_inner.py index 53a5490..8b3dfbb 100644 --- a/cloudbeds_pms_v1_2/models/get_payments_capabilities_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_payments_capabilities_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_payments_response.py b/cloudbeds_pms_v1_3/models/get_payments_response.py new file mode 100644 index 0000000..d67b04e --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_payments_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsResponse(BaseModel): + """ + GetPaymentsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetPaymentsResponseDataInner]] = Field(default=None, description="Transaction list") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination") + total: Optional[StrictInt] = Field(default=None, description="Total number of results") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetPaymentsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py new file mode 100644 index 0000000..f619d3d --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsResponseDataInner(BaseModel): + """ + GetPaymentsResponseDataInner + """ # noqa: E501 + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + payment_id: Optional[StrictStr] = Field(default=None, description="Payment ID", alias="paymentID") + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction DateTime", alias="transactionDateTime") + transaction_date_time_utc: Optional[datetime] = Field(default=None, description="Transaction DateTime on UTC timezone", alias="transactionDateTimeUTC") + user_id: Optional[StrictStr] = Field(default=None, description="User ID that generated payment", alias="userID") + user_name: Optional[StrictStr] = Field(default=None, description="User name that generated payment", alias="userName") + room_id: Optional[StrictStr] = Field(default=None, description="ID of room. Only available when reservationID is sent.", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Name/Number of room. Only available when reservationID is sent.", alias="roomName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID. Only available when reservationID or guestID is sent.", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name. Only available when reservationID or guestID is sent.", alias="guestName") + guest_check_in: Optional[date] = Field(default=None, description="Guest Check-In date. Only available when reservationID is sent.", alias="guestCheckIn") + guest_check_out: Optional[date] = Field(default=None, description="Guest Check-Out date. Only available when reservationID is sent.", alias="guestCheckOut") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID. Only available when reservationID is sent.", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub reservation ID. Only available when reservationID is sent.", alias="subReservationID") + reservation_status: Optional[StrictStr] = Field(default=None, description="Current reservation status. Only available when reservationID is sent.", alias="reservationStatus") + house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID, Only available when houseAccountID is sent.", alias="houseAccountID") + house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name, Only available when houseAccountID is sent.", alias="houseAccountName") + description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") + payment_method: Optional[StrictStr] = Field(default=None, description="Payment Method of the transaction", alias="paymentMethod") + quantity: Optional[StrictInt] = None + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") + currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") + is_posted: Optional[StrictBool] = Field(default=None, alias="isPosted") + is_voided: Optional[StrictBool] = Field(default=None, alias="isVoided") + is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") + state: Optional[StrictStr] = None + is_allocated: Optional[StrictBool] = Field(default=None, description="only if includePaymentAllocation=true", alias="isAllocated") + total_allocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated payment", alias="totalAllocated") + total_unallocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of unallocated payment", alias="totalUnallocated") + payment_allocation: Optional[List[GetPaymentsResponseDataInnerPaymentAllocationInner]] = Field(default=None, description="²", alias="paymentAllocation") + __properties: ClassVar[List[str]] = ["transactionID", "paymentID", "propertyID", "transactionDateTime", "transactionDateTimeUTC", "userID", "userName", "roomID", "roomName", "guestID", "guestName", "guestCheckIn", "guestCheckOut", "reservationID", "subReservationID", "reservationStatus", "houseAccountID", "houseAccountName", "description", "paymentMethod", "quantity", "amount", "currency", "isPosted", "isVoided", "isDeleted", "state", "isAllocated", "totalAllocated", "totalUnallocated", "paymentAllocation"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in payment_allocation (list) + _items = [] + if self.payment_allocation: + for _item_payment_allocation in self.payment_allocation: + if _item_payment_allocation: + _items.append(_item_payment_allocation.to_dict()) + _dict['paymentAllocation'] = _items + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if guest_id (nullable) is None + # and model_fields_set contains the field + if self.guest_id is None and "guest_id" in self.model_fields_set: + _dict['guestID'] = None + + # set to None if guest_name (nullable) is None + # and model_fields_set contains the field + if self.guest_name is None and "guest_name" in self.model_fields_set: + _dict['guestName'] = None + + # set to None if guest_check_in (nullable) is None + # and model_fields_set contains the field + if self.guest_check_in is None and "guest_check_in" in self.model_fields_set: + _dict['guestCheckIn'] = None + + # set to None if guest_check_out (nullable) is None + # and model_fields_set contains the field + if self.guest_check_out is None and "guest_check_out" in self.model_fields_set: + _dict['guestCheckOut'] = None + + # set to None if reservation_id (nullable) is None + # and model_fields_set contains the field + if self.reservation_id is None and "reservation_id" in self.model_fields_set: + _dict['reservationID'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if reservation_status (nullable) is None + # and model_fields_set contains the field + if self.reservation_status is None and "reservation_status" in self.model_fields_set: + _dict['reservationStatus'] = None + + # set to None if house_account_id (nullable) is None + # and model_fields_set contains the field + if self.house_account_id is None and "house_account_id" in self.model_fields_set: + _dict['houseAccountID'] = None + + # set to None if house_account_name (nullable) is None + # and model_fields_set contains the field + if self.house_account_name is None and "house_account_name" in self.model_fields_set: + _dict['houseAccountName'] = None + + # set to None if is_allocated (nullable) is None + # and model_fields_set contains the field + if self.is_allocated is None and "is_allocated" in self.model_fields_set: + _dict['isAllocated'] = None + + # set to None if total_allocated (nullable) is None + # and model_fields_set contains the field + if self.total_allocated is None and "total_allocated" in self.model_fields_set: + _dict['totalAllocated'] = None + + # set to None if total_unallocated (nullable) is None + # and model_fields_set contains the field + if self.total_unallocated is None and "total_unallocated" in self.model_fields_set: + _dict['totalUnallocated'] = None + + # set to None if payment_allocation (nullable) is None + # and model_fields_set contains the field + if self.payment_allocation is None and "payment_allocation" in self.model_fields_set: + _dict['paymentAllocation'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactionID": obj.get("transactionID"), + "paymentID": obj.get("paymentID"), + "propertyID": obj.get("propertyID"), + "transactionDateTime": obj.get("transactionDateTime"), + "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), + "userID": obj.get("userID"), + "userName": obj.get("userName"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "guestCheckIn": obj.get("guestCheckIn"), + "guestCheckOut": obj.get("guestCheckOut"), + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "reservationStatus": obj.get("reservationStatus"), + "houseAccountID": obj.get("houseAccountID"), + "houseAccountName": obj.get("houseAccountName"), + "description": obj.get("description"), + "paymentMethod": obj.get("paymentMethod"), + "quantity": obj.get("quantity"), + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "isPosted": obj.get("isPosted"), + "isVoided": obj.get("isVoided"), + "isDeleted": obj.get("isDeleted"), + "state": obj.get("state"), + "isAllocated": obj.get("isAllocated"), + "totalAllocated": obj.get("totalAllocated"), + "totalUnallocated": obj.get("totalUnallocated"), + "paymentAllocation": [GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(_item) for _item in obj["paymentAllocation"]] if obj.get("paymentAllocation") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py new file mode 100644 index 0000000..d452f91 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetPaymentsResponseDataInnerPaymentAllocationInner(BaseModel): + """ + GetPaymentsResponseDataInnerPaymentAllocationInner + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="² Type of item described in allocation") + reference: Optional[StrictStr] = Field(default=None, description="² Reference of item described in allocation") + name: Optional[StrictStr] = Field(default=None, description="² Name of item described in allocation") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated of payment total") + taxes: Optional[List[StrictStr]] = Field(default=None, description="² Taxes of allocated payment. Values are an array numeric of taxes IDs") + fees: Optional[List[StrictStr]] = Field(default=None, description="² Fees of allocated payment. Values are an array numeric of fees IDs") + __properties: ClassVar[List[str]] = ["type", "reference", "name", "amount", "taxes", "fees"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + + # set to None if reference (nullable) is None + # and model_fields_set contains the field + if self.reference is None and "reference" in self.model_fields_set: + _dict['reference'] = None + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if amount (nullable) is None + # and model_fields_set contains the field + if self.amount is None and "amount" in self.model_fields_set: + _dict['amount'] = None + + # set to None if taxes (nullable) is None + # and model_fields_set contains the field + if self.taxes is None and "taxes" in self.model_fields_set: + _dict['taxes'] = None + + # set to None if fees (nullable) is None + # and model_fields_set contains the field + if self.fees is None and "fees" in self.model_fields_set: + _dict['fees'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "reference": obj.get("reference"), + "name": obj.get("name"), + "amount": obj.get("amount"), + "taxes": obj.get("taxes"), + "fees": obj.get("fees") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_pending_transactions_response.py b/cloudbeds_pms_v1_3/models/get_pending_transactions_response.py new file mode 100644 index 0000000..4e454ab --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_pending_transactions_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetPendingTransactionsResponse(BaseModel): + """ + GetPendingTransactionsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetPendingTransactionsResponseDataInner]] = Field(default=None, description="Transaction list covering the date range specified") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination and filter parameters") + total: Optional[StrictInt] = Field(default=None, description="Total count of results, based on filter parameters") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPendingTransactionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPendingTransactionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetPendingTransactionsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py new file mode 100644 index 0000000..f71a044 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetPendingTransactionsResponseDataInner(BaseModel): + """ + GetPendingTransactionsResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID", alias="subReservationID") + house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID", alias="houseAccountID") + house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name", alias="houseAccountName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + property_name: Optional[StrictStr] = Field(default=None, description="Property Name", alias="propertyName") + transaction_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored", alias="transactionDateTime") + transaction_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored, in UTC timezone", alias="transactionDateTimeUTC") + transaction_modified_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified", alias="transactionModifiedDateTime") + transaction_modified_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified, in UTC timezone", alias="transactionModifiedDateTimeUTC") + guest_check_in: Optional[date] = Field(default=None, description="Reservation Check-in date", alias="guestCheckIn") + guest_check_out: Optional[date] = Field(default=None, description="Reservation Check-out date", alias="guestCheckOut") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type", alias="roomTypeName") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room.", alias="roomName") + guest_name: Optional[StrictStr] = Field(default=None, description="Name of the first guest of the reservation", alias="guestName") + description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") + category: Optional[StrictStr] = Field(default=None, description="Category of the transaction") + transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction identifier that can be used, or left blank", alias="transactionCode") + notes: Optional[StrictStr] = Field(default=None, description="If any special information needs to be added to the transaction, it will be in this field") + quantity: Optional[StrictInt] = None + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") + currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") + user_name: Optional[StrictStr] = Field(default=None, description="User responsible for creating the transaction", alias="userName") + transaction_type: Optional[StrictStr] = Field(default=None, description="Consolidated transaction type", alias="transactionType") + transaction_category: Optional[StrictStr] = Field(default=None, description="Transaction category", alias="transactionCategory") + item_category_name: Optional[StrictStr] = Field(default=None, description="Item category name", alias="itemCategoryName") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") + card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") + is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted"] + + @field_validator('transaction_type') + def transaction_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['debit', 'credit']): + raise ValueError("must be one of enum values ('debit', 'credit')") + return value + + @field_validator('transaction_category') + def transaction_category_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void']): + raise ValueError("must be one of enum values ('adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPendingTransactionsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if house_account_id (nullable) is None + # and model_fields_set contains the field + if self.house_account_id is None and "house_account_id" in self.model_fields_set: + _dict['houseAccountID'] = None + + # set to None if house_account_name (nullable) is None + # and model_fields_set contains the field + if self.house_account_name is None and "house_account_name" in self.model_fields_set: + _dict['houseAccountName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPendingTransactionsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "houseAccountID": obj.get("houseAccountID"), + "houseAccountName": obj.get("houseAccountName"), + "guestID": obj.get("guestID"), + "propertyName": obj.get("propertyName"), + "transactionDateTime": obj.get("transactionDateTime"), + "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), + "transactionModifiedDateTime": obj.get("transactionModifiedDateTime"), + "transactionModifiedDateTimeUTC": obj.get("transactionModifiedDateTimeUTC"), + "guestCheckIn": obj.get("guestCheckIn"), + "guestCheckOut": obj.get("guestCheckOut"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomName": obj.get("roomName"), + "guestName": obj.get("guestName"), + "description": obj.get("description"), + "category": obj.get("category"), + "transactionCode": obj.get("transactionCode"), + "notes": obj.get("notes"), + "quantity": obj.get("quantity"), + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "userName": obj.get("userName"), + "transactionType": obj.get("transactionType"), + "transactionCategory": obj.get("transactionCategory"), + "itemCategoryName": obj.get("itemCategoryName"), + "transactionID": obj.get("transactionID"), + "parentTransactionID": obj.get("parentTransactionID"), + "cardType": obj.get("cardType"), + "isDeleted": obj.get("isDeleted") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_rate_jobs_response.py b/cloudbeds_pms_v1_3/models/get_rate_jobs_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rate_jobs_response.py rename to cloudbeds_pms_v1_3/models/get_rate_jobs_response.py index 45bc19a..fb99331 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_jobs_response.py +++ b/cloudbeds_pms_v1_3/models/get_rate_jobs_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner.py index ded00ff..f11675f 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner_updates_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py rename to cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner_updates_inner.py index 35edd0b..fe232d5 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_jobs_response_data_inner_updates_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner_updates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response.py b/cloudbeds_pms_v1_3/models/get_rate_plans_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rate_plans_response.py rename to cloudbeds_pms_v1_3/models/get_rate_plans_response.py index 12cce05..b2ae46c 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_plans_response.py +++ b/cloudbeds_pms_v1_3/models/get_rate_plans_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py index e31242a..8762bff 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_add_ons_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py rename to cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_add_ons_inner.py index 62d0430..2e11127 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_add_ons_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_add_ons_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py rename to cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py index 47b4ef1..e0a8d59 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_room_rate_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_rate_response.py b/cloudbeds_pms_v1_3/models/get_rate_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_rate_response.py rename to cloudbeds_pms_v1_3/models/get_rate_response.py index 68b8ac2..6cac743 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_response.py +++ b/cloudbeds_pms_v1_3/models/get_rate_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rate_response_data.py b/cloudbeds_pms_v1_3/models/get_rate_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_rate_response_data.py rename to cloudbeds_pms_v1_3/models/get_rate_response_data.py index a4eec59..cc5fd4d 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_rate_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py b/cloudbeds_pms_v1_3/models/get_rate_response_data_room_rate_detailed_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py rename to cloudbeds_pms_v1_3/models/get_rate_response_data_room_rate_detailed_inner.py index 94b68b0..661defd 100644 --- a/cloudbeds_pms_v1_2/models/get_rate_response_data_room_rate_detailed_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_response_data_room_rate_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py b/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py new file mode 100644 index 0000000..5421e8f --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationArrivalsResponse(BaseModel): + """ + GetReservationArrivalsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationArrivalsResponseDataInner]] = Field(default=None, description="Details for the arrivals scheduled for today") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationArrivalsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationArrivalsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationArrivalsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py new file mode 100644 index 0000000..f9c5434 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationArrivalsResponseDataInner(BaseModel): + """ + GetReservationArrivalsResponseDataInner + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name", alias="guestName") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID where the guest is assigned", alias="roomID") + balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance owed at the time") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier, used for all query operations", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Unique Room-Reservation identifier", alias="subReservationID") + estimated_arrival_time: Optional[StrictStr] = Field(default=None, description="Estimated arrival time, 24-hour format.", alias="estimatedArrivalTime") + __properties: ClassVar[List[str]] = ["guestID", "guestName", "roomID", "balance", "reservationID", "subReservationID", "estimatedArrivalTime"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationArrivalsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if estimated_arrival_time (nullable) is None + # and model_fields_set contains the field + if self.estimated_arrival_time is None and "estimated_arrival_time" in self.model_fields_set: + _dict['estimatedArrivalTime'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationArrivalsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "roomID": obj.get("roomID"), + "balance": obj.get("balance"), + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "estimatedArrivalTime": obj.get("estimatedArrivalTime") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py b/cloudbeds_pms_v1_3/models/get_reservation_assignments_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py rename to cloudbeds_pms_v1_3/models/get_reservation_assignments_response.py index 3f49a43..0ebfb43 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_assignments_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner.py index 2f656f8..65776bd 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner_assigned_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner_assigned_inner.py index 197babf..56f2385 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_assignments_response_data_inner_assigned_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner_assigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_reservation_departures_response.py b/cloudbeds_pms_v1_3/models/get_reservation_departures_response.py new file mode 100644 index 0000000..1ca5977 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_departures_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationDeparturesResponse(BaseModel): + """ + GetReservationDeparturesResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationDeparturesResponseDataInner]] = Field(default=None, description="Details for the arrivals scheduled for today") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationDeparturesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationDeparturesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationDeparturesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py new file mode 100644 index 0000000..c86c8d4 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationDeparturesResponseDataInner(BaseModel): + """ + GetReservationDeparturesResponseDataInner + """ # noqa: E501 + guest_name: Optional[StrictStr] = Field(default=None, description="Main Guest Name", alias="guestName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID, can be used to get the corresponding guest details from \"reservationDetails\".", alias="guestID") + balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance owed at the time") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier, used for all query operations", alias="reservationID") + reservation_details: Optional[List[Dict[str, Any]]] = Field(default=None, description="Reservation details, please check response from \"getReservation\" method", alias="reservationDetails") + __properties: ClassVar[List[str]] = ["guestName", "guestID", "balance", "reservationID", "reservationDetails"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationDeparturesResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationDeparturesResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestName": obj.get("guestName"), + "guestID": obj.get("guestID"), + "balance": obj.get("balance"), + "reservationID": obj.get("reservationID"), + "reservationDetails": obj.get("reservationDetails") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py b/cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py new file mode 100644 index 0000000..49f5736 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInHouseResponse(BaseModel): + """ + GetReservationInHouseResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetReservationInHouseResponseDataInner]] = Field(default=None, description="Details for the arrivals scheduled for today") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInHouseResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInHouseResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetReservationInHouseResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py new file mode 100644 index 0000000..a653b0a --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationInHouseResponseDataInner(BaseModel): + """ + GetReservationInHouseResponseDataInner + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="Guest identifier", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name", alias="guestName") + main_guest_id: Optional[StrictStr] = Field(default=None, description="Guest identifier who made reservation", alias="mainGuestID") + main_guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name who made reservation", alias="mainGuestName") + balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance owed at the time") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier, used for all query operations", alias="reservationID") + room_check_out: Optional[date] = Field(default=None, description="Check-out date for the room", alias="roomCheckOut") + reservation_custom_fields: Optional[List[Dict[str, Any]]] = Field(default=None, description="Reservation Custom Fields, if existent", alias="reservationCustomFields") + room_id: Optional[StrictStr] = Field(default=None, description="¹ Room identifier", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="¹ Room name", alias="roomName") + guest_first_name: Optional[StrictStr] = Field(default=None, description="Guest's First Name", alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, description="Guest's Last Name", alias="guestLastName") + guest_phone: Optional[StrictStr] = Field(default=None, description="Guest's Phone", alias="guestPhone") + guest_address1: Optional[StrictStr] = Field(default=None, description="Guest's Address (line 1)", alias="guestAddress1") + guest_address2: Optional[StrictStr] = Field(default=None, description="Guest's Address (line 2)", alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, description="Guest's Address City", alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, description="Guest's Address State", alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, description="Guest's Address Country", alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, description="Guest's Address Zip code", alias="guestZip") + guest_birth_date: Optional[date] = Field(default=None, description="Guest's BirthDate", alias="guestBirthDate") + guest_document_type: Optional[StrictStr] = Field(default=None, description="Guest's Document Type", alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, description="Guest's Document Number", alias="guestDocumentNumber") + guest_document_issue_date: Optional[date] = Field(default=None, description="Guest's Document Issue Date", alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, description="Guest's Document Issuing Country", alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[date] = Field(default=None, description="Guest's Document Expiration Date", alias="guestDocumentExpirationDate") + guest_custom_fields: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest's Custom Fields, if any", alias="guestCustomFields") + __properties: ClassVar[List[str]] = ["guestID", "guestName", "mainGuestID", "mainGuestName", "balance", "reservationID", "roomCheckOut", "reservationCustomFields", "roomID", "roomName", "guestFirstName", "guestLastName", "guestPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "guestCustomFields"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationInHouseResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if guest_first_name (nullable) is None + # and model_fields_set contains the field + if self.guest_first_name is None and "guest_first_name" in self.model_fields_set: + _dict['guestFirstName'] = None + + # set to None if guest_last_name (nullable) is None + # and model_fields_set contains the field + if self.guest_last_name is None and "guest_last_name" in self.model_fields_set: + _dict['guestLastName'] = None + + # set to None if guest_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_phone is None and "guest_phone" in self.model_fields_set: + _dict['guestPhone'] = None + + # set to None if guest_address1 (nullable) is None + # and model_fields_set contains the field + if self.guest_address1 is None and "guest_address1" in self.model_fields_set: + _dict['guestAddress1'] = None + + # set to None if guest_address2 (nullable) is None + # and model_fields_set contains the field + if self.guest_address2 is None and "guest_address2" in self.model_fields_set: + _dict['guestAddress2'] = None + + # set to None if guest_city (nullable) is None + # and model_fields_set contains the field + if self.guest_city is None and "guest_city" in self.model_fields_set: + _dict['guestCity'] = None + + # set to None if guest_state (nullable) is None + # and model_fields_set contains the field + if self.guest_state is None and "guest_state" in self.model_fields_set: + _dict['guestState'] = None + + # set to None if guest_country (nullable) is None + # and model_fields_set contains the field + if self.guest_country is None and "guest_country" in self.model_fields_set: + _dict['guestCountry'] = None + + # set to None if guest_zip (nullable) is None + # and model_fields_set contains the field + if self.guest_zip is None and "guest_zip" in self.model_fields_set: + _dict['guestZip'] = None + + # set to None if guest_birth_date (nullable) is None + # and model_fields_set contains the field + if self.guest_birth_date is None and "guest_birth_date" in self.model_fields_set: + _dict['guestBirthDate'] = None + + # set to None if guest_document_type (nullable) is None + # and model_fields_set contains the field + if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: + _dict['guestDocumentType'] = None + + # set to None if guest_document_number (nullable) is None + # and model_fields_set contains the field + if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: + _dict['guestDocumentNumber'] = None + + # set to None if guest_document_issue_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: + _dict['guestDocumentIssueDate'] = None + + # set to None if guest_document_issuing_country (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: + _dict['guestDocumentIssuingCountry'] = None + + # set to None if guest_document_expiration_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: + _dict['guestDocumentExpirationDate'] = None + + # set to None if guest_custom_fields (nullable) is None + # and model_fields_set contains the field + if self.guest_custom_fields is None and "guest_custom_fields" in self.model_fields_set: + _dict['guestCustomFields'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationInHouseResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "mainGuestID": obj.get("mainGuestID"), + "mainGuestName": obj.get("mainGuestName"), + "balance": obj.get("balance"), + "reservationID": obj.get("reservationID"), + "roomCheckOut": obj.get("roomCheckOut"), + "reservationCustomFields": obj.get("reservationCustomFields"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestPhone": obj.get("guestPhone"), + "guestAddress1": obj.get("guestAddress1"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestBirthDate": obj.get("guestBirthDate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "guestCustomFields": obj.get("guestCustomFields") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py index 801c687..7ebb36f 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py index 7b44371..c2845eb 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,15 +19,15 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner from typing import Optional, Set from typing_extensions import Self @@ -53,7 +53,8 @@ class GetReservationInvoiceInformationResponseDataInner(BaseModel): reservation_fees_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for fees", alias="reservationFeesTotal") balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance currently owed") balance_detailed: Optional[List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on PC app, describing the financial items calculated", alias="balanceDetailed") - __properties: ClassVar[List[str]] = ["status", "customFields", "mainGuestDetails", "reservationRooms", "reservationRoomsTotal", "reservationAdjustments", "reservationAdjustmentsTotal", "reservationPayments", "reservationAdditionalProducts", "reservationAdditionalProductsTotal", "reservationAddOnProducts", "reservationAddOnProductsTotal", "reservationTaxes", "reservationTaxesTotal", "reservationFees", "reservationFeesTotal", "balance", "balanceDetailed"] + reservation_origin: Optional[StrictStr] = Field(default=None, description="Reservation Origin", alias="reservationOrigin") + __properties: ClassVar[List[str]] = ["status", "customFields", "mainGuestDetails", "reservationRooms", "reservationRoomsTotal", "reservationAdjustments", "reservationAdjustmentsTotal", "reservationPayments", "reservationAdditionalProducts", "reservationAdditionalProductsTotal", "reservationAddOnProducts", "reservationAddOnProductsTotal", "reservationTaxes", "reservationTaxesTotal", "reservationFees", "reservationFeesTotal", "balance", "balanceDetailed", "reservationOrigin"] @field_validator('status') def status_validate_enum(cls, value): @@ -203,7 +204,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reservationFees": [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_dict(_item) for _item in obj["reservationFees"]] if obj.get("reservationFees") is not None else None, "reservationFeesTotal": obj.get("reservationFeesTotal"), "balance": obj.get("balance"), - "balanceDetailed": [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None + "balanceDetailed": [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, + "reservationOrigin": obj.get("reservationOrigin") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py index b08194d..fc8198f 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py index f826641..1fd3806 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py index 8b18a68..0a83678 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py index 7420e43..7e7bc4a 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py index 92d78c3..7be2458 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py index 04b6877..ea3e770 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py index 2407a57..17f0ab2 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py index b831dc5..adbb935 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_notes_response.py b/cloudbeds_pms_v1_3/models/get_reservation_notes_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservation_notes_response.py rename to cloudbeds_pms_v1_3/models/get_reservation_notes_response.py index 40377c8..565f68a 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_notes_response.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_notes_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_notes_response_data_inner.py index 45e1eb2..ba1d21c 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_notes_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_notes_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response.py b/cloudbeds_pms_v1_3/models/get_reservation_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservation_response.py rename to cloudbeds_pms_v1_3/models/get_reservation_response.py index 1364ab0..8092fd0 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data.py index 923e894..43e6ea5 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,13 +20,13 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner from typing import Optional, Set from typing_extensions import Self @@ -59,7 +59,8 @@ class GetReservationResponseData(BaseModel): allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") channel_provided_credit_card: Optional[StrictBool] = Field(default=None, description="Whether a credit card was provided by the channel. Only included for reservations originating from OTAs.", alias="channelProvidedCreditCard") group_inventory: Optional[List[GetReservationResponseDataGroupInventoryInner]] = Field(default=None, description="Aggregate allotment block information", alias="groupInventory") - __properties: ClassVar[List[str]] = ["propertyID", "guestName", "guestEmail", "isAnonymized", "guestList", "reservationID", "dateCreated", "dateModified", "estimatedArrivalTime", "source", "sourceID", "thirdPartyIdentifier", "status", "total", "balance", "balanceDetailed", "assigned", "unassigned", "cardsOnFile", "customFields", "startDate", "endDate", "allotmentBlockCode", "channelProvidedCreditCard", "groupInventory"] + origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") + __properties: ClassVar[List[str]] = ["propertyID", "guestName", "guestEmail", "isAnonymized", "guestList", "reservationID", "dateCreated", "dateModified", "estimatedArrivalTime", "source", "sourceID", "thirdPartyIdentifier", "status", "total", "balance", "balanceDetailed", "assigned", "unassigned", "cardsOnFile", "customFields", "startDate", "endDate", "allotmentBlockCode", "channelProvidedCreditCard", "groupInventory", "origin"] @field_validator('status') def status_validate_enum(cls, value): @@ -220,7 +221,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "endDate": obj.get("endDate"), "allotmentBlockCode": obj.get("allotmentBlockCode"), "channelProvidedCreditCard": obj.get("channelProvidedCreditCard"), - "groupInventory": [GetReservationResponseDataGroupInventoryInner.from_dict(_item) for _item in obj["groupInventory"]] if obj.get("groupInventory") is not None else None + "groupInventory": [GetReservationResponseDataGroupInventoryInner.from_dict(_item) for _item in obj["groupInventory"]] if obj.get("groupInventory") is not None else None, + "origin": obj.get("origin") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py index 17fd232..9b3f528 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py index 9a15dc4..94278c3 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py index f22c69a..310f9aa 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_balance_detailed_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py index dbbf846..1d4bb49 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_cards_on_file_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_group_inventory_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_group_inventory_inner.py index d31ad43..e9bff00 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_group_inventory_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_group_inventory_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py index c512b1d..6029dcb 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,9 +20,9 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py index e34113e..6eecb17 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py index 1616bf1..8dff59f 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py index 07adcde..5aaa95d 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py index 0d442b6..e1349a6 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_response_data_unassigned_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py rename to cloudbeds_pms_v1_3/models/get_reservation_room_details_response.py index 020eacf..b04dd6b 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py rename to cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py index 20ac537..7b334d8 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data_guests_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py rename to cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data_guests_inner.py index d263050..2121b27 100644 --- a/cloudbeds_pms_v1_2/models/get_reservation_room_details_response_data_guests_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data_guests_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response.py b/cloudbeds_pms_v1_3/models/get_reservations_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservations_response.py rename to cloudbeds_pms_v1_3/models/get_reservations_response.py index 903ad80..fa55b22 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_response.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py index 9e0b7e9..411c358 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,10 +20,10 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner from typing import Optional, Set from typing_extensions import Self @@ -53,7 +53,8 @@ class GetReservationsResponseDataInner(BaseModel): custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of reservation custom fields. Only returned if \"includeCustomFields\" is true", alias="customFields") rooms: Optional[List[GetReservationsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information. Only returned if \"includeAllRooms\" is true") guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "groupInventory", "subReservationID", "customFields", "rooms", "guestList"] + origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "groupInventory", "subReservationID", "customFields", "rooms", "guestList", "origin"] @field_validator('status') def status_validate_enum(cls, value): @@ -195,7 +196,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: for _k, _v in obj["guestList"].items() ) if obj.get("guestList") is not None - else None + else None, + "origin": obj.get("origin") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py similarity index 98% rename from cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py rename to cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py index 4bf6616..8042f07 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,9 +20,9 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py similarity index 98% rename from cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py index 1b423b6..ccd747a 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py index bec4fba..2572fe0 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py index a5b8420..5763f99 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py rename to cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py index 3c64e9d..43e2769 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py index a117686..90711f3 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,9 +20,9 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner from typing import Optional, Set from typing_extensions import Self @@ -52,7 +52,8 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): balance_detailed: Optional[List[GetReservationResponseDataBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated", alias="balanceDetailed") detailed_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") rooms: Optional[List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information") - __properties: ClassVar[List[str]] = ["reservationID", "isDeleted", "dateCreated", "dateCreatedUTC", "dateModified", "dateModifiedUTC", "dateCancelled", "dateCancelledUTC", "status", "reservationCheckIn", "reservationCheckOut", "guestID", "profileID", "guestCountry", "sourceName", "source", "sourceCategory", "sourceReservationID", "propertyCurrency", "balanceDetailed", "detailedRates", "rooms"] + origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") + __properties: ClassVar[List[str]] = ["reservationID", "isDeleted", "dateCreated", "dateCreatedUTC", "dateModified", "dateModifiedUTC", "dateCancelled", "dateCancelledUTC", "status", "reservationCheckIn", "reservationCheckOut", "guestID", "profileID", "guestCountry", "sourceName", "source", "sourceCategory", "sourceReservationID", "propertyCurrency", "balanceDetailed", "detailedRates", "rooms", "origin"] @field_validator('status') def status_validate_enum(cls, value): @@ -182,7 +183,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "propertyCurrency": obj.get("propertyCurrency"), "balanceDetailed": [GetReservationResponseDataBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, "detailedRates": obj.get("detailedRates"), - "rooms": [GetReservationsWithRateDetailsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None + "rooms": [GetReservationsWithRateDetailsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "origin": obj.get("origin") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py index cf28f81..682d523 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py rename to cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py index 507153d..a1ad5d8 100644 --- a/cloudbeds_pms_v1_2/models/get_reservations_with_rate_details_response_data_inner_source_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_room_blocks_response.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_room_blocks_response.py rename to cloudbeds_pms_v1_3/models/get_room_blocks_response.py index 36d6596..cadcd2b 100644 --- a/cloudbeds_pms_v1_2/models/get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py index 167f9d9..ff7e6c3 100644 --- a/cloudbeds_pms_v1_2/models/get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_room_types_response.py b/cloudbeds_pms_v1_3/models/get_room_types_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_room_types_response.py rename to cloudbeds_pms_v1_3/models/get_room_types_response.py index e713373..ee761bb 100644 --- a/cloudbeds_pms_v1_2/models/get_room_types_response.py +++ b/cloudbeds_pms_v1_3/models/get_room_types_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_room_types_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_room_types_response_data_inner.py index 0effab8..c6a8c0a 100644 --- a/cloudbeds_pms_v1_2/models/get_room_types_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_types_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py rename to cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response.py index 986aee0..147584a 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py rename to cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data.py index cdc7401..439344c 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_fees_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py rename to cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_fees_inner.py index b826327..3d773e9 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_fees_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py rename to cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py index feb8d75..2c19586 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response_data_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response.py b/cloudbeds_pms_v1_3/models/get_rooms_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rooms_response.py rename to cloudbeds_pms_v1_3/models/get_rooms_response.py index 4244378..bd51bbf 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_response.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_rooms_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_rooms_response_data_inner.py index daa310c..45c02a8 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner.py index 87893b8..8a39c03 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py b/cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py rename to cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py index cc5997a..a7e5504 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py b/cloudbeds_pms_v1_3/models/get_rooms_unassigned_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py rename to cloudbeds_pms_v1_3/models/get_rooms_unassigned_response.py index 3cce11d..771a9cb 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_unassigned_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner.py index 10745bb..fc46c8a 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner_rooms_inner.py index 5c92837..1ffe7df 100644 --- a/cloudbeds_pms_v1_2/models/get_rooms_unassigned_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rooms_unassigned_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_sources_response.py b/cloudbeds_pms_v1_3/models/get_sources_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_sources_response.py rename to cloudbeds_pms_v1_3/models/get_sources_response.py index 4058674..db7435c 100644 --- a/cloudbeds_pms_v1_2/models/get_sources_response.py +++ b/cloudbeds_pms_v1_3/models/get_sources_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py index f5dccd4..7c47479 100644 --- a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py rename to cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py index 9206073..c04ab14 100644 --- a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_fees_inner.py +++ b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py rename to cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py index 06b3ee9..c4ec543 100644 --- a/cloudbeds_pms_v1_2/models/get_sources_response_data_inner_taxes_inner.py +++ b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response.py index 9b126d4..0158e9a 100644 --- a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py index c0f3743..5abe50d 100644 --- a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,9 +19,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py index 025a23c..12a6390 100644 --- a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py index 148e3ba..a5ad633 100644 --- a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inner.py index 88fbff2..ffabcd5 100644 --- a/cloudbeds_pms_v1_2/models/get_taxes_and_fees_response_data_inner_room_types_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/get_transactions_response.py b/cloudbeds_pms_v1_3/models/get_transactions_response.py new file mode 100644 index 0000000..5b85070 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_transactions_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTransactionsResponse(BaseModel): + """ + GetTransactionsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[List[GetTransactionsResponseDataInner]] = Field(default=None, description="Transaction list covering the date range specified") + cloudbeds_accounting: Optional[StrictBool] = Field(default=None, description="if true it means the data comes from the new accounting solution", alias="cloudbedsAccounting") + count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination and filter parameters") + total: Optional[StrictInt] = Field(default=None, description="Total count of results, based on filter parameters") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "cloudbedsAccounting", "count", "total", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTransactionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) + _dict['data'] = _items + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTransactionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": [GetTransactionsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "cloudbedsAccounting": obj.get("cloudbedsAccounting"), + "count": obj.get("count"), + "total": obj.get("total"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py new file mode 100644 index 0000000..868c9de --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date, datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetTransactionsResponseDataInner(BaseModel): + """ + GetTransactionsResponseDataInner + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") + reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID", alias="reservationID") + sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID", alias="subReservationID") + house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID", alias="houseAccountID") + house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name", alias="houseAccountName") + guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") + property_name: Optional[StrictStr] = Field(default=None, description="Property Name", alias="propertyName") + transaction_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored", alias="transactionDateTime") + transaction_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored, in UTC timezone", alias="transactionDateTimeUTC") + transaction_modified_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified", alias="transactionModifiedDateTime") + transaction_modified_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified, in UTC timezone", alias="transactionModifiedDateTimeUTC") + guest_check_in: Optional[date] = Field(default=None, description="Reservation Check-in date", alias="guestCheckIn") + guest_check_out: Optional[date] = Field(default=None, description="Reservation Check-out date", alias="guestCheckOut") + room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") + room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type", alias="roomTypeName") + room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room.", alias="roomName") + guest_name: Optional[StrictStr] = Field(default=None, description="Name of the first guest of the reservation", alias="guestName") + description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") + category: Optional[StrictStr] = Field(default=None, description="Category of the transaction") + transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction identifier that can be used, or left blank", alias="transactionCode") + notes: Optional[StrictStr] = Field(default=None, description="If any special information needs to be added to the transaction, it will be in this field") + quantity: Optional[StrictInt] = None + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") + currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") + user_name: Optional[StrictStr] = Field(default=None, description="User responsible for creating the transaction", alias="userName") + transaction_type: Optional[StrictStr] = Field(default=None, description="Consolidated transaction type", alias="transactionType") + transaction_category: Optional[StrictStr] = Field(default=None, description="Transaction category", alias="transactionCategory") + item_category_name: Optional[StrictStr] = Field(default=None, description="Item category name", alias="itemCategoryName") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") + card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") + is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") + service_date: Optional[StrictStr] = Field(default=None, description="will represent the date when a product or service is delivered", alias="serviceDate") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted", "serviceDate"] + + @field_validator('transaction_type') + def transaction_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['debit', 'credit']): + raise ValueError("must be one of enum values ('debit', 'credit')") + return value + + @field_validator('transaction_category') + def transaction_category_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void']): + raise ValueError("must be one of enum values ('adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTransactionsResponseDataInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if house_account_id (nullable) is None + # and model_fields_set contains the field + if self.house_account_id is None and "house_account_id" in self.model_fields_set: + _dict['houseAccountID'] = None + + # set to None if house_account_name (nullable) is None + # and model_fields_set contains the field + if self.house_account_name is None and "house_account_name" in self.model_fields_set: + _dict['houseAccountName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTransactionsResponseDataInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), + "reservationID": obj.get("reservationID"), + "subReservationID": obj.get("subReservationID"), + "houseAccountID": obj.get("houseAccountID"), + "houseAccountName": obj.get("houseAccountName"), + "guestID": obj.get("guestID"), + "propertyName": obj.get("propertyName"), + "transactionDateTime": obj.get("transactionDateTime"), + "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), + "transactionModifiedDateTime": obj.get("transactionModifiedDateTime"), + "transactionModifiedDateTimeUTC": obj.get("transactionModifiedDateTimeUTC"), + "guestCheckIn": obj.get("guestCheckIn"), + "guestCheckOut": obj.get("guestCheckOut"), + "roomTypeID": obj.get("roomTypeID"), + "roomTypeName": obj.get("roomTypeName"), + "roomName": obj.get("roomName"), + "guestName": obj.get("guestName"), + "description": obj.get("description"), + "category": obj.get("category"), + "transactionCode": obj.get("transactionCode"), + "notes": obj.get("notes"), + "quantity": obj.get("quantity"), + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "userName": obj.get("userName"), + "transactionType": obj.get("transactionType"), + "transactionCategory": obj.get("transactionCategory"), + "itemCategoryName": obj.get("itemCategoryName"), + "transactionID": obj.get("transactionID"), + "parentTransactionID": obj.get("parentTransactionID"), + "cardType": obj.get("cardType"), + "isDeleted": obj.get("isDeleted"), + "serviceDate": obj.get("serviceDate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/get_userinfo_response.py b/cloudbeds_pms_v1_3/models/get_userinfo_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_userinfo_response.py rename to cloudbeds_pms_v1_3/models/get_userinfo_response.py index c624516..5fb1863 100644 --- a/cloudbeds_pms_v1_2/models/get_userinfo_response.py +++ b/cloudbeds_pms_v1_3/models/get_userinfo_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py b/cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py rename to cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py index fc35222..fa57633 100644 --- a/cloudbeds_pms_v1_2/models/get_userinfo_response_roles_inner.py +++ b/cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_users_response.py b/cloudbeds_pms_v1_3/models/get_users_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_users_response.py rename to cloudbeds_pms_v1_3/models/get_users_response.py index 6aba2fc..c7b648b 100644 --- a/cloudbeds_pms_v1_2/models/get_users_response.py +++ b/cloudbeds_pms_v1_3/models/get_users_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner +from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_users_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_users_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_users_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_users_response_data_inner.py index 27a5f7c..e33ba0d 100644 --- a/cloudbeds_pms_v1_2/models/get_users_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_users_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py b/cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py rename to cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py index c7c0ceb..dab0d6d 100644 --- a/cloudbeds_pms_v1_2/models/get_users_response_data_inner_user_role.py +++ b/cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response.py b/cloudbeds_pms_v1_3/models/get_webhooks_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/get_webhooks_response.py rename to cloudbeds_pms_v1_3/models/get_webhooks_response.py index 3d299d4..6abf7ae 100644 --- a/cloudbeds_pms_v1_2/models/get_webhooks_response.py +++ b/cloudbeds_pms_v1_3/models/get_webhooks_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner.py index 5479d37..d14c550 100644 --- a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,10 +19,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_event.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py rename to cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_event.py index ad1d725..701f131 100644 --- a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_event.py +++ b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_event.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py rename to cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py index e2b00ec..badb15c 100644 --- a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_key.py +++ b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_owner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py rename to cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_owner.py index 2d39074..6851ee1 100644 --- a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_owner.py +++ b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_owner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_subscription_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py rename to cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_subscription_data.py index 5d6df4f..5f9ee32 100644 --- a/cloudbeds_pms_v1_2/models/get_webhooks_response_data_inner_subscription_data.py +++ b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_subscription_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_access_token_check_response.py b/cloudbeds_pms_v1_3/models/post_access_token_check_response.py new file mode 100644 index 0000000..c4c36db --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_access_token_check_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAccessTokenCheckResponse(BaseModel): + """ + PostAccessTokenCheckResponse + """ # noqa: E501 + success: Optional[StrictStr] = Field(default=None, description="True if the access_token is valid. False otherwise.") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAccessTokenCheckResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAccessTokenCheckResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_access_token_response.py b/cloudbeds_pms_v1_3/models/post_access_token_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_access_token_response.py rename to cloudbeds_pms_v1_3/models/post_access_token_response.py index 561f528..ef6fd24 100644 --- a/cloudbeds_pms_v1_2/models/post_access_token_response.py +++ b/cloudbeds_pms_v1_3/models/post_access_token_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py b/cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py rename to cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py index 95d39ec..3275e18 100644 --- a/cloudbeds_pms_v1_2/models/post_access_token_response_resources_inner.py +++ b/cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_adjustment_response.py b/cloudbeds_pms_v1_3/models/post_adjustment_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_adjustment_response.py rename to cloudbeds_pms_v1_3/models/post_adjustment_response.py index b7175db..7794069 100644 --- a/cloudbeds_pms_v1_2/models/post_adjustment_response.py +++ b/cloudbeds_pms_v1_3/models/post_adjustment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_adjustment_response_data.py b/cloudbeds_pms_v1_3/models/post_adjustment_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_adjustment_response_data.py rename to cloudbeds_pms_v1_3/models/post_adjustment_response_data.py index 62bb6a8..c690632 100644 --- a/cloudbeds_pms_v1_2/models/post_adjustment_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_adjustment_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_app_error_response.py b/cloudbeds_pms_v1_3/models/post_app_error_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_app_error_response.py rename to cloudbeds_pms_v1_3/models/post_app_error_response.py index 52b9acb..ce92d37 100644 --- a/cloudbeds_pms_v1_2/models/post_app_error_response.py +++ b/cloudbeds_pms_v1_3/models/post_app_error_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_app_error_response_data.py b/cloudbeds_pms_v1_3/models/post_app_error_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_app_error_response_data.py rename to cloudbeds_pms_v1_3/models/post_app_error_response_data.py index 6169f65..8cba9f6 100644 --- a/cloudbeds_pms_v1_2/models/post_app_error_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_app_error_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_app_property_setting_response.py b/cloudbeds_pms_v1_3/models/post_app_property_setting_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_app_property_setting_response.py rename to cloudbeds_pms_v1_3/models/post_app_property_setting_response.py index 64e821b..ff65d06 100644 --- a/cloudbeds_pms_v1_2/models/post_app_property_setting_response.py +++ b/cloudbeds_pms_v1_3/models/post_app_property_setting_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py b/cloudbeds_pms_v1_3/models/post_app_property_setting_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py rename to cloudbeds_pms_v1_3/models/post_app_property_setting_response_data.py index c086662..3e376b5 100644 --- a/cloudbeds_pms_v1_2/models/post_app_property_setting_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_app_property_setting_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py b/cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py new file mode 100644 index 0000000..8edbf46 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAppSettingsRequestSettingsInner(BaseModel): + """ + PostAppSettingsRequestSettingsInner + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="A name of a setting option") + value: Optional[StrictStr] = Field(default=None, description="A value of a setting option") + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppSettingsRequestSettingsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppSettingsRequestSettingsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": obj.get("value") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/post_app_settings_response.py b/cloudbeds_pms_v1_3/models/post_app_settings_response.py new file mode 100644 index 0000000..10bc669 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_app_settings_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAppSettingsResponse(BaseModel): + """ + PostAppSettingsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[Dict[str, Any]] = Field(default=None, description="Application settings details") + __properties: ClassVar[List[str]] = ["success", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppSettingsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppSettingsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": obj.get("data") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/post_app_state_internal_response.py b/cloudbeds_pms_v1_3/models/post_app_state_internal_response.py new file mode 100644 index 0000000..6396b15 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_app_state_internal_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostAppStateInternalResponse(BaseModel): + """ + PostAppStateInternalResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostAppStateInternalResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostAppStateInternalResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_app_state_response.py b/cloudbeds_pms_v1_3/models/post_app_state_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_app_state_response.py rename to cloudbeds_pms_v1_3/models/post_app_state_response.py index 9369f48..09f80ea 100644 --- a/cloudbeds_pms_v1_2/models/post_app_state_response.py +++ b/cloudbeds_pms_v1_3/models/post_app_state_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_append_custom_item_response.py b/cloudbeds_pms_v1_3/models/post_append_custom_item_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_append_custom_item_response.py rename to cloudbeds_pms_v1_3/models/post_append_custom_item_response.py index ffe9d0b..2b43994 100644 --- a/cloudbeds_pms_v1_2/models/post_append_custom_item_response.py +++ b/cloudbeds_pms_v1_3/models/post_append_custom_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py b/cloudbeds_pms_v1_3/models/post_append_custom_item_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py rename to cloudbeds_pms_v1_3/models/post_append_custom_item_response_data.py index b2af3ef..5215a5d 100644 --- a/cloudbeds_pms_v1_2/models/post_append_custom_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_append_custom_item_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py b/cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py new file mode 100644 index 0000000..de080a0 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostBulkAppPropertySettingsResponse(BaseModel): + """ + PostBulkAppPropertySettingsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Success") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostBulkAppPropertySettingsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostBulkAppPropertySettingsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_card_response.py b/cloudbeds_pms_v1_3/models/post_card_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_card_response.py rename to cloudbeds_pms_v1_3/models/post_card_response.py index 1aaf893..95eee11 100644 --- a/cloudbeds_pms_v1_2/models/post_card_response.py +++ b/cloudbeds_pms_v1_3/models/post_card_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_card_response_data.py b/cloudbeds_pms_v1_3/models/post_card_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_card_response_data.py rename to cloudbeds_pms_v1_3/models/post_card_response_data.py index 4680719..be721d1 100644 --- a/cloudbeds_pms_v1_2/models/post_card_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_card_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_charge_response.py b/cloudbeds_pms_v1_3/models/post_charge_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_charge_response.py rename to cloudbeds_pms_v1_3/models/post_charge_response.py index 7a8ea2e..39035bb 100644 --- a/cloudbeds_pms_v1_2/models/post_charge_response.py +++ b/cloudbeds_pms_v1_3/models/post_charge_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_charge_response_data.py b/cloudbeds_pms_v1_3/models/post_charge_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_charge_response_data.py rename to cloudbeds_pms_v1_3/models/post_charge_response_data.py index 3fb00cc..ecd32dd 100644 --- a/cloudbeds_pms_v1_2/models/post_charge_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_charge_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py b/cloudbeds_pms_v1_3/models/post_charge_response_data_next_action.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py rename to cloudbeds_pms_v1_3/models/post_charge_response_data_next_action.py index e261e08..a984822 100644 --- a/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action.py +++ b/cloudbeds_pms_v1_3/models/post_charge_response_data_next_action.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py b/cloudbeds_pms_v1_3/models/post_charge_response_data_next_action_details.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py rename to cloudbeds_pms_v1_3/models/post_charge_response_data_next_action_details.py index a2d4006..82b18fb 100644 --- a/cloudbeds_pms_v1_2/models/post_charge_response_data_next_action_details.py +++ b/cloudbeds_pms_v1_3/models/post_charge_response_data_next_action_details.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response.py index 7082b2d..b42509d 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response_data.py index 8ca0fb7..36c9fa8 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_notes_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_notes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py index 958470e..6e29f1a 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py index 71a3b1c..fd0ab6b 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py index 3781c6a..1c44251 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py index bc64988..4cece21 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py index ad6315e..c580878 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_request_auto_release.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_response.py index 73687b4..e0e39e6 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py index bc07f02..1559563 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py index df032bf..dc572f0 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py index 86ef060..f701bbd 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py index 656dedf..c2c340a 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py index e907cd1..e69f53c 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py rename to cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py index b412f48..889f074 100644 --- a/cloudbeds_pms_v1_2/models/post_create_allotment_block_response_data_inner_auto_release.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py b/cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py new file mode 100644 index 0000000..c397126 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCRMCacheRemoveResponse(BaseModel): + """ + PostCRMCacheRemoveResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCRMCacheRemoveResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCRMCacheRemoveResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py b/cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py new file mode 100644 index 0000000..32bd22c --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostCRMCacheUpdateResponse(BaseModel): + """ + PostCRMCacheUpdateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostCRMCacheUpdateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostCRMCacheUpdateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_custom_field_response.py b/cloudbeds_pms_v1_3/models/post_custom_field_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_custom_field_response.py rename to cloudbeds_pms_v1_3/models/post_custom_field_response.py index 3399b87..fa52a1c 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_field_response.py +++ b/cloudbeds_pms_v1_3/models/post_custom_field_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_custom_field_response_data.py b/cloudbeds_pms_v1_3/models/post_custom_field_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_custom_field_response_data.py rename to cloudbeds_pms_v1_3/models/post_custom_field_response_data.py index b181be4..3af7e12 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_field_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_custom_field_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py b/cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py rename to cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner.py index 165e52b..4d16fc4 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py b/cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_fees_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py rename to cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_fees_inner.py index 495d951..b98e52e 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_fees_inner.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py b/cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_taxes_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py rename to cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_taxes_inner.py index a2d1986..efcb300 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_item_request_items_inner_item_taxes_inner.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner_item_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py b/cloudbeds_pms_v1_3/models/post_custom_item_request_payments_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py rename to cloudbeds_pms_v1_3/models/post_custom_item_request_payments_inner.py index 0ba456d..5ef767b 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_item_request_payments_inner.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_request_payments_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_response.py b/cloudbeds_pms_v1_3/models/post_custom_item_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_custom_item_response.py rename to cloudbeds_pms_v1_3/models/post_custom_item_response.py index ac1c8a5..7f7d214 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_item_response.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_custom_item_response_data.py b/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_custom_item_response_data.py rename to cloudbeds_pms_v1_3/models/post_custom_item_response_data.py index c330064..c19383f 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py b/cloudbeds_pms_v1_3/models/post_custom_payment_method_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py rename to cloudbeds_pms_v1_3/models/post_custom_payment_method_response.py index 7903c23..397c6cf 100644 --- a/cloudbeds_pms_v1_2/models/post_custom_payment_method_response.py +++ b/cloudbeds_pms_v1_3/models/post_custom_payment_method_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py b/cloudbeds_pms_v1_3/models/post_delete_allotment_block_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py rename to cloudbeds_pms_v1_3/models/post_delete_allotment_block_response.py index 2e340f4..a1f01cb 100644 --- a/cloudbeds_pms_v1_2/models/post_delete_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_delete_allotment_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py b/cloudbeds_pms_v1_3/models/post_delete_app_property_settings_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py rename to cloudbeds_pms_v1_3/models/post_delete_app_property_settings_response.py index ffaef0c..0070ab4 100644 --- a/cloudbeds_pms_v1_2/models/post_delete_app_property_settings_response.py +++ b/cloudbeds_pms_v1_3/models/post_delete_app_property_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py rename to cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule.py index d4b730d..756b8fd 100644 --- a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule.py +++ b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py rename to cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py index c8e4c5b..a83b9cd 100644 --- a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_event.py +++ b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py rename to cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py index 2e55882..8d9b8f0 100644 --- a/cloudbeds_pms_v1_2/models/post_email_schedule_request_schedule_reservation_status_change.py +++ b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_email_schedule_response.py b/cloudbeds_pms_v1_3/models/post_email_schedule_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_email_schedule_response.py rename to cloudbeds_pms_v1_3/models/post_email_schedule_response.py index cca0701..e1274bd 100644 --- a/cloudbeds_pms_v1_2/models/post_email_schedule_response.py +++ b/cloudbeds_pms_v1_3/models/post_email_schedule_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_email_template_request_body.py b/cloudbeds_pms_v1_3/models/post_email_template_request_body.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_email_template_request_body.py rename to cloudbeds_pms_v1_3/models/post_email_template_request_body.py index 5db2d6b..72ca2e3 100644 --- a/cloudbeds_pms_v1_2/models/post_email_template_request_body.py +++ b/cloudbeds_pms_v1_3/models/post_email_template_request_body.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_email_template_request_subject.py b/cloudbeds_pms_v1_3/models/post_email_template_request_subject.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_email_template_request_subject.py rename to cloudbeds_pms_v1_3/models/post_email_template_request_subject.py index 334fdcf..e10a593 100644 --- a/cloudbeds_pms_v1_2/models/post_email_template_request_subject.py +++ b/cloudbeds_pms_v1_3/models/post_email_template_request_subject.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_email_template_response.py b/cloudbeds_pms_v1_3/models/post_email_template_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_email_template_response.py rename to cloudbeds_pms_v1_3/models/post_email_template_response.py index 3f9ea96..2aab3c3 100644 --- a/cloudbeds_pms_v1_2/models/post_email_template_response.py +++ b/cloudbeds_pms_v1_3/models/post_email_template_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_file_response.py b/cloudbeds_pms_v1_3/models/post_file_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_file_response.py rename to cloudbeds_pms_v1_3/models/post_file_response.py index 77436e3..7aa2534 100644 --- a/cloudbeds_pms_v1_2/models/post_file_response.py +++ b/cloudbeds_pms_v1_3/models/post_file_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_government_receipt_response.py b/cloudbeds_pms_v1_3/models/post_government_receipt_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_government_receipt_response.py rename to cloudbeds_pms_v1_3/models/post_government_receipt_response.py index 22b210a..0948c1d 100644 --- a/cloudbeds_pms_v1_2/models/post_government_receipt_response.py +++ b/cloudbeds_pms_v1_3/models/post_government_receipt_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_group_note_response.py b/cloudbeds_pms_v1_3/models/post_group_note_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_group_note_response.py rename to cloudbeds_pms_v1_3/models/post_group_note_response.py index b2d51b5..5cdcf20 100644 --- a/cloudbeds_pms_v1_2/models/post_group_note_response.py +++ b/cloudbeds_pms_v1_3/models/post_group_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_group_note_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py rename to cloudbeds_pms_v1_3/models/post_group_note_response_data_inner.py index 7ff6f4e..36ae64f 100644 --- a/cloudbeds_pms_v1_2/models/post_group_note_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_group_note_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py b/cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py new file mode 100644 index 0000000..bb8bfd0 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostGuestCreditCardResponse(BaseModel): + """ + PostGuestCreditCardResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + __properties: ClassVar[List[str]] = ["success"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostGuestCreditCardResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostGuestCreditCardResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_guest_document_response.py b/cloudbeds_pms_v1_3/models/post_guest_document_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_guest_document_response.py rename to cloudbeds_pms_v1_3/models/post_guest_document_response.py index 4f9ecba..61e0c8d 100644 --- a/cloudbeds_pms_v1_2/models/post_guest_document_response.py +++ b/cloudbeds_pms_v1_3/models/post_guest_document_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_guest_document_response_data.py b/cloudbeds_pms_v1_3/models/post_guest_document_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_guest_document_response_data.py rename to cloudbeds_pms_v1_3/models/post_guest_document_response_data.py index fb241ae..bb6e7d3 100644 --- a/cloudbeds_pms_v1_2/models/post_guest_document_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_guest_document_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_guest_note_response.py b/cloudbeds_pms_v1_3/models/post_guest_note_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_guest_note_response.py rename to cloudbeds_pms_v1_3/models/post_guest_note_response.py index 3b3bfb2..7152603 100644 --- a/cloudbeds_pms_v1_2/models/post_guest_note_response.py +++ b/cloudbeds_pms_v1_3/models/post_guest_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_guest_photo_response.py b/cloudbeds_pms_v1_3/models/post_guest_photo_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_guest_photo_response.py rename to cloudbeds_pms_v1_3/models/post_guest_photo_response.py index e4ce99c..eb649a2 100644 --- a/cloudbeds_pms_v1_2/models/post_guest_photo_response.py +++ b/cloudbeds_pms_v1_3/models/post_guest_photo_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/post_guest_request_custom_fields_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py rename to cloudbeds_pms_v1_3/models/post_guest_request_custom_fields_inner.py index 9f59e0b..1c6c88a 100644 --- a/cloudbeds_pms_v1_2/models/post_guest_request_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/models/post_guest_request_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_guest_response.py b/cloudbeds_pms_v1_3/models/post_guest_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_guest_response.py rename to cloudbeds_pms_v1_3/models/post_guest_response.py index ad80704..6b71add 100644 --- a/cloudbeds_pms_v1_2/models/post_guest_response.py +++ b/cloudbeds_pms_v1_3/models/post_guest_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_guests_to_room_response.py b/cloudbeds_pms_v1_3/models/post_guests_to_room_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_guests_to_room_response.py rename to cloudbeds_pms_v1_3/models/post_guests_to_room_response.py index 755c487..f6f668f 100644 --- a/cloudbeds_pms_v1_2/models/post_guests_to_room_response.py +++ b/cloudbeds_pms_v1_3/models/post_guests_to_room_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_housekeeper_response.py b/cloudbeds_pms_v1_3/models/post_housekeeper_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_housekeeper_response.py rename to cloudbeds_pms_v1_3/models/post_housekeeper_response.py index e5f0df4..fc4d4c1 100644 --- a/cloudbeds_pms_v1_2/models/post_housekeeper_response.py +++ b/cloudbeds_pms_v1_3/models/post_housekeeper_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py b/cloudbeds_pms_v1_3/models/post_housekeeping_assignment_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py rename to cloudbeds_pms_v1_3/models/post_housekeeping_assignment_response.py index 46186b2..bb56b08 100644 --- a/cloudbeds_pms_v1_2/models/post_housekeeping_assignment_response.py +++ b/cloudbeds_pms_v1_3/models/post_housekeeping_assignment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py b/cloudbeds_pms_v1_3/models/post_housekeeping_status_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py rename to cloudbeds_pms_v1_3/models/post_housekeeping_status_response.py index 72f11a8..142be36 100644 --- a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response.py +++ b/cloudbeds_pms_v1_3/models/post_housekeeping_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py b/cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py rename to cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py index 1a87e86..300e010 100644 --- a/cloudbeds_pms_v1_2/models/post_housekeeping_status_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_item_category_response.py b/cloudbeds_pms_v1_3/models/post_item_category_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_item_category_response.py rename to cloudbeds_pms_v1_3/models/post_item_category_response.py index 31d75be..b14f18b 100644 --- a/cloudbeds_pms_v1_2/models/post_item_category_response.py +++ b/cloudbeds_pms_v1_3/models/post_item_category_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_item_response.py b/cloudbeds_pms_v1_3/models/post_item_response.py similarity index 90% rename from cloudbeds_pms_v1_2/models/post_item_response.py rename to cloudbeds_pms_v1_3/models/post_item_response.py index be6c2c1..ff473a8 100644 --- a/cloudbeds_pms_v1_2/models/post_item_response.py +++ b/cloudbeds_pms_v1_3/models/post_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class PostItemResponse(BaseModel): PostItemResponse """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[PostItemResponseData] = None + data: Optional[PostItemToReservationResponseData] = None message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "data", "message"] @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), - "data": PostItemResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "data": PostItemToReservationResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, "message": obj.get("message") }) return _obj diff --git a/cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py b/cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py similarity index 90% rename from cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py rename to cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py index 7531107..b848d74 100644 --- a/cloudbeds_pms_v1_2/models/post_item_request_payments_inner.py +++ b/cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class PostItemRequestPaymentsInner(BaseModel): +class PostItemToReservationRequestPaymentsInner(BaseModel): """ - PostItemRequestPaymentsInner + PostItemToReservationRequestPaymentsInner """ # noqa: E501 payment_type: Optional[StrictStr] = Field(default=None, description="Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.", alias="paymentType") amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="payment amount") @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostItemRequestPaymentsInner from a JSON string""" + """Create an instance of PostItemToReservationRequestPaymentsInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostItemRequestPaymentsInner from a dict""" + """Create an instance of PostItemToReservationRequestPaymentsInner from a dict""" if obj is None: return None diff --git a/cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py b/cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py new file mode 100644 index 0000000..4f0fa34 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostItemToReservationResponse(BaseModel): + """ + PostItemToReservationResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + data: Optional[PostItemToReservationResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemToReservationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemToReservationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostItemToReservationResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_item_response_data.py b/cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py similarity index 93% rename from cloudbeds_pms_v1_2/models/post_item_response_data.py rename to cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py index 3c953b7..43b3bef 100644 --- a/cloudbeds_pms_v1_2/models/post_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,7 +22,7 @@ from typing import Optional, Set from typing_extensions import Self -class PostItemResponseData(BaseModel): +class PostItemToReservationResponseData(BaseModel): """ Sold product details """ # noqa: E501 @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostItemResponseData from a JSON string""" + """Create an instance of PostItemToReservationResponseData from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -97,7 +97,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostItemResponseData from a dict""" + """Create an instance of PostItemToReservationResponseData from a dict""" if obj is None: return None diff --git a/cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py b/cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py similarity index 98% rename from cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py rename to cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py index 6424514..85a5857 100644 --- a/cloudbeds_pms_v1_2/models/post_items_to_inventory_request_item.py +++ b/cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py b/cloudbeds_pms_v1_3/models/post_items_to_inventory_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py rename to cloudbeds_pms_v1_3/models/post_items_to_inventory_response.py index ca80a6d..2a17a4c 100644 --- a/cloudbeds_pms_v1_2/models/post_items_to_inventory_response.py +++ b/cloudbeds_pms_v1_3/models/post_items_to_inventory_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_items_to_inventory_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py rename to cloudbeds_pms_v1_3/models/post_items_to_inventory_response_data_inner.py index 8d4cbd5..743a6b9 100644 --- a/cloudbeds_pms_v1_2/models/post_items_to_inventory_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_items_to_inventory_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_new_house_account_response.py b/cloudbeds_pms_v1_3/models/post_new_house_account_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_new_house_account_response.py rename to cloudbeds_pms_v1_3/models/post_new_house_account_response.py index d1d01d6..219365b 100644 --- a/cloudbeds_pms_v1_2/models/post_new_house_account_response.py +++ b/cloudbeds_pms_v1_3/models/post_new_house_account_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py b/cloudbeds_pms_v1_3/models/post_new_house_account_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py rename to cloudbeds_pms_v1_3/models/post_new_house_account_response_data.py index 86797df..7e95e36 100644 --- a/cloudbeds_pms_v1_2/models/post_new_house_account_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_new_house_account_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_patch_group_response.py b/cloudbeds_pms_v1_3/models/post_patch_group_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_patch_group_response.py rename to cloudbeds_pms_v1_3/models/post_patch_group_response.py index 7910f9d..2b5d0b6 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_group_response.py +++ b/cloudbeds_pms_v1_3/models/post_patch_group_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py rename to cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py index 7a8eb83..e87c7fa 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_group_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_patch_invoice_response.py b/cloudbeds_pms_v1_3/models/post_patch_invoice_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_patch_invoice_response.py rename to cloudbeds_pms_v1_3/models/post_patch_invoice_response.py index c3c4c12..556968d 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_invoice_response.py +++ b/cloudbeds_pms_v1_3/models/post_patch_invoice_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py rename to cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner.py index 9b76af7..3e08f66 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner.py +++ b/cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner_interval.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py rename to cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner_interval.py index baa1236..b9797ab 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_rate_request_rates_inner_interval.py +++ b/cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner_interval.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_patch_rate_response.py b/cloudbeds_pms_v1_3/models/post_patch_rate_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_patch_rate_response.py rename to cloudbeds_pms_v1_3/models/post_patch_rate_response.py index ecb3eaf..e0620d5 100644 --- a/cloudbeds_pms_v1_2/models/post_patch_rate_response.py +++ b/cloudbeds_pms_v1_3/models/post_patch_rate_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_payment_cash_response.py b/cloudbeds_pms_v1_3/models/post_payment_cash_response.py new file mode 100644 index 0000000..569e689 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_payment_cash_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostPaymentCashResponse(BaseModel): + """ + PostPaymentCashResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPaymentCashResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPaymentCashResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py b/cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py new file mode 100644 index 0000000..33d128a --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostPaymentCreditCardResponse(BaseModel): + """ + PostPaymentCreditCardResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPaymentCreditCardResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPaymentCreditCardResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_payment_response.py b/cloudbeds_pms_v1_3/models/post_payment_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_payment_response.py rename to cloudbeds_pms_v1_3/models/post_payment_response.py index b6a0e47..4a36a9d 100644 --- a/cloudbeds_pms_v1_2/models/post_payment_response.py +++ b/cloudbeds_pms_v1_3/models/post_payment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py b/cloudbeds_pms_v1_3/models/post_put_app_property_settings_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py rename to cloudbeds_pms_v1_3/models/post_put_app_property_settings_response.py index a49a34c..c3b0a08 100644 --- a/cloudbeds_pms_v1_2/models/post_put_app_property_settings_response.py +++ b/cloudbeds_pms_v1_3/models/post_put_app_property_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_put_group_response.py b/cloudbeds_pms_v1_3/models/post_put_group_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_put_group_response.py rename to cloudbeds_pms_v1_3/models/post_put_group_response.py index fa53e6b..226301b 100644 --- a/cloudbeds_pms_v1_2/models/post_put_group_response.py +++ b/cloudbeds_pms_v1_3/models/post_put_group_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_3/models/post_put_rate_request.py b/cloudbeds_pms_v1_3/models/post_put_rate_request.py new file mode 100644 index 0000000..fe797cb --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_put_rate_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from typing import Optional, Set +from typing_extensions import Self + +class PostPutRateRequest(BaseModel): + """ + PostPutRateRequest + """ # noqa: E501 + rates: Optional[List[PostPutRateRequestRatesInner]] = Field(default=None, description="Array of rates to update") + __properties: ClassVar[List[str]] = ["rates"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostPutRateRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rates (list) + _items = [] + if self.rates: + for _item_rates in self.rates: + if _item_rates: + _items.append(_item_rates.to_dict()) + _dict['rates'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostPutRateRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rates": [PostPutRateRequestRatesInner.from_dict(_item) for _item in obj["rates"]] if obj.get("rates") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py rename to cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner.py index e2e3465..9706a65 100644 --- a/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner.py +++ b/cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner_interval_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py rename to cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner_interval_inner.py index 83609d3..9425ca0 100644 --- a/cloudbeds_pms_v1_2/models/post_put_rate_request_rates_inner_interval_inner.py +++ b/cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner_interval_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_put_rate_response.py b/cloudbeds_pms_v1_3/models/post_put_rate_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_put_rate_response.py rename to cloudbeds_pms_v1_3/models/post_put_rate_response.py index 0a4698f..2475923 100644 --- a/cloudbeds_pms_v1_2/models/post_put_rate_response.py +++ b/cloudbeds_pms_v1_3/models/post_put_rate_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py b/cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py new file mode 100644 index 0000000..389ef38 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationCheckInResponse(BaseModel): + """ + PostReservationCheckInResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationCheckInResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationCheckInResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py b/cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py new file mode 100644 index 0000000..0373dc2 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostReservationCheckOutResponse(BaseModel): + """ + PostReservationCheckOutResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostReservationCheckOutResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostReservationCheckOutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_reservation_document_response.py b/cloudbeds_pms_v1_3/models/post_reservation_document_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_reservation_document_response.py rename to cloudbeds_pms_v1_3/models/post_reservation_document_response.py index 40872a1..c13e4e0 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_document_response.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_document_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_reservation_note_response.py b/cloudbeds_pms_v1_3/models/post_reservation_note_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_reservation_note_response.py rename to cloudbeds_pms_v1_3/models/post_reservation_note_response.py index d71badb..1b2b13f 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_note_response.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py b/cloudbeds_pms_v1_3/models/post_reservation_request_adults_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py rename to cloudbeds_pms_v1_3/models/post_reservation_request_adults_inner.py index 6bab937..f6189b9 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_request_adults_inner.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_request_adults_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py b/cloudbeds_pms_v1_3/models/post_reservation_request_children_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py rename to cloudbeds_pms_v1_3/models/post_reservation_request_children_inner.py index 8c62b13..3fd0da7 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_request_children_inner.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_request_children_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/post_reservation_request_custom_fields_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py rename to cloudbeds_pms_v1_3/models/post_reservation_request_custom_fields_inner.py index 8affc98..513010e 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_request_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_request_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_3/models/post_reservation_request_rooms_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py rename to cloudbeds_pms_v1_3/models/post_reservation_request_rooms_inner.py index fe33ba0..7ef3f95 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_reservation_response.py b/cloudbeds_pms_v1_3/models/post_reservation_response.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_reservation_response.py rename to cloudbeds_pms_v1_3/models/post_reservation_response.py index 33510ce..a438481 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_response.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py b/cloudbeds_pms_v1_3/models/post_reservation_response_unassigned_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py rename to cloudbeds_pms_v1_3/models/post_reservation_response_unassigned_inner.py index 2c3f4f9..978a9d8 100644 --- a/cloudbeds_pms_v1_2/models/post_reservation_response_unassigned_inner.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_response_unassigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_room_assign_response.py b/cloudbeds_pms_v1_3/models/post_room_assign_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_room_assign_response.py rename to cloudbeds_pms_v1_3/models/post_room_assign_response.py index 0eb5f4f..5c2ee73 100644 --- a/cloudbeds_pms_v1_2/models/post_room_assign_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_assign_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_3/models/post_room_block_request_rooms_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py rename to cloudbeds_pms_v1_3/models/post_room_block_request_rooms_inner.py index 94e2b55..3842731 100644 --- a/cloudbeds_pms_v1_2/models/post_room_block_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_room_block_response.py b/cloudbeds_pms_v1_3/models/post_room_block_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_room_block_response.py rename to cloudbeds_pms_v1_3/models/post_room_block_response.py index 8ade62d..9c7d945 100644 --- a/cloudbeds_pms_v1_2/models/post_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py rename to cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py index d7225a5..c7f734d 100644 --- a/cloudbeds_pms_v1_2/models/post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_room_check_in_response.py b/cloudbeds_pms_v1_3/models/post_room_check_in_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_room_check_in_response.py rename to cloudbeds_pms_v1_3/models/post_room_check_in_response.py index 9ee8d84..63e68a4 100644 --- a/cloudbeds_pms_v1_2/models/post_room_check_in_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_check_in_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_room_check_out_response.py b/cloudbeds_pms_v1_3/models/post_room_check_out_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_room_check_out_response.py rename to cloudbeds_pms_v1_3/models/post_room_check_out_response.py index 1e529a2..966bab4 100644 --- a/cloudbeds_pms_v1_2/models/post_room_check_out_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_check_out_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/post_room_type_response.py b/cloudbeds_pms_v1_3/models/post_room_type_response.py new file mode 100644 index 0000000..78bf208 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_room_type_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomTypeResponse(BaseModel): + """ + PostRoomTypeResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns true if the request could be completed") + data: Optional[PostRoomTypeResponseData] = None + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "data", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomTypeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomTypeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "data": PostRoomTypeResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/post_room_type_response_data.py b/cloudbeds_pms_v1_3/models/post_room_type_response_data.py new file mode 100644 index 0000000..93d7226 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_room_type_response_data.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostRoomTypeResponseData(BaseModel): + """ + Details for the new accommodation type + """ # noqa: E501 + room_type_id: Optional[StrictStr] = Field(default=None, description="ID for the newly-created accommodation type", alias="roomTypeId") + __properties: ClassVar[List[str]] = ["roomTypeId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostRoomTypeResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostRoomTypeResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roomTypeId": obj.get("roomTypeId") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response.py index 4b72cc5..110f9ec 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response_data.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response_data.py index 721d398..393a99d 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_notes_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py index 3ad818e..cfbea74 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py index b5b061e..a9231de 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,8 +20,8 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py index bf39571..86cb420 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py index 6cf0b51..f0da860 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py similarity index 97% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py index 3d0ea97..1b019ed 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_request_auto_release.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_response.py index 25e8752..20536e2 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py index ba8ec2a..ae912de 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py index 89cb867..3874dde 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py rename to cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py index b808874..5d273dc 100644 --- a/cloudbeds_pms_v1_2/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_void_item_response.py b/cloudbeds_pms_v1_3/models/post_void_item_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_void_item_response.py rename to cloudbeds_pms_v1_3/models/post_void_item_response.py index fa65fa2..cc7b135 100644 --- a/cloudbeds_pms_v1_2/models/post_void_item_response.py +++ b/cloudbeds_pms_v1_3/models/post_void_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_void_payment_response.py b/cloudbeds_pms_v1_3/models/post_void_payment_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/post_void_payment_response.py rename to cloudbeds_pms_v1_3/models/post_void_payment_response.py index 3385aad..48d50e5 100644 --- a/cloudbeds_pms_v1_2/models/post_void_payment_response.py +++ b/cloudbeds_pms_v1_3/models/post_void_payment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/post_webhook_response.py b/cloudbeds_pms_v1_3/models/post_webhook_response.py similarity index 94% rename from cloudbeds_pms_v1_2/models/post_webhook_response.py rename to cloudbeds_pms_v1_3/models/post_webhook_response.py index 0e90b4f..07ca7d9 100644 --- a/cloudbeds_pms_v1_2/models/post_webhook_response.py +++ b/cloudbeds_pms_v1_3/models/post_webhook_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/models/post_webhook_response_data.py b/cloudbeds_pms_v1_3/models/post_webhook_response_data.py similarity index 95% rename from cloudbeds_pms_v1_2/models/post_webhook_response_data.py rename to cloudbeds_pms_v1_3/models/post_webhook_response_data.py index bc42c6a..65cc8a8 100644 --- a/cloudbeds_pms_v1_2/models/post_webhook_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_webhook_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_guest_note_response.py b/cloudbeds_pms_v1_3/models/put_guest_note_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_guest_note_response.py rename to cloudbeds_pms_v1_3/models/put_guest_note_response.py index 4944586..f023386 100644 --- a/cloudbeds_pms_v1_2/models/put_guest_note_response.py +++ b/cloudbeds_pms_v1_3/models/put_guest_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/put_guest_request_guest_custom_fields_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py rename to cloudbeds_pms_v1_3/models/put_guest_request_guest_custom_fields_inner.py index ffbbf4a..c1874af 100644 --- a/cloudbeds_pms_v1_2/models/put_guest_request_guest_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/models/put_guest_request_guest_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_guest_response.py b/cloudbeds_pms_v1_3/models/put_guest_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_guest_response.py rename to cloudbeds_pms_v1_3/models/put_guest_response.py index 07ff48c..bdff412 100644 --- a/cloudbeds_pms_v1_2/models/put_guest_response.py +++ b/cloudbeds_pms_v1_3/models/put_guest_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_house_account_status_response.py b/cloudbeds_pms_v1_3/models/put_house_account_status_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_house_account_status_response.py rename to cloudbeds_pms_v1_3/models/put_house_account_status_response.py index f70ffc9..c3a26d0 100644 --- a/cloudbeds_pms_v1_2/models/put_house_account_status_response.py +++ b/cloudbeds_pms_v1_3/models/put_house_account_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_housekeeper_response.py b/cloudbeds_pms_v1_3/models/put_housekeeper_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_housekeeper_response.py rename to cloudbeds_pms_v1_3/models/put_housekeeper_response.py index 05f7516..df1b46c 100644 --- a/cloudbeds_pms_v1_2/models/put_housekeeper_response.py +++ b/cloudbeds_pms_v1_3/models/put_housekeeper_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py b/cloudbeds_pms_v1_3/models/put_item_to_inventory_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py rename to cloudbeds_pms_v1_3/models/put_item_to_inventory_response.py index 84d6cc4..6fa9647 100644 --- a/cloudbeds_pms_v1_2/models/put_item_to_inventory_response.py +++ b/cloudbeds_pms_v1_3/models/put_item_to_inventory_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py new file mode 100644 index 0000000..08a6875 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner +from typing import Optional, Set +from typing_extensions import Self + +class PutRateRequestRatesInner(BaseModel): + """ + PutRateRequestRatesInner + """ # noqa: E501 + rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") + interval: Optional[List[PutRateRequestRatesInnerIntervalInner]] = Field(default=None, description="Rate update details") + __properties: ClassVar[List[str]] = ["rateID", "interval"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutRateRequestRatesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in interval (list) + _items = [] + if self.interval: + for _item_interval in self.interval: + if _item_interval: + _items.append(_item_interval.to_dict()) + _dict['interval'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutRateRequestRatesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rateID": obj.get("rateID"), + "interval": [PutRateRequestRatesInnerIntervalInner.from_dict(_item) for _item in obj["interval"]] if obj.get("interval") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py new file mode 100644 index 0000000..eeaf330 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PutRateRequestRatesInnerIntervalInner(BaseModel): + """ + PutRateRequestRatesInnerIntervalInner + """ # noqa: E501 + start_date: Optional[date] = Field(default=None, description="Interval Start date. Format: YYYY-MM-DD", alias="startDate") + end_date: Optional[date] = Field(default=None, description="Interval End date. Format: YYYY-MM-DD", alias="endDate") + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the selected date") + __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutRateRequestRatesInnerIntervalInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if start_date (nullable) is None + # and model_fields_set contains the field + if self.start_date is None and "start_date" in self.model_fields_set: + _dict['startDate'] = None + + # set to None if end_date (nullable) is None + # and model_fields_set contains the field + if self.end_date is None and "end_date" in self.model_fields_set: + _dict['endDate'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutRateRequestRatesInnerIntervalInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "rate": obj.get("rate") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/put_rate_response.py b/cloudbeds_pms_v1_3/models/put_rate_response.py new file mode 100644 index 0000000..6cecfcc --- /dev/null +++ b/cloudbeds_pms_v1_3/models/put_rate_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutRateResponse(BaseModel): + """ + PutRateResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns true if the request could be completed") + job_reference_id: Optional[StrictStr] = Field(default=None, description="ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook", alias="jobReferenceID") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") + __properties: ClassVar[List[str]] = ["success", "jobReferenceID", "message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutRateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutRateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "jobReferenceID": obj.get("jobReferenceID"), + "message": obj.get("message") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py new file mode 100644 index 0000000..d6a9850 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutReservationDetailsRequestCustomFieldsInner(BaseModel): + """ + PutReservationDetailsRequestCustomFieldsInner + """ # noqa: E501 + custom_field_name: Optional[StrictStr] = Field(default=None, description="Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention", alias="customFieldName") + custom_field_value: Optional[StrictStr] = Field(default=None, alias="customFieldValue") + __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutReservationDetailsRequestCustomFieldsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if custom_field_name (nullable) is None + # and model_fields_set contains the field + if self.custom_field_name is None and "custom_field_name" in self.model_fields_set: + _dict['customFieldName'] = None + + # set to None if custom_field_value (nullable) is None + # and model_fields_set contains the field + if self.custom_field_value is None and "custom_field_value" in self.model_fields_set: + _dict['customFieldValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutReservationDetailsRequestCustomFieldsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customFieldName": obj.get("customFieldName"), + "customFieldValue": obj.get("customFieldValue") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/put_reservation_details_response.py b/cloudbeds_pms_v1_3/models/put_reservation_details_response.py new file mode 100644 index 0000000..41c90bc --- /dev/null +++ b/cloudbeds_pms_v1_3/models/put_reservation_details_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PutReservationDetailsResponse(BaseModel): + """ + PutReservationDetailsResponse + """ # noqa: E501 + success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") + message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs.") + data: Optional[Dict[str, Any]] = Field(default=None, description="Returns the reservation data as defined by getReservation call.") + __properties: ClassVar[List[str]] = ["success", "message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PutReservationDetailsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if message (nullable) is None + # and model_fields_set contains the field + if self.message is None and "message" in self.model_fields_set: + _dict['message'] = None + + # set to None if data (nullable) is None + # and model_fields_set contains the field + if self.data is None and "data" in self.model_fields_set: + _dict['data'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PutReservationDetailsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "message": obj.get("message"), + "data": obj.get("data") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_2/models/put_reservation_note_response.py b/cloudbeds_pms_v1_3/models/put_reservation_note_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_reservation_note_response.py rename to cloudbeds_pms_v1_3/models/put_reservation_note_response.py index 40a55d3..d707983 100644 --- a/cloudbeds_pms_v1_2/models/put_reservation_note_response.py +++ b/cloudbeds_pms_v1_3/models/put_reservation_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/put_reservation_request_custom_fields_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py rename to cloudbeds_pms_v1_3/models/put_reservation_request_custom_fields_inner.py index 7b98d09..5a6eaa4 100644 --- a/cloudbeds_pms_v1_2/models/put_reservation_request_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/models/put_reservation_request_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py similarity index 97% rename from cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py rename to cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py index 14d6b3e..bc4e7a6 100644 --- a/cloudbeds_pms_v1_2/models/put_reservation_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_reservation_response.py b/cloudbeds_pms_v1_3/models/put_reservation_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_reservation_response.py rename to cloudbeds_pms_v1_3/models/put_reservation_response.py index 4a73058..7a60c8d 100644 --- a/cloudbeds_pms_v1_2/models/put_reservation_response.py +++ b/cloudbeds_pms_v1_3/models/put_reservation_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py rename to cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py index 793340d..52c6681 100644 --- a/cloudbeds_pms_v1_2/models/put_room_block_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cloudbeds_pms_v1_2/models/put_room_block_response.py b/cloudbeds_pms_v1_3/models/put_room_block_response.py similarity index 96% rename from cloudbeds_pms_v1_2/models/put_room_block_response.py rename to cloudbeds_pms_v1_3/models/put_room_block_response.py index c7b3898..b2b5bf5 100644 --- a/cloudbeds_pms_v1_2/models/put_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner from typing import Optional, Set from typing_extensions import Self diff --git a/cloudbeds_pms_v1_2/py.typed b/cloudbeds_pms_v1_3/py.typed similarity index 100% rename from cloudbeds_pms_v1_2/py.typed rename to cloudbeds_pms_v1_3/py.typed diff --git a/cloudbeds_pms_v1_2/rest.py b/cloudbeds_pms_v1_3/rest.py similarity index 97% rename from cloudbeds_pms_v1_2/rest.py rename to cloudbeds_pms_v1_3/rest.py index b76c886..f3e598f 100644 --- a/cloudbeds_pms_v1_2/rest.py +++ b/cloudbeds_pms_v1_3/rest.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ import urllib3 -from cloudbeds_pms_v1_2.exceptions import ApiException, ApiValueError +from cloudbeds_pms_v1_3.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse diff --git a/cloudbeds_pms_v1_2/test/__init__.py b/cloudbeds_pms_v1_3/test/__init__.py similarity index 100% rename from cloudbeds_pms_v1_2/test/__init__.py rename to cloudbeds_pms_v1_3/test/__init__.py diff --git a/cloudbeds_pms_v1_2/test/test_adjustment_api.py b/cloudbeds_pms_v1_3/test/test_adjustment_api.py similarity index 81% rename from cloudbeds_pms_v1_2/test/test_adjustment_api.py rename to cloudbeds_pms_v1_3/test/test_adjustment_api.py index 0698d93..c8f2dc1 100644 --- a/cloudbeds_pms_v1_2/test/test_adjustment_api.py +++ b/cloudbeds_pms_v1_3/test/test_adjustment_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.adjustment_api import AdjustmentApi +from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi class TestAdjustmentApi(unittest.TestCase): @@ -33,6 +33,20 @@ def test_delete_adjustment_delete(self) -> None: """ pass + def test_get_adjustment_get(self) -> None: + """Test case for get_adjustment_get + + getAdjustment + """ + pass + + def test_get_adjustments_get(self) -> None: + """Test case for get_adjustments_get + + getAdjustments + """ + pass + def test_post_adjustment_post(self) -> None: """Test case for post_adjustment_post diff --git a/cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py b/cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py rename to cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py index 7c2e338..b40fc18 100644 --- a/cloudbeds_pms_v1_2/test/test_allotment_blocks_api.py +++ b/cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.allotment_blocks_api import AllotmentBlocksApi +from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi class TestAllotmentBlocksApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_app_settings_api.py b/cloudbeds_pms_v1_3/test/test_app_settings_api.py similarity index 86% rename from cloudbeds_pms_v1_2/test/test_app_settings_api.py rename to cloudbeds_pms_v1_3/test/test_app_settings_api.py index 0b2c281..9fe9356 100644 --- a/cloudbeds_pms_v1_2/test/test_app_settings_api.py +++ b/cloudbeds_pms_v1_3/test/test_app_settings_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.app_settings_api import AppSettingsApi +from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi class TestAppSettingsApi(unittest.TestCase): @@ -47,6 +47,13 @@ def test_post_app_property_settings_post(self) -> None: """ pass + def test_post_bulk_app_property_settings_post(self) -> None: + """Test case for post_bulk_app_property_settings_post + + postBulkAppPropertySettings + """ + pass + def test_put_app_property_settings_post(self) -> None: """Test case for put_app_property_settings_post diff --git a/cloudbeds_pms_v1_2/test/test_authentication_api.py b/cloudbeds_pms_v1_3/test/test_authentication_api.py similarity index 86% rename from cloudbeds_pms_v1_2/test/test_authentication_api.py rename to cloudbeds_pms_v1_3/test/test_authentication_api.py index e1ade67..d830d81 100644 --- a/cloudbeds_pms_v1_2/test/test_authentication_api.py +++ b/cloudbeds_pms_v1_3/test/test_authentication_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.authentication_api import AuthenticationApi +from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi class TestAuthenticationApi(unittest.TestCase): @@ -26,6 +26,13 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_access_token_check_post(self) -> None: + """Test case for access_token_check_post + + access_token_check + """ + pass + def test_access_token_post(self) -> None: """Test case for access_token_post diff --git a/cloudbeds_pms_v1_3/test/test_beta_api.py b/cloudbeds_pms_v1_3/test/test_beta_api.py new file mode 100644 index 0000000..fb179b6 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_beta_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.api.beta_api import BetaApi + + +class TestBetaApi(unittest.TestCase): + """BetaApi unit test stubs""" + + def setUp(self) -> None: + self.api = BetaApi() + + def tearDown(self) -> None: + pass + + def test_get_async_api_job_get(self) -> None: + """Test case for get_async_api_job_get + + getAsyncApiJob + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_crm_api.py b/cloudbeds_pms_v1_3/test/test_crm_api.py new file mode 100644 index 0000000..7924e4f --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_crm_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.api.crm_api import CRMApi + + +class TestCRMApi(unittest.TestCase): + """CRMApi unit test stubs""" + + def setUp(self) -> None: + self.api = CRMApi() + + def tearDown(self) -> None: + pass + + def test_crm_cache_remove_post(self) -> None: + """Test case for crm_cache_remove_post + + PostCRMCacheRemove + """ + pass + + def test_crm_cache_update_post(self) -> None: + """Test case for crm_cache_update_post + + PostCRMCacheUpdate + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_currency_api.py b/cloudbeds_pms_v1_3/test/test_currency_api.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_currency_api.py rename to cloudbeds_pms_v1_3/test/test_currency_api.py index 1fa003e..86cc020 100644 --- a/cloudbeds_pms_v1_2/test/test_currency_api.py +++ b/cloudbeds_pms_v1_3/test/test_currency_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.currency_api import CurrencyApi +from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi class TestCurrencyApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_custom_fields_api.py b/cloudbeds_pms_v1_3/test/test_custom_fields_api.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_custom_fields_api.py rename to cloudbeds_pms_v1_3/test/test_custom_fields_api.py index 4000e24..8a89a9c 100644 --- a/cloudbeds_pms_v1_2/test/test_custom_fields_api.py +++ b/cloudbeds_pms_v1_3/test/test_custom_fields_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.custom_fields_api import CustomFieldsApi +from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi class TestCustomFieldsApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_dashboard_api.py b/cloudbeds_pms_v1_3/test/test_dashboard_api.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_dashboard_api.py rename to cloudbeds_pms_v1_3/test/test_dashboard_api.py index 4116487..0e2a4e2 100644 --- a/cloudbeds_pms_v1_2/test/test_dashboard_api.py +++ b/cloudbeds_pms_v1_3/test/test_dashboard_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.dashboard_api import DashboardApi +from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi class TestDashboardApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py b/cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py rename to cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py index 49e9406..ee726c0 100644 --- a/cloudbeds_pms_v1_2/test/test_delete_adjustment_response.py +++ b/cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse class TestDeleteAdjustmentResponse(unittest.TestCase): """DeleteAdjustmentResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py b/cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py rename to cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py index 6705c40..7dc8568 100644 --- a/cloudbeds_pms_v1_2/test/test_delete_guest_note_response.py +++ b/cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse class TestDeleteGuestNoteResponse(unittest.TestCase): """DeleteGuestNoteResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py b/cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py new file mode 100644 index 0000000..9f0b70e --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse + +class TestDeleteItemFromReservationResponse(unittest.TestCase): + """DeleteItemFromReservationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeleteItemFromReservationResponse: + """Test DeleteItemFromReservationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeleteItemFromReservationResponse` + """ + model = DeleteItemFromReservationResponse() + if include_optional: + return DeleteItemFromReservationResponse( + success = True, + message = '' + ) + else: + return DeleteItemFromReservationResponse( + ) + """ + + def testDeleteItemFromReservationResponse(self): + """Test DeleteItemFromReservationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py b/cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py rename to cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py index e4b2c84..fe0d2c5 100644 --- a/cloudbeds_pms_v1_2/test/test_delete_reservation_note_response.py +++ b/cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse class TestDeleteReservationNoteResponse(unittest.TestCase): """DeleteReservationNoteResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_delete_room_block_response.py b/cloudbeds_pms_v1_3/test/test_delete_room_block_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_delete_room_block_response.py rename to cloudbeds_pms_v1_3/test/test_delete_room_block_response.py index 2a47e8b..02e21f8 100644 --- a/cloudbeds_pms_v1_2/test/test_delete_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_delete_room_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse class TestDeleteRoomBlockResponse(unittest.TestCase): """DeleteRoomBlockResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_delete_webhook_response.py b/cloudbeds_pms_v1_3/test/test_delete_webhook_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_delete_webhook_response.py rename to cloudbeds_pms_v1_3/test/test_delete_webhook_response.py index 5736fb8..29c5ff0 100644 --- a/cloudbeds_pms_v1_2/test/test_delete_webhook_response.py +++ b/cloudbeds_pms_v1_3/test/test_delete_webhook_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse class TestDeleteWebhookResponse(unittest.TestCase): """DeleteWebhookResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_emails_api.py b/cloudbeds_pms_v1_3/test/test_emails_api.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_emails_api.py rename to cloudbeds_pms_v1_3/test/test_emails_api.py index 2298fa9..1048365 100644 --- a/cloudbeds_pms_v1_2/test/test_emails_api.py +++ b/cloudbeds_pms_v1_3/test/test_emails_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.emails_api import EmailsApi +from cloudbeds_pms_v1_3.api.emails_api import EmailsApi class TestEmailsApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustment_response.py b/cloudbeds_pms_v1_3/test/test_get_adjustment_response.py new file mode 100644 index 0000000..b8682b0 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_adjustment_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse + +class TestGetAdjustmentResponse(unittest.TestCase): + """GetAdjustmentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentResponse: + """Test GetAdjustmentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentResponse` + """ + model = GetAdjustmentResponse() + if include_optional: + return GetAdjustmentResponse( + success = True, + data = cloudbeds_pms_v1_3.models.get_adjustment_response_data.GetAdjustmentResponse_data( + adjustment_id = '', + property_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + reservation_identifier = '', + description = '', + notes = '', + amount = 1.337, + currency = 1.337, + posted = 1.337, + type = '', + void_id = '', ) + ) + else: + return GetAdjustmentResponse( + ) + """ + + def testGetAdjustmentResponse(self): + """Test GetAdjustmentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py b/cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py new file mode 100644 index 0000000..c921818 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData + +class TestGetAdjustmentResponseData(unittest.TestCase): + """GetAdjustmentResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentResponseData: + """Test GetAdjustmentResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentResponseData` + """ + model = GetAdjustmentResponseData() + if include_optional: + return GetAdjustmentResponseData( + adjustment_id = '', + property_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + reservation_identifier = '', + description = '', + notes = '', + amount = 1.337, + currency = 1.337, + posted = 1.337, + type = '', + void_id = '' + ) + else: + return GetAdjustmentResponseData( + ) + """ + + def testGetAdjustmentResponseData(self): + """Test GetAdjustmentResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustments_response.py b/cloudbeds_pms_v1_3/test/test_get_adjustments_response.py new file mode 100644 index 0000000..41adb50 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_adjustments_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse + +class TestGetAdjustmentsResponse(unittest.TestCase): + """GetAdjustmentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentsResponse: + """Test GetAdjustmentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentsResponse` + """ + model = GetAdjustmentsResponse() + if include_optional: + return GetAdjustmentsResponse( + success = True, + data = cloudbeds_pms_v1_3.models.get_adjustments_response_data.GetAdjustmentsResponse_data( + adjustment_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + description = '', + notes = '', + amount = 1.337, + type = '', ) + ) + else: + return GetAdjustmentsResponse( + ) + """ + + def testGetAdjustmentsResponse(self): + """Test GetAdjustmentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py b/cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py new file mode 100644 index 0000000..451db82 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData + +class TestGetAdjustmentsResponseData(unittest.TestCase): + """GetAdjustmentsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAdjustmentsResponseData: + """Test GetAdjustmentsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAdjustmentsResponseData` + """ + model = GetAdjustmentsResponseData() + if include_optional: + return GetAdjustmentsResponseData( + adjustment_id = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + room_id = '', + room_name = '', + description = '', + notes = '', + amount = 1.337, + type = '' + ) + else: + return GetAdjustmentsResponseData( + ) + """ + + def testGetAdjustmentsResponseData(self): + """Test GetAdjustmentsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py rename to cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py index 74e7507..80d0f5b 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse class TestGetAllotmentBlocksResponse(unittest.TestCase): """GetAllotmentBlocksResponse unit test stubs""" @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: count = 56, total = 56, data = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner.GetAllotmentBlocksResponse_data_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner.GetAllotmentBlocksResponse_data_inner( property_id = '', allotment_block_code = '', allotment_block_status = '', @@ -52,24 +52,24 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: group_code = '', is_auto_release = True, auto_release = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( release_type = 'all_dates', days = 56, release_time = '', ) ], allotment_intervals = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), availability = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', @@ -79,7 +79,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: split_block_allotted = 56, split_block_confirmed = 56, ) ], - restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py index ca9611e..1e6c7c3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner class TestGetAllotmentBlocksResponseDataInner(unittest.TestCase): """GetAllotmentBlocksResponseDataInner unit test stubs""" @@ -47,24 +47,24 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner group_code = '', is_auto_release = True, auto_release = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( release_type = 'all_dates', days = 56, release_time = '', ) ], allotment_intervals = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), availability = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', @@ -74,7 +74,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner split_block_allotted = 56, split_block_confirmed = 56, ) ], - restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py index b40f1ab..47234c8 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner class TestGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner(unittest.TestCase): """GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner unit test stubs""" @@ -39,13 +39,13 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), availability = [ - cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( + cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_availability_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner split_block_allotted = 56, split_block_confirmed = 56, ) ], - restrictions = cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py rename to cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py index cd7eace..34ac813 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner class TestGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner(unittest.TestCase): """GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner unit test stubs""" @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py rename to cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py index aa3cb09..fe322e2 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions class TestGetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): """GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py rename to cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py index 4154b2d..8d544ca 100644 --- a/cloudbeds_pms_v1_2/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner class TestGetAllotmentBlocksResponseDataInnerAutoReleaseInner(unittest.TestCase): """GetAllotmentBlocksResponseDataInnerAutoReleaseInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py b/cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py rename to cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py index 522cf9e..7d872f5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse class TestGetAppPropertySettingsResponse(unittest.TestCase): """GetAppPropertySettingsResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py b/cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py index 3ee5e3b..7e62844 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData class TestGetAppPropertySettingsResponseData(unittest.TestCase): """GetAppPropertySettingsResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py b/cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py rename to cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py index 4ad5874..e912185 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_property_settings_response_data_one_of.py +++ b/cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf class TestGetAppPropertySettingsResponseDataOneOf(unittest.TestCase): """GetAppPropertySettingsResponseDataOneOf unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_app_settings_response.py b/cloudbeds_pms_v1_3/test/test_get_app_settings_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_app_settings_response.py rename to cloudbeds_pms_v1_3/test/test_get_app_settings_response.py index d5380ac..7d65f6a 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_settings_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_app_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse class TestGetAppSettingsResponse(unittest.TestCase): """GetAppSettingsResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetAppSettingsResponse: if include_optional: return GetAppSettingsResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_app_settings_response_data.GetAppSettingsResponse_data( + data = cloudbeds_pms_v1_3.models.get_app_settings_response_data.GetAppSettingsResponse_data( full_revenue_sync = True, ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py b/cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py index fef62ef..e696665 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_settings_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData class TestGetAppSettingsResponseData(unittest.TestCase): """GetAppSettingsResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_app_state_response.py b/cloudbeds_pms_v1_3/test/test_get_app_state_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_app_state_response.py rename to cloudbeds_pms_v1_3/test/test_get_app_state_response.py index bb1931e..35a4833 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_state_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_app_state_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse class TestGetAppStateResponse(unittest.TestCase): """GetAppStateResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetAppStateResponse: if include_optional: return GetAppStateResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_app_state_response_data.GetAppStateResponse_data( + data = cloudbeds_pms_v1_3.models.get_app_state_response_data.GetAppStateResponse_data( app_state = 'enabled', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py b/cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py index 9d3870e..3182530 100644 --- a/cloudbeds_pms_v1_2/test/test_get_app_state_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData class TestGetAppStateResponseData(unittest.TestCase): """GetAppStateResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py new file mode 100644 index 0000000..fc459f9 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse + +class TestGetAsyncApiJobResponse(unittest.TestCase): + """GetAsyncApiJobResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponse: + """Test GetAsyncApiJobResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponse` + """ + model = GetAsyncApiJobResponse() + if include_optional: + return GetAsyncApiJobResponse( + success = True, + has_next_page = True, + next_page = '', + data = [ + cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner.GetAsyncApiJobResponse_data_inner( + job_reference_id = '', + date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + status = '', + updates = [ + cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner.GetAsyncApiJobResponse_data_inner_updates_inner( + rate_id = '', + action = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56, + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + groupcode = '', + is_auto_release = True, + auto_release = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release.GetAsyncApiJobResponse_data_inner_updates_inner_autoRelease( + release_type = 'all_dates', + days = 56, + release_time = '', ), + allotment_intervals = [ + cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ], + message = '', ) + ], ) + ] + ) + else: + return GetAsyncApiJobResponse( + ) + """ + + def testGetAsyncApiJobResponse(self): + """Test GetAsyncApiJobResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py new file mode 100644 index 0000000..0343a63 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner + +class TestGetAsyncApiJobResponseDataInner(unittest.TestCase): + """GetAsyncApiJobResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInner: + """Test GetAsyncApiJobResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponseDataInner` + """ + model = GetAsyncApiJobResponseDataInner() + if include_optional: + return GetAsyncApiJobResponseDataInner( + job_reference_id = '', + date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + status = '', + updates = [ + cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner.GetAsyncApiJobResponse_data_inner_updates_inner( + rate_id = '', + action = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56, + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + groupcode = '', + is_auto_release = True, + auto_release = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release.GetAsyncApiJobResponse_data_inner_updates_inner_autoRelease( + release_type = 'all_dates', + days = 56, + release_time = '', ), + allotment_intervals = [ + cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ], + message = '', ) + ] + ) + else: + return GetAsyncApiJobResponseDataInner( + ) + """ + + def testGetAsyncApiJobResponseDataInner(self): + """Test GetAsyncApiJobResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py new file mode 100644 index 0000000..297c21e --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner + +class TestGetAsyncApiJobResponseDataInnerUpdatesInner(unittest.TestCase): + """GetAsyncApiJobResponseDataInnerUpdatesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInner: + """Test GetAsyncApiJobResponseDataInnerUpdatesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInner` + """ + model = GetAsyncApiJobResponseDataInnerUpdatesInner() + if include_optional: + return GetAsyncApiJobResponseDataInnerUpdatesInner( + rate_id = '', + action = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, + max_los = 56, + min_los = 56, + closed_to_arrival = True, + closed_to_departure = True, + cut_off = 56, + last_minute_booking = 56, + property_id = '', + allotment_block_code = '', + allotment_block_status = '', + allotment_block_name = '', + allotment_block_id = '', + rate_type = '', + rate_plan_id = '', + allotment_type = '', + group_id = '', + groupcode = '', + is_auto_release = True, + auto_release = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release.GetAsyncApiJobResponse_data_inner_updates_inner_autoRelease( + release_type = 'all_dates', + days = 56, + release_time = '', ), + allotment_intervals = [ + cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ), ) + ], + message = '' + ) + else: + return GetAsyncApiJobResponseDataInnerUpdatesInner( + ) + """ + + def testGetAsyncApiJobResponseDataInnerUpdatesInner(self): + """Test GetAsyncApiJobResponseDataInnerUpdatesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py new file mode 100644 index 0000000..81f4a91 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner + +class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner(unittest.TestCase): + """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner: + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner` + """ + model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner() + if include_optional: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner( + room_type_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( + date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ), ), + restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56, ) + ) + else: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner( + ) + """ + + def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner(self): + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py new file mode 100644 index 0000000..9a3fe18 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability + +class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability(unittest.TestCase): + """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability: + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability` + """ + model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability() + if include_optional: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability( + var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + block_remaining = 56, + block_allotted = 56, + block_confirmed = 56, + rate = '', + guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '', ) + ) + else: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability( + ) + """ + + def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability(self): + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py new file mode 100644 index 0000000..427f823 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing + +class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing(unittest.TestCase): + """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing: + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing` + """ + model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing() + if include_optional: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing( + adult1 = '', + adult2 = '', + adult3 = '', + child1 = '', + child2 = '', + child3 = '' + ) + else: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing( + ) + """ + + def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing(self): + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py new file mode 100644 index 0000000..4bb8498 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions + +class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): + """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions: + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions` + """ + model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions() + if include_optional: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions( + min_los = 56, + max_los = 56, + cut_off_days = 56, + last_minute_booking_days = 56, + closed_to_arrival = 56, + closed_to_departure = 56 + ) + else: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions( + ) + """ + + def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions(self): + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py new file mode 100644 index 0000000..b288851 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease + +class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease(unittest.TestCase): + """GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease: + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease` + """ + model = GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease() + if include_optional: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease( + release_type = 'all_dates', + days = 56, + release_time = '' + ) + else: + return GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease( + ) + """ + + def testGetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease(self): + """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py rename to cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py index 0407827..69487ce 100644 --- a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse class TestGetAvailableRoomTypesResponse(unittest.TestCase): """GetAvailableRoomTypesResponse unit test stubs""" @@ -37,16 +37,16 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponse: return GetAvailableRoomTypesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner.GetAvailableRoomTypesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner.GetAvailableRoomTypesResponse_data_inner( property_id = '', property_currency = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner.GetAvailableRoomTypesResponse_data_inner_propertyCurrency_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner.GetAvailableRoomTypesResponse_data_inner_propertyCurrency_inner( currency_code = '', currency_symbol = '', currency_position = 'before', ) ], property_rooms = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner( room_type_id = '', room_type_name = '', room_type_name_short = '', @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponse: adults_included = 56, children_included = 56, room_type_photos = [ - cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( thumb = '', image = '', ) ], @@ -74,14 +74,14 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponse: None ], room_rate_detailed = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], derived_type = 'fixed', derived_value = 1.337, individual_rooms = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( room_id = '', room_name = 1.337, dorm_room_name = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py index 16ce271..984b6b4 100644 --- a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner class TestGetAvailableRoomTypesResponseDataInner(unittest.TestCase): """GetAvailableRoomTypesResponseDataInner unit test stubs""" @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataIn return GetAvailableRoomTypesResponseDataInner( property_id = '', property_currency = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner.GetAvailableRoomTypesResponse_data_inner_propertyCurrency_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner.GetAvailableRoomTypesResponse_data_inner_propertyCurrency_inner( currency_code = '', currency_symbol = '', currency_position = 'before', ) ], property_rooms = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner( room_type_id = '', room_type_name = '', room_type_name_short = '', @@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataIn adults_included = 56, children_included = 56, room_type_photos = [ - cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( thumb = '', image = '', ) ], @@ -71,14 +71,14 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataIn None ], room_rate_detailed = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], derived_type = 'fixed', derived_value = 1.337, individual_rooms = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( room_id = '', room_name = 1.337, dorm_room_name = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py rename to cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py index 89dd9f0..5fe7950 100644 --- a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_currency_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner class TestGetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner(unittest.TestCase): """GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py index 4b0af0d..8a816ea 100644 --- a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner class TestGetAvailableRoomTypesResponseDataInnerPropertyRoomsInner(unittest.TestCase): """GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner unit test stubs""" @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataIn adults_included = 56, children_included = 56, room_type_photos = [ - cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( thumb = '', image = '', ) ], @@ -62,14 +62,14 @@ def make_instance(self, include_optional) -> GetAvailableRoomTypesResponseDataIn None ], room_rate_detailed = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_roomRateDetailed_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], derived_type = 'fixed', derived_value = 1.337, individual_rooms = [ - cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( + cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.GetAvailableRoomTypesResponse_data_inner_propertyRooms_inner_individualRooms_inner( room_id = '', room_name = 1.337, dorm_room_name = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py index a920912..2ffa778 100644 --- a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner class TestGetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner(unittest.TestCase): """GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py rename to cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py index 3e83a76..56b85d0 100644 --- a/cloudbeds_pms_v1_2/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner class TestGetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner(unittest.TestCase): """GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py similarity index 88% rename from cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py rename to cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py index a0b9034..7aeda5c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse class TestGetCurrencySettingsResponse(unittest.TestCase): """GetCurrencySettingsResponse unit test stubs""" @@ -36,17 +36,17 @@ def make_instance(self, include_optional) -> GetCurrencySettingsResponse: if include_optional: return GetCurrencySettingsResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_currency_settings_response_data.GetCurrencySettingsResponse_data( + data = cloudbeds_pms_v1_3.models.get_currency_settings_response_data.GetCurrencySettingsResponse_data( default = '', acceptable = [ '' ], - format = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format.GetCurrencySettingsResponse_data_format( + format = cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format.GetCurrencySettingsResponse_data_format( decimal = '', thousand = '', ), - rates = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates.GetCurrencySettingsResponse_data_rates( + rates = cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates.GetCurrencySettingsResponse_data_rates( fixed = [ - cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( + cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( currency = '', rate = 1.337, ) ], ), ), diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py index 1c1e10f..da7acce 100644 --- a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData class TestGetCurrencySettingsResponseData(unittest.TestCase): """GetCurrencySettingsResponseData unit test stubs""" @@ -39,12 +39,12 @@ def make_instance(self, include_optional) -> GetCurrencySettingsResponseData: acceptable = [ '' ], - format = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format.GetCurrencySettingsResponse_data_format( + format = cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format.GetCurrencySettingsResponse_data_format( decimal = '', thousand = '', ), - rates = cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates.GetCurrencySettingsResponse_data_rates( + rates = cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates.GetCurrencySettingsResponse_data_rates( fixed = [ - cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( + cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( currency = '', rate = 1.337, ) ], ) diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py rename to cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py index 5590533..eb504b4 100644 --- a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_format.py +++ b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat class TestGetCurrencySettingsResponseDataFormat(unittest.TestCase): """GetCurrencySettingsResponseDataFormat unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py rename to cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py index 80f0803..0724a97 100644 --- a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates.py +++ b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates class TestGetCurrencySettingsResponseDataRates(unittest.TestCase): """GetCurrencySettingsResponseDataRates unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetCurrencySettingsResponseDataRate if include_optional: return GetCurrencySettingsResponseDataRates( fixed = [ - cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( + cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner.GetCurrencySettingsResponse_data_rates_fixed_inner( currency = '', rate = 1.337, ) ] diff --git a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py rename to cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py index 2675c02..37152db 100644 --- a/cloudbeds_pms_v1_2/test/test_get_currency_settings_response_data_rates_fixed_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner class TestGetCurrencySettingsResponseDataRatesFixedInner(unittest.TestCase): """GetCurrencySettingsResponseDataRatesFixedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py rename to cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py index 1d8d63a..bef0206 100644 --- a/cloudbeds_pms_v1_2/test/test_get_custom_fields_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse class TestGetCustomFieldsResponse(unittest.TestCase): """GetCustomFieldsResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetCustomFieldsResponse: return GetCustomFieldsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner.GetCustomFieldsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner.GetCustomFieldsResponse_data_inner( property_id = '', name = '', shortcode = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py index e743a50..782e8e5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_custom_fields_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner class TestGetCustomFieldsResponseDataInner(unittest.TestCase): """GetCustomFieldsResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_dashboard_response.py b/cloudbeds_pms_v1_3/test/test_get_dashboard_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_dashboard_response.py rename to cloudbeds_pms_v1_3/test/test_get_dashboard_response.py index 4d23e87..a427508 100644 --- a/cloudbeds_pms_v1_2/test/test_get_dashboard_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_dashboard_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse class TestGetDashboardResponse(unittest.TestCase): """GetDashboardResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetDashboardResponse: if include_optional: return GetDashboardResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_dashboard_response_data.GetDashboardResponse_data( + data = cloudbeds_pms_v1_3.models.get_dashboard_response_data.GetDashboardResponse_data( rooms_occupied = 56, percentage_occupied = 56, arrivals = 56, diff --git a/cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py b/cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py index 84dbc09..31b812c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_dashboard_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData class TestGetDashboardResponseData(unittest.TestCase): """GetDashboardResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py b/cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py rename to cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py index 01b586b..b20ef35 100644 --- a/cloudbeds_pms_v1_2/test/test_get_email_schedule_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse class TestGetEmailScheduleResponse(unittest.TestCase): """GetEmailScheduleResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetEmailScheduleResponse: return GetEmailScheduleResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner.GetEmailScheduleResponse_data_inner( + cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner.GetEmailScheduleResponse_data_inner( email_schedule_id = '', name = '', email_template_id = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py index 50972b7..29f5337 100644 --- a/cloudbeds_pms_v1_2/test/test_get_email_schedule_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner class TestGetEmailScheduleResponseDataInner(unittest.TestCase): """GetEmailScheduleResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_email_templates_response.py b/cloudbeds_pms_v1_3/test/test_get_email_templates_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_email_templates_response.py rename to cloudbeds_pms_v1_3/test/test_get_email_templates_response.py index 07309e9..94b4dcf 100644 --- a/cloudbeds_pms_v1_2/test/test_get_email_templates_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_email_templates_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse class TestGetEmailTemplatesResponse(unittest.TestCase): """GetEmailTemplatesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetEmailTemplatesResponse: return GetEmailTemplatesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner.GetEmailTemplatesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner.GetEmailTemplatesResponse_data_inner( email_template_id = '', name = '', subject = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py index 61192b9..c742285 100644 --- a/cloudbeds_pms_v1_2/test/test_get_email_templates_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner class TestGetEmailTemplatesResponseDataInner(unittest.TestCase): """GetEmailTemplatesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_files_response.py b/cloudbeds_pms_v1_3/test/test_get_files_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_files_response.py rename to cloudbeds_pms_v1_3/test/test_get_files_response.py index fe40448..e8825c9 100644 --- a/cloudbeds_pms_v1_2/test/test_get_files_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_files_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse class TestGetFilesResponse(unittest.TestCase): """GetFilesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetFilesResponse: return GetFilesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_files_response_data_inner.GetFilesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_files_response_data_inner.GetFilesResponse_data_inner( file_id = '', name = '', type = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py index a95cb82..f7e9456 100644 --- a/cloudbeds_pms_v1_2/test/test_get_files_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner class TestGetFilesResponseDataInner(unittest.TestCase): """GetFilesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_group_notes_response.py b/cloudbeds_pms_v1_3/test/test_get_group_notes_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_group_notes_response.py rename to cloudbeds_pms_v1_3/test/test_get_group_notes_response.py index 2c36383..071b0d5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_group_notes_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_group_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse class TestGetGroupNotesResponse(unittest.TestCase): """GetGroupNotesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetGroupNotesResponse: return GetGroupNotesResponse( success = True, code = 56, - data = cloudbeds_pms_v1_2.models.get_group_notes_response_data.GetGroupNotesResponse_data( + data = cloudbeds_pms_v1_3.models.get_group_notes_response_data.GetGroupNotesResponse_data( id = '', group_profile_id = '', text = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py b/cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py index 04736bf..d3868b9 100644 --- a/cloudbeds_pms_v1_2/test/test_get_group_notes_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData class TestGetGroupNotesResponseData(unittest.TestCase): """GetGroupNotesResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_groups_response.py b/cloudbeds_pms_v1_3/test/test_get_groups_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_groups_response.py rename to cloudbeds_pms_v1_3/test/test_get_groups_response.py index c0f9328..306f09a 100644 --- a/cloudbeds_pms_v1_2/test/test_get_groups_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse class TestGetGroupsResponse(unittest.TestCase): """GetGroupsResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetGroupsResponse: return GetGroupsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_groups_response_data_inner.GetGroupsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_groups_response_data_inner.GetGroupsResponse_data_inner( group_code = '', name = '', type = 'group', diff --git a/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py index c50b423..5aa07d3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner class TestGetGroupsResponseDataInner(unittest.TestCase): """GetGroupsResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_list_response.py b/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_guest_list_response.py rename to cloudbeds_pms_v1_3/test/test_get_guest_list_response.py index 6173529..747e3b3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_list_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse class TestGetGuestListResponse(unittest.TestCase): """GetGuestListResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetGuestListResponse: return GetGuestListResponse( success = True, data = { - 'key' : cloudbeds_pms_v1_2.models.get_guest_list_response_data_value.GetGuestListResponse_data_value( + 'key' : cloudbeds_pms_v1_3.models.get_guest_list_response_data_value.GetGuestListResponse_data_value( reservation_id = '', guest_name = '', guest_email = '', @@ -68,7 +68,7 @@ def make_instance(self, include_optional) -> GetGuestListResponse: company_name = '', guest_opt_in = True, guest_notes = [ - cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( + cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( id = '', note = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py rename to cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py index a15ae6a..5cfe6a7 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue class TestGetGuestListResponseDataValue(unittest.TestCase): """GetGuestListResponseDataValue unit test stubs""" @@ -65,7 +65,7 @@ def make_instance(self, include_optional) -> GetGuestListResponseDataValue: company_name = '', guest_opt_in = True, guest_notes = [ - cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( + cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( id = '', note = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py rename to cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py index 5cf2821..f3940d3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_list_response_data_value_guest_notes_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner class TestGetGuestListResponseDataValueGuestNotesInner(unittest.TestCase): """GetGuestListResponseDataValueGuestNotesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py b/cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py rename to cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py index d5adc23..60715eb 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_notes_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse class TestGetGuestNotesResponse(unittest.TestCase): """GetGuestNotesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetGuestNotesResponse: return GetGuestNotesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner.GetGuestNotesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner.GetGuestNotesResponse_data_inner( guest_note_id = '', user_name = '', date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py index 509bc3d..a60bf2d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_notes_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner class TestGetGuestNotesResponseDataInner(unittest.TestCase): """GetGuestNotesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response.py b/cloudbeds_pms_v1_3/test/test_get_guest_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_guest_response.py rename to cloudbeds_pms_v1_3/test/test_get_guest_response.py index 0905763..9627c0c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse class TestGetGuestResponse(unittest.TestCase): """GetGuestResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetGuestResponse: if include_optional: return GetGuestResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_guest_response_data.GetGuestResponse_data( + data = cloudbeds_pms_v1_3.models.get_guest_response_data.GetGuestResponse_data( first_name = '', last_name = '', gender = 'M', @@ -56,7 +56,7 @@ def make_instance(self, include_optional) -> GetGuestResponse: document_issuing_country = '', document_expiration_date = null, custom_fields = [ - cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( + cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py b/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_guest_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_guest_response_data.py index 670cfa1..051da16 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData class TestGetGuestResponseData(unittest.TestCase): """GetGuestResponseData unit test stubs""" @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> GetGuestResponseData: document_issuing_country = '', document_expiration_date = None, custom_fields = [ - cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( + cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner.GetGuestResponse_data_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py rename to cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py index 2b2d310..8bc66ce 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_birth_date.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate class TestGetGuestResponseDataBirthDate(unittest.TestCase): """GetGuestResponseDataBirthDate unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py rename to cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py index e5733d2..a6ef372 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner class TestGetGuestResponseDataCustomFieldsInner(unittest.TestCase): """GetGuestResponseDataCustomFieldsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py rename to cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py index 1174a1f..37d0bd6 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_expiration_date.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate class TestGetGuestResponseDataDocumentExpirationDate(unittest.TestCase): """GetGuestResponseDataDocumentExpirationDate unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py rename to cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py index 5de033c..0ef6820 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guest_response_data_document_issue_date.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate class TestGetGuestResponseDataDocumentIssueDate(unittest.TestCase): """GetGuestResponseDataDocumentIssueDate unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py b/cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py rename to cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py index bd21eff..f81f21b 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse class TestGetGuestsByFilterResponse(unittest.TestCase): """GetGuestsByFilterResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetGuestsByFilterResponse: return GetGuestsByFilterResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner.GetGuestsByFilterResponse_data_inner( + cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner.GetGuestsByFilterResponse_data_inner( reservation_id = '', guest_name = '', guest_id = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py index 884a008..fd128ca 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guests_by_filter_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner class TestGetGuestsByFilterResponseDataInner(unittest.TestCase): """GetGuestsByFilterResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py b/cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py rename to cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py index 9f511c0..9a7ceac 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse class TestGetGuestsByStatusResponse(unittest.TestCase): """GetGuestsByStatusResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetGuestsByStatusResponse: return GetGuestsByStatusResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner.GetGuestsByStatusResponse_data_inner( + cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner.GetGuestsByStatusResponse_data_inner( guest_id = '', reservation_id = '', sub_reservation_id = '', @@ -66,7 +66,7 @@ def make_instance(self, include_optional) -> GetGuestsByStatusResponse: start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py index 1938541..595458d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guests_by_status_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner class TestGetGuestsByStatusResponseDataInner(unittest.TestCase): """GetGuestsByStatusResponseDataInner unit test stubs""" @@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> GetGuestsByStatusResponseDataInner: start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py rename to cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py index aa37d56..987a486 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse class TestGetGuestsModifiedResponse(unittest.TestCase): """GetGuestsModifiedResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetGuestsModifiedResponse: return GetGuestsModifiedResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner.GetGuestsModifiedResponse_data_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner.GetGuestsModifiedResponse_data_inner( guest_id = '', reservation_id = '', room_type_id = '', @@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> GetGuestsModifiedResponse: start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py index 3587685..416c269 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner class TestGetGuestsModifiedResponseDataInner(unittest.TestCase): """GetGuestsModifiedResponseDataInner unit test stubs""" @@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> GetGuestsModifiedResponseDataInner: start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py rename to cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py index 4060e96..8e885ed 100644 --- a/cloudbeds_pms_v1_2/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner class TestGetGuestsModifiedResponseDataInnerCustomFieldsInner(unittest.TestCase): """GetGuestsModifiedResponseDataInnerCustomFieldsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py rename to cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py index 6134a6b..8858f6f 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse class TestGetHotelDetailsResponse(unittest.TestCase): """GetHotelDetailsResponse unit test stubs""" @@ -36,30 +36,30 @@ def make_instance(self, include_optional) -> GetHotelDetailsResponse: if include_optional: return GetHotelDetailsResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_hotel_details_response_data.GetHotelDetailsResponse_data( + data = cloudbeds_pms_v1_3.models.get_hotel_details_response_data.GetHotelDetailsResponse_data( property_id = '', organization_id = '', property_name = '', property_type = '', property_image = [ - cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( thumb = '', image = '', ) ], property_description = '', - property_currency = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( + property_currency = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( currency_code = '', currency_symbol = '', currency_position = 'before', ), property_primary_language = '', property_additional_photos = [ - cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( thumb = '', image = '', ) ], property_phone = '', property_email = '', - property_address = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address.GetHotelDetailsResponse_data_propertyAddress( + property_address = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address.GetHotelDetailsResponse_data_propertyAddress( property_address1 = '', property_address2 = '', property_city = '', @@ -68,7 +68,7 @@ def make_instance(self, include_optional) -> GetHotelDetailsResponse: property_country = '', property_latitude = '', property_longitude = '', ), - property_policy = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy.GetHotelDetailsResponse_data_propertyPolicy( + property_policy = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy.GetHotelDetailsResponse_data_propertyPolicy( property_check_in_time = '', property_check_out_time = '', property_late_check_out_allowed = True, diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py index 2d0fd70..958a9b2 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData class TestGetHotelDetailsResponseData(unittest.TestCase): """GetHotelDetailsResponseData unit test stubs""" @@ -40,24 +40,24 @@ def make_instance(self, include_optional) -> GetHotelDetailsResponseData: property_name = '', property_type = '', property_image = [ - cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( thumb = '', image = '', ) ], property_description = '', - property_currency = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( + property_currency = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( currency_code = '', currency_symbol = '', currency_position = 'before', ), property_primary_language = '', property_additional_photos = [ - cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( + cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( thumb = '', image = '', ) ], property_phone = '', property_email = '', - property_address = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address.GetHotelDetailsResponse_data_propertyAddress( + property_address = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address.GetHotelDetailsResponse_data_propertyAddress( property_address1 = '', property_address2 = '', property_city = '', @@ -66,7 +66,7 @@ def make_instance(self, include_optional) -> GetHotelDetailsResponseData: property_country = '', property_latitude = '', property_longitude = '', ), - property_policy = cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy.GetHotelDetailsResponse_data_propertyPolicy( + property_policy = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy.GetHotelDetailsResponse_data_propertyPolicy( property_check_in_time = '', property_check_out_time = '', property_late_check_out_allowed = True, diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py rename to cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py index 42aa274..406be6c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_address.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress class TestGetHotelDetailsResponseDataPropertyAddress(unittest.TestCase): """GetHotelDetailsResponseDataPropertyAddress unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py rename to cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py index a2dad78..636f74b 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_currency.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency class TestGetHotelDetailsResponseDataPropertyCurrency(unittest.TestCase): """GetHotelDetailsResponseDataPropertyCurrency unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py rename to cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py index 22bd2f9..883cb72 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_image_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner class TestGetHotelDetailsResponseDataPropertyImageInner(unittest.TestCase): """GetHotelDetailsResponseDataPropertyImageInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py rename to cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py index 58786db..4f41735 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotel_details_response_data_property_policy.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy class TestGetHotelDetailsResponseDataPropertyPolicy(unittest.TestCase): """GetHotelDetailsResponseDataPropertyPolicy unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py b/cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py new file mode 100644 index 0000000..bef7ef9 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse + +class TestGetHotelRoomTypesResponse(unittest.TestCase): + """GetHotelRoomTypesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHotelRoomTypesResponse: + """Test GetHotelRoomTypesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHotelRoomTypesResponse` + """ + model = GetHotelRoomTypesResponse() + if include_optional: + return GetHotelRoomTypesResponse( + success = True, + count = 56, + data = [ + '' + ], + total = 56, + message = '' + ) + else: + return GetHotelRoomTypesResponse( + ) + """ + + def testGetHotelRoomTypesResponse(self): + """Test GetHotelRoomTypesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_hotels_response.py b/cloudbeds_pms_v1_3/test/test_get_hotels_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_hotels_response.py rename to cloudbeds_pms_v1_3/test/test_get_hotels_response.py index d495910..0074ee7 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotels_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotels_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse class TestGetHotelsResponse(unittest.TestCase): """GetHotelsResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetHotelsResponse: return GetHotelsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_hotels_response_data_inner.GetHotelsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_hotels_response_data_inner.GetHotelsResponse_data_inner( property_id = '', organization_id = '', property_name = '', @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> GetHotelsResponse: property_description = '', property_timezone = '', property_currency = [ - cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner.GetHotelsResponse_data_inner_propertyCurrency_inner( + cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner.GetHotelsResponse_data_inner_propertyCurrency_inner( currency_code = '', currency_symbol = '', currency_position = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py index 6d846e7..14ce223 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner class TestGetHotelsResponseDataInner(unittest.TestCase): """GetHotelsResponseDataInner unit test stubs""" @@ -42,7 +42,7 @@ def make_instance(self, include_optional) -> GetHotelsResponseDataInner: property_description = '', property_timezone = '', property_currency = [ - cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner.GetHotelsResponse_data_inner_propertyCurrency_inner( + cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner.GetHotelsResponse_data_inner_propertyCurrency_inner( currency_code = '', currency_symbol = '', currency_position = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py rename to cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py index 3a179f6..5782bf2 100644 --- a/cloudbeds_pms_v1_2/test/test_get_hotels_response_data_inner_property_currency_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner class TestGetHotelsResponseDataInnerPropertyCurrencyInner(unittest.TestCase): """GetHotelsResponseDataInnerPropertyCurrencyInner unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py new file mode 100644 index 0000000..c471592 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse + +class TestGetHouseAccountDetailsResponse(unittest.TestCase): + """GetHouseAccountDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponse: + """Test GetHouseAccountDetailsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponse` + """ + model = GetHouseAccountDetailsResponse() + if include_optional: + return GetHouseAccountDetailsResponse( + success = True, + data = cloudbeds_pms_v1_3.models.get_house_account_details_response_data.GetHouseAccountDetailsResponse_data( + total = [ + cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( + count = 56, + quantity = '', + debit = '', + credit = '', ) + ], + records = [ + cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( + property_id = '', + transaction_id = '', + user_name = '', + description = '', + notes = '', + quantity = '', + debit = '', + credit = '', + debit_formatter = '', + credit_formatted = '', + currency = '', + transaction_code = '', + parent_transaction_id = '', + transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], ) + ) + else: + return GetHouseAccountDetailsResponse( + ) + """ + + def testGetHouseAccountDetailsResponse(self): + """Test GetHouseAccountDetailsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py new file mode 100644 index 0000000..290a566 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData + +class TestGetHouseAccountDetailsResponseData(unittest.TestCase): + """GetHouseAccountDetailsResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseData: + """Test GetHouseAccountDetailsResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponseData` + """ + model = GetHouseAccountDetailsResponseData() + if include_optional: + return GetHouseAccountDetailsResponseData( + total = [ + cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( + count = 56, + quantity = '', + debit = '', + credit = '', ) + ], + records = [ + cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( + property_id = '', + transaction_id = '', + user_name = '', + description = '', + notes = '', + quantity = '', + debit = '', + credit = '', + debit_formatter = '', + credit_formatted = '', + currency = '', + transaction_code = '', + parent_transaction_id = '', + transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return GetHouseAccountDetailsResponseData( + ) + """ + + def testGetHouseAccountDetailsResponseData(self): + """Test GetHouseAccountDetailsResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py new file mode 100644 index 0000000..8651151 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner + +class TestGetHouseAccountDetailsResponseDataRecordsInner(unittest.TestCase): + """GetHouseAccountDetailsResponseDataRecordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataRecordsInner: + """Test GetHouseAccountDetailsResponseDataRecordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataRecordsInner` + """ + model = GetHouseAccountDetailsResponseDataRecordsInner() + if include_optional: + return GetHouseAccountDetailsResponseDataRecordsInner( + property_id = '', + transaction_id = '', + user_name = '', + description = '', + notes = '', + quantity = '', + debit = '', + credit = '', + debit_formatter = '', + credit_formatted = '', + currency = '', + transaction_code = '', + parent_transaction_id = '', + transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return GetHouseAccountDetailsResponseDataRecordsInner( + ) + """ + + def testGetHouseAccountDetailsResponseDataRecordsInner(self): + """Test GetHouseAccountDetailsResponseDataRecordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py new file mode 100644 index 0000000..fcea6fe --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner + +class TestGetHouseAccountDetailsResponseDataTotalInner(unittest.TestCase): + """GetHouseAccountDetailsResponseDataTotalInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataTotalInner: + """Test GetHouseAccountDetailsResponseDataTotalInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataTotalInner` + """ + model = GetHouseAccountDetailsResponseDataTotalInner() + if include_optional: + return GetHouseAccountDetailsResponseDataTotalInner( + count = 56, + quantity = '', + debit = '', + credit = '' + ) + else: + return GetHouseAccountDetailsResponseDataTotalInner( + ) + """ + + def testGetHouseAccountDetailsResponseDataTotalInner(self): + """Test GetHouseAccountDetailsResponseDataTotalInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py b/cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py rename to cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py index f4234b8..1ec3262 100644 --- a/cloudbeds_pms_v1_2/test/test_get_house_account_list_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse class TestGetHouseAccountListResponse(unittest.TestCase): """GetHouseAccountListResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetHouseAccountListResponse: return GetHouseAccountListResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner.GetHouseAccountListResponse_data_inner( + cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner.GetHouseAccountListResponse_data_inner( account_id = '', property_id = '', account_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py index 20cdfdd..191b630 100644 --- a/cloudbeds_pms_v1_2/test/test_get_house_account_list_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner class TestGetHouseAccountListResponseDataInner(unittest.TestCase): """GetHouseAccountListResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py b/cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py rename to cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py index 05cd608..620b564 100644 --- a/cloudbeds_pms_v1_2/test/test_get_housekeepers_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse class TestGetHousekeepersResponse(unittest.TestCase): """GetHousekeepersResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetHousekeepersResponse: return GetHousekeepersResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner.GetHousekeepersResponse_data_inner( + cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner.GetHousekeepersResponse_data_inner( property_id = '', housekeeper_id = '', name = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py index 9bbbbd3..4922b69 100644 --- a/cloudbeds_pms_v1_2/test/test_get_housekeepers_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner class TestGetHousekeepersResponseDataInner(unittest.TestCase): """GetHousekeepersResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py b/cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py rename to cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py index e43ba06..e794920 100644 --- a/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse class TestGetHousekeepingStatusResponse(unittest.TestCase): """GetHousekeepingStatusResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetHousekeepingStatusResponse: return GetHousekeepingStatusResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner.GetHousekeepingStatusResponse_data_inner( + cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner.GetHousekeepingStatusResponse_data_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), room_type_id = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py index b59582f..d32f50b 100644 --- a/cloudbeds_pms_v1_2/test/test_get_housekeeping_status_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner class TestGetHousekeepingStatusResponseDataInner(unittest.TestCase): """GetHousekeepingStatusResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py new file mode 100644 index 0000000..a1762f7 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse + +class TestGetImportDummyReservationsResponse(unittest.TestCase): + """GetImportDummyReservationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetImportDummyReservationsResponse: + """Test GetImportDummyReservationsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetImportDummyReservationsResponse` + """ + model = GetImportDummyReservationsResponse() + if include_optional: + return GetImportDummyReservationsResponse( + success = True, + data = [ + '' + ] + ) + else: + return GetImportDummyReservationsResponse( + ) + """ + + def testGetImportDummyReservationsResponse(self): + """Test GetImportDummyReservationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py b/cloudbeds_pms_v1_3/test/test_get_import_tours_response.py similarity index 71% rename from cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py rename to cloudbeds_pms_v1_3/test/test_get_import_tours_response.py index a8f7929..c8683a1 100644 --- a/cloudbeds_pms_v1_2/test/test_post_item_request_payments_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_import_tours_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.post_item_request_payments_inner import PostItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse -class TestPostItemRequestPaymentsInner(unittest.TestCase): - """PostItemRequestPaymentsInner unit test stubs""" +class TestGetImportToursResponse(unittest.TestCase): + """GetImportToursResponse unit test stubs""" def setUp(self): pass @@ -25,27 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PostItemRequestPaymentsInner: - """Test PostItemRequestPaymentsInner + def make_instance(self, include_optional) -> GetImportToursResponse: + """Test GetImportToursResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `PostItemRequestPaymentsInner` + # uncomment below to create an instance of `GetImportToursResponse` """ - model = PostItemRequestPaymentsInner() + model = GetImportToursResponse() if include_optional: - return PostItemRequestPaymentsInner( - payment_type = '', - amount = 1.337, - notes = '' + return GetImportToursResponse( + success = True, + data = [ + '' + ] ) else: - return PostItemRequestPaymentsInner( + return GetImportToursResponse( ) """ - def testPostItemRequestPaymentsInner(self): - """Test PostItemRequestPaymentsInner""" + def testGetImportToursResponse(self): + """Test GetImportToursResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response.py similarity index 87% rename from cloudbeds_pms_v1_2/test/test_get_invoice_response.py rename to cloudbeds_pms_v1_3/test/test_get_invoice_response.py index b707759..648860b 100644 --- a/cloudbeds_pms_v1_2/test/test_get_invoice_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_invoice_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_invoice_response import GetInvoiceResponse +from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse class TestGetInvoiceResponse(unittest.TestCase): """GetInvoiceResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetInvoiceResponse: if include_optional: return GetInvoiceResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_invoice_response_data.GetInvoiceResponse_data( + data = cloudbeds_pms_v1_3.models.get_invoice_response_data.GetInvoiceResponse_data( invoice_id = '', reservation_id = '', prefix = '', @@ -44,11 +44,11 @@ def make_instance(self, include_optional) -> GetInvoiceResponse: suffix = '', document_issue_date = '', status = '', - billed_to = cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( + billed_to = cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( id = '', type = 'guest', ), items = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( description = '', type = '', quantity = 56, @@ -56,14 +56,14 @@ def make_instance(self, include_optional) -> GetInvoiceResponse: net_amount = '', currency = '', taxes = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( name = '', amount = '', code = '', tax_id = '', ) ], fees = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( name = '', amount = '', code = '', @@ -71,14 +71,14 @@ def make_instance(self, include_optional) -> GetInvoiceResponse: ], ) ], taxes = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( name = '', amount = '', code = '', tax_id = '', ) ], fees = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( name = '', amount = '', code = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py similarity index 88% rename from cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py index 2933ec2..4487052 100644 --- a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_invoice_response_data import GetInvoiceResponseData +from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData class TestGetInvoiceResponseData(unittest.TestCase): """GetInvoiceResponseData unit test stubs""" @@ -42,11 +42,11 @@ def make_instance(self, include_optional) -> GetInvoiceResponseData: suffix = '', document_issue_date = '', status = '', - billed_to = cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( + billed_to = cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( id = '', type = 'guest', ), items = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( description = '', type = '', quantity = 56, @@ -54,14 +54,14 @@ def make_instance(self, include_optional) -> GetInvoiceResponseData: net_amount = '', currency = '', taxes = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( name = '', amount = '', code = '', tax_id = '', ) ], fees = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( name = '', amount = '', code = '', @@ -69,14 +69,14 @@ def make_instance(self, include_optional) -> GetInvoiceResponseData: ], ) ], taxes = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( name = '', amount = '', code = '', tax_id = '', ) ], fees = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( name = '', amount = '', code = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py rename to cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py index 5702500..fdd46c8 100644 --- a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_billed_to.py +++ b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo +from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo class TestGetInvoiceResponseDataBilledTo(unittest.TestCase): """GetInvoiceResponseDataBilledTo unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py rename to cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py index 5deb35e..1d96bb2 100644 --- a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner class TestGetInvoiceResponseDataItemsInner(unittest.TestCase): """GetInvoiceResponseDataItemsInner unit test stubs""" @@ -42,14 +42,14 @@ def make_instance(self, include_optional) -> GetInvoiceResponseDataItemsInner: net_amount = '', currency = '', taxes = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( name = '', amount = '', code = '', tax_id = '', ) ], fees = [ - cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( + cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( name = '', amount = '', code = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py rename to cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py index e417d1e..2a0406b 100644 --- a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_fees_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner class TestGetInvoiceResponseDataItemsInnerFeesInner(unittest.TestCase): """GetInvoiceResponseDataItemsInnerFeesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py rename to cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py index 65c2101..79d1116 100644 --- a/cloudbeds_pms_v1_2/test/test_get_invoice_response_data_items_inner_taxes_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner class TestGetInvoiceResponseDataItemsInnerTaxesInner(unittest.TestCase): """GetInvoiceResponseDataItemsInnerTaxesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_item_categories_response.py b/cloudbeds_pms_v1_3/test/test_get_item_categories_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_item_categories_response.py rename to cloudbeds_pms_v1_3/test/test_get_item_categories_response.py index ee45c4d..2e9f93d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_item_categories_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_item_categories_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse class TestGetItemCategoriesResponse(unittest.TestCase): """GetItemCategoriesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetItemCategoriesResponse: return GetItemCategoriesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner.GetItemCategoriesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner.GetItemCategoriesResponse_data_inner( category_id = '', category_name = '', category_code = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py index eff2b42..e06f506 100644 --- a/cloudbeds_pms_v1_2/test/test_get_item_categories_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner class TestGetItemCategoriesResponseDataInner(unittest.TestCase): """GetItemCategoriesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response.py b/cloudbeds_pms_v1_3/test/test_get_item_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_item_response.py rename to cloudbeds_pms_v1_3/test/test_get_item_response.py index 18234e5..26da1e6 100644 --- a/cloudbeds_pms_v1_2/test/test_get_item_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse class TestGetItemResponse(unittest.TestCase): """GetItemResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetItemResponse: if include_optional: return GetItemResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_item_response_data.GetItemResponse_data( + data = cloudbeds_pms_v1_3.models.get_item_response_data.GetItemResponse_data( item_id = '', item_type = 'product', sku = '', @@ -53,13 +53,13 @@ def make_instance(self, include_optional) -> GetItemResponse: stop_sell = 56, stop_sell_met = True, taxes = [ - cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( tax_name = '', tax_value = 1.337, ) ], total_taxes = 1.337, fees = [ - cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( fee_name = '', fee_value = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response_data.py b/cloudbeds_pms_v1_3/test/test_get_item_response_data.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_item_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_item_response_data.py index 1d7b6d2..8c33d48 100644 --- a/cloudbeds_pms_v1_2/test/test_get_item_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_item_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData class TestGetItemResponseData(unittest.TestCase): """GetItemResponseData unit test stubs""" @@ -51,13 +51,13 @@ def make_instance(self, include_optional) -> GetItemResponseData: stop_sell = 56, stop_sell_met = True, taxes = [ - cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( tax_name = '', tax_value = 1.337, ) ], total_taxes = 1.337, fees = [ - cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( fee_name = '', fee_value = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py b/cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py rename to cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py index d0f3e96..ff4ed41 100644 --- a/cloudbeds_pms_v1_2/test/test_get_item_response_data_fees_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner class TestGetItemResponseDataFeesInner(unittest.TestCase): """GetItemResponseDataFeesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py rename to cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py index 9ddfe1b..6c525ff 100644 --- a/cloudbeds_pms_v1_2/test/test_get_item_response_data_taxes_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner class TestGetItemResponseDataTaxesInner(unittest.TestCase): """GetItemResponseDataTaxesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_items_response.py b/cloudbeds_pms_v1_3/test/test_get_items_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_items_response.py rename to cloudbeds_pms_v1_3/test/test_get_items_response.py index 51a60e1..3386ef5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_items_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_items_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse class TestGetItemsResponse(unittest.TestCase): """GetItemsResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetItemsResponse: return GetItemsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_items_response_data_inner.GetItemsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_items_response_data_inner.GetItemsResponse_data_inner( item_id = '', item_type = 'product', sku = '', @@ -54,13 +54,13 @@ def make_instance(self, include_optional) -> GetItemsResponse: stop_sell = 56, stop_sell_met = True, taxes = [ - cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( tax_name = '', tax_value = 1.337, ) ], total_taxes = 1.337, fees = [ - cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( fee_name = '', fee_value = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py index b9b9db8..2b8feba 100644 --- a/cloudbeds_pms_v1_2/test/test_get_items_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner class TestGetItemsResponseDataInner(unittest.TestCase): """GetItemsResponseDataInner unit test stubs""" @@ -51,13 +51,13 @@ def make_instance(self, include_optional) -> GetItemsResponseDataInner: stop_sell = 56, stop_sell_met = True, taxes = [ - cloudbeds_pms_v1_2.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner.GetItemResponse_data_taxes_inner( tax_name = '', tax_value = 1.337, ) ], total_taxes = 1.337, fees = [ - cloudbeds_pms_v1_2.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( + cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner.GetItemResponse_data_fees_inner( fee_name = '', fee_value = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py b/cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py rename to cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py index 87a6f22..bc2a042 100644 --- a/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse class TestGetListAllotmentBlockNotesResponse(unittest.TestCase): """GetListAllotmentBlockNotesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetListAllotmentBlockNotesResponse: return GetListAllotmentBlockNotesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner.GetListAllotmentBlockNotesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner.GetListAllotmentBlockNotesResponse_data_inner( id = '', message = '', created_by = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py index ec4526a..5855136 100644 --- a/cloudbeds_pms_v1_2/test/test_get_list_allotment_block_notes_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner class TestGetListAllotmentBlockNotesResponseDataInner(unittest.TestCase): """GetListAllotmentBlockNotesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_metadata_response.py b/cloudbeds_pms_v1_3/test/test_get_metadata_response.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_get_metadata_response.py rename to cloudbeds_pms_v1_3/test/test_get_metadata_response.py index 83519c1..048a1cb 100644 --- a/cloudbeds_pms_v1_2/test/test_get_metadata_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_metadata_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse class TestGetMetadataResponse(unittest.TestCase): """GetMetadataResponse unit test stubs""" @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> GetMetadataResponse: if include_optional: return GetMetadataResponse( success = '', - data = cloudbeds_pms_v1_2.models.get_metadata_response_data.GetMetadataResponse_data( - api = cloudbeds_pms_v1_2.models.get_metadata_response_data_api.GetMetadataResponse_data_api( + data = cloudbeds_pms_v1_3.models.get_metadata_response_data.GetMetadataResponse_data( + api = cloudbeds_pms_v1_3.models.get_metadata_response_data_api.GetMetadataResponse_data_api( url = '', ), ), message = '' ) diff --git a/cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py b/cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py index 2d0304d..aa1965d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_metadata_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData class TestGetMetadataResponseData(unittest.TestCase): """GetMetadataResponseData unit test stubs""" @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> GetMetadataResponseData: model = GetMetadataResponseData() if include_optional: return GetMetadataResponseData( - api = cloudbeds_pms_v1_2.models.get_metadata_response_data_api.GetMetadataResponse_data_api( + api = cloudbeds_pms_v1_3.models.get_metadata_response_data_api.GetMetadataResponse_data_api( url = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py b/cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py rename to cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py index 1d91466..6e79d71 100644 --- a/cloudbeds_pms_v1_2/test/test_get_metadata_response_data_api.py +++ b/cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi class TestGetMetadataResponseDataApi(unittest.TestCase): """GetMetadataResponseDataApi unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_packages_response.py b/cloudbeds_pms_v1_3/test/test_get_packages_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_packages_response.py rename to cloudbeds_pms_v1_3/test/test_get_packages_response.py index 883124b..e5eb097 100644 --- a/cloudbeds_pms_v1_2/test/test_get_packages_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_packages_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse class TestGetPackagesResponse(unittest.TestCase): """GetPackagesResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetPackagesResponse: if include_optional: return GetPackagesResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_packages_response_data.GetPackagesResponse_data( + data = cloudbeds_pms_v1_3.models.get_packages_response_data.GetPackagesResponse_data( package_names = [ '' ], ), diff --git a/cloudbeds_pms_v1_2/test/test_get_packages_response_data.py b/cloudbeds_pms_v1_3/test/test_get_packages_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_packages_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_packages_response_data.py index 27fab95..36aba38 100644 --- a/cloudbeds_pms_v1_2/test/test_get_packages_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_packages_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData class TestGetPackagesResponseData(unittest.TestCase): """GetPackagesResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py similarity index 88% rename from cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py rename to cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py index df57e6d..58271d8 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse class TestGetPaymentMethodsResponse(unittest.TestCase): """GetPaymentMethodsResponse unit test stubs""" @@ -36,20 +36,20 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponse: if include_optional: return GetPaymentMethodsResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_payment_methods_response_data.GetPaymentMethodsResponse_data( + data = cloudbeds_pms_v1_3.models.get_payment_methods_response_data.GetPaymentMethodsResponse_data( property_id = '', methods = [ - cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( + cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( type = '', name = '', card_types = [ - cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( + cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( card_code = '', card_name = '', ) ], ) ], gateway = [ - cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( + cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( name = '', currency = '', ) ], ) diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py index b822417..6d27db3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData class TestGetPaymentMethodsResponseData(unittest.TestCase): """GetPaymentMethodsResponseData unit test stubs""" @@ -37,17 +37,17 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponseData: return GetPaymentMethodsResponseData( property_id = '', methods = [ - cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( + cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( type = '', name = '', card_types = [ - cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( + cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( card_code = '', card_name = '', ) ], ) ], gateway = [ - cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( + cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( name = '', currency = '', ) ] diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py rename to cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py index 40898cb..9221da9 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_gateway_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner class TestGetPaymentMethodsResponseDataGatewayInner(unittest.TestCase): """GetPaymentMethodsResponseDataGatewayInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py rename to cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py index 17c2768..911c4ea 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner class TestGetPaymentMethodsResponseDataMethodsInner(unittest.TestCase): """GetPaymentMethodsResponseDataMethodsInner unit test stubs""" @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponseDataMethod type = '', name = '', card_types = [ - cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( + cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( card_code = '', card_name = '', ) ] diff --git a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py rename to cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py index 709995e..d379fde 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner class TestGetPaymentMethodsResponseDataMethodsInnerCardTypesInner(unittest.TestCase): """GetPaymentMethodsResponseDataMethodsInnerCardTypesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py b/cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py rename to cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py index eea43db..6c5ed52 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse class TestGetPaymentsCapabilitiesResponse(unittest.TestCase): """GetPaymentsCapabilitiesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetPaymentsCapabilitiesResponse: return GetPaymentsCapabilitiesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner.GetPaymentsCapabilitiesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner.GetPaymentsCapabilitiesResponse_data_inner( cloudbeds_payments = True, terminal = True, tap_to_pay = True, diff --git a/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py index 08951b0..2693dee 100644 --- a/cloudbeds_pms_v1_2/test/test_get_payments_capabilities_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner class TestGetPaymentsCapabilitiesResponseDataInner(unittest.TestCase): """GetPaymentsCapabilitiesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_payments_response.py b/cloudbeds_pms_v1_3/test/test_get_payments_response.py new file mode 100644 index 0000000..44f8c79 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_payments_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse + +class TestGetPaymentsResponse(unittest.TestCase): + """GetPaymentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsResponse: + """Test GetPaymentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsResponse` + """ + model = GetPaymentsResponse() + if include_optional: + return GetPaymentsResponse( + success = True, + data = [ + cloudbeds_pms_v1_3.models.get_payments_response_data_inner.GetPaymentsResponse_data_inner( + transaction_id = '', + payment_id = '', + property_id = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = '', + user_name = '', + room_id = '', + room_name = '', + guest_id = '', + guest_name = '', + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + reservation_id = '', + sub_reservation_id = '', + reservation_status = '', + house_account_id = '', + house_account_name = '', + description = '', + payment_method = '', + quantity = 56, + amount = 1.337, + currency = '', + is_posted = True, + is_voided = True, + is_deleted = True, + state = '', + is_allocated = True, + total_allocated = 1.337, + total_unallocated = 1.337, + payment_allocation = [ + cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( + type = '', + reference = '', + name = '', + amount = 1.337, + taxes = [ + '' + ], + fees = [ + '' + ], ) + ], ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetPaymentsResponse( + ) + """ + + def testGetPaymentsResponse(self): + """Test GetPaymentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py new file mode 100644 index 0000000..0eef20d --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner + +class TestGetPaymentsResponseDataInner(unittest.TestCase): + """GetPaymentsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsResponseDataInner: + """Test GetPaymentsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsResponseDataInner` + """ + model = GetPaymentsResponseDataInner() + if include_optional: + return GetPaymentsResponseDataInner( + transaction_id = '', + payment_id = '', + property_id = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + user_id = '', + user_name = '', + room_id = '', + room_name = '', + guest_id = '', + guest_name = '', + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + reservation_id = '', + sub_reservation_id = '', + reservation_status = '', + house_account_id = '', + house_account_name = '', + description = '', + payment_method = '', + quantity = 56, + amount = 1.337, + currency = '', + is_posted = True, + is_voided = True, + is_deleted = True, + state = '', + is_allocated = True, + total_allocated = 1.337, + total_unallocated = 1.337, + payment_allocation = [ + cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( + type = '', + reference = '', + name = '', + amount = 1.337, + taxes = [ + '' + ], + fees = [ + '' + ], ) + ] + ) + else: + return GetPaymentsResponseDataInner( + ) + """ + + def testGetPaymentsResponseDataInner(self): + """Test GetPaymentsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py new file mode 100644 index 0000000..9b2e599 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner + +class TestGetPaymentsResponseDataInnerPaymentAllocationInner(unittest.TestCase): + """GetPaymentsResponseDataInnerPaymentAllocationInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPaymentsResponseDataInnerPaymentAllocationInner: + """Test GetPaymentsResponseDataInnerPaymentAllocationInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPaymentsResponseDataInnerPaymentAllocationInner` + """ + model = GetPaymentsResponseDataInnerPaymentAllocationInner() + if include_optional: + return GetPaymentsResponseDataInnerPaymentAllocationInner( + type = '', + reference = '', + name = '', + amount = 1.337, + taxes = [ + '' + ], + fees = [ + '' + ] + ) + else: + return GetPaymentsResponseDataInnerPaymentAllocationInner( + ) + """ + + def testGetPaymentsResponseDataInnerPaymentAllocationInner(self): + """Test GetPaymentsResponseDataInnerPaymentAllocationInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py b/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py new file mode 100644 index 0000000..1362672 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse + +class TestGetPendingTransactionsResponse(unittest.TestCase): + """GetPendingTransactionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPendingTransactionsResponse: + """Test GetPendingTransactionsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPendingTransactionsResponse` + """ + model = GetPendingTransactionsResponse() + if include_optional: + return GetPendingTransactionsResponse( + success = True, + data = [ + cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner.GetPendingTransactionsResponse_data_inner( + property_id = '', + reservation_id = '', + sub_reservation_id = '', + house_account_id = '', + house_account_name = '', + guest_id = '', + property_name = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_name = '', + guest_name = '', + description = '', + category = '', + transaction_code = '', + notes = '', + quantity = 56, + amount = 1.337, + currency = '', + user_name = '', + transaction_type = 'debit', + transaction_category = 'adjustment', + item_category_name = '', + transaction_id = '', + parent_transaction_id = '', + card_type = '', + is_deleted = True, ) + ], + count = 56, + total = 56, + message = '' + ) + else: + return GetPendingTransactionsResponse( + ) + """ + + def testGetPendingTransactionsResponse(self): + """Test GetPendingTransactionsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py new file mode 100644 index 0000000..7de17f9 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner + +class TestGetPendingTransactionsResponseDataInner(unittest.TestCase): + """GetPendingTransactionsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPendingTransactionsResponseDataInner: + """Test GetPendingTransactionsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPendingTransactionsResponseDataInner` + """ + model = GetPendingTransactionsResponseDataInner() + if include_optional: + return GetPendingTransactionsResponseDataInner( + property_id = '', + reservation_id = '', + sub_reservation_id = '', + house_account_id = '', + house_account_name = '', + guest_id = '', + property_name = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_name = '', + guest_name = '', + description = '', + category = '', + transaction_code = '', + notes = '', + quantity = 56, + amount = 1.337, + currency = '', + user_name = '', + transaction_type = 'debit', + transaction_category = 'adjustment', + item_category_name = '', + transaction_id = '', + parent_transaction_id = '', + card_type = '', + is_deleted = True + ) + else: + return GetPendingTransactionsResponseDataInner( + ) + """ + + def testGetPendingTransactionsResponseDataInner(self): + """Test GetPendingTransactionsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py b/cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py rename to cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py index 6eaa806..7db4c1d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse class TestGetRateJobsResponse(unittest.TestCase): """GetRateJobsResponse unit test stubs""" @@ -39,12 +39,12 @@ def make_instance(self, include_optional) -> GetRateJobsResponse: has_next_page = True, next_page = '', data = [ - cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner.GetRateJobsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner.GetRateJobsResponse_data_inner( job_reference_id = '', date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), status = '', updates = [ - cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner.GetRateJobsResponse_data_inner_updates_inner( + cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner.GetRateJobsResponse_data_inner_updates_inner( rate_id = '', action = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py index 52fe650..958c6f5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner class TestGetRateJobsResponseDataInner(unittest.TestCase): """GetRateJobsResponseDataInner unit test stubs""" @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> GetRateJobsResponseDataInner: date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), status = '', updates = [ - cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner.GetRateJobsResponse_data_inner_updates_inner( + cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner.GetRateJobsResponse_data_inner_updates_inner( rate_id = '', action = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py index 17b9a17..1f73c8a 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_jobs_response_data_inner_updates_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner class TestGetRateJobsResponseDataInnerUpdatesInner(unittest.TestCase): """GetRateJobsResponseDataInnerUpdatesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py rename to cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py index c3ed390..6e95da0 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse class TestGetRatePlansResponse(unittest.TestCase): """GetRatePlansResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetRatePlansResponse: return GetRatePlansResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner.GetRatePlansResponse_data_inner( + cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner.GetRatePlansResponse_data_inner( rate_id = '', is_derived = True, room_rate = 1.337, @@ -55,14 +55,14 @@ def make_instance(self, include_optional) -> GetRatePlansResponse: base_rate = 1.337, days_of_week = Sun, add_ons = [ - cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( + cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( add_on_id = '', add_on_name = '', item_id = '', item_name = '', ) ], room_rate_detailed = [ - cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner.GetRatePlansResponse_data_inner_roomRateDetailed_inner( + cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner.GetRatePlansResponse_data_inner_roomRateDetailed_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate_base = 1.337, total_rate = 1.337, diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py index e41478f..62b23fe 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner class TestGetRatePlansResponseDataInner(unittest.TestCase): """GetRatePlansResponseDataInner unit test stubs""" @@ -52,14 +52,14 @@ def make_instance(self, include_optional) -> GetRatePlansResponseDataInner: base_rate = 1.337, days_of_week = Sun, add_ons = [ - cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( + cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( add_on_id = '', add_on_name = '', item_id = '', item_name = '', ) ], room_rate_detailed = [ - cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner.GetRatePlansResponse_data_inner_roomRateDetailed_inner( + cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner.GetRatePlansResponse_data_inner_roomRateDetailed_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate_base = 1.337, total_rate = 1.337, diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py index 39be641..78ebfef 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_add_ons_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner class TestGetRatePlansResponseDataInnerAddOnsInner(unittest.TestCase): """GetRatePlansResponseDataInnerAddOnsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py index d4b3ace..3c66962 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner class TestGetRatePlansResponseDataInnerRoomRateDetailedInner(unittest.TestCase): """GetRatePlansResponseDataInnerRoomRateDetailedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_response.py b/cloudbeds_pms_v1_3/test/test_get_rate_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_rate_response.py rename to cloudbeds_pms_v1_3/test/test_get_rate_response.py index 0f68101..cfb2322 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse class TestGetRateResponse(unittest.TestCase): """GetRateResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetRateResponse: if include_optional: return GetRateResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_rate_response_data.GetRateResponse_data( + data = cloudbeds_pms_v1_3.models.get_rate_response_data.GetRateResponse_data( rate_id = '', is_derived = True, room_rate = 1.337, @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> GetRateResponse: '' ], room_rate_detailed = [ - cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner.GetRateResponse_data_roomRateDetailed_inner( + cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner.GetRateResponse_data_roomRateDetailed_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, total_rate = 1.337, diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_response_data.py b/cloudbeds_pms_v1_3/test/test_get_rate_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_rate_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_rate_response_data.py index 628b87c..79fc257 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData class TestGetRateResponseData(unittest.TestCase): """GetRateResponseData unit test stubs""" @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> GetRateResponseData: '' ], room_rate_detailed = [ - cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner.GetRateResponse_data_roomRateDetailed_inner( + cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner.GetRateResponse_data_roomRateDetailed_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, total_rate = 1.337, diff --git a/cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py b/cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py index 2376fd3..6459877 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rate_response_data_room_rate_detailed_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner class TestGetRateResponseDataRoomRateDetailedInner(unittest.TestCase): """GetRateResponseDataRoomRateDetailedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py new file mode 100644 index 0000000..6d89531 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse + +class TestGetReservationArrivalsResponse(unittest.TestCase): + """GetReservationArrivalsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationArrivalsResponse: + """Test GetReservationArrivalsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationArrivalsResponse` + """ + model = GetReservationArrivalsResponse() + if include_optional: + return GetReservationArrivalsResponse( + success = True, + data = [ + cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner.GetReservationArrivalsResponse_data_inner( + guest_id = '', + guest_name = '', + room_id = '', + balance = 1.337, + reservation_id = '', + sub_reservation_id = '', + estimated_arrival_time = '', ) + ], + message = '' + ) + else: + return GetReservationArrivalsResponse( + ) + """ + + def testGetReservationArrivalsResponse(self): + """Test GetReservationArrivalsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py new file mode 100644 index 0000000..f430887 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner + +class TestGetReservationArrivalsResponseDataInner(unittest.TestCase): + """GetReservationArrivalsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationArrivalsResponseDataInner: + """Test GetReservationArrivalsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationArrivalsResponseDataInner` + """ + model = GetReservationArrivalsResponseDataInner() + if include_optional: + return GetReservationArrivalsResponseDataInner( + guest_id = '', + guest_name = '', + room_id = '', + balance = 1.337, + reservation_id = '', + sub_reservation_id = '', + estimated_arrival_time = '' + ) + else: + return GetReservationArrivalsResponseDataInner( + ) + """ + + def testGetReservationArrivalsResponseDataInner(self): + """Test GetReservationArrivalsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py index 08b52da..5c85ab1 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse class TestGetReservationAssignmentsResponse(unittest.TestCase): """GetReservationAssignmentsResponse unit test stubs""" @@ -37,12 +37,12 @@ def make_instance(self, include_optional) -> GetReservationAssignmentsResponse: return GetReservationAssignmentsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner.GetReservationAssignmentsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner.GetReservationAssignmentsResponse_data_inner( guest_name = '', reservation_id = '', unassigned = 56, assigned = [ - cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner.GetReservationAssignmentsResponse_data_inner_assigned_inner( + cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner.GetReservationAssignmentsResponse_data_inner_assigned_inner( room_type_id = '', room_type_name = '', room_type_name_short = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py index 10f0a3f..6f9e3e2 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner class TestGetReservationAssignmentsResponseDataInner(unittest.TestCase): """GetReservationAssignmentsResponseDataInner unit test stubs""" @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> GetReservationAssignmentsResponseDa reservation_id = '', unassigned = 56, assigned = [ - cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner.GetReservationAssignmentsResponse_data_inner_assigned_inner( + cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner.GetReservationAssignmentsResponse_data_inner_assigned_inner( room_type_id = '', room_type_name = '', room_type_name_short = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py index 020536a..58d3948 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner class TestGetReservationAssignmentsResponseDataInnerAssignedInner(unittest.TestCase): """GetReservationAssignmentsResponseDataInnerAssignedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py new file mode 100644 index 0000000..803de25 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse + +class TestGetReservationDeparturesResponse(unittest.TestCase): + """GetReservationDeparturesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationDeparturesResponse: + """Test GetReservationDeparturesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationDeparturesResponse` + """ + model = GetReservationDeparturesResponse() + if include_optional: + return GetReservationDeparturesResponse( + success = True, + data = [ + cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner.GetReservationDeparturesResponse_data_inner( + guest_name = '', + guest_id = '', + balance = 1.337, + reservation_id = '', + reservation_details = [ + None + ], ) + ], + message = '' + ) + else: + return GetReservationDeparturesResponse( + ) + """ + + def testGetReservationDeparturesResponse(self): + """Test GetReservationDeparturesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py new file mode 100644 index 0000000..29521e0 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner + +class TestGetReservationDeparturesResponseDataInner(unittest.TestCase): + """GetReservationDeparturesResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationDeparturesResponseDataInner: + """Test GetReservationDeparturesResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationDeparturesResponseDataInner` + """ + model = GetReservationDeparturesResponseDataInner() + if include_optional: + return GetReservationDeparturesResponseDataInner( + guest_name = '', + guest_id = '', + balance = 1.337, + reservation_id = '', + reservation_details = [ + None + ] + ) + else: + return GetReservationDeparturesResponseDataInner( + ) + """ + + def testGetReservationDeparturesResponseDataInner(self): + """Test GetReservationDeparturesResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py new file mode 100644 index 0000000..0bef47c --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse + +class TestGetReservationInHouseResponse(unittest.TestCase): + """GetReservationInHouseResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInHouseResponse: + """Test GetReservationInHouseResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInHouseResponse` + """ + model = GetReservationInHouseResponse() + if include_optional: + return GetReservationInHouseResponse( + success = True, + data = [ + cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner.GetReservationInHouseResponse_data_inner( + guest_id = '', + guest_name = '', + main_guest_id = '', + main_guest_name = '', + balance = 1.337, + reservation_id = '', + room_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + reservation_custom_fields = [ + None + ], + room_id = '', + room_name = '', + guest_first_name = '', + guest_last_name = '', + guest_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_custom_fields = [ + None + ], ) + ], + message = '' + ) + else: + return GetReservationInHouseResponse( + ) + """ + + def testGetReservationInHouseResponse(self): + """Test GetReservationInHouseResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py new file mode 100644 index 0000000..85095e0 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner + +class TestGetReservationInHouseResponseDataInner(unittest.TestCase): + """GetReservationInHouseResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationInHouseResponseDataInner: + """Test GetReservationInHouseResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationInHouseResponseDataInner` + """ + model = GetReservationInHouseResponseDataInner() + if include_optional: + return GetReservationInHouseResponseDataInner( + guest_id = '', + guest_name = '', + main_guest_id = '', + main_guest_name = '', + balance = 1.337, + reservation_id = '', + room_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + reservation_custom_fields = [ + None + ], + room_id = '', + room_name = '', + guest_first_name = '', + guest_last_name = '', + guest_phone = '', + guest_address1 = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_custom_fields = [ + None + ] + ) + else: + return GetReservationInHouseResponseDataInner( + ) + """ + + def testGetReservationInHouseResponseDataInner(self): + """Test GetReservationInHouseResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py index 2b2e8ab..ae166cc 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse class TestGetReservationInvoiceInformationResponse(unittest.TestCase): """GetReservationInvoiceInformationResponse unit test stubs""" @@ -37,15 +37,15 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes return GetReservationInvoiceInformationResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner.GetReservationInvoiceInformationResponse_data_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner.GetReservationInvoiceInformationResponse_data_inner( status = 'confirmed', custom_fields = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], main_guest_details = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( guest_first_name = '', guest_last_name = '', guest_gender = 'M', @@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes is_anonymyzed = True, ) ], reservation_rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( room_type_name = '', guest_name = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -79,7 +79,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_rooms_total = 1.337, reservation_adjustments = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( adjustment_description = '', adjustment_room_name = '', adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -88,7 +88,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_adjustments_total = 1.337, reservation_payments = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( payment_type = '', payment_description = '', payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -97,7 +97,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes reservation_payments_total = 1.337, ) ], reservation_additional_products = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( product_id = '', sold_product_id = '', item_code = '', @@ -113,7 +113,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_additional_products_total = 1.337, reservation_add_on_products = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( sold_product_id = '', product_name = '', product_price = 1.337, @@ -126,20 +126,20 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_add_on_products_total = 1.337, reservation_taxes = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( tax_name = '', tax_amount = 1.337, ) ], reservation_taxes_total = 1.337, reservation_fees = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( tax_name = '', tax_amount = 1.337, ) ], reservation_fees_total = 1.337, balance = 1.337, balance_detailed = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -148,7 +148,8 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes paid = 1.337, original_currency_code = '', original_currency_rate = 1.337, ) - ], ) + ], + reservation_origin = '', ) ], message = '' ) diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py index e02b71c..3f577db 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner class TestGetReservationInvoiceInformationResponseDataInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInner unit test stubs""" @@ -37,12 +37,12 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes return GetReservationInvoiceInformationResponseDataInner( status = 'confirmed', custom_fields = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], main_guest_details = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( guest_first_name = '', guest_last_name = '', guest_gender = 'M', @@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes is_anonymyzed = True, ) ], reservation_rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( room_type_name = '', guest_name = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -76,7 +76,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_rooms_total = 1.337, reservation_adjustments = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( adjustment_description = '', adjustment_room_name = '', adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -85,7 +85,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_adjustments_total = 1.337, reservation_payments = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( payment_type = '', payment_description = '', payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -94,7 +94,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes reservation_payments_total = 1.337, ) ], reservation_additional_products = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( product_id = '', sold_product_id = '', item_code = '', @@ -110,7 +110,7 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_additional_products_total = 1.337, reservation_add_on_products = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( sold_product_id = '', product_name = '', product_price = 1.337, @@ -123,20 +123,20 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes ], reservation_add_on_products_total = 1.337, reservation_taxes = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( tax_name = '', tax_amount = 1.337, ) ], reservation_taxes_total = 1.337, reservation_fees = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( tax_name = '', tax_amount = 1.337, ) ], reservation_fees_total = 1.337, balance = 1.337, balance_detailed = [ - cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -145,7 +145,8 @@ def make_instance(self, include_optional) -> GetReservationInvoiceInformationRes paid = 1.337, original_currency_code = '', original_currency_rate = 1.337, ) - ] + ], + reservation_origin = '' ) else: return GetReservationInvoiceInformationResponseDataInner( diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py index 8659703..c480535 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner class TestGetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py index f7639d3..b3756bb 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner class TestGetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py index c8d6c1f..6a25317 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner class TestGetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py index e118345..a3138d3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner class TestGetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py index 94dab96..0fa3575 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner class TestGetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py index de3177d..69a3810 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner class TestGetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py index 5d81220..fa612a0 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner class TestGetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py index 94ab1c0..ceb578c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner +from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner class TestGetReservationInvoiceInformationResponseDataInnerReservationTaxesInner(unittest.TestCase): """GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py index fbd04a3..b2b1180 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse class TestGetReservationNotesResponse(unittest.TestCase): """GetReservationNotesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetReservationNotesResponse: return GetReservationNotesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner.GetReservationNotesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner.GetReservationNotesResponse_data_inner( reservation_note_id = '', user_name = '', date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py index 866b96c..af01a7a 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_notes_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner class TestGetReservationNotesResponseDataInner(unittest.TestCase): """GetReservationNotesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response.py index 635c44e..92ce0d5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse class TestGetReservationResponse(unittest.TestCase): """GetReservationResponse unit test stubs""" @@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> GetReservationResponse: if include_optional: return GetReservationResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_reservation_response_data.GetReservationResponse_data( + data = cloudbeds_pms_v1_3.models.get_reservation_response_data.GetReservationResponse_data( property_id = '', guest_name = '', guest_email = '', is_anonymized = True, guest_list = { - 'key' : cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value.GetReservationResponse_data_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value.GetReservationResponse_data_guestList_value( guest_id = '', guest_first_name = '', guest_last_name = '', @@ -74,12 +74,12 @@ def make_instance(self, include_optional) -> GetReservationResponse: room_type_is_virtual = True, is_main_guest = True, custom_fields = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( room_id = '', room_name = '', room_type_name = '', @@ -87,7 +87,7 @@ def make_instance(self, include_optional) -> GetReservationResponse: sub_reservation_id = '', ) ], unassigned_rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -105,7 +105,7 @@ def make_instance(self, include_optional) -> GetReservationResponse: total = 1.337, balance = 1.337, balance_detailed = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -114,7 +114,7 @@ def make_instance(self, include_optional) -> GetReservationResponse: paid = 1.337, ) ], assigned = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( room_type_name = '', room_type_name_short = '', room_type_is_virtual = True, @@ -128,14 +128,14 @@ def make_instance(self, include_optional) -> GetReservationResponse: adults = '', children = '', daily_rates = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], room_total = 1.337, ) ], unassigned = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( room_type_name = '', room_type_is_virtual = True, room_type_id = '', @@ -147,13 +147,13 @@ def make_instance(self, include_optional) -> GetReservationResponse: room_total = 1.337, ) ], cards_on_file = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( card_id = '', card_number = '', card_type = 'visa', ) ], custom_fields = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], @@ -162,12 +162,13 @@ def make_instance(self, include_optional) -> GetReservationResponse: allotment_block_code = '', channel_provided_credit_card = True, group_inventory = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( sub_reservation_id = '', allotment_block_code = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) - ], ), + ], + origin = '', ), message = '' ) else: diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py index bb2d941..24119fd 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData class TestGetReservationResponseData(unittest.TestCase): """GetReservationResponseData unit test stubs""" @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: guest_email = '', is_anonymized = True, guest_list = { - 'key' : cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value.GetReservationResponse_data_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value.GetReservationResponse_data_guestList_value( guest_id = '', guest_first_name = '', guest_last_name = '', @@ -72,12 +72,12 @@ def make_instance(self, include_optional) -> GetReservationResponseData: room_type_is_virtual = True, is_main_guest = True, custom_fields = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( room_id = '', room_name = '', room_type_name = '', @@ -85,7 +85,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: sub_reservation_id = '', ) ], unassigned_rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -103,7 +103,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: total = 1.337, balance = 1.337, balance_detailed = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -112,7 +112,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: paid = 1.337, ) ], assigned = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( room_type_name = '', room_type_name_short = '', room_type_is_virtual = True, @@ -126,14 +126,14 @@ def make_instance(self, include_optional) -> GetReservationResponseData: adults = '', children = '', daily_rates = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], room_total = 1.337, ) ], unassigned = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( room_type_name = '', room_type_is_virtual = True, room_type_id = '', @@ -143,20 +143,20 @@ def make_instance(self, include_optional) -> GetReservationResponseData: adults = '', children = '', daily_rates = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], room_total = 1.337, ) ], cards_on_file = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( card_id = '', card_number = '', card_type = 'visa', ) ], custom_fields = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], @@ -165,12 +165,13 @@ def make_instance(self, include_optional) -> GetReservationResponseData: allotment_block_code = '', channel_provided_credit_card = True, group_inventory = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( sub_reservation_id = '', allotment_block_code = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) - ] + ], + origin = '' ) else: return GetReservationResponseData( diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py index ab11299..b69a351 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner class TestGetReservationResponseDataAssignedInner(unittest.TestCase): """GetReservationResponseDataAssignedInner unit test stubs""" @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataAssignedI adults = '', children = '', daily_rates = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py index 7742b64..451bbfa 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner class TestGetReservationResponseDataAssignedInnerDailyRatesInner(unittest.TestCase): """GetReservationResponseDataAssignedInnerDailyRatesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py index aec3f62..8d932d1 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_balance_detailed_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner class TestGetReservationResponseDataBalanceDetailedInner(unittest.TestCase): """GetReservationResponseDataBalanceDetailedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py index df9fd50..019b30d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_cards_on_file_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner class TestGetReservationResponseDataCardsOnFileInner(unittest.TestCase): """GetReservationResponseDataCardsOnFileInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py index 899750c..24bd77d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_group_inventory_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner class TestGetReservationResponseDataGroupInventoryInner(unittest.TestCase): """GetReservationResponseDataGroupInventoryInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py index f4bb72d..fa3b591 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue class TestGetReservationResponseDataGuestListValue(unittest.TestCase): """GetReservationResponseDataGuestListValue unit test stubs""" @@ -66,12 +66,12 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList room_type_is_virtual = True, is_main_guest = True, custom_fields = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( room_id = '', room_name = '', room_type_name = '', @@ -79,7 +79,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList sub_reservation_id = '', ) ], unassigned_rooms = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py index 165df8f..3866d42 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner class TestGetReservationResponseDataGuestListValueCustomFieldsInner(unittest.TestCase): """GetReservationResponseDataGuestListValueCustomFieldsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py index c7e0b67..cf72f35 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner class TestGetReservationResponseDataGuestListValueRoomsInner(unittest.TestCase): """GetReservationResponseDataGuestListValueRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py index 026d4d3..a6aa888 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner class TestGetReservationResponseDataGuestListValueUnassignedRoomsInner(unittest.TestCase): """GetReservationResponseDataGuestListValueUnassignedRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py index f2bd349..00f49da 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_response_data_unassigned_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner class TestGetReservationResponseDataUnassignedInner(unittest.TestCase): """GetReservationResponseDataUnassignedInner unit test stubs""" @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataUnassigne adults = '', children = '', daily_rates = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py index bc9ffff..9ed16e1 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse class TestGetReservationRoomDetailsResponse(unittest.TestCase): """GetReservationRoomDetailsResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetReservationRoomDetailsResponse: return GetReservationRoomDetailsResponse( success = True, message = '', - data = cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data.GetReservationRoomDetailsResponse_data( + data = cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data.GetReservationRoomDetailsResponse_data( reservation_id = '', sub_reservation_id = '', room_id = '', @@ -53,7 +53,7 @@ def make_instance(self, include_optional) -> GetReservationRoomDetailsResponse: adults = 56, children = 56, guests = [ - cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner.GetReservationRoomDetailsResponse_data_guests_inner( + cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner.GetReservationRoomDetailsResponse_data_guests_inner( guest_id = '', guest_first_name = '', guest_last_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py b/cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py index 655ed12..daed18c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData class TestGetReservationRoomDetailsResponseData(unittest.TestCase): """GetReservationRoomDetailsResponseData unit test stubs""" @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> GetReservationRoomDetailsResponseDa adults = 56, children = 56, guests = [ - cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner.GetReservationRoomDetailsResponse_data_guests_inner( + cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner.GetReservationRoomDetailsResponse_data_guests_inner( guest_id = '', guest_first_name = '', guest_last_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py index 9de01db..3a37c30 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservation_room_details_response_data_guests_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner class TestGetReservationRoomDetailsResponseDataGuestsInner(unittest.TestCase): """GetReservationRoomDetailsResponseDataGuestsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservations_response.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_response.py index f409679..f12ad63 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse class TestGetReservationsResponse(unittest.TestCase): """GetReservationsResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetReservationsResponse: return GetReservationsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner.GetReservationsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner.GetReservationsResponse_data_inner( property_id = '', reservation_id = '', date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -56,7 +56,7 @@ def make_instance(self, include_optional) -> GetReservationsResponse: source_id = '', third_party_identifier = '', group_inventory = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( sub_reservation_id = '', allotment_block_code = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -64,12 +64,12 @@ def make_instance(self, include_optional) -> GetReservationsResponse: ], sub_reservation_id = '', custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner.GetReservationsResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner.GetReservationsResponse_data_inner_rooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -85,7 +85,7 @@ def make_instance(self, include_optional) -> GetReservationsResponse: room_status = 'cancelled', ) ], guest_list = { - 'key' : cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -118,7 +118,7 @@ def make_instance(self, include_optional) -> GetReservationsResponse: room_type_name = '', room_type_is_virtual = True, unassigned_rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -129,7 +129,8 @@ def make_instance(self, include_optional) -> GetReservationsResponse: ], is_anonymized = True, is_main_guest = True, ) - }, ) + }, + origin = '', ) ], count = 56, total = 56 diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py index 39b7915..e141e58 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner class TestGetReservationsResponseDataInner(unittest.TestCase): """GetReservationsResponseDataInner unit test stubs""" @@ -53,7 +53,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: source_id = '', third_party_identifier = '', group_inventory = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner.GetReservationResponse_data_groupInventory_inner( sub_reservation_id = '', allotment_block_code = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -61,12 +61,12 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: ], sub_reservation_id = '', custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner.GetReservationsResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner.GetReservationsResponse_data_inner_rooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -82,7 +82,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: room_status = 'cancelled', ) ], guest_list = { - 'key' : cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -115,7 +115,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: room_type_name = '', room_type_is_virtual = True, rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( room_id = '', room_name = '', room_type_name = '', @@ -128,7 +128,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: sub_reservation_id = '', ) ], unassigned_rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -138,13 +138,14 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: sub_reservation_id = '', ) ], custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], is_anonymized = True, is_main_guest = True, ) - } + }, + origin = '' ) else: return GetReservationsResponseDataInner( diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py index 15228af..f08177e 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue class TestGetReservationsResponseDataInnerGuestListValue(unittest.TestCase): """GetReservationsResponseDataInnerGuestListValue unit test stubs""" @@ -67,7 +67,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue room_type_name = '', room_type_is_virtual = True, rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( room_id = '', room_name = '', room_type_name = '', @@ -80,7 +80,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue sub_reservation_id = '', ) ], unassigned_rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -90,7 +90,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue sub_reservation_id = '', ) ], custom_fields = [ - cloudbeds_pms_v1_2.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', custom_field_value = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py index 9770f91..9a20e1f 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner class TestGetReservationsResponseDataInnerGuestListValueRoomsInner(unittest.TestCase): """GetReservationsResponseDataInnerGuestListValueRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py index 16fad1a..93a28fc 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner class TestGetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner(unittest.TestCase): """GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py index 9930c4f..9d1d952 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner class TestGetReservationsResponseDataInnerRoomsInner(unittest.TestCase): """GetReservationsResponseDataInnerRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py index bfd64fb..74d0610 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse class TestGetReservationsWithRateDetailsResponse(unittest.TestCase): """GetReservationsWithRateDetailsResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo return GetReservationsWithRateDetailsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner.GetReservationsWithRateDetailsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner.GetReservationsWithRateDetailsResponse_data_inner( reservation_id = '', is_deleted = True, date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_country = 56, source_name = '', source = [ - cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( + cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( name = '', payment_collect = 'hotel', source_id = '', @@ -64,7 +64,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo source_reservation_id = 56, property_currency = 56, balance_detailed = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -76,7 +76,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo None ], rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', room_type_is_virtual = True, room_type_name = '', @@ -95,7 +95,8 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo detailed_room_rates = [ None ], ) - ], ) + ], + origin = '', ) ], count = 56, total = 56 diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py index 015b270..14e9a17 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner class TestGetReservationsWithRateDetailsResponseDataInner(unittest.TestCase): """GetReservationsWithRateDetailsResponseDataInner unit test stubs""" @@ -51,7 +51,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_country = 56, source_name = '', source = [ - cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( + cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( name = '', payment_collect = 'hotel', source_id = '', @@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo source_reservation_id = 56, property_currency = 56, balance_detailed = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -73,7 +73,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo None ], rooms = [ - cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', room_type_is_virtual = True, room_type_name = '', @@ -92,7 +92,8 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo detailed_room_rates = [ None ], ) - ] + ], + origin = '' ) else: return GetReservationsWithRateDetailsResponseDataInner( diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py index a4fe700..82451c5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner class TestGetReservationsWithRateDetailsResponseDataInnerRoomsInner(unittest.TestCase): """GetReservationsWithRateDetailsResponseDataInnerRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py rename to cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py index 1de878b..fcf0fa5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner class TestGetReservationsWithRateDetailsResponseDataInnerSourceInner(unittest.TestCase): """GetReservationsWithRateDetailsResponseDataInnerSourceInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py rename to cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py index d210d8e..9755458 100644 --- a/cloudbeds_pms_v1_2/test/test_get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse class TestGetRoomBlocksResponse(unittest.TestCase): """GetRoomBlocksResponse unit test stubs""" @@ -37,14 +37,14 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponse: return GetRoomBlocksResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner.GetRoomBlocksResponse_data_inner( + cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner.GetRoomBlocksResponse_data_inner( room_block_id = '', room_block_type = 'blocked', room_block_reason = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ - cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( + cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( room_id = '', room_type_id = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py index f3255eb..3193795 100644 --- a/cloudbeds_pms_v1_2/test/test_get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner class TestGetRoomBlocksResponseDataInner(unittest.TestCase): """GetRoomBlocksResponseDataInner unit test stubs""" @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInner: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ - cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( + cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( room_id = '', room_type_id = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_get_room_types_response.py b/cloudbeds_pms_v1_3/test/test_get_room_types_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_room_types_response.py rename to cloudbeds_pms_v1_3/test/test_get_room_types_response.py index cd0df41..f460049 100644 --- a/cloudbeds_pms_v1_2/test/test_get_room_types_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_types_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse class TestGetRoomTypesResponse(unittest.TestCase): """GetRoomTypesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetRoomTypesResponse: return GetRoomTypesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_room_types_response_data_inner.GetRoomTypesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_room_types_response_data_inner.GetRoomTypesResponse_data_inner( room_type_id = '', property_id = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py index 496c35c..3693b8e 100644 --- a/cloudbeds_pms_v1_2/test/test_get_room_types_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner class TestGetRoomTypesResponseDataInner(unittest.TestCase): """GetRoomTypesResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py index 4f64fa0..7d4f4f3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse class TestGetRoomsFeesAndTaxesResponse(unittest.TestCase): """GetRoomsFeesAndTaxesResponse unit test stubs""" @@ -36,15 +36,15 @@ def make_instance(self, include_optional) -> GetRoomsFeesAndTaxesResponse: if include_optional: return GetRoomsFeesAndTaxesResponse( success = True, - data = cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data.GetRoomsFeesAndTaxesResponse_data( + data = cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data.GetRoomsFeesAndTaxesResponse_data( fees = [ - cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner.GetRoomsFeesAndTaxesResponse_data_fees_inner( + cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner.GetRoomsFeesAndTaxesResponse_data_fees_inner( fee_name = '', fee_value = 1.337, total_fees = 1.337, ) ], taxes = [ - cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner.GetRoomsFeesAndTaxesResponse_data_taxes_inner( + cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner.GetRoomsFeesAndTaxesResponse_data_taxes_inner( fee_name = '', fee_value = '', total_taxes = 1.337, ) diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py index 0f6660a..fec7b8c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData class TestGetRoomsFeesAndTaxesResponseData(unittest.TestCase): """GetRoomsFeesAndTaxesResponseData unit test stubs""" @@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> GetRoomsFeesAndTaxesResponseData: if include_optional: return GetRoomsFeesAndTaxesResponseData( fees = [ - cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner.GetRoomsFeesAndTaxesResponse_data_fees_inner( + cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner.GetRoomsFeesAndTaxesResponse_data_fees_inner( fee_name = '', fee_value = 1.337, total_fees = 1.337, ) ], taxes = [ - cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner.GetRoomsFeesAndTaxesResponse_data_taxes_inner( + cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner.GetRoomsFeesAndTaxesResponse_data_taxes_inner( fee_name = '', fee_value = '', total_taxes = 1.337, ) diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py index a66bb1c..f862c81 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner class TestGetRoomsFeesAndTaxesResponseDataFeesInner(unittest.TestCase): """GetRoomsFeesAndTaxesResponseDataFeesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py index dd28ee5..27acfc7 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner class TestGetRoomsFeesAndTaxesResponseDataTaxesInner(unittest.TestCase): """GetRoomsFeesAndTaxesResponseDataTaxesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response.py b/cloudbeds_pms_v1_3/test/test_get_rooms_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_rooms_response.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_response.py index f027957..de1b28d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse class TestGetRoomsResponse(unittest.TestCase): """GetRoomsResponse unit test stubs""" @@ -37,10 +37,10 @@ def make_instance(self, include_optional) -> GetRoomsResponse: return GetRoomsResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_rooms_response_data_inner.GetRoomsResponse_data_inner( + cloudbeds_pms_v1_3.models.get_rooms_response_data_inner.GetRoomsResponse_data_inner( property_id = '', rooms = [ - cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner.GetRoomsResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner.GetRoomsResponse_data_inner_rooms_inner( room_id = '', room_name = '', dorm_room_name = '', @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> GetRoomsResponse: '' ], linked_room_type_qty = [ - cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( + cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( room_type_id = '', room_qty = 56, ) ], ) diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py index d999e5c..bb11380 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner class TestGetRoomsResponseDataInner(unittest.TestCase): """GetRoomsResponseDataInner unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetRoomsResponseDataInner: return GetRoomsResponseDataInner( property_id = '', rooms = [ - cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner.GetRoomsResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner.GetRoomsResponse_data_inner_rooms_inner( room_id = '', room_name = '', dorm_room_name = '', @@ -57,7 +57,7 @@ def make_instance(self, include_optional) -> GetRoomsResponseDataInner: '' ], linked_room_type_qty = [ - cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( + cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( room_type_id = '', room_qty = 56, ) ], ) diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py index 9c1b67f..034418d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner class TestGetRoomsResponseDataInnerRoomsInner(unittest.TestCase): """GetRoomsResponseDataInnerRoomsInner unit test stubs""" @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> GetRoomsResponseDataInnerRoomsInner '' ], linked_room_type_qty = [ - cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( + cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.GetRoomsResponse_data_inner_rooms_inner_linkedRoomTypeQty_inner( room_type_id = '', room_qty = 56, ) ] diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py b/cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py index 51c2984..ce750c5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner class TestGetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner(unittest.TestCase): """GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py b/cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py index d7fd201..3dbcedf 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse class TestGetRoomsUnassignedResponse(unittest.TestCase): """GetRoomsUnassignedResponse unit test stubs""" @@ -37,10 +37,10 @@ def make_instance(self, include_optional) -> GetRoomsUnassignedResponse: return GetRoomsUnassignedResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner.GetRoomsUnassignedResponse_data_inner( + cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner.GetRoomsUnassignedResponse_data_inner( property_id = '', rooms = [ - cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner.GetRoomsUnassignedResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner.GetRoomsUnassignedResponse_data_inner_rooms_inner( room_id = '', room_name = '', dorm_room_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py index 8a0ca21..69c9d14 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner class TestGetRoomsUnassignedResponseDataInner(unittest.TestCase): """GetRoomsUnassignedResponseDataInner unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetRoomsUnassignedResponseDataInner return GetRoomsUnassignedResponseDataInner( property_id = '', rooms = [ - cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner.GetRoomsUnassignedResponse_data_inner_rooms_inner( + cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner.GetRoomsUnassignedResponse_data_inner_rooms_inner( room_id = '', room_name = '', dorm_room_name = '', diff --git a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py index d94068c..e0a73a5 100644 --- a/cloudbeds_pms_v1_2/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner class TestGetRoomsUnassignedResponseDataInnerRoomsInner(unittest.TestCase): """GetRoomsUnassignedResponseDataInnerRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response.py b/cloudbeds_pms_v1_3/test/test_get_sources_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_sources_response.py rename to cloudbeds_pms_v1_3/test/test_get_sources_response.py index 5ef16e8..769a8ab 100644 --- a/cloudbeds_pms_v1_2/test/test_get_sources_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_sources_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse class TestGetSourcesResponse(unittest.TestCase): """GetSourcesResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetSourcesResponse: return GetSourcesResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_sources_response_data_inner.GetSourcesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_sources_response_data_inner.GetSourcesResponse_data_inner( property_id = '', source_id = '', source_name = '', @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> GetSourcesResponse: commission = 1.337, payment_collect = 'hotel', taxes = [ - cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner.GetSourcesResponse_data_inner_taxes_inner( + cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner.GetSourcesResponse_data_inner_taxes_inner( tax_id = '', name = '', amount = 1.337, @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> GetSourcesResponse: type = 'exclusive', ) ], fees = [ - cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner.GetSourcesResponse_data_inner_fees_inner( + cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner.GetSourcesResponse_data_inner_fees_inner( fee_id = 56, name = '', amount = 1.337, diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py index f8e3303..c0c977a 100644 --- a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner class TestGetSourcesResponseDataInner(unittest.TestCase): """GetSourcesResponseDataInner unit test stubs""" @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> GetSourcesResponseDataInner: commission = 1.337, payment_collect = 'hotel', taxes = [ - cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner.GetSourcesResponse_data_inner_taxes_inner( + cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner.GetSourcesResponse_data_inner_taxes_inner( tax_id = '', name = '', amount = 1.337, @@ -51,7 +51,7 @@ def make_instance(self, include_optional) -> GetSourcesResponseDataInner: type = 'exclusive', ) ], fees = [ - cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner.GetSourcesResponse_data_inner_fees_inner( + cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner.GetSourcesResponse_data_inner_fees_inner( fee_id = 56, name = '', amount = 1.337, diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py b/cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py rename to cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py index 9ea066e..bc8a8d4 100644 --- a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_fees_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner class TestGetSourcesResponseDataInnerFeesInner(unittest.TestCase): """GetSourcesResponseDataInnerFeesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py rename to cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py index 56352f1..514610e 100644 --- a/cloudbeds_pms_v1_2/test/test_get_sources_response_data_inner_taxes_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner class TestGetSourcesResponseDataInnerTaxesInner(unittest.TestCase): """GetSourcesResponseDataInnerTaxesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py index c9016bf..4f6dcbf 100644 --- a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse class TestGetTaxesAndFeesResponse(unittest.TestCase): """GetTaxesAndFeesResponse unit test stubs""" @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: success = True, message = '', data = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner.GetTaxesAndFeesResponse_data_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner.GetTaxesAndFeesResponse_data_inner( type = 'fee', fee_id = 56, tax_id = 56, @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: amount_adult = 1.337, amount_child = 1.337, amount_rate_based = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = 1.337, percentage = 1.337, ) ], @@ -63,13 +63,13 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: created_at = '', expired_at = '', room_types = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner.GetTaxesAndFeesResponse_data_inner_roomTypes_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner.GetTaxesAndFeesResponse_data_inner_roomTypes_inner( room_type_id = '', room_type_name = '', ) ], date_ranges = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( - range = cloudbeds_pms_v1_2.models.range.range(), + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( + range = cloudbeds_pms_v1_3.models.range.range(), amount = 1.337, amount_adult = 1.337, amount_child = 1.337, ) diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py index 4730be6..7b4f612 100644 --- a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner class TestGetTaxesAndFeesResponseDataInner(unittest.TestCase): """GetTaxesAndFeesResponseDataInner unit test stubs""" @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: amount_adult = 1.337, amount_child = 1.337, amount_rate_based = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = 1.337, percentage = 1.337, ) ], @@ -59,18 +59,18 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: created_at = '', expired_at = '', room_types = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner.GetTaxesAndFeesResponse_data_inner_roomTypes_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner.GetTaxesAndFeesResponse_data_inner_roomTypes_inner( room_type_id = '', room_type_name = '', ) ], date_ranges = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( - range = cloudbeds_pms_v1_2.models.range.range(), + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( + range = cloudbeds_pms_v1_3.models.range.range(), amount = 1.337, amount_adult = 1.337, amount_child = 1.337, amount_rate_based = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = 1.337, percentage = 1.337, ) ], ) diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py index 03514de..641fcf4 100644 --- a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner class TestGetTaxesAndFeesResponseDataInnerAmountRateBasedInner(unittest.TestCase): """GetTaxesAndFeesResponseDataInnerAmountRateBasedInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py index a4e1bbe..4626b31 100644 --- a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner class TestGetTaxesAndFeesResponseDataInnerDateRangesInner(unittest.TestCase): """GetTaxesAndFeesResponseDataInnerDateRangesInner unit test stubs""" @@ -35,12 +35,12 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDat model = GetTaxesAndFeesResponseDataInnerDateRangesInner() if include_optional: return GetTaxesAndFeesResponseDataInnerDateRangesInner( - range = cloudbeds_pms_v1_2.models.range.range(), + range = cloudbeds_pms_v1_3.models.range.range(), amount = 1.337, amount_adult = 1.337, amount_child = 1.337, amount_rate_based = [ - cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = 1.337, percentage = 1.337, ) ] diff --git a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py index f294d09..cd25586 100644 --- a/cloudbeds_pms_v1_2/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner class TestGetTaxesAndFeesResponseDataInnerRoomTypesInner(unittest.TestCase): """GetTaxesAndFeesResponseDataInnerRoomTypesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_get_transactions_response.py b/cloudbeds_pms_v1_3/test/test_get_transactions_response.py new file mode 100644 index 0000000..9407a80 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_transactions_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse + +class TestGetTransactionsResponse(unittest.TestCase): + """GetTransactionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTransactionsResponse: + """Test GetTransactionsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTransactionsResponse` + """ + model = GetTransactionsResponse() + if include_optional: + return GetTransactionsResponse( + success = True, + data = [ + cloudbeds_pms_v1_3.models.get_transactions_response_data_inner.GetTransactionsResponse_data_inner( + property_id = '', + reservation_id = '', + sub_reservation_id = '', + house_account_id = '', + house_account_name = '', + guest_id = '', + property_name = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_name = '', + guest_name = '', + description = '', + category = '', + transaction_code = '', + notes = '', + quantity = 56, + amount = 1.337, + currency = '', + user_name = '', + transaction_type = 'debit', + transaction_category = 'adjustment', + item_category_name = '', + transaction_id = '', + parent_transaction_id = '', + card_type = '', + is_deleted = True, + service_date = '', ) + ], + cloudbeds_accounting = True, + count = 56, + total = 56, + message = '' + ) + else: + return GetTransactionsResponse( + ) + """ + + def testGetTransactionsResponse(self): + """Test GetTransactionsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py new file mode 100644 index 0000000..4ef0458 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner + +class TestGetTransactionsResponseDataInner(unittest.TestCase): + """GetTransactionsResponseDataInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTransactionsResponseDataInner: + """Test GetTransactionsResponseDataInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTransactionsResponseDataInner` + """ + model = GetTransactionsResponseDataInner() + if include_optional: + return GetTransactionsResponseDataInner( + property_id = '', + reservation_id = '', + sub_reservation_id = '', + house_account_id = '', + house_account_name = '', + guest_id = '', + property_name = '', + transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + room_type_id = '', + room_type_name = '', + room_name = '', + guest_name = '', + description = '', + category = '', + transaction_code = '', + notes = '', + quantity = 56, + amount = 1.337, + currency = '', + user_name = '', + transaction_type = 'debit', + transaction_category = 'adjustment', + item_category_name = '', + transaction_id = '', + parent_transaction_id = '', + card_type = '', + is_deleted = True, + service_date = '' + ) + else: + return GetTransactionsResponseDataInner( + ) + """ + + def testGetTransactionsResponseDataInner(self): + """Test GetTransactionsResponseDataInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_get_userinfo_response.py b/cloudbeds_pms_v1_3/test/test_get_userinfo_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_userinfo_response.py rename to cloudbeds_pms_v1_3/test/test_get_userinfo_response.py index 61fb240..f53703c 100644 --- a/cloudbeds_pms_v1_2/test/test_get_userinfo_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_userinfo_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse class TestGetUserinfoResponse(unittest.TestCase): """GetUserinfoResponse unit test stubs""" @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> GetUserinfoResponse: '' ], roles = [ - cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner.GetUserinfoResponse_roles_inner( + cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner.GetUserinfoResponse_roles_inner( id = '', name = '', description = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py b/cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py rename to cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py index 6da0be8..65a4a1d 100644 --- a/cloudbeds_pms_v1_2/test/test_get_userinfo_response_roles_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner class TestGetUserinfoResponseRolesInner(unittest.TestCase): """GetUserinfoResponseRolesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_users_response.py b/cloudbeds_pms_v1_3/test/test_get_users_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_get_users_response.py rename to cloudbeds_pms_v1_3/test/test_get_users_response.py index 4d8e0ee..c6bbb86 100644 --- a/cloudbeds_pms_v1_2/test/test_get_users_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_users_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse class TestGetUsersResponse(unittest.TestCase): """GetUsersResponse unit test stubs""" @@ -37,13 +37,13 @@ def make_instance(self, include_optional) -> GetUsersResponse: return GetUsersResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_users_response_data_inner.GetUsersResponse_data_inner( + cloudbeds_pms_v1_3.models.get_users_response_data_inner.GetUsersResponse_data_inner( user_id = '', first_name = '', last_name = '', email = '', language = '', - user_role = cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( + user_role = cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( name = '', description = '', ), active = 'yes', diff --git a/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py index 652704f..41b843b 100644 --- a/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_users_response_data_inner import GetUsersResponseDataInner +from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner class TestGetUsersResponseDataInner(unittest.TestCase): """GetUsersResponseDataInner unit test stubs""" @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> GetUsersResponseDataInner: last_name = '', email = '', language = '', - user_role = cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( + user_role = cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( name = '', description = '', ), active = 'yes', diff --git a/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py b/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py rename to cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py index b3d9033..22ae031 100644 --- a/cloudbeds_pms_v1_2/test/test_get_users_response_data_inner_user_role.py +++ b/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole class TestGetUsersResponseDataInnerUserRole(unittest.TestCase): """GetUsersResponseDataInnerUserRole unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response.py b/cloudbeds_pms_v1_3/test/test_get_webhooks_response.py similarity index 86% rename from cloudbeds_pms_v1_2/test/test_get_webhooks_response.py rename to cloudbeds_pms_v1_3/test/test_get_webhooks_response.py index f61b53a..0ff74f3 100644 --- a/cloudbeds_pms_v1_2/test/test_get_webhooks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_webhooks_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse class TestGetWebhooksResponse(unittest.TestCase): """GetWebhooksResponse unit test stubs""" @@ -37,19 +37,19 @@ def make_instance(self, include_optional) -> GetWebhooksResponse: return GetWebhooksResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner.GetWebhooksResponse_data_inner( + cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner.GetWebhooksResponse_data_inner( id = '', - key = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key.GetWebhooksResponse_data_inner_key( + key = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key.GetWebhooksResponse_data_inner_key( type = 'user', id = '', ), - event = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event.GetWebhooksResponse_data_inner_event( + event = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event.GetWebhooksResponse_data_inner_event( entity = '', action = '', ), - owner = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner.GetWebhooksResponse_data_inner_owner( + owner = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner.GetWebhooksResponse_data_inner_owner( type = '', id = '', ), subscription_type = '', - subscription_data = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data.GetWebhooksResponse_data_inner_subscriptionData( + subscription_data = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data.GetWebhooksResponse_data_inner_subscriptionData( endpoint = '', ), ) ] ) diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py similarity index 87% rename from cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py index af80595..6628a14 100644 --- a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner class TestGetWebhooksResponseDataInner(unittest.TestCase): """GetWebhooksResponseDataInner unit test stubs""" @@ -36,17 +36,17 @@ def make_instance(self, include_optional) -> GetWebhooksResponseDataInner: if include_optional: return GetWebhooksResponseDataInner( id = '', - key = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key.GetWebhooksResponse_data_inner_key( + key = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key.GetWebhooksResponse_data_inner_key( type = 'user', id = '', ), - event = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event.GetWebhooksResponse_data_inner_event( + event = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event.GetWebhooksResponse_data_inner_event( entity = '', action = '', ), - owner = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner.GetWebhooksResponse_data_inner_owner( + owner = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner.GetWebhooksResponse_data_inner_owner( type = '', id = '', ), subscription_type = '', - subscription_data = cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data.GetWebhooksResponse_data_inner_subscriptionData( + subscription_data = cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data.GetWebhooksResponse_data_inner_subscriptionData( endpoint = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py rename to cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py index 47ac7e1..d2627fe 100644 --- a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_event.py +++ b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent class TestGetWebhooksResponseDataInnerEvent(unittest.TestCase): """GetWebhooksResponseDataInnerEvent unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py rename to cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py index ca1e645..3fe8086 100644 --- a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_key.py +++ b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey class TestGetWebhooksResponseDataInnerKey(unittest.TestCase): """GetWebhooksResponseDataInnerKey unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py rename to cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py index 1f5ba92..cd4f203 100644 --- a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_owner.py +++ b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner class TestGetWebhooksResponseDataInnerOwner(unittest.TestCase): """GetWebhooksResponseDataInnerOwner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py rename to cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py index 72bc686..b264a71 100644 --- a/cloudbeds_pms_v1_2/test/test_get_webhooks_response_data_inner_subscription_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData class TestGetWebhooksResponseDataInnerSubscriptionData(unittest.TestCase): """GetWebhooksResponseDataInnerSubscriptionData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_groups_api.py b/cloudbeds_pms_v1_3/test/test_groups_api.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_groups_api.py rename to cloudbeds_pms_v1_3/test/test_groups_api.py index 2ac86b2..ce2b682 100644 --- a/cloudbeds_pms_v1_2/test/test_groups_api.py +++ b/cloudbeds_pms_v1_3/test/test_groups_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.groups_api import GroupsApi +from cloudbeds_pms_v1_3.api.groups_api import GroupsApi class TestGroupsApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_guest_api.py b/cloudbeds_pms_v1_3/test/test_guest_api.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_guest_api.py rename to cloudbeds_pms_v1_3/test/test_guest_api.py index 811066e..92b5717 100644 --- a/cloudbeds_pms_v1_2/test/test_guest_api.py +++ b/cloudbeds_pms_v1_3/test/test_guest_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.guest_api import GuestApi +from cloudbeds_pms_v1_3.api.guest_api import GuestApi class TestGuestApi(unittest.TestCase): @@ -75,6 +75,13 @@ def test_get_guests_modified_get(self) -> None: """ pass + def test_post_guest_credit_card_post(self) -> None: + """Test case for post_guest_credit_card_post + + postGuestCreditCard + """ + pass + def test_post_guest_document_post(self) -> None: """Test case for post_guest_document_post diff --git a/cloudbeds_pms_v1_2/test/test_hotel_api.py b/cloudbeds_pms_v1_3/test/test_hotel_api.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_hotel_api.py rename to cloudbeds_pms_v1_3/test/test_hotel_api.py index 92d00f7..9b38929 100644 --- a/cloudbeds_pms_v1_2/test/test_hotel_api.py +++ b/cloudbeds_pms_v1_3/test/test_hotel_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.hotel_api import HotelApi +from cloudbeds_pms_v1_3.api.hotel_api import HotelApi class TestHotelApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_house_account_api.py b/cloudbeds_pms_v1_3/test/test_house_account_api.py similarity index 86% rename from cloudbeds_pms_v1_2/test/test_house_account_api.py rename to cloudbeds_pms_v1_3/test/test_house_account_api.py index b551dfa..d026252 100644 --- a/cloudbeds_pms_v1_2/test/test_house_account_api.py +++ b/cloudbeds_pms_v1_3/test/test_house_account_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.house_account_api import HouseAccountApi +from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi class TestHouseAccountApi(unittest.TestCase): @@ -26,6 +26,13 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_get_house_account_details_get(self) -> None: + """Test case for get_house_account_details_get + + getHouseAccountDetails + """ + pass + def test_get_house_account_list_get(self) -> None: """Test case for get_house_account_list_get diff --git a/cloudbeds_pms_v1_2/test/test_housekeeping_api.py b/cloudbeds_pms_v1_3/test/test_housekeeping_api.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_housekeeping_api.py rename to cloudbeds_pms_v1_3/test/test_housekeeping_api.py index dfed730..59e3886 100644 --- a/cloudbeds_pms_v1_2/test/test_housekeeping_api.py +++ b/cloudbeds_pms_v1_3/test/test_housekeeping_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.housekeeping_api import HousekeepingApi +from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi class TestHousekeepingApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_3/test/test_import_api.py b/cloudbeds_pms_v1_3/test/test_import_api.py new file mode 100644 index 0000000..2bfd929 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_import_api.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.api.import_api import ImportApi + + +class TestImportApi(unittest.TestCase): + """ImportApi unit test stubs""" + + def setUp(self) -> None: + self.api = ImportApi() + + def tearDown(self) -> None: + pass + + def test_import_dummy_reservations_get(self) -> None: + """Test case for import_dummy_reservations_get + + GetImportDummyReservations + """ + pass + + def test_import_tours_get(self) -> None: + """Test case for import_tours_get + + GetImportTours + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_integration_api.py b/cloudbeds_pms_v1_3/test/test_integration_api.py similarity index 85% rename from cloudbeds_pms_v1_2/test/test_integration_api.py rename to cloudbeds_pms_v1_3/test/test_integration_api.py index 6848ce0..8b00d37 100644 --- a/cloudbeds_pms_v1_2/test/test_integration_api.py +++ b/cloudbeds_pms_v1_3/test/test_integration_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.integration_api import IntegrationApi +from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi class TestIntegrationApi(unittest.TestCase): @@ -61,6 +61,20 @@ def test_post_app_error_post(self) -> None: """ pass + def test_post_app_settings_post(self) -> None: + """Test case for post_app_settings_post + + postAppSettings + """ + pass + + def test_post_app_state_internal_post(self) -> None: + """Test case for post_app_state_internal_post + + postAppStateInternal + """ + pass + def test_post_app_state_post(self) -> None: """Test case for post_app_state_post diff --git a/cloudbeds_pms_v1_2/test/test_invoices_api.py b/cloudbeds_pms_v1_3/test/test_invoices_api.py similarity index 86% rename from cloudbeds_pms_v1_2/test/test_invoices_api.py rename to cloudbeds_pms_v1_3/test/test_invoices_api.py index 1191774..5d04694 100644 --- a/cloudbeds_pms_v1_2/test/test_invoices_api.py +++ b/cloudbeds_pms_v1_3/test/test_invoices_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.invoices_api import InvoicesApi +from cloudbeds_pms_v1_3.api.invoices_api import InvoicesApi class TestInvoicesApi(unittest.TestCase): @@ -33,6 +33,13 @@ def test_get_invoice_get(self) -> None: """ pass + def test_invoice_get(self) -> None: + """Test case for invoice_get + + invoice + """ + pass + def test_patch_invoice_post(self) -> None: """Test case for patch_invoice_post diff --git a/cloudbeds_pms_v1_2/test/test_item_api.py b/cloudbeds_pms_v1_3/test/test_item_api.py similarity index 85% rename from cloudbeds_pms_v1_2/test/test_item_api.py rename to cloudbeds_pms_v1_3/test/test_item_api.py index ff0c8fa..710489d 100644 --- a/cloudbeds_pms_v1_2/test/test_item_api.py +++ b/cloudbeds_pms_v1_3/test/test_item_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.item_api import ItemApi +from cloudbeds_pms_v1_3.api.item_api import ItemApi class TestItemApi(unittest.TestCase): @@ -33,6 +33,13 @@ def test_append_custom_item_post(self) -> None: """ pass + def test_delete_item_from_reservation_delete(self) -> None: + """Test case for delete_item_from_reservation_delete + + deleteItemFromReservation + """ + pass + def test_get_item_categories_get(self) -> None: """Test case for get_item_categories_get @@ -75,6 +82,13 @@ def test_post_item_post(self) -> None: """ pass + def test_post_item_to_reservation_post(self) -> None: + """Test case for post_item_to_reservation_post + + postItemToReservation + """ + pass + def test_post_items_to_inventory_post(self) -> None: """Test case for post_items_to_inventory_post diff --git a/cloudbeds_pms_v1_2/test/test_package_api.py b/cloudbeds_pms_v1_3/test/test_package_api.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_package_api.py rename to cloudbeds_pms_v1_3/test/test_package_api.py index e90ed3c..d57a0c8 100644 --- a/cloudbeds_pms_v1_2/test/test_package_api.py +++ b/cloudbeds_pms_v1_3/test/test_package_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.package_api import PackageApi +from cloudbeds_pms_v1_3.api.package_api import PackageApi class TestPackageApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_payment_api.py b/cloudbeds_pms_v1_3/test/test_payment_api.py similarity index 75% rename from cloudbeds_pms_v1_2/test/test_payment_api.py rename to cloudbeds_pms_v1_3/test/test_payment_api.py index 516ae0c..39930c6 100644 --- a/cloudbeds_pms_v1_2/test/test_payment_api.py +++ b/cloudbeds_pms_v1_3/test/test_payment_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.payment_api import PaymentApi +from cloudbeds_pms_v1_3.api.payment_api import PaymentApi class TestPaymentApi(unittest.TestCase): @@ -40,6 +40,27 @@ def test_get_payments_capabilities_get(self) -> None: """ pass + def test_get_payments_get(self) -> None: + """Test case for get_payments_get + + getPayments + """ + pass + + def test_get_pending_transactions_get(self) -> None: + """Test case for get_pending_transactions_get + + getPendingTransactions + """ + pass + + def test_get_transactions_get(self) -> None: + """Test case for get_transactions_get + + getTransactions + """ + pass + def test_post_charge_post(self) -> None: """Test case for post_charge_post @@ -61,6 +82,20 @@ def test_post_custom_payment_method_post(self) -> None: """ pass + def test_post_payment_cash_post(self) -> None: + """Test case for post_payment_cash_post + + postPaymentCash + """ + pass + + def test_post_payment_credit_card_post(self) -> None: + """Test case for post_payment_credit_card_post + + postPaymentCreditCard + """ + pass + def test_post_payment_post(self) -> None: """Test case for post_payment_post diff --git a/cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py b/cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py new file mode 100644 index 0000000..5b30934 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse + +class TestPostAccessTokenCheckResponse(unittest.TestCase): + """PostAccessTokenCheckResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAccessTokenCheckResponse: + """Test PostAccessTokenCheckResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAccessTokenCheckResponse` + """ + model = PostAccessTokenCheckResponse() + if include_optional: + return PostAccessTokenCheckResponse( + success = '' + ) + else: + return PostAccessTokenCheckResponse( + ) + """ + + def testPostAccessTokenCheckResponse(self): + """Test PostAccessTokenCheckResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_access_token_response.py b/cloudbeds_pms_v1_3/test/test_post_access_token_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_access_token_response.py rename to cloudbeds_pms_v1_3/test/test_post_access_token_response.py index bd74717..784fcae 100644 --- a/cloudbeds_pms_v1_2/test/test_post_access_token_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_access_token_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse class TestPostAccessTokenResponse(unittest.TestCase): """PostAccessTokenResponse unit test stubs""" @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> PostAccessTokenResponse: expires_in = 56, refresh_token = '', resources = [ - cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner.PostAccessTokenResponse_resources_inner( + cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner.PostAccessTokenResponse_resources_inner( type = 'property', id = '', ) ] diff --git a/cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py b/cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py rename to cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py index 0957bea..448385d 100644 --- a/cloudbeds_pms_v1_2/test/test_post_access_token_response_resources_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner class TestPostAccessTokenResponseResourcesInner(unittest.TestCase): """PostAccessTokenResponseResourcesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_adjustment_response.py b/cloudbeds_pms_v1_3/test/test_post_adjustment_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_adjustment_response.py rename to cloudbeds_pms_v1_3/test/test_post_adjustment_response.py index a041ab5..02ee982 100644 --- a/cloudbeds_pms_v1_2/test/test_post_adjustment_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_adjustment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse class TestPostAdjustmentResponse(unittest.TestCase): """PostAdjustmentResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostAdjustmentResponse: if include_optional: return PostAdjustmentResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_adjustment_response_data.PostAdjustmentResponse_data( + data = cloudbeds_pms_v1_3.models.post_adjustment_response_data.PostAdjustmentResponse_data( adjustment_id = '', ), message = '' ) diff --git a/cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py b/cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py index 960466c..ee0a5a4 100644 --- a/cloudbeds_pms_v1_2/test/test_post_adjustment_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData class TestPostAdjustmentResponseData(unittest.TestCase): """PostAdjustmentResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_app_error_response.py b/cloudbeds_pms_v1_3/test/test_post_app_error_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_app_error_response.py rename to cloudbeds_pms_v1_3/test/test_post_app_error_response.py index f7ba659..f74569f 100644 --- a/cloudbeds_pms_v1_2/test/test_post_app_error_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_app_error_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse class TestPostAppErrorResponse(unittest.TestCase): """PostAppErrorResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostAppErrorResponse: if include_optional: return PostAppErrorResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_app_error_response_data.PostAppErrorResponse_data( + data = cloudbeds_pms_v1_3.models.post_app_error_response_data.PostAppErrorResponse_data( error_id = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py b/cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py index 8eb8dec..6ef1df1 100644 --- a/cloudbeds_pms_v1_2/test/test_post_app_error_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData class TestPostAppErrorResponseData(unittest.TestCase): """PostAppErrorResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py b/cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py rename to cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py index 6bf8120..bd8812c 100644 --- a/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse class TestPostAppPropertySettingResponse(unittest.TestCase): """PostAppPropertySettingResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostAppPropertySettingResponse: if include_optional: return PostAppPropertySettingResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_app_property_setting_response_data.PostAppPropertySettingResponse_data( + data = cloudbeds_pms_v1_3.models.post_app_property_setting_response_data.PostAppPropertySettingResponse_data( id = '', key = '', value = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py b/cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py index 2bd0c1b..accb662 100644 --- a/cloudbeds_pms_v1_2/test/test_post_app_property_setting_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData class TestPostAppPropertySettingResponseData(unittest.TestCase): """PostAppPropertySettingResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py b/cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py new file mode 100644 index 0000000..da0d009 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner + +class TestPostAppSettingsRequestSettingsInner(unittest.TestCase): + """PostAppSettingsRequestSettingsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppSettingsRequestSettingsInner: + """Test PostAppSettingsRequestSettingsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppSettingsRequestSettingsInner` + """ + model = PostAppSettingsRequestSettingsInner() + if include_optional: + return PostAppSettingsRequestSettingsInner( + name = '', + value = '' + ) + else: + return PostAppSettingsRequestSettingsInner( + ) + """ + + def testPostAppSettingsRequestSettingsInner(self): + """Test PostAppSettingsRequestSettingsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_app_settings_response.py b/cloudbeds_pms_v1_3/test/test_post_app_settings_response.py new file mode 100644 index 0000000..8fc647c --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_app_settings_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse + +class TestPostAppSettingsResponse(unittest.TestCase): + """PostAppSettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppSettingsResponse: + """Test PostAppSettingsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppSettingsResponse` + """ + model = PostAppSettingsResponse() + if include_optional: + return PostAppSettingsResponse( + success = True, + data = None + ) + else: + return PostAppSettingsResponse( + ) + """ + + def testPostAppSettingsResponse(self): + """Test PostAppSettingsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py b/cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py new file mode 100644 index 0000000..bebcbd8 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse + +class TestPostAppStateInternalResponse(unittest.TestCase): + """PostAppStateInternalResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostAppStateInternalResponse: + """Test PostAppStateInternalResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostAppStateInternalResponse` + """ + model = PostAppStateInternalResponse() + if include_optional: + return PostAppStateInternalResponse( + success = True + ) + else: + return PostAppStateInternalResponse( + ) + """ + + def testPostAppStateInternalResponse(self): + """Test PostAppStateInternalResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_app_state_response.py b/cloudbeds_pms_v1_3/test/test_post_app_state_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_app_state_response.py rename to cloudbeds_pms_v1_3/test/test_post_app_state_response.py index d6300db..2ff6f3d 100644 --- a/cloudbeds_pms_v1_2/test/test_post_app_state_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_app_state_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse class TestPostAppStateResponse(unittest.TestCase): """PostAppStateResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py b/cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py rename to cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py index 1da96fa..fdafed6 100644 --- a/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse class TestPostAppendCustomItemResponse(unittest.TestCase): """PostAppendCustomItemResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostAppendCustomItemResponse: if include_optional: return PostAppendCustomItemResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_append_custom_item_response_data.PostAppendCustomItemResponse_data( + data = cloudbeds_pms_v1_3.models.post_append_custom_item_response_data.PostAppendCustomItemResponse_data( sold_product_id = '', transaction_id = '', ) ) diff --git a/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py b/cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py index 372c469..ae817f4 100644 --- a/cloudbeds_pms_v1_2/test/test_post_append_custom_item_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData class TestPostAppendCustomItemResponseData(unittest.TestCase): """PostAppendCustomItemResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py b/cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py new file mode 100644 index 0000000..7e27761 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse + +class TestPostBulkAppPropertySettingsResponse(unittest.TestCase): + """PostBulkAppPropertySettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostBulkAppPropertySettingsResponse: + """Test PostBulkAppPropertySettingsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostBulkAppPropertySettingsResponse` + """ + model = PostBulkAppPropertySettingsResponse() + if include_optional: + return PostBulkAppPropertySettingsResponse( + success = True + ) + else: + return PostBulkAppPropertySettingsResponse( + ) + """ + + def testPostBulkAppPropertySettingsResponse(self): + """Test PostBulkAppPropertySettingsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_card_response.py b/cloudbeds_pms_v1_3/test/test_post_card_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_card_response.py rename to cloudbeds_pms_v1_3/test/test_post_card_response.py index bc12796..d53bbbd 100644 --- a/cloudbeds_pms_v1_2/test/test_post_card_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_card_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse class TestPostCardResponse(unittest.TestCase): """PostCardResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostCardResponse: if include_optional: return PostCardResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_card_response_data.PostCardResponse_data( + data = cloudbeds_pms_v1_3.models.post_card_response_data.PostCardResponse_data( card_id = '', card_number = '', card_type = 'visa', diff --git a/cloudbeds_pms_v1_2/test/test_post_card_response_data.py b/cloudbeds_pms_v1_3/test/test_post_card_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_card_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_card_response_data.py index b7a1d12..b7b99ab 100644 --- a/cloudbeds_pms_v1_2/test/test_post_card_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_card_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData class TestPostCardResponseData(unittest.TestCase): """PostCardResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response.py b/cloudbeds_pms_v1_3/test/test_post_charge_response.py similarity index 88% rename from cloudbeds_pms_v1_2/test/test_post_charge_response.py rename to cloudbeds_pms_v1_3/test/test_post_charge_response.py index 31202b9..19ab8c3 100644 --- a/cloudbeds_pms_v1_2/test/test_post_charge_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_charge_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse class TestPostChargeResponse(unittest.TestCase): """PostChargeResponse unit test stubs""" @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> PostChargeResponse: if include_optional: return PostChargeResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_charge_response_data.PostChargeResponse_data( + data = cloudbeds_pms_v1_3.models.post_charge_response_data.PostChargeResponse_data( payment_id = '', transaction_id = '', payment_status = '', payment_type = '', - next_action = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action.PostChargeResponse_data_nextAction( + next_action = cloudbeds_pms_v1_3.models.post_charge_response_data_next_action.PostChargeResponse_data_nextAction( type = '', - details = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( + details = cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( url = '', method = '', ), ), ) ) diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response_data.py b/cloudbeds_pms_v1_3/test/test_post_charge_response_data.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_post_charge_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_charge_response_data.py index 4ea87c7..41b74dd 100644 --- a/cloudbeds_pms_v1_2/test/test_post_charge_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_charge_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData class TestPostChargeResponseData(unittest.TestCase): """PostChargeResponseData unit test stubs""" @@ -39,9 +39,9 @@ def make_instance(self, include_optional) -> PostChargeResponseData: transaction_id = '', payment_status = '', payment_type = '', - next_action = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action.PostChargeResponse_data_nextAction( + next_action = cloudbeds_pms_v1_3.models.post_charge_response_data_next_action.PostChargeResponse_data_nextAction( type = '', - details = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( + details = cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( url = '', method = '', ), ) ) diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py b/cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py rename to cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py index 1b8d163..a1b6495 100644 --- a/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action.py +++ b/cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction class TestPostChargeResponseDataNextAction(unittest.TestCase): """PostChargeResponseDataNextAction unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostChargeResponseDataNextAction: if include_optional: return PostChargeResponseDataNextAction( type = '', - details = cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( + details = cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details.PostChargeResponse_data_nextAction_details( url = '', method = '', ) ) diff --git a/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py b/cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py rename to cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py index dc51e8f..1e864ca 100644 --- a/cloudbeds_pms_v1_2/test/test_post_charge_response_data_next_action_details.py +++ b/cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails class TestPostChargeResponseDataNextActionDetails(unittest.TestCase): """PostChargeResponseDataNextActionDetails unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py index 8962020..bf2b35e 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse class TestPostCreateAllotmentBlockNotesResponse(unittest.TestCase): """PostCreateAllotmentBlockNotesResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockNotesRespon if include_optional: return PostCreateAllotmentBlockNotesResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data.PostCreateAllotmentBlockNotesResponse_data( + data = cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data.PostCreateAllotmentBlockNotesResponse_data( id = '', text = '', created_by = '', diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py index 052e0f0..9923eab 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_notes_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData class TestPostCreateAllotmentBlockNotesResponseData(unittest.TestCase): """PostCreateAllotmentBlockNotesResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py index 1d35238..5eebc7c 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInner(unittest.TestCase): """PostCreateAllotmentBlockRequestAllotmentIntervalsInner unit test stubs""" @@ -36,18 +36,18 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllo if include_optional: return PostCreateAllotmentBlockRequestAllotmentIntervalsInner( availability = [ - cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( + cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_allotted = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), - restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py index 7cfecdf..af57ba2 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(unittest.TestCase): """PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner unit test stubs""" @@ -38,14 +38,14 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllo var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_allotted = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), - restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py index 97c575c..b9c3860 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(unittest.TestCase): """PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py index 4c3b0c7..5a572fb 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions class TestPostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(unittest.TestCase): """PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py index a4a8fa3..6d5e706 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_request_auto_release.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease class TestPostCreateAllotmentBlockRequestAutoRelease(unittest.TestCase): """PostCreateAllotmentBlockRequestAutoRelease unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py index e5b543d..fdc72df 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse class TestPostCreateAllotmentBlockResponse(unittest.TestCase): """PostCreateAllotmentBlockResponse unit test stubs""" @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponse: end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), success = True, data = [ - cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner.PostCreateAllotmentBlockResponse_data_inner( + cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner.PostCreateAllotmentBlockResponse_data_inner( property_id = '', allotment_block_code = '', allotment_block_status = '', @@ -51,29 +51,29 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponse: group_id = '', group_code = '', is_auto_release = True, - auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', days = 56, release_time = '', ), allotment_intervals = [ - cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), ), - restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py index ad631c4..c706584 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner class TestPostCreateAllotmentBlockResponseDataInner(unittest.TestCase): """PostCreateAllotmentBlockResponseDataInner unit test stubs""" @@ -46,29 +46,29 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat group_id = '', group_code = '', is_auto_release = True, - auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', days = 56, release_time = '', ), allotment_intervals = [ - cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), ), - restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py index d8f88ab..cdf6fdb 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(unittest.TestCase): """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner unit test stubs""" @@ -38,20 +38,20 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), ), - restrictions = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py index 51fa44d..366bad2 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability(unittest.TestCase): """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability unit test stubs""" @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py index a9b4e31..0500cfa 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing(unittest.TestCase): """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py index 2229bfe..ea84102 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions class TestPostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): """PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py rename to cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py index 5f1e4eb..1fce3e7 100644 --- a/cloudbeds_pms_v1_2/test/test_post_create_allotment_block_response_data_inner_auto_release.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease class TestPostCreateAllotmentBlockResponseDataInnerAutoRelease(unittest.TestCase): """PostCreateAllotmentBlockResponseDataInnerAutoRelease unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py b/cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py new file mode 100644 index 0000000..627350d --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse + +class TestPostCRMCacheRemoveResponse(unittest.TestCase): + """PostCRMCacheRemoveResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCRMCacheRemoveResponse: + """Test PostCRMCacheRemoveResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCRMCacheRemoveResponse` + """ + model = PostCRMCacheRemoveResponse() + if include_optional: + return PostCRMCacheRemoveResponse( + success = True + ) + else: + return PostCRMCacheRemoveResponse( + ) + """ + + def testPostCRMCacheRemoveResponse(self): + """Test PostCRMCacheRemoveResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py b/cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py new file mode 100644 index 0000000..3d1bc26 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse + +class TestPostCRMCacheUpdateResponse(unittest.TestCase): + """PostCRMCacheUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostCRMCacheUpdateResponse: + """Test PostCRMCacheUpdateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostCRMCacheUpdateResponse` + """ + model = PostCRMCacheUpdateResponse() + if include_optional: + return PostCRMCacheUpdateResponse( + success = True + ) + else: + return PostCRMCacheUpdateResponse( + ) + """ + + def testPostCRMCacheUpdateResponse(self): + """Test PostCRMCacheUpdateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_field_response.py b/cloudbeds_pms_v1_3/test/test_post_custom_field_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_custom_field_response.py rename to cloudbeds_pms_v1_3/test/test_post_custom_field_response.py index 1ec9186..4166b05 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_field_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_field_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse class TestPostCustomFieldResponse(unittest.TestCase): """PostCustomFieldResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostCustomFieldResponse: if include_optional: return PostCustomFieldResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_custom_field_response_data.PostCustomFieldResponse_data( + data = cloudbeds_pms_v1_3.models.post_custom_field_response_data.PostCustomFieldResponse_data( field_id = '', name = '', shortcode = '', ), diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py b/cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py index 23bcc08..4a7bda1 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_field_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData class TestPostCustomFieldResponseData(unittest.TestCase): """PostCustomFieldResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py rename to cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py index 517dd61..e002034 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner class TestPostCustomItemRequestItemsInner(unittest.TestCase): """PostCustomItemRequestItemsInner unit test stubs""" @@ -43,12 +43,12 @@ def make_instance(self, include_optional) -> PostCustomItemRequestItemsInner: item_category_name = '', item_note = '', item_taxes = [ - cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner.PostCustomItemRequest_items_inner_itemTaxes_inner( + cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner.PostCustomItemRequest_items_inner_itemTaxes_inner( tax_name = '', tax_value = 1.337, ) ], item_fees = [ - cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner.PostCustomItemRequest_items_inner_itemFees_inner( + cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner.PostCustomItemRequest_items_inner_itemFees_inner( fee_name = '', fee_value = 1.337, ) ] diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py rename to cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py index 7b7248e..a1e1336 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_fees_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner class TestPostCustomItemRequestItemsInnerItemFeesInner(unittest.TestCase): """PostCustomItemRequestItemsInnerItemFeesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py rename to cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py index 3c078a3..b6edd32 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_items_inner_item_taxes_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner class TestPostCustomItemRequestItemsInnerItemTaxesInner(unittest.TestCase): """PostCustomItemRequestItemsInnerItemTaxesInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py rename to cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py index 4185ed6..7b534fe 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_item_request_payments_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner class TestPostCustomItemRequestPaymentsInner(unittest.TestCase): """PostCustomItemRequestPaymentsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_response.py b/cloudbeds_pms_v1_3/test/test_post_custom_item_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_custom_item_response.py rename to cloudbeds_pms_v1_3/test/test_post_custom_item_response.py index 96f5ee2..b749720 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_item_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse class TestPostCustomItemResponse(unittest.TestCase): """PostCustomItemResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostCustomItemResponse: if include_optional: return PostCustomItemResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_custom_item_response_data.PostCustomItemResponse_data( + data = cloudbeds_pms_v1_3.models.post_custom_item_response_data.PostCustomItemResponse_data( sold_product_id = '', transaction_id = '', notice = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py b/cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py index a2a1154..c867d42 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_item_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData class TestPostCustomItemResponseData(unittest.TestCase): """PostCustomItemResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py b/cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py rename to cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py index 4991dd8..d3c31b0 100644 --- a/cloudbeds_pms_v1_2/test/test_post_custom_payment_method_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse class TestPostCustomPaymentMethodResponse(unittest.TestCase): """PostCustomPaymentMethodResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py b/cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py rename to cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py index 8792e5e..09d58c1 100644 --- a/cloudbeds_pms_v1_2/test/test_post_delete_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse class TestPostDeleteAllotmentBlockResponse(unittest.TestCase): """PostDeleteAllotmentBlockResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py b/cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py rename to cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py index 22454f7..50a31f7 100644 --- a/cloudbeds_pms_v1_2/test/test_post_delete_app_property_settings_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse class TestPostDeleteAppPropertySettingsResponse(unittest.TestCase): """PostDeleteAppPropertySettingsResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py b/cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py rename to cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py index c285326..7f91751 100644 --- a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule.py +++ b/cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule class TestPostEmailScheduleRequestSchedule(unittest.TestCase): """PostEmailScheduleRequestSchedule unit test stubs""" @@ -35,9 +35,9 @@ def make_instance(self, include_optional) -> PostEmailScheduleRequestSchedule: model = PostEmailScheduleRequestSchedule() if include_optional: return PostEmailScheduleRequestSchedule( - reservation_status_change = cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change.PostEmailScheduleRequest_schedule_reservationStatusChange( + reservation_status_change = cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change.PostEmailScheduleRequest_schedule_reservationStatusChange( status = 'confirmed', ), - reservation_event = cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event.PostEmailScheduleRequest_schedule_reservationEvent( + reservation_event = cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event.PostEmailScheduleRequest_schedule_reservationEvent( event = 'after_booking', days = 56, time = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py b/cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py rename to cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py index 766ea0d..77546a3 100644 --- a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_event.py +++ b/cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent class TestPostEmailScheduleRequestScheduleReservationEvent(unittest.TestCase): """PostEmailScheduleRequestScheduleReservationEvent unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py b/cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py rename to cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py index f9046d1..2ed7d24 100644 --- a/cloudbeds_pms_v1_2/test/test_post_email_schedule_request_schedule_reservation_status_change.py +++ b/cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange class TestPostEmailScheduleRequestScheduleReservationStatusChange(unittest.TestCase): """PostEmailScheduleRequestScheduleReservationStatusChange unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py b/cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py rename to cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py index 5fd42f7..7de7d68 100644 --- a/cloudbeds_pms_v1_2/test/test_post_email_schedule_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse class TestPostEmailScheduleResponse(unittest.TestCase): """PostEmailScheduleResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py b/cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py rename to cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py index e3bb4f3..bede51f 100644 --- a/cloudbeds_pms_v1_2/test/test_post_email_template_request_body.py +++ b/cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody class TestPostEmailTemplateRequestBody(unittest.TestCase): """PostEmailTemplateRequestBody unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py b/cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py rename to cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py index db5e24d..5ae01ac 100644 --- a/cloudbeds_pms_v1_2/test/test_post_email_template_request_subject.py +++ b/cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject class TestPostEmailTemplateRequestSubject(unittest.TestCase): """PostEmailTemplateRequestSubject unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_email_template_response.py b/cloudbeds_pms_v1_3/test/test_post_email_template_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_email_template_response.py rename to cloudbeds_pms_v1_3/test/test_post_email_template_response.py index 711ec31..465cc17 100644 --- a/cloudbeds_pms_v1_2/test/test_post_email_template_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_email_template_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse class TestPostEmailTemplateResponse(unittest.TestCase): """PostEmailTemplateResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_file_response.py b/cloudbeds_pms_v1_3/test/test_post_file_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_file_response.py rename to cloudbeds_pms_v1_3/test/test_post_file_response.py index 58850c7..10aaaa0 100644 --- a/cloudbeds_pms_v1_2/test/test_post_file_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_file_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse class TestPostFileResponse(unittest.TestCase): """PostFileResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostFileResponse: return PostFileResponse( success = True, message = '', - data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + data = cloudbeds_pms_v1_3.models.post_guest_document_response_data.PostGuestDocumentResponse_data( file_id = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py b/cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py rename to cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py index 379453a..ff892a4 100644 --- a/cloudbeds_pms_v1_2/test/test_post_government_receipt_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse class TestPostGovernmentReceiptResponse(unittest.TestCase): """PostGovernmentReceiptResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_group_note_response.py b/cloudbeds_pms_v1_3/test/test_post_group_note_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_group_note_response.py rename to cloudbeds_pms_v1_3/test/test_post_group_note_response.py index d0ae81d..e36edf9 100644 --- a/cloudbeds_pms_v1_2/test/test_post_group_note_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_group_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse class TestPostGroupNoteResponse(unittest.TestCase): """PostGroupNoteResponse unit test stubs""" @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> PostGroupNoteResponse: success = True, code = 56, data = [ - cloudbeds_pms_v1_2.models.post_group_note_response_data_inner.PostGroupNoteResponse_data_inner( + cloudbeds_pms_v1_3.models.post_group_note_response_data_inner.PostGroupNoteResponse_data_inner( id = '', group_profile_id = '', text = '', diff --git a/cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py index df8bdd0..0786edd 100644 --- a/cloudbeds_pms_v1_2/test/test_post_group_note_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner class TestPostGroupNoteResponseDataInner(unittest.TestCase): """PostGroupNoteResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py b/cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py new file mode 100644 index 0000000..0692bd6 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse + +class TestPostGuestCreditCardResponse(unittest.TestCase): + """PostGuestCreditCardResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostGuestCreditCardResponse: + """Test PostGuestCreditCardResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostGuestCreditCardResponse` + """ + model = PostGuestCreditCardResponse() + if include_optional: + return PostGuestCreditCardResponse( + success = True + ) + else: + return PostGuestCreditCardResponse( + ) + """ + + def testPostGuestCreditCardResponse(self): + """Test PostGuestCreditCardResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_document_response.py b/cloudbeds_pms_v1_3/test/test_post_guest_document_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_guest_document_response.py rename to cloudbeds_pms_v1_3/test/test_post_guest_document_response.py index 0196b8a..a539a0e 100644 --- a/cloudbeds_pms_v1_2/test/test_post_guest_document_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_guest_document_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse class TestPostGuestDocumentResponse(unittest.TestCase): """PostGuestDocumentResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostGuestDocumentResponse: return PostGuestDocumentResponse( success = True, message = '', - data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + data = cloudbeds_pms_v1_3.models.post_guest_document_response_data.PostGuestDocumentResponse_data( file_id = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py b/cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py index 36641e1..0e731a7 100644 --- a/cloudbeds_pms_v1_2/test/test_post_guest_document_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData class TestPostGuestDocumentResponseData(unittest.TestCase): """PostGuestDocumentResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_note_response.py b/cloudbeds_pms_v1_3/test/test_post_guest_note_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_guest_note_response.py rename to cloudbeds_pms_v1_3/test/test_post_guest_note_response.py index 2d4bcc1..d5c6d9f 100644 --- a/cloudbeds_pms_v1_2/test/test_post_guest_note_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_guest_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse class TestPostGuestNoteResponse(unittest.TestCase): """PostGuestNoteResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py b/cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py rename to cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py index ab932a3..2c5a6b4 100644 --- a/cloudbeds_pms_v1_2/test/test_post_guest_photo_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse class TestPostGuestPhotoResponse(unittest.TestCase): """PostGuestPhotoResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostGuestPhotoResponse: return PostGuestPhotoResponse( success = True, message = '', - data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + data = cloudbeds_pms_v1_3.models.post_guest_document_response_data.PostGuestDocumentResponse_data( file_id = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py rename to cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py index 0bb78c7..35064ca 100644 --- a/cloudbeds_pms_v1_2/test/test_post_guest_request_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner class TestPostGuestRequestCustomFieldsInner(unittest.TestCase): """PostGuestRequestCustomFieldsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_guest_response.py b/cloudbeds_pms_v1_3/test/test_post_guest_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_guest_response.py rename to cloudbeds_pms_v1_3/test/test_post_guest_response.py index f1db337..ced270b 100644 --- a/cloudbeds_pms_v1_2/test/test_post_guest_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_guest_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse class TestPostGuestResponse(unittest.TestCase): """PostGuestResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py b/cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py rename to cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py index 058a36e..61751d9 100644 --- a/cloudbeds_pms_v1_2/test/test_post_guests_to_room_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse class TestPostGuestsToRoomResponse(unittest.TestCase): """PostGuestsToRoomResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py b/cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py rename to cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py index 0915616..6580213 100644 --- a/cloudbeds_pms_v1_2/test/test_post_housekeeper_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse class TestPostHousekeeperResponse(unittest.TestCase): """PostHousekeeperResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py b/cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py rename to cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py index 69d1b78..1067c14 100644 --- a/cloudbeds_pms_v1_2/test/test_post_housekeeping_assignment_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse class TestPostHousekeepingAssignmentResponse(unittest.TestCase): """PostHousekeepingAssignmentResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py b/cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py rename to cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py index 8d710b0..360aab6 100644 --- a/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse class TestPostHousekeepingStatusResponse(unittest.TestCase): """PostHousekeepingStatusResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostHousekeepingStatusResponse: if include_optional: return PostHousekeepingStatusResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data.PostHousekeepingStatusResponse_data( + data = cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data.PostHousekeepingStatusResponse_data( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), room_id = '', room_condition = 'dirty', diff --git a/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py b/cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py index 6251563..acd7b90 100644 --- a/cloudbeds_pms_v1_2/test/test_post_housekeeping_status_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData class TestPostHousekeepingStatusResponseData(unittest.TestCase): """PostHousekeepingStatusResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_item_category_response.py b/cloudbeds_pms_v1_3/test/test_post_item_category_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_item_category_response.py rename to cloudbeds_pms_v1_3/test/test_post_item_category_response.py index d87375c..d7f59fe 100644 --- a/cloudbeds_pms_v1_2/test/test_post_item_category_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_item_category_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse class TestPostItemCategoryResponse(unittest.TestCase): """PostItemCategoryResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_item_response.py b/cloudbeds_pms_v1_3/test/test_post_item_response.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_post_item_response.py rename to cloudbeds_pms_v1_3/test/test_post_item_response.py index 24dc4a9..7a20a1e 100644 --- a/cloudbeds_pms_v1_2/test/test_post_item_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse class TestPostItemResponse(unittest.TestCase): """PostItemResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostItemResponse: if include_optional: return PostItemResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_item_response_data.PostItemResponse_data( + data = cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data.PostItemToReservationResponse_data( sold_product_id = '', transaction_id = '', transaction_status = '', diff --git a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py new file mode 100644 index 0000000..8f9eb66 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner + +class TestPostItemToReservationRequestPaymentsInner(unittest.TestCase): + """PostItemToReservationRequestPaymentsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemToReservationRequestPaymentsInner: + """Test PostItemToReservationRequestPaymentsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemToReservationRequestPaymentsInner` + """ + model = PostItemToReservationRequestPaymentsInner() + if include_optional: + return PostItemToReservationRequestPaymentsInner( + payment_type = '', + amount = 1.337, + notes = '' + ) + else: + return PostItemToReservationRequestPaymentsInner( + ) + """ + + def testPostItemToReservationRequestPaymentsInner(self): + """Test PostItemToReservationRequestPaymentsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py new file mode 100644 index 0000000..489e886 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse + +class TestPostItemToReservationResponse(unittest.TestCase): + """PostItemToReservationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemToReservationResponse: + """Test PostItemToReservationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemToReservationResponse` + """ + model = PostItemToReservationResponse() + if include_optional: + return PostItemToReservationResponse( + success = True, + data = cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data.PostItemToReservationResponse_data( + sold_product_id = '', + transaction_id = '', + transaction_status = '', + remaining_item_quantity = 56, + reorder_needed = True, + stop_sell_met = True, ), + message = '' + ) + else: + return PostItemToReservationResponse( + ) + """ + + def testPostItemToReservationResponse(self): + """Test PostItemToReservationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_item_response_data.py b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py similarity index 74% rename from cloudbeds_pms_v1_2/test/test_post_item_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py index e568de1..1e83288 100644 --- a/cloudbeds_pms_v1_2/test/test_post_item_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_2.models.post_item_response_data import PostItemResponseData +from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData -class TestPostItemResponseData(unittest.TestCase): - """PostItemResponseData unit test stubs""" +class TestPostItemToReservationResponseData(unittest.TestCase): + """PostItemToReservationResponseData unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PostItemResponseData: - """Test PostItemResponseData + def make_instance(self, include_optional) -> PostItemToReservationResponseData: + """Test PostItemToReservationResponseData include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `PostItemResponseData` + # uncomment below to create an instance of `PostItemToReservationResponseData` """ - model = PostItemResponseData() + model = PostItemToReservationResponseData() if include_optional: - return PostItemResponseData( + return PostItemToReservationResponseData( sold_product_id = '', transaction_id = '', transaction_status = '', @@ -43,12 +43,12 @@ def make_instance(self, include_optional) -> PostItemResponseData: stop_sell_met = True ) else: - return PostItemResponseData( + return PostItemToReservationResponseData( ) """ - def testPostItemResponseData(self): - """Test PostItemResponseData""" + def testPostItemToReservationResponseData(self): + """Test PostItemToReservationResponseData""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py b/cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py rename to cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py index 83c5263..e08e106 100644 --- a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_request_item.py +++ b/cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem class TestPostItemsToInventoryRequestItem(unittest.TestCase): """PostItemsToInventoryRequestItem unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py b/cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py rename to cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py index e3ea2da..27c5ffd 100644 --- a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse class TestPostItemsToInventoryResponse(unittest.TestCase): """PostItemsToInventoryResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostItemsToInventoryResponse: return PostItemsToInventoryResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner.PostItemsToInventoryResponse_data_inner( + cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner.PostItemsToInventoryResponse_data_inner( item_id = '', item_sku = '', item_name = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py index a4bad5b..6b4a8ef 100644 --- a/cloudbeds_pms_v1_2/test/test_post_items_to_inventory_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner class TestPostItemsToInventoryResponseDataInner(unittest.TestCase): """PostItemsToInventoryResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py b/cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py rename to cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py index da2c7ee..04a946a 100644 --- a/cloudbeds_pms_v1_2/test/test_post_new_house_account_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse class TestPostNewHouseAccountResponse(unittest.TestCase): """PostNewHouseAccountResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostNewHouseAccountResponse: if include_optional: return PostNewHouseAccountResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_new_house_account_response_data.PostNewHouseAccountResponse_data( + data = cloudbeds_pms_v1_3.models.post_new_house_account_response_data.PostNewHouseAccountResponse_data( house_account_id = '', ), message = '' ) diff --git a/cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py b/cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py index c0f2a44..0e6fa67 100644 --- a/cloudbeds_pms_v1_2/test/test_post_new_house_account_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData class TestPostNewHouseAccountResponseData(unittest.TestCase): """PostNewHouseAccountResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_group_response.py b/cloudbeds_pms_v1_3/test/test_post_patch_group_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_patch_group_response.py rename to cloudbeds_pms_v1_3/test/test_post_patch_group_response.py index 400e2c3..c97124d 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_group_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_patch_group_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse class TestPostPatchGroupResponse(unittest.TestCase): """PostPatchGroupResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostPatchGroupResponse: return PostPatchGroupResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner.PostPatchGroupResponse_data_inner( + cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner.PostPatchGroupResponse_data_inner( group_code = '', name = '', type = 'group', diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py index 9b919ae..0cbcefe 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_group_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner class TestPostPatchGroupResponseDataInner(unittest.TestCase): """PostPatchGroupResponseDataInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py b/cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py rename to cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py index 257755e..9a6b5c6 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_invoice_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_patch_invoice_response import PostPatchInvoiceResponse +from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse class TestPostPatchInvoiceResponse(unittest.TestCase): """PostPatchInvoiceResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py rename to cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py index afa014c..9bd7186 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner class TestPostPatchRateRequestRatesInner(unittest.TestCase): """PostPatchRateRequestRatesInner unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostPatchRateRequestRatesInner: if include_optional: return PostPatchRateRequestRatesInner( rate_id = '', - interval = cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval.PostPatchRateRequest_rates_inner_interval( + interval = cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval.PostPatchRateRequest_rates_inner_interval( start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, @@ -47,7 +47,7 @@ def make_instance(self, include_optional) -> PostPatchRateRequestRatesInner: cut_off = 56, last_minute_booking = 56, blocked = True, - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', adult3 = '', diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py b/cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py rename to cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py index 3ae615c..08c7416 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_rate_request_rates_inner_interval.py +++ b/cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval class TestPostPatchRateRequestRatesInnerInterval(unittest.TestCase): """PostPatchRateRequestRatesInnerInterval unit test stubs""" @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> PostPatchRateRequestRatesInnerInter cut_off = 56, last_minute_booking = 56, blocked = True, - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', adult3 = '', diff --git a/cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py b/cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py rename to cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py index 2efc18e..eb9e4cb 100644 --- a/cloudbeds_pms_v1_2/test/test_post_patch_rate_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse class TestPostPatchRateResponse(unittest.TestCase): """PostPatchRateResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py b/cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py new file mode 100644 index 0000000..34514a0 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse + +class TestPostPaymentCashResponse(unittest.TestCase): + """PostPaymentCashResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPaymentCashResponse: + """Test PostPaymentCashResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPaymentCashResponse` + """ + model = PostPaymentCashResponse() + if include_optional: + return PostPaymentCashResponse( + success = True, + message = '' + ) + else: + return PostPaymentCashResponse( + ) + """ + + def testPostPaymentCashResponse(self): + """Test PostPaymentCashResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py b/cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py new file mode 100644 index 0000000..501a33d --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse + +class TestPostPaymentCreditCardResponse(unittest.TestCase): + """PostPaymentCreditCardResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPaymentCreditCardResponse: + """Test PostPaymentCreditCardResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPaymentCreditCardResponse` + """ + model = PostPaymentCreditCardResponse() + if include_optional: + return PostPaymentCreditCardResponse( + success = True, + message = '' + ) + else: + return PostPaymentCreditCardResponse( + ) + """ + + def testPostPaymentCreditCardResponse(self): + """Test PostPaymentCreditCardResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_payment_response.py b/cloudbeds_pms_v1_3/test/test_post_payment_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_payment_response.py rename to cloudbeds_pms_v1_3/test/test_post_payment_response.py index bd98cc6..a9e9466 100644 --- a/cloudbeds_pms_v1_2/test/test_post_payment_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_payment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse class TestPostPaymentResponse(unittest.TestCase): """PostPaymentResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py b/cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py rename to cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py index 987dec8..14b4285 100644 --- a/cloudbeds_pms_v1_2/test/test_post_put_app_property_settings_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse class TestPostPutAppPropertySettingsResponse(unittest.TestCase): """PostPutAppPropertySettingsResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostPutAppPropertySettingsResponse: if include_optional: return PostPutAppPropertySettingsResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_app_property_setting_response_data.PostAppPropertySettingResponse_data( + data = cloudbeds_pms_v1_3.models.post_app_property_setting_response_data.PostAppPropertySettingResponse_data( id = '', key = '', value = '', ) diff --git a/cloudbeds_pms_v1_2/test/test_post_put_group_response.py b/cloudbeds_pms_v1_3/test/test_post_put_group_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_put_group_response.py rename to cloudbeds_pms_v1_3/test/test_post_put_group_response.py index 2b2275a..5ca7cc5 100644 --- a/cloudbeds_pms_v1_2/test/test_post_put_group_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_put_group_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse class TestPostPutGroupResponse(unittest.TestCase): """PostPutGroupResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostPutGroupResponse: return PostPutGroupResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.post_patch_group_response_data_inner.PostPatchGroupResponse_data_inner( + cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner.PostPatchGroupResponse_data_inner( group_code = '', name = '', type = 'group', diff --git a/cloudbeds_pms_v1_3/test/test_post_put_rate_request.py b/cloudbeds_pms_v1_3/test/test_post_put_rate_request.py new file mode 100644 index 0000000..83b4908 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_put_rate_request.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest + +class TestPostPutRateRequest(unittest.TestCase): + """PostPutRateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostPutRateRequest: + """Test PostPutRateRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostPutRateRequest` + """ + model = PostPutRateRequest() + if include_optional: + return PostPutRateRequest( + rates = [ + cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner.PostPutRateRequest_rates_inner( + rate_id = '', + interval = [ + cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner.PostPutRateRequest_rates_inner_interval_inner( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ], ) + ] + ) + else: + return PostPutRateRequest( + ) + """ + + def testPostPutRateRequest(self): + """Test PostPutRateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py rename to cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py index 476ec16..c25ad65 100644 --- a/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner class TestPostPutRateRequestRatesInner(unittest.TestCase): """PostPutRateRequestRatesInner unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostPutRateRequestRatesInner: return PostPutRateRequestRatesInner( rate_id = '', interval = [ - cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner.PostPutRateRequest_rates_inner_interval_inner( + cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner.PostPutRateRequest_rates_inner_interval_inner( start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) diff --git a/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py rename to cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py index 9127118..4002e3c 100644 --- a/cloudbeds_pms_v1_2/test/test_post_put_rate_request_rates_inner_interval_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner class TestPostPutRateRequestRatesInnerIntervalInner(unittest.TestCase): """PostPutRateRequestRatesInnerIntervalInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_put_rate_response.py b/cloudbeds_pms_v1_3/test/test_post_put_rate_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_put_rate_response.py rename to cloudbeds_pms_v1_3/test/test_post_put_rate_response.py index 1bd9f28..c3c157b 100644 --- a/cloudbeds_pms_v1_2/test/test_post_put_rate_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_put_rate_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse class TestPostPutRateResponse(unittest.TestCase): """PostPutRateResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py b/cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py new file mode 100644 index 0000000..51f30bc --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse + +class TestPostReservationCheckInResponse(unittest.TestCase): + """PostReservationCheckInResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationCheckInResponse: + """Test PostReservationCheckInResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationCheckInResponse` + """ + model = PostReservationCheckInResponse() + if include_optional: + return PostReservationCheckInResponse( + success = True, + message = '' + ) + else: + return PostReservationCheckInResponse( + ) + """ + + def testPostReservationCheckInResponse(self): + """Test PostReservationCheckInResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py b/cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py new file mode 100644 index 0000000..98fada9 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse + +class TestPostReservationCheckOutResponse(unittest.TestCase): + """PostReservationCheckOutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostReservationCheckOutResponse: + """Test PostReservationCheckOutResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostReservationCheckOutResponse` + """ + model = PostReservationCheckOutResponse() + if include_optional: + return PostReservationCheckOutResponse( + success = True, + message = '' + ) + else: + return PostReservationCheckOutResponse( + ) + """ + + def testPostReservationCheckOutResponse(self): + """Test PostReservationCheckOutResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py b/cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py index 6b1b504..bff4252 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_document_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse class TestPostReservationDocumentResponse(unittest.TestCase): """PostReservationDocumentResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostReservationDocumentResponse: return PostReservationDocumentResponse( success = True, message = '', - data = cloudbeds_pms_v1_2.models.post_guest_document_response_data.PostGuestDocumentResponse_data( + data = cloudbeds_pms_v1_3.models.post_guest_document_response_data.PostGuestDocumentResponse_data( file_id = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py b/cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py index 965ae87..6bfa5c6 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_note_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse class TestPostReservationNoteResponse(unittest.TestCase): """PostReservationNoteResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py b/cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py index 6559b79..4d9abc8 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_request_adults_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner class TestPostReservationRequestAdultsInner(unittest.TestCase): """PostReservationRequestAdultsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py b/cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py index dae008e..0c5438a 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_request_children_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner class TestPostReservationRequestChildrenInner(unittest.TestCase): """PostReservationRequestChildrenInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py index 4494b47..fb82f7b 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_request_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner class TestPostReservationRequestCustomFieldsInner(unittest.TestCase): """PostReservationRequestCustomFieldsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py index 3137032..5c82266 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner class TestPostReservationRequestRoomsInner(unittest.TestCase): """PostReservationRequestRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_response.py b/cloudbeds_pms_v1_3/test/test_post_reservation_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_reservation_response.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_response.py index bc1f191..84f753e 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse class TestPostReservationResponse(unittest.TestCase): """PostReservationResponse unit test stubs""" @@ -48,14 +48,14 @@ def make_instance(self, include_optional) -> PostReservationResponse: date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), grand_total = 1.337, unassigned = [ - cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner.PostReservationResponse_unassigned_inner( + cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner.PostReservationResponse_unassigned_inner( sub_reservation_id = '', room_type_name = '', room_type_id = '', adults = 56, children = 56, daily_rates = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py b/cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py rename to cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py index f1f5b3f..064ca63 100644 --- a/cloudbeds_pms_v1_2/test/test_post_reservation_response_unassigned_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner class TestPostReservationResponseUnassignedInner(unittest.TestCase): """PostReservationResponseUnassignedInner unit test stubs""" @@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> PostReservationResponseUnassignedIn adults = 56, children = 56, daily_rates = [ - cloudbeds_pms_v1_2.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner.GetReservationResponse_data_assigned_inner_dailyRates_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], diff --git a/cloudbeds_pms_v1_2/test/test_post_room_assign_response.py b/cloudbeds_pms_v1_3/test/test_post_room_assign_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_room_assign_response.py rename to cloudbeds_pms_v1_3/test/test_post_room_assign_response.py index 2a4df70..3e0a57a 100644 --- a/cloudbeds_pms_v1_2/test/test_post_room_assign_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_assign_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse class TestPostRoomAssignResponse(unittest.TestCase): """PostRoomAssignResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py index b244087..e2e378d 100644 --- a/cloudbeds_pms_v1_2/test/test_post_room_block_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner class TestPostRoomBlockRequestRoomsInner(unittest.TestCase): """PostRoomBlockRequestRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_room_block_response.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_room_block_response.py rename to cloudbeds_pms_v1_3/test/test_post_room_block_response.py index d6f455a..e1d8580 100644 --- a/cloudbeds_pms_v1_2/test/test_post_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse class TestPostRoomBlockResponse(unittest.TestCase): """PostRoomBlockResponse unit test stubs""" @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> PostRoomBlockResponse: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ - cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( + cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( room_id = '', room_type_id = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py index c3308c8..920ae09 100644 --- a/cloudbeds_pms_v1_2/test/test_post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner class TestPostRoomBlockResponseRoomsInner(unittest.TestCase): """PostRoomBlockResponseRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py b/cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py rename to cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py index fd55168..d2d7729 100644 --- a/cloudbeds_pms_v1_2/test/test_post_room_check_in_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse class TestPostRoomCheckInResponse(unittest.TestCase): """PostRoomCheckInResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py b/cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py rename to cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py index ad13f45..dff2803 100644 --- a/cloudbeds_pms_v1_2/test/test_post_room_check_out_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse class TestPostRoomCheckOutResponse(unittest.TestCase): """PostRoomCheckOutResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_post_room_type_response.py b/cloudbeds_pms_v1_3/test/test_post_room_type_response.py new file mode 100644 index 0000000..e011e6f --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_room_type_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse + +class TestPostRoomTypeResponse(unittest.TestCase): + """PostRoomTypeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomTypeResponse: + """Test PostRoomTypeResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomTypeResponse` + """ + model = PostRoomTypeResponse() + if include_optional: + return PostRoomTypeResponse( + success = True, + data = cloudbeds_pms_v1_3.models.post_room_type_response_data.PostRoomTypeResponse_data( + room_type_id = '', ), + message = '' + ) + else: + return PostRoomTypeResponse( + ) + """ + + def testPostRoomTypeResponse(self): + """Test PostRoomTypeResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py b/cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py new file mode 100644 index 0000000..54e3667 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData + +class TestPostRoomTypeResponseData(unittest.TestCase): + """PostRoomTypeResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRoomTypeResponseData: + """Test PostRoomTypeResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRoomTypeResponseData` + """ + model = PostRoomTypeResponseData() + if include_optional: + return PostRoomTypeResponseData( + room_type_id = '' + ) + else: + return PostRoomTypeResponseData( + ) + """ + + def testPostRoomTypeResponseData(self): + """Test PostRoomTypeResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py index f80190b..9b0fd60 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse class TestPostUpdateAllotmentBlockNotesResponse(unittest.TestCase): """PostUpdateAllotmentBlockNotesResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockNotesRespon if include_optional: return PostUpdateAllotmentBlockNotesResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data.PostUpdateAllotmentBlockNotesResponse_data( + data = cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data.PostUpdateAllotmentBlockNotesResponse_data( id = '', text = '', created_by = '', diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py index 682c663..13f0846 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_notes_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData class TestPostUpdateAllotmentBlockNotesResponseData(unittest.TestCase): """PostUpdateAllotmentBlockNotesResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py index c5b121d..228a436 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInner(unittest.TestCase): """PostUpdateAllotmentBlockRequestAllotmentIntervalsInner unit test stubs""" @@ -37,18 +37,18 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllo return PostUpdateAllotmentBlockRequestAllotmentIntervalsInner( room_type_id = '', availability = [ - cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( + cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( block_allotted = 56, date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), - restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py index 78b3e30..a278923 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(unittest.TestCase): """PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner unit test stubs""" @@ -38,14 +38,14 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllo block_allotted = 56, var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), - restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py index 5cbbc99..db9d339 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing(unittest.TestCase): """PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py index dc654ad..488a041 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(unittest.TestCase): """PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py index e179ea5..a9471ba 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_request_auto_release.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease class TestPostUpdateAllotmentBlockRequestAutoRelease(unittest.TestCase): """PostUpdateAllotmentBlockRequestAutoRelease unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py index 315cd56..abebe5b 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse class TestPostUpdateAllotmentBlockResponse(unittest.TestCase): """PostUpdateAllotmentBlockResponse unit test stubs""" @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponse: return PostUpdateAllotmentBlockResponse( success = True, data = [ - cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner.PostUpdateAllotmentBlockResponse_data_inner( + cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner.PostUpdateAllotmentBlockResponse_data_inner( property_id = '', allotment_block_code = '', allotment_block_status = '', @@ -49,27 +49,27 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponse: group_id = '', group_code = '', is_auto_release = True, - auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', days = 56, release_time = '', ), allotment_intervals = [ - cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( room_type_id = '', - availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), ), - restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py index 3666573..62df3f2 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner class TestPostUpdateAllotmentBlockResponseDataInner(unittest.TestCase): """PostUpdateAllotmentBlockResponseDataInner unit test stubs""" @@ -46,27 +46,27 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDat group_id = '', group_code = '', is_auto_release = True, - auto_release = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( + auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', days = 56, release_time = '', ), allotment_intervals = [ - cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( room_type_id = '', - availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), ), - restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py index c66a2c4..557ffd4 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner class TestPostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(unittest.TestCase): """PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner unit test stubs""" @@ -36,20 +36,20 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDat if include_optional: return PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner( room_type_id = '', - availability = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( + availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), block_remaining = 56, block_allotted = 56, block_confirmed = 56, rate = '', - guest_pricing = cloudbeds_pms_v1_2.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( + guest_pricing = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability_guestPricing( adult1 = '', adult2 = '', adult3 = '', child1 = '', child2 = '', child3 = '', ), ), - restrictions = cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, diff --git a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py similarity index 94% rename from cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py rename to cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py index 68c2344..0b70c5e 100644 --- a/cloudbeds_pms_v1_2/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions class TestPostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): """PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_void_item_response.py b/cloudbeds_pms_v1_3/test/test_post_void_item_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_void_item_response.py rename to cloudbeds_pms_v1_3/test/test_post_void_item_response.py index 269ab9c..c661d6e 100644 --- a/cloudbeds_pms_v1_2/test/test_post_void_item_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_void_item_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse class TestPostVoidItemResponse(unittest.TestCase): """PostVoidItemResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_void_payment_response.py b/cloudbeds_pms_v1_3/test/test_post_void_payment_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_void_payment_response.py rename to cloudbeds_pms_v1_3/test/test_post_void_payment_response.py index 28e4c07..c8e7735 100644 --- a/cloudbeds_pms_v1_2/test/test_post_void_payment_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_void_payment_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse class TestPostVoidPaymentResponse(unittest.TestCase): """PostVoidPaymentResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_post_webhook_response.py b/cloudbeds_pms_v1_3/test/test_post_webhook_response.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_post_webhook_response.py rename to cloudbeds_pms_v1_3/test/test_post_webhook_response.py index 1557f6b..4b5713d 100644 --- a/cloudbeds_pms_v1_2/test/test_post_webhook_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_webhook_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse class TestPostWebhookResponse(unittest.TestCase): """PostWebhookResponse unit test stubs""" @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostWebhookResponse: if include_optional: return PostWebhookResponse( success = True, - data = cloudbeds_pms_v1_2.models.post_webhook_response_data.PostWebhookResponse_data( + data = cloudbeds_pms_v1_3.models.post_webhook_response_data.PostWebhookResponse_data( subscription_id = '', ) ) else: diff --git a/cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py b/cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py rename to cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py index e1057a9..7e515a0 100644 --- a/cloudbeds_pms_v1_2/test/test_post_webhook_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData class TestPostWebhookResponseData(unittest.TestCase): """PostWebhookResponseData unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_guest_note_response.py b/cloudbeds_pms_v1_3/test/test_put_guest_note_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_guest_note_response.py rename to cloudbeds_pms_v1_3/test/test_put_guest_note_response.py index 5f7d0f0..0474cf5 100644 --- a/cloudbeds_pms_v1_2/test/test_put_guest_note_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_guest_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse class TestPutGuestNoteResponse(unittest.TestCase): """PutGuestNoteResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py rename to cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py index 3890f2b..a1416c4 100644 --- a/cloudbeds_pms_v1_2/test/test_put_guest_request_guest_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner class TestPutGuestRequestGuestCustomFieldsInner(unittest.TestCase): """PutGuestRequestGuestCustomFieldsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_guest_response.py b/cloudbeds_pms_v1_3/test/test_put_guest_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_guest_response.py rename to cloudbeds_pms_v1_3/test/test_put_guest_response.py index ad48890..531c8fc 100644 --- a/cloudbeds_pms_v1_2/test/test_put_guest_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_guest_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse class TestPutGuestResponse(unittest.TestCase): """PutGuestResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py b/cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py rename to cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py index 5eb0b61..60e09f1 100644 --- a/cloudbeds_pms_v1_2/test/test_put_house_account_status_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse class TestPutHouseAccountStatusResponse(unittest.TestCase): """PutHouseAccountStatusResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py b/cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py rename to cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py index aceb32c..1d53958 100644 --- a/cloudbeds_pms_v1_2/test/test_put_housekeeper_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse class TestPutHousekeeperResponse(unittest.TestCase): """PutHousekeeperResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py b/cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py rename to cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py index fdfb3bf..d0033fc 100644 --- a/cloudbeds_pms_v1_2/test/test_put_item_to_inventory_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse class TestPutItemToInventoryResponse(unittest.TestCase): """PutItemToInventoryResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py new file mode 100644 index 0000000..6052b8e --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner + +class TestPutRateRequestRatesInner(unittest.TestCase): + """PutRateRequestRatesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutRateRequestRatesInner: + """Test PutRateRequestRatesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutRateRequestRatesInner` + """ + model = PutRateRequestRatesInner() + if include_optional: + return PutRateRequestRatesInner( + rate_id = '', + interval = [ + cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner.PutRateRequest_rates_inner_interval_inner( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337, ) + ] + ) + else: + return PutRateRequestRatesInner( + ) + """ + + def testPutRateRequestRatesInner(self): + """Test PutRateRequestRatesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py new file mode 100644 index 0000000..68866d5 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner + +class TestPutRateRequestRatesInnerIntervalInner(unittest.TestCase): + """PutRateRequestRatesInnerIntervalInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutRateRequestRatesInnerIntervalInner: + """Test PutRateRequestRatesInnerIntervalInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutRateRequestRatesInnerIntervalInner` + """ + model = PutRateRequestRatesInnerIntervalInner() + if include_optional: + return PutRateRequestRatesInnerIntervalInner( + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + rate = 1.337 + ) + else: + return PutRateRequestRatesInnerIntervalInner( + ) + """ + + def testPutRateRequestRatesInnerIntervalInner(self): + """Test PutRateRequestRatesInnerIntervalInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_rate_response.py b/cloudbeds_pms_v1_3/test/test_put_rate_response.py new file mode 100644 index 0000000..ffdd949 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_put_rate_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse + +class TestPutRateResponse(unittest.TestCase): + """PutRateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutRateResponse: + """Test PutRateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutRateResponse` + """ + model = PutRateResponse() + if include_optional: + return PutRateResponse( + success = True, + job_reference_id = '', + message = '' + ) + else: + return PutRateResponse( + ) + """ + + def testPutRateResponse(self): + """Test PutRateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py new file mode 100644 index 0000000..8927f96 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner + +class TestPutReservationDetailsRequestCustomFieldsInner(unittest.TestCase): + """PutReservationDetailsRequestCustomFieldsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutReservationDetailsRequestCustomFieldsInner: + """Test PutReservationDetailsRequestCustomFieldsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutReservationDetailsRequestCustomFieldsInner` + """ + model = PutReservationDetailsRequestCustomFieldsInner() + if include_optional: + return PutReservationDetailsRequestCustomFieldsInner( + custom_field_name = '', + custom_field_value = '' + ) + else: + return PutReservationDetailsRequestCustomFieldsInner( + ) + """ + + def testPutReservationDetailsRequestCustomFieldsInner(self): + """Test PutReservationDetailsRequestCustomFieldsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py b/cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py new file mode 100644 index 0000000..6b55205 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse + +class TestPutReservationDetailsResponse(unittest.TestCase): + """PutReservationDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutReservationDetailsResponse: + """Test PutReservationDetailsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutReservationDetailsResponse` + """ + model = PutReservationDetailsResponse() + if include_optional: + return PutReservationDetailsResponse( + success = True, + message = '', + data = None + ) + else: + return PutReservationDetailsResponse( + ) + """ + + def testPutReservationDetailsResponse(self): + """Test PutReservationDetailsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py b/cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py rename to cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py index 0780db1..51741a8 100644 --- a/cloudbeds_pms_v1_2/test/test_put_reservation_note_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse class TestPutReservationNoteResponse(unittest.TestCase): """PutReservationNoteResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py rename to cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py index ee14752..c806ded 100644 --- a/cloudbeds_pms_v1_2/test/test_put_reservation_request_custom_fields_inner.py +++ b/cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner class TestPutReservationRequestCustomFieldsInner(unittest.TestCase): """PutReservationRequestCustomFieldsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py similarity index 93% rename from cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py index f4ce943..fb67311 100644 --- a/cloudbeds_pms_v1_2/test/test_put_reservation_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner class TestPutReservationRequestRoomsInner(unittest.TestCase): """PutReservationRequestRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_reservation_response.py b/cloudbeds_pms_v1_3/test/test_put_reservation_response.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_reservation_response.py rename to cloudbeds_pms_v1_3/test/test_put_reservation_response.py index c8d318a..3afdab4 100644 --- a/cloudbeds_pms_v1_2/test/test_put_reservation_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_reservation_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse class TestPutReservationResponse(unittest.TestCase): """PutReservationResponse unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py similarity index 92% rename from cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py rename to cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py index c754e12..06b5e88 100644 --- a/cloudbeds_pms_v1_2/test/test_put_room_block_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner class TestPutRoomBlockRequestRoomsInner(unittest.TestCase): """PutRoomBlockRequestRoomsInner unit test stubs""" diff --git a/cloudbeds_pms_v1_2/test/test_put_room_block_response.py b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_put_room_block_response.py rename to cloudbeds_pms_v1_3/test/test_put_room_block_response.py index de238ef..915c189 100644 --- a/cloudbeds_pms_v1_2/test/test_put_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.models.put_room_block_response import PutRoomBlockResponse +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse class TestPutRoomBlockResponse(unittest.TestCase): """PutRoomBlockResponse unit test stubs""" @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> PutRoomBlockResponse: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ - cloudbeds_pms_v1_2.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( + cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( room_id = '', room_type_id = '', ) ], diff --git a/cloudbeds_pms_v1_2/test/test_rate_api.py b/cloudbeds_pms_v1_3/test/test_rate_api.py similarity index 89% rename from cloudbeds_pms_v1_2/test/test_rate_api.py rename to cloudbeds_pms_v1_3/test/test_rate_api.py index b936631..df5f415 100644 --- a/cloudbeds_pms_v1_2/test/test_rate_api.py +++ b/cloudbeds_pms_v1_3/test/test_rate_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.rate_api import RateApi +from cloudbeds_pms_v1_3.api.rate_api import RateApi class TestRateApi(unittest.TestCase): @@ -54,8 +54,8 @@ def test_patch_rate_post(self) -> None: """ pass - def test_put_rate_post(self) -> None: - """Test case for put_rate_post + def test_put_rate_put(self) -> None: + """Test case for put_rate_put putRate """ diff --git a/cloudbeds_pms_v1_2/test/test_reservation_api.py b/cloudbeds_pms_v1_3/test/test_reservation_api.py similarity index 76% rename from cloudbeds_pms_v1_2/test/test_reservation_api.py rename to cloudbeds_pms_v1_3/test/test_reservation_api.py index 2250b2d..16d010c 100644 --- a/cloudbeds_pms_v1_2/test/test_reservation_api.py +++ b/cloudbeds_pms_v1_3/test/test_reservation_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.reservation_api import ReservationApi +from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi class TestReservationApi(unittest.TestCase): @@ -33,6 +33,13 @@ def test_delete_reservation_note_delete(self) -> None: """ pass + def test_get_reservation_arrivals_get(self) -> None: + """Test case for get_reservation_arrivals_get + + getReservationArrivals + """ + pass + def test_get_reservation_assignments_get(self) -> None: """Test case for get_reservation_assignments_get @@ -40,6 +47,13 @@ def test_get_reservation_assignments_get(self) -> None: """ pass + def test_get_reservation_departures_get(self) -> None: + """Test case for get_reservation_departures_get + + getReservationDepartures + """ + pass + def test_get_reservation_get(self) -> None: """Test case for get_reservation_get @@ -47,6 +61,13 @@ def test_get_reservation_get(self) -> None: """ pass + def test_get_reservation_in_house_get(self) -> None: + """Test case for get_reservation_in_house_get + + getReservationInHouse + """ + pass + def test_get_reservation_invoice_information_get(self) -> None: """Test case for get_reservation_invoice_information_get @@ -82,6 +103,20 @@ def test_get_sources_get(self) -> None: """ pass + def test_post_reservation_check_in_post(self) -> None: + """Test case for post_reservation_check_in_post + + postReservationCheckIn + """ + pass + + def test_post_reservation_check_out_post(self) -> None: + """Test case for post_reservation_check_out_post + + postReservationCheckOut + """ + pass + def test_post_reservation_document_post(self) -> None: """Test case for post_reservation_document_post @@ -103,6 +138,13 @@ def test_post_reservation_post(self) -> None: """ pass + def test_put_reservation_details_put(self) -> None: + """Test case for put_reservation_details_put + + putReservationDetails + """ + pass + def test_put_reservation_note_put(self) -> None: """Test case for put_reservation_note_put diff --git a/cloudbeds_pms_v1_2/test/test_room_api.py b/cloudbeds_pms_v1_3/test/test_room_api.py similarity index 91% rename from cloudbeds_pms_v1_2/test/test_room_api.py rename to cloudbeds_pms_v1_3/test/test_room_api.py index c0a2003..40ddfba 100644 --- a/cloudbeds_pms_v1_2/test/test_room_api.py +++ b/cloudbeds_pms_v1_3/test/test_room_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.room_api import RoomApi +from cloudbeds_pms_v1_3.api.room_api import RoomApi class TestRoomApi(unittest.TestCase): @@ -110,6 +110,13 @@ def test_post_room_check_out_post(self) -> None: """ pass + def test_post_room_type_post(self) -> None: + """Test case for post_room_type_post + + postRoomType + """ + pass + def test_put_room_block_put(self) -> None: """Test case for put_room_block_put diff --git a/cloudbeds_pms_v1_3/test/test_rooms_api.py b/cloudbeds_pms_v1_3/test/test_rooms_api.py new file mode 100644 index 0000000..38d3424 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_rooms_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.api.rooms_api import RoomsApi + + +class TestRoomsApi(unittest.TestCase): + """RoomsApi unit test stubs""" + + def setUp(self) -> None: + self.api = RoomsApi() + + def tearDown(self) -> None: + pass + + def test_get_hotel_room_types_get(self) -> None: + """Test case for get_hotel_room_types_get + + getHotelRoomTypes + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py b/cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py rename to cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py index d6cd337..e95dac3 100644 --- a/cloudbeds_pms_v1_2/test/test_taxes_and_fees_api.py +++ b/cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.taxes_and_fees_api import TaxesAndFeesApi +from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi class TestTaxesAndFeesApi(unittest.TestCase): diff --git a/cloudbeds_pms_v1_2/test/test_user_api.py b/cloudbeds_pms_v1_3/test/test_user_api.py similarity index 90% rename from cloudbeds_pms_v1_2/test/test_user_api.py rename to cloudbeds_pms_v1_3/test/test_user_api.py index efa9567..381268f 100644 --- a/cloudbeds_pms_v1_2/test/test_user_api.py +++ b/cloudbeds_pms_v1_3/test/test_user_api.py @@ -3,9 +3,9 @@ """ Cloudbeds API -

Welcome to the documentation for Cloudbeds API Version v1.2! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.2/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- The version of the OpenAPI document: v1.2 + The version of the OpenAPI document: v1.3 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,7 +14,7 @@ import unittest -from cloudbeds_pms_v1_2.api.user_api import UserApi +from cloudbeds_pms_v1_3.api.user_api import UserApi class TestUserApi(unittest.TestCase): diff --git a/pyproject.toml b/pyproject.toml index fd76f3e..70e6d75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] dynamic = ["version"] name = "cloudbeds_pms_v1_2" -description = "OpenAPI client for Cloudbeds PMS v1.2 API." +description = "OpenAPI client for Cloudbeds PMS v1.3 API." readme = "README.md" authors = [ { name = "Cloudbeds"} From 418730aaf830a53e861ed3bbf3c7b1277ff5a135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 29 Apr 2025 14:22:35 +0200 Subject: [PATCH 19/46] fix: change remaining 1.2 to 1.3 --- PACKAGE | 2 +- openapitools.json | 10 +++++----- pyproject.toml | 4 ++-- requirements.txt | 12 ++++++------ uv.lock | 4 +++- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/PACKAGE b/PACKAGE index aa69045..b35985b 100644 --- a/PACKAGE +++ b/PACKAGE @@ -1 +1 @@ -cloudbeds_pms_v1_2 +cloudbeds_pms_v1_3 diff --git a/openapitools.json b/openapitools.json index 2a61dd6..df45c78 100644 --- a/openapitools.json +++ b/openapitools.json @@ -3,14 +3,14 @@ "version": "7.11.0" }, "generatorName": "python", - "inputSpec": "public_accessa/api/v1.2/docs/cb-v1.2-openapi-3.0.1.yaml", + "inputSpec": "public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", "outputDir": ".", "validateSpec": false, "additionalProperties": { - "packageName": "cloudbeds_pms_v1_2", - "projectName": "Cloudbeds PMS V1.2", - "packageVersion": "1.3.0", - "packageDescription": "OpenAPI client for Cloudbeds PMS v1.2 API.", + "packageName": "cloudbeds_pms_v1_3", + "projectName": "Cloudbeds PMS V1.3", + "packageVersion": "1.0.0", + "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" }, diff --git a/pyproject.toml b/pyproject.toml index 70e6d75..7218d93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] dynamic = ["version"] -name = "cloudbeds_pms_v1_2" +name = "cloudbeds_pms_v1_3" description = "OpenAPI client for Cloudbeds PMS v1.3 API." readme = "README.md" authors = [ @@ -60,4 +60,4 @@ where = ["."] version = { file = "VERSION" } [tool.setuptools.package-data] -"cloudbeds_pms_v1_2" = ["py.typed"] +"cloudbeds_pms_v1_3" = ["py.typed"] diff --git a/requirements.txt b/requirements.txt index 49dc688..8faae90 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ annotated-types==0.7.0 # via pydantic coverage==7.6.10 - # via cloudbeds-pms-v1-2 (pyproject.toml) + # via cloudbeds-pms-v1-3 (pyproject.toml) iniconfig==2.0.0 # via pytest packaging==24.2 @@ -11,19 +11,19 @@ packaging==24.2 pluggy==1.5.0 # via pytest pydantic==2.10.5 - # via cloudbeds-pms-v1-2 (pyproject.toml) + # via cloudbeds-pms-v1-3 (pyproject.toml) pydantic-core==2.27.2 # via pydantic pytest==8.3.4 - # via cloudbeds-pms-v1-2 (pyproject.toml) + # via cloudbeds-pms-v1-3 (pyproject.toml) python-dateutil==2.9.0.post0 - # via cloudbeds-pms-v1-2 (pyproject.toml) + # via cloudbeds-pms-v1-3 (pyproject.toml) six==1.17.0 # via python-dateutil typing-extensions==4.12.2 # via - # cloudbeds-pms-v1-2 (pyproject.toml) + # cloudbeds-pms-v1-3 (pyproject.toml) # pydantic # pydantic-core urllib3==2.3.0 - # via cloudbeds-pms-v1-2 (pyproject.toml) + # via cloudbeds-pms-v1-3 (pyproject.toml) diff --git a/uv.lock b/uv.lock index 3844bcc..2018920 100644 --- a/uv.lock +++ b/uv.lock @@ -1,4 +1,5 @@ version = 1 +revision = 1 requires-python = ">=3.8" resolution-markers = [ "python_full_version >= '3.9'", @@ -18,7 +19,7 @@ wheels = [ ] [[package]] -name = "cloudbeds-pms-v1-2" +name = "cloudbeds-pms-v1-3" source = { editable = "." } dependencies = [ { name = "pydantic" }, @@ -51,6 +52,7 @@ requires-dist = [ { name = "typing-extensions", specifier = ">=4.7.1" }, { name = "urllib3", specifier = ">=1.25.3,<3.0.0" }, ] +provides-extras = ["testing"] [package.metadata.requires-dev] dev = [ From 647f875811efa00518bd3cfe85dad38f1f558718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Mon, 26 May 2025 17:10:41 +0200 Subject: [PATCH 20/46] fix: improve version input description in publish.yaml --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 177ae0d..1e5a4ae 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: version: - description: 'The version to release' + description: 'Optional version to use (bypasses version bump and git commits if provided)' required: false default: "" mfd-tag: From cabf60572ae960144178c1fadb9f317fa35b3976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Thu, 5 Jun 2025 02:27:33 +0200 Subject: [PATCH 21/46] chore: update SDK version to 1.1.0 and enhance API response models --- .openapi-generator/FILES | 441 +---------- README.md | 27 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 22 +- cloudbeds_pms_v1_3/api/adjustment_api.py | 564 -------------- cloudbeds_pms_v1_3/api/guest_api.py | 115 ++- cloudbeds_pms_v1_3/api/house_account_api.py | 335 -------- cloudbeds_pms_v1_3/api/payment_api.py | 728 ------------------ cloudbeds_pms_v1_3/api/reservation_api.py | 135 +++- cloudbeds_pms_v1_3/api/room_api.py | 95 ++- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/AdjustmentApi.md | 170 ---- .../docs/GetGuestListResponseDataValue.md | 1 + .../docs/GetGuestResponseData.md | 1 + .../GetGuestsModifiedResponseDataInner.md | 1 + ...otelDetailsResponseDataPropertyCurrency.md | 2 + .../docs/GetInvoiceResponseData.md | 1 + ...tionInvoiceInformationResponseDataInner.md | 1 + ...nResponseDataInnerReservationRoomsInner.md | 2 + .../docs/GetReservationResponseData.md | 3 +- ...GetReservationResponseDataAssignedInner.md | 5 +- ...tReservationResponseDataBalanceDetailed.md | 35 + ...rvationResponseDataBalanceDetailedOneOf.md | 34 + ...etReservationResponseDataGuestListValue.md | 9 +- ...esponseDataGuestListValueGuestBirthdate.md | 29 + ...ionResponseDataGuestListValueRoomsInner.md | 1 + ...eDataGuestListValueUnassignedRoomsInner.md | 1 + ...tReservationResponseDataUnassignedInner.md | 3 +- .../docs/GetReservationsResponseDataInner.md | 1 + ...rvationsResponseDataInnerGuestListValue.md | 1 + ...sponseDataInnerGuestListValueRoomsInner.md | 1 + ...InnerGuestListValueUnassignedRoomsInner.md | 1 + ...ReservationsResponseDataInnerRoomsInner.md | 3 + ...vationsWithRateDetailsResponseDataInner.md | 11 +- ...hRateDetailsResponseDataInnerRoomsInner.md | 3 + .../docs/GetTaxesAndFeesResponseDataInner.md | 12 +- ...esResponseDataInnerAmountRateBasedInner.md | 4 +- ...DataInnerAmountRateBasedInnerPercentage.md | 29 + ...sponseDataInnerAmountRateBasedInnerRate.md | 29 + ...AndFeesResponseDataInnerDateRangesInner.md | 6 +- ...sResponseDataInnerDateRangesInnerAmount.md | 29 + ...onseDataInnerDateRangesInnerAmountAdult.md | 29 + ...onseDataInnerDateRangesInnerAmountChild.md | 29 + cloudbeds_pms_v1_3/docs/GuestApi.md | 42 +- cloudbeds_pms_v1_3/docs/HouseAccountApi.md | 89 --- cloudbeds_pms_v1_3/docs/PaymentApi.md | 129 ---- .../docs/PostCustomItemResponseData.md | 2 +- cloudbeds_pms_v1_3/docs/PostItemResponse.md | 2 +- .../docs/PostItemResponseData.md | 35 + cloudbeds_pms_v1_3/docs/ReservationApi.md | 36 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 30 +- cloudbeds_pms_v1_3/models/__init__.py | 20 +- .../get_custom_fields_response_data_inner.py | 4 +- .../get_guest_list_response_data_value.py | 9 +- .../models/get_guest_response_data.py | 9 +- ...get_guests_modified_response_data_inner.py | 9 +- ...details_response_data_property_currency.py | 8 +- .../models/get_invoice_response_data.py | 4 +- .../get_rate_plans_response_data_inner.py | 4 +- ...invoice_information_response_data_inner.py | 6 +- ...onse_data_inner_reservation_rooms_inner.py | 8 +- .../models/get_reservation_response_data.py | 20 +- ...eservation_response_data_assigned_inner.py | 16 +- ...ervation_response_data_balance_detailed.py | 140 ++++ ...n_response_data_balance_detailed_one_of.py | 97 +++ ...ervation_response_data_guest_list_value.py | 64 +- ...e_data_guest_list_value_guest_birthdate.py | 150 ++++ ...ponse_data_guest_list_value_rooms_inner.py | 9 +- ...guest_list_value_unassigned_rooms_inner.py | 9 +- ...ervation_response_data_unassigned_inner.py | 10 +- .../get_reservations_response_data_inner.py | 6 +- ...ns_response_data_inner_guest_list_value.py | 9 +- ...data_inner_guest_list_value_rooms_inner.py | 9 +- ...guest_list_value_unassigned_rooms_inner.py | 9 +- ...vations_response_data_inner_rooms_inner.py | 10 +- ...s_with_rate_details_response_data_inner.py | 68 +- ...details_response_data_inner_rooms_inner.py | 10 +- .../get_taxes_and_fees_response_data_inner.py | 20 +- ...onse_data_inner_amount_rate_based_inner.py | 20 +- ...nner_amount_rate_based_inner_percentage.py | 143 ++++ ...data_inner_amount_rate_based_inner_rate.py | 143 ++++ ...s_response_data_inner_date_ranges_inner.py | 28 +- ...nse_data_inner_date_ranges_inner_amount.py | 143 ++++ ...ta_inner_date_ranges_inner_amount_adult.py | 143 ++++ ...ta_inner_date_ranges_inner_amount_child.py | 143 ++++ .../models/post_custom_item_response_data.py | 6 +- .../models/post_item_response.py | 6 +- .../models/post_item_response_data.py | 117 +++ ...ervation_response_data_balance_detailed.py | 56 ++ ...n_response_data_balance_detailed_one_of.py | 56 ++ ...e_data_guest_list_value_guest_birthdate.py | 50 ++ ...nner_amount_rate_based_inner_percentage.py | 50 ++ ...data_inner_amount_rate_based_inner_rate.py | 50 ++ ...nse_data_inner_date_ranges_inner_amount.py | 50 ++ ...ta_inner_date_ranges_inner_amount_adult.py | 50 ++ ...ta_inner_date_ranges_inner_amount_child.py | 50 ++ .../test/test_post_item_response_data.py | 56 ++ openapitools.json | 2 +- 99 files changed, 2750 insertions(+), 2669 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailed.md create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedOneOf.md create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueGuestBirthdate.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md create mode 100644 cloudbeds_pms_v1_3/docs/PostItemResponseData.md create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed.py create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_one_of.py create mode 100644 cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_guest_birthdate.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py create mode 100644 cloudbeds_pms_v1_3/models/post_item_response_data.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py create mode 100644 cloudbeds_pms_v1_3/test/test_post_item_response_data.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 634a3eb..fdac3c2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -47,10 +47,6 @@ cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md cloudbeds_pms_v1_3/docs/EmailsApi.md -cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md -cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md -cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md -cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponse.md cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md @@ -125,10 +121,6 @@ cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md cloudbeds_pms_v1_3/docs/GetHotelsResponse.md cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md -cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md -cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md -cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md -cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md cloudbeds_pms_v1_3/docs/GetHouseAccountListResponse.md cloudbeds_pms_v1_3/docs/GetHouseAccountListResponseDataInner.md cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md @@ -205,11 +197,13 @@ cloudbeds_pms_v1_3/docs/GetReservationResponse.md cloudbeds_pms_v1_3/docs/GetReservationResponseData.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md -cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailed.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedOneOf.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataCardsOnFileInner.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataGroupInventoryInner.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md +cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueGuestBirthdate.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md @@ -248,10 +242,13 @@ cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md -cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md -cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md cloudbeds_pms_v1_3/docs/GetUsersResponse.md @@ -348,6 +345,7 @@ cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md cloudbeds_pms_v1_3/docs/PostItemResponse.md +cloudbeds_pms_v1_3/docs/PostItemResponseData.md cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md @@ -435,10 +433,6 @@ cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py cloudbeds_pms_v1_3/models/delete_reservation_note_response.py cloudbeds_pms_v1_3/models/delete_room_block_response.py cloudbeds_pms_v1_3/models/delete_webhook_response.py -cloudbeds_pms_v1_3/models/get_adjustment_response.py -cloudbeds_pms_v1_3/models/get_adjustment_response_data.py -cloudbeds_pms_v1_3/models/get_adjustments_response.py -cloudbeds_pms_v1_3/models/get_adjustments_response_data.py cloudbeds_pms_v1_3/models/get_allotment_blocks_response.py cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -513,10 +507,6 @@ cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py cloudbeds_pms_v1_3/models/get_hotels_response.py cloudbeds_pms_v1_3/models/get_hotels_response_data_inner.py cloudbeds_pms_v1_3/models/get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/models/get_house_account_details_response.py -cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py -cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py -cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py cloudbeds_pms_v1_3/models/get_house_account_list_response.py cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py cloudbeds_pms_v1_3/models/get_housekeepers_response.py @@ -593,11 +583,13 @@ cloudbeds_pms_v1_3/models/get_reservation_response.py cloudbeds_pms_v1_3/models/get_reservation_response_data.py cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner_daily_rates_inner.py -cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_one_of.py cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py cloudbeds_pms_v1_3/models/get_reservation_response_data_group_inventory_inner.py cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_guest_birthdate.py cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py @@ -636,10 +628,13 @@ cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inner.py -cloudbeds_pms_v1_3/models/get_transactions_response.py -cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py cloudbeds_pms_v1_3/models/get_userinfo_response.py cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py cloudbeds_pms_v1_3/models/get_users_response.py @@ -725,6 +720,7 @@ cloudbeds_pms_v1_3/models/post_housekeeping_status_response.py cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py cloudbeds_pms_v1_3/models/post_item_category_response.py cloudbeds_pms_v1_3/models/post_item_response.py +cloudbeds_pms_v1_3/models/post_item_response_data.py cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py @@ -800,399 +796,8 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py -cloudbeds_pms_v1_3/test/test_adjustment_api.py -cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py -cloudbeds_pms_v1_3/test/test_app_settings_api.py -cloudbeds_pms_v1_3/test/test_authentication_api.py -cloudbeds_pms_v1_3/test/test_beta_api.py -cloudbeds_pms_v1_3/test/test_crm_api.py -cloudbeds_pms_v1_3/test/test_currency_api.py -cloudbeds_pms_v1_3/test/test_custom_fields_api.py -cloudbeds_pms_v1_3/test/test_dashboard_api.py -cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py -cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py -cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py -cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_delete_room_block_response.py -cloudbeds_pms_v1_3/test/test_delete_webhook_response.py -cloudbeds_pms_v1_3/test/test_emails_api.py -cloudbeds_pms_v1_3/test/test_get_adjustment_response.py -cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py -cloudbeds_pms_v1_3/test/test_get_adjustments_response.py -cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_state_response.py -cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_files_response.py -cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py -cloudbeds_pms_v1_3/test/test_get_groups_response.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py -cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_hotels_response.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py -cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py -cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py -cloudbeds_pms_v1_3/test/test_get_import_tours_response.py -cloudbeds_pms_v1_3/test/test_get_invoice_response.py -cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py -cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py -cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py -cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response.py -cloudbeds_pms_v1_3/test/test_get_item_response_data.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_items_response.py -cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_metadata_response.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py -cloudbeds_pms_v1_3/test/test_get_packages_response.py -cloudbeds_pms_v1_3/test/test_get_packages_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_payments_response.py -cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py -cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py -cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_response.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py -cloudbeds_pms_v1_3/test/test_get_transactions_response.py -cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py -cloudbeds_pms_v1_3/test/test_get_users_response.py -cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py -cloudbeds_pms_v1_3/test/test_groups_api.py -cloudbeds_pms_v1_3/test/test_guest_api.py -cloudbeds_pms_v1_3/test/test_hotel_api.py -cloudbeds_pms_v1_3/test/test_house_account_api.py -cloudbeds_pms_v1_3/test/test_housekeeping_api.py -cloudbeds_pms_v1_3/test/test_import_api.py -cloudbeds_pms_v1_3/test/test_integration_api.py -cloudbeds_pms_v1_3/test/test_invoices_api.py -cloudbeds_pms_v1_3/test/test_item_api.py -cloudbeds_pms_v1_3/test/test_package_api.py -cloudbeds_pms_v1_3/test/test_payment_api.py -cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py -cloudbeds_pms_v1_3/test/test_post_access_token_response.py -cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_error_response.py -cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py -cloudbeds_pms_v1_3/test/test_post_app_settings_response.py -cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py -cloudbeds_pms_v1_3/test/test_post_app_state_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_card_response.py -cloudbeds_pms_v1_3/test/test_post_card_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py -cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py -cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py -cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py -cloudbeds_pms_v1_3/test/test_post_email_template_response.py -cloudbeds_pms_v1_3/test/test_post_file_response.py -cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py -cloudbeds_pms_v1_3/test/test_post_guest_note_response.py -cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py -cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_response.py -cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py -cloudbeds_pms_v1_3/test/test_post_item_category_response.py -cloudbeds_pms_v1_3/test/test_post_item_response.py -cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py -cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py -cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py -cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py -cloudbeds_pms_v1_3/test/test_post_payment_response.py -cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_put_group_response.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_post_room_assign_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_block_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py -cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py -cloudbeds_pms_v1_3/test/test_post_room_type_response.py -cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_void_item_response.py -cloudbeds_pms_v1_3/test/test_post_void_payment_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py -cloudbeds_pms_v1_3/test/test_put_guest_note_response.py -cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_guest_response.py -cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py -cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_3/test/test_put_rate_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_response.py -cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_room_block_response.py -cloudbeds_pms_v1_3/test/test_rate_api.py -cloudbeds_pms_v1_3/test/test_reservation_api.py -cloudbeds_pms_v1_3/test/test_room_api.py -cloudbeds_pms_v1_3/test/test_rooms_api.py -cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py -cloudbeds_pms_v1_3/test/test_user_api.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py diff --git a/README.md b/README.md index 25eb2f4..4ea0cf6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.0.0 +- Package version: 1.1.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -79,8 +79,6 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AdjustmentApi* | [**delete_adjustment_delete**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment -*AdjustmentApi* | [**get_adjustment_get**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment -*AdjustmentApi* | [**get_adjustments_get**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments *AdjustmentApi* | [**post_adjustment_post**](cloudbeds_pms_v1_3/docs/AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment *AllotmentBlocksApi* | [**create_allotment_block_notes_post**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#create_allotment_block_notes_post) | **POST** /createAllotmentBlockNotes | createAllotmentBlockNotes *AllotmentBlocksApi* | [**create_allotment_block_post**](cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md#create_allotment_block_post) | **POST** /createAllotmentBlock | createAllotmentBlock @@ -133,7 +131,6 @@ Class | Method | HTTP request | Description *HotelApi* | [**get_hotel_details_get**](cloudbeds_pms_v1_3/docs/HotelApi.md#get_hotel_details_get) | **GET** /getHotelDetails | getHotelDetails *HotelApi* | [**get_hotels_get**](cloudbeds_pms_v1_3/docs/HotelApi.md#get_hotels_get) | **GET** /getHotels | getHotels *HotelApi* | [**post_file_post**](cloudbeds_pms_v1_3/docs/HotelApi.md#post_file_post) | **POST** /postFile | postFile -*HouseAccountApi* | [**get_house_account_details_get**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails *HouseAccountApi* | [**get_house_account_list_get**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList *HouseAccountApi* | [**post_new_house_account_post**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount *HouseAccountApi* | [**put_house_account_status_put**](cloudbeds_pms_v1_3/docs/HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus @@ -176,7 +173,6 @@ Class | Method | HTTP request | Description *PaymentApi* | [**get_payments_capabilities_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities *PaymentApi* | [**get_payments_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments *PaymentApi* | [**get_pending_transactions_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_pending_transactions_get) | **GET** /getPendingTransactions | getPendingTransactions -*PaymentApi* | [**get_transactions_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions *PaymentApi* | [**post_charge_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge *PaymentApi* | [**post_credit_card_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard *PaymentApi* | [**post_custom_payment_method_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod @@ -235,10 +231,6 @@ Class | Method | HTTP request | Description - [DeleteReservationNoteResponse](cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md) - [DeleteRoomBlockResponse](cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md) - [DeleteWebhookResponse](cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md) - - [GetAdjustmentResponse](cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md) - - [GetAdjustmentResponseData](cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md) - - [GetAdjustmentsResponse](cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md) - - [GetAdjustmentsResponseData](cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md) - [GetAllotmentBlocksResponse](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponse.md) - [GetAllotmentBlocksResponseDataInner](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md) - [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md) @@ -313,10 +305,6 @@ Class | Method | HTTP request | Description - [GetHotelsResponse](cloudbeds_pms_v1_3/docs/GetHotelsResponse.md) - [GetHotelsResponseDataInner](cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md) - [GetHotelsResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md) - - [GetHouseAccountDetailsResponse](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md) - - [GetHouseAccountDetailsResponseData](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md) - - [GetHouseAccountDetailsResponseDataRecordsInner](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md) - - [GetHouseAccountDetailsResponseDataTotalInner](cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md) - [GetHouseAccountListResponse](cloudbeds_pms_v1_3/docs/GetHouseAccountListResponse.md) - [GetHouseAccountListResponseDataInner](cloudbeds_pms_v1_3/docs/GetHouseAccountListResponseDataInner.md) - [GetHousekeepersResponse](cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md) @@ -393,11 +381,13 @@ Class | Method | HTTP request | Description - [GetReservationResponseData](cloudbeds_pms_v1_3/docs/GetReservationResponseData.md) - [GetReservationResponseDataAssignedInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md) - [GetReservationResponseDataAssignedInnerDailyRatesInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInnerDailyRatesInner.md) - - [GetReservationResponseDataBalanceDetailedInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md) + - [GetReservationResponseDataBalanceDetailed](cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailed.md) + - [GetReservationResponseDataBalanceDetailedOneOf](cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedOneOf.md) - [GetReservationResponseDataCardsOnFileInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataCardsOnFileInner.md) - [GetReservationResponseDataGroupInventoryInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGroupInventoryInner.md) - [GetReservationResponseDataGuestListValue](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md) - [GetReservationResponseDataGuestListValueCustomFieldsInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueCustomFieldsInner.md) + - [GetReservationResponseDataGuestListValueGuestBirthdate](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueGuestBirthdate.md) - [GetReservationResponseDataGuestListValueRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md) - [GetReservationResponseDataGuestListValueUnassignedRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md) - [GetReservationResponseDataUnassignedInner](cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md) @@ -436,10 +426,13 @@ Class | Method | HTTP request | Description - [GetTaxesAndFeesResponse](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md) - [GetTaxesAndFeesResponseDataInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md) - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) + - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md) + - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) - [GetTaxesAndFeesResponseDataInnerRoomTypesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) - - [GetTransactionsResponse](cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md) - - [GetTransactionsResponseDataInner](cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md) - [GetUserinfoResponse](cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md) - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md) - [GetUsersResponse](cloudbeds_pms_v1_3/docs/GetUsersResponse.md) @@ -525,6 +518,7 @@ Class | Method | HTTP request | Description - [PostHousekeepingStatusResponseData](cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md) - [PostItemCategoryResponse](cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md) - [PostItemResponse](cloudbeds_pms_v1_3/docs/PostItemResponse.md) + - [PostItemResponseData](cloudbeds_pms_v1_3/docs/PostItemResponseData.md) - [PostItemToReservationRequestPaymentsInner](cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md) - [PostItemToReservationResponse](cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md) - [PostItemToReservationResponseData](cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md) @@ -624,7 +618,6 @@ Authentication schemes defined for the API: - **delete:appPropertySettings**: delete:appPropertySettings - **delete:item**: delete:item - **delete:roomblock**: delete:roomblock - - **read:adjustment**: read:adjustment - **read:allotmentBlock**: read:allotmentBlock - **read:appPropertySettings**: read:appPropertySettings - **read:communication**: read:communication diff --git a/VERSION b/VERSION index 3eefcb9..9084fa2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.1.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 1850563..86adcdd 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.0.0" +__version__ = "1.1.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -63,10 +63,6 @@ from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData -from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse -from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner @@ -141,10 +137,6 @@ from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse @@ -221,11 +213,13 @@ from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner @@ -264,10 +258,13 @@ from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner -from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse -from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse @@ -353,6 +350,7 @@ from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData diff --git a/cloudbeds_pms_v1_3/api/adjustment_api.py b/cloudbeds_pms_v1_3/api/adjustment_api.py index f625d07..b1ce0e2 100644 --- a/cloudbeds_pms_v1_3/api/adjustment_api.py +++ b/cloudbeds_pms_v1_3/api/adjustment_api.py @@ -20,8 +20,6 @@ from typing import Optional, Union from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse -from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized @@ -340,568 +338,6 @@ def _delete_adjustment_delete_serialize( - @validate_call - def get_adjustment_get( - self, - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAdjustmentResponse: - """getAdjustment - - Gets the details for the one AdjustmentID - - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustment_get_serialize( - adjustment_id=adjustment_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_adjustment_get_with_http_info( - self, - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAdjustmentResponse]: - """getAdjustment - - Gets the details for the one AdjustmentID - - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustment_get_serialize( - adjustment_id=adjustment_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_adjustment_get_without_preload_content( - self, - adjustment_id: Annotated[StrictStr, Field(description="Adjustment identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getAdjustment - - Gets the details for the one AdjustmentID - - :param adjustment_id: Adjustment identifier (required) - :type adjustment_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustment_get_serialize( - adjustment_id=adjustment_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_adjustment_get_serialize( - self, - adjustment_id, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if adjustment_id is not None: - - _query_params.append(('adjustmentID', adjustment_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getAdjustment', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_adjustments_get( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAdjustmentsResponse: - """getAdjustments - - Gets all the Adjustments and their details to a specified reservation - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustments_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_adjustments_get_with_http_info( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAdjustmentsResponse]: - """getAdjustments - - Gets all the Adjustments and their details to a specified reservation - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustments_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_adjustments_get_without_preload_content( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getAdjustments - - Gets all the Adjustments and their details to a specified reservation - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_adjustments_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAdjustmentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_adjustments_get_serialize( - self, - reservation_id, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getAdjustments', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def post_adjustment_post( self, diff --git a/cloudbeds_pms_v1_3/api/guest_api.py b/cloudbeds_pms_v1_3/api/guest_api.py index 494998d..e1b3431 100644 --- a/cloudbeds_pms_v1_3/api/guest_api.py +++ b/cloudbeds_pms_v1_3/api/guest_api.py @@ -18,7 +18,7 @@ from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator -from typing import List, Optional, Tuple, Union +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse @@ -360,6 +360,7 @@ def get_guest_get( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier. Required if no guestID is provided.")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID. Required if no reservationID is provided.")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -383,6 +384,8 @@ def get_guest_get( :type reservation_id: str :param guest_id: Guest ID. Required if no reservationID is provided. :type guest_id: str + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -409,6 +412,7 @@ def get_guest_get( property_id=property_id, reservation_id=reservation_id, guest_id=guest_id, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -435,6 +439,7 @@ def get_guest_get_with_http_info( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier. Required if no guestID is provided.")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID. Required if no reservationID is provided.")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -458,6 +463,8 @@ def get_guest_get_with_http_info( :type reservation_id: str :param guest_id: Guest ID. Required if no reservationID is provided. :type guest_id: str + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -484,6 +491,7 @@ def get_guest_get_with_http_info( property_id=property_id, reservation_id=reservation_id, guest_id=guest_id, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -510,6 +518,7 @@ def get_guest_get_without_preload_content( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier. Required if no guestID is provided.")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID. Required if no reservationID is provided.")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -533,6 +542,8 @@ def get_guest_get_without_preload_content( :type reservation_id: str :param guest_id: Guest ID. Required if no reservationID is provided. :type guest_id: str + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -559,6 +570,7 @@ def get_guest_get_without_preload_content( property_id=property_id, reservation_id=reservation_id, guest_id=guest_id, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -580,6 +592,7 @@ def _get_guest_get_serialize( property_id, reservation_id, guest_id, + include_guest_requirements, _request_auth, _content_type, _headers, @@ -614,6 +627,10 @@ def _get_guest_get_serialize( _query_params.append(('guestID', guest_id)) + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + # process the header parameters # process the form parameters # process the body parameter @@ -671,6 +688,7 @@ def get_guest_list_get( sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, exclude_secondary_guests: Annotated[Optional[StrictBool], Field(description="If true, response only returns main guest's")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -722,6 +740,8 @@ def get_guest_list_get( :type include_guest_info: bool :param exclude_secondary_guests: If true, response only returns main guest's :type exclude_secondary_guests: bool + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -765,6 +785,7 @@ def get_guest_list_get( sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, + include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -806,6 +827,7 @@ def get_guest_list_get_with_http_info( sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, exclude_secondary_guests: Annotated[Optional[StrictBool], Field(description="If true, response only returns main guest's")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -857,6 +879,8 @@ def get_guest_list_get_with_http_info( :type include_guest_info: bool :param exclude_secondary_guests: If true, response only returns main guest's :type exclude_secondary_guests: bool + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -900,6 +924,7 @@ def get_guest_list_get_with_http_info( sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, + include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -941,6 +966,7 @@ def get_guest_list_get_without_preload_content( sort_by: Annotated[Optional[StrictStr], Field(description="Sort By parameter")] = None, include_guest_info: Annotated[Optional[StrictBool], Field(description="If API response should return with more of Guest's information")] = None, exclude_secondary_guests: Annotated[Optional[StrictBool], Field(description="If true, response only returns main guest's")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -992,6 +1018,8 @@ def get_guest_list_get_without_preload_content( :type include_guest_info: bool :param exclude_secondary_guests: If true, response only returns main guest's :type exclude_secondary_guests: bool + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -1035,6 +1063,7 @@ def get_guest_list_get_without_preload_content( sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, + include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -1071,6 +1100,7 @@ def _get_guest_list_get_serialize( sort_by, include_guest_info, exclude_secondary_guests, + include_guest_requirements, page_number, page_size, _request_auth, @@ -1213,6 +1243,10 @@ def _get_guest_list_get_serialize( _query_params.append(('excludeSecondaryGuests', exclude_secondary_guests)) + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + if page_number is not None: _query_params.append(('pageNumber', page_number)) @@ -2354,6 +2388,7 @@ def get_guests_modified_get( check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -2389,6 +2424,8 @@ def get_guests_modified_get( :type check_out_from: date :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date :type check_out_to: date + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -2424,6 +2461,7 @@ def get_guests_modified_get( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -2457,6 +2495,7 @@ def get_guests_modified_get_with_http_info( check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -2492,6 +2531,8 @@ def get_guests_modified_get_with_http_info( :type check_out_from: date :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date :type check_out_to: date + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -2527,6 +2568,7 @@ def get_guests_modified_get_with_http_info( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -2560,6 +2602,7 @@ def get_guests_modified_get_without_preload_content( check_in_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters guests result to return only guests with check-out date range ending on this date")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -2595,6 +2638,8 @@ def get_guests_modified_get_without_preload_content( :type check_out_from: date :param check_out_to: Filters guests result to return only guests with check-out date range ending on this date :type check_out_to: date + :param include_guest_requirements: Includes guest requirements data in the response + :type include_guest_requirements: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -2630,6 +2675,7 @@ def get_guests_modified_get_without_preload_content( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -2658,6 +2704,7 @@ def _get_guests_modified_get_serialize( check_in_to, check_out_from, check_out_to, + include_guest_requirements, page_number, page_size, _request_auth, @@ -2768,6 +2815,10 @@ def _get_guests_modified_get_serialize( else: _query_params.append(('checkOutTo', check_out_to)) + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + if page_number is not None: _query_params.append(('pageNumber', page_number)) @@ -2823,6 +2874,7 @@ def post_guest_credit_card_post( card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, + validate: Annotated[Optional[StrictBool], Field(description="should the card be validated? If true, the card will be validated against the payment gateway.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2852,6 +2904,8 @@ def post_guest_credit_card_post( :type card_expiry_year: int :param card_cvv: Credit Card CVV code :type card_cvv: str + :param validate: should the card be validated? If true, the card will be validated against the payment gateway. + :type validate: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2881,6 +2935,7 @@ def post_guest_credit_card_post( card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv, + validate=validate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2910,6 +2965,7 @@ def post_guest_credit_card_post_with_http_info( card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, + validate: Annotated[Optional[StrictBool], Field(description="should the card be validated? If true, the card will be validated against the payment gateway.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2939,6 +2995,8 @@ def post_guest_credit_card_post_with_http_info( :type card_expiry_year: int :param card_cvv: Credit Card CVV code :type card_cvv: str + :param validate: should the card be validated? If true, the card will be validated against the payment gateway. + :type validate: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2968,6 +3026,7 @@ def post_guest_credit_card_post_with_http_info( card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv, + validate=validate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2997,6 +3056,7 @@ def post_guest_credit_card_post_without_preload_content( card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, + validate: Annotated[Optional[StrictBool], Field(description="should the card be validated? If true, the card will be validated against the payment gateway.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3026,6 +3086,8 @@ def post_guest_credit_card_post_without_preload_content( :type card_expiry_year: int :param card_cvv: Credit Card CVV code :type card_cvv: str + :param validate: should the card be validated? If true, the card will be validated against the payment gateway. + :type validate: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3055,6 +3117,7 @@ def post_guest_credit_card_post_without_preload_content( card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv, + validate=validate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3079,6 +3142,7 @@ def _post_guest_credit_card_post_serialize( card_expiry_month, card_expiry_year, card_cvv, + validate, _request_auth, _content_type, _headers, @@ -3115,6 +3179,8 @@ def _post_guest_credit_card_post_serialize( _form_params.append(('cardExpiryYear', card_expiry_year)) if card_cvv is not None: _form_params.append(('cardCVV', card_cvv)) + if validate is not None: + _form_params.append(('validate', validate)) # process the body parameter @@ -4102,6 +4168,7 @@ def post_guest_post( guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, @@ -4165,6 +4232,8 @@ def post_guest_post( :type guest_document_issuing_country: str :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param custom_fields: Only guest custom fields are allowed. :type custom_fields: List[PostGuestRequestCustomFieldsInner] :param guest_note: Note to be added to the Guest @@ -4220,6 +4289,7 @@ def post_guest_post( guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, + guest_requirements=guest_requirements, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, @@ -4269,6 +4339,7 @@ def post_guest_post_with_http_info( guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, @@ -4332,6 +4403,8 @@ def post_guest_post_with_http_info( :type guest_document_issuing_country: str :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param custom_fields: Only guest custom fields are allowed. :type custom_fields: List[PostGuestRequestCustomFieldsInner] :param guest_note: Note to be added to the Guest @@ -4387,6 +4460,7 @@ def post_guest_post_with_http_info( guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, + guest_requirements=guest_requirements, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, @@ -4436,6 +4510,7 @@ def post_guest_post_without_preload_content( guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added only to the Reservation.")] = None, @@ -4499,6 +4574,8 @@ def post_guest_post_without_preload_content( :type guest_document_issuing_country: str :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param custom_fields: Only guest custom fields are allowed. :type custom_fields: List[PostGuestRequestCustomFieldsInner] :param guest_note: Note to be added to the Guest @@ -4554,6 +4631,7 @@ def post_guest_post_without_preload_content( guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, + guest_requirements=guest_requirements, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, @@ -4598,6 +4676,7 @@ def _post_guest_post_serialize( guest_document_issue_date, guest_document_issuing_country, guest_document_expiration_date, + guest_requirements, custom_fields, guest_note, reservation_note, @@ -4613,6 +4692,7 @@ def _post_guest_post_serialize( _host = None _collection_formats: Dict[str, str] = { + 'guestRequirements': 'csv', 'customFields': 'csv', } @@ -4669,6 +4749,8 @@ def _post_guest_post_serialize( _form_params.append(('guestDocumentIssuingCountry', guest_document_issuing_country)) if guest_document_expiration_date is not None: _form_params.append(('guestDocumentExpirationDate', guest_document_expiration_date)) + if guest_requirements is not None: + _form_params.append(('guestRequirements', guest_requirements)) if custom_fields is not None: _form_params.append(('customFields', custom_fields)) if guest_note is not None: @@ -4738,6 +4820,7 @@ def post_guests_to_room_post( room_id: Annotated[Optional[StrictInt], Field(description="Room ID already assigned to Reservation")] = None, guest_ids: Annotated[Optional[StrictStr], Field(description="Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89")] = None, remove_guest_ids: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed.")] = None, + remove_guest_ids_from_room: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter.")] = None, remove_all: Annotated[Optional[StrictBool], Field(description="If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed.")] = None, _request_timeout: Union[ None, @@ -4766,6 +4849,8 @@ def post_guests_to_room_post( :type guest_ids: str :param remove_guest_ids: If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. :type remove_guest_ids: str + :param remove_guest_ids_from_room: If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter. + :type remove_guest_ids_from_room: str :param remove_all: If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. :type remove_all: bool :param _request_timeout: timeout setting for this request. If one @@ -4796,6 +4881,7 @@ def post_guests_to_room_post( room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, + remove_guest_ids_from_room=remove_guest_ids_from_room, remove_all=remove_all, _request_auth=_request_auth, _content_type=_content_type, @@ -4825,6 +4911,7 @@ def post_guests_to_room_post_with_http_info( room_id: Annotated[Optional[StrictInt], Field(description="Room ID already assigned to Reservation")] = None, guest_ids: Annotated[Optional[StrictStr], Field(description="Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89")] = None, remove_guest_ids: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed.")] = None, + remove_guest_ids_from_room: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter.")] = None, remove_all: Annotated[Optional[StrictBool], Field(description="If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed.")] = None, _request_timeout: Union[ None, @@ -4853,6 +4940,8 @@ def post_guests_to_room_post_with_http_info( :type guest_ids: str :param remove_guest_ids: If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. :type remove_guest_ids: str + :param remove_guest_ids_from_room: If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter. + :type remove_guest_ids_from_room: str :param remove_all: If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. :type remove_all: bool :param _request_timeout: timeout setting for this request. If one @@ -4883,6 +4972,7 @@ def post_guests_to_room_post_with_http_info( room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, + remove_guest_ids_from_room=remove_guest_ids_from_room, remove_all=remove_all, _request_auth=_request_auth, _content_type=_content_type, @@ -4912,6 +5002,7 @@ def post_guests_to_room_post_without_preload_content( room_id: Annotated[Optional[StrictInt], Field(description="Room ID already assigned to Reservation")] = None, guest_ids: Annotated[Optional[StrictStr], Field(description="Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89")] = None, remove_guest_ids: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed.")] = None, + remove_guest_ids_from_room: Annotated[Optional[StrictStr], Field(description="If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter.")] = None, remove_all: Annotated[Optional[StrictBool], Field(description="If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed.")] = None, _request_timeout: Union[ None, @@ -4940,6 +5031,8 @@ def post_guests_to_room_post_without_preload_content( :type guest_ids: str :param remove_guest_ids: If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. :type remove_guest_ids: str + :param remove_guest_ids_from_room: If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter. + :type remove_guest_ids_from_room: str :param remove_all: If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. :type remove_all: bool :param _request_timeout: timeout setting for this request. If one @@ -4970,6 +5063,7 @@ def post_guests_to_room_post_without_preload_content( room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, + remove_guest_ids_from_room=remove_guest_ids_from_room, remove_all=remove_all, _request_auth=_request_auth, _content_type=_content_type, @@ -4994,6 +5088,7 @@ def _post_guests_to_room_post_serialize( room_id, guest_ids, remove_guest_ids, + remove_guest_ids_from_room, remove_all, _request_auth, _content_type, @@ -5029,6 +5124,8 @@ def _post_guests_to_room_post_serialize( _form_params.append(('guestIDs', guest_ids)) if remove_guest_ids is not None: _form_params.append(('removeGuestIDs', remove_guest_ids)) + if remove_guest_ids_from_room is not None: + _form_params.append(('removeGuestIDsFromRoom', remove_guest_ids_from_room)) if remove_all is not None: _form_params.append(('removeAll', remove_all)) # process the body parameter @@ -5423,6 +5520,7 @@ def put_guest_put( guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, @@ -5484,6 +5582,8 @@ def put_guest_put( :type guest_document_issuing_country: str :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param guest_custom_fields: :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] :param guest_company_name: Guest company name @@ -5535,6 +5635,7 @@ def put_guest_put( guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, + guest_requirements=guest_requirements, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, @@ -5582,6 +5683,7 @@ def put_guest_put_with_http_info( guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, @@ -5643,6 +5745,8 @@ def put_guest_put_with_http_info( :type guest_document_issuing_country: str :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param guest_custom_fields: :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] :param guest_company_name: Guest company name @@ -5694,6 +5798,7 @@ def put_guest_put_with_http_info( guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, + guest_requirements=guest_requirements, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, @@ -5741,6 +5846,7 @@ def put_guest_put_without_preload_content( guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, guest_company_tax_id: Annotated[Optional[StrictStr], Field(description="Guest company tax ID")] = None, @@ -5802,6 +5908,8 @@ def put_guest_put_without_preload_content( :type guest_document_issuing_country: str :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) :type guest_document_expiration_date: date + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param guest_custom_fields: :type guest_custom_fields: List[PutGuestRequestGuestCustomFieldsInner] :param guest_company_name: Guest company name @@ -5853,6 +5961,7 @@ def put_guest_put_without_preload_content( guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, + guest_requirements=guest_requirements, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, @@ -5895,6 +6004,7 @@ def _put_guest_put_serialize( guest_document_issue_date, guest_document_issuing_country, guest_document_expiration_date, + guest_requirements, guest_custom_fields, guest_company_name, guest_company_tax_id, @@ -5908,6 +6018,7 @@ def _put_guest_put_serialize( _host = None _collection_formats: Dict[str, str] = { + 'guestRequirements': 'csv', 'guestCustomFields': 'csv', } @@ -5964,6 +6075,8 @@ def _put_guest_put_serialize( _form_params.append(('guestDocumentIssuingCountry', guest_document_issuing_country)) if guest_document_expiration_date is not None: _form_params.append(('guestDocumentExpirationDate', guest_document_expiration_date)) + if guest_requirements is not None: + _form_params.append(('guestRequirements', guest_requirements)) if guest_custom_fields is not None: _form_params.append(('guestCustomFields', guest_custom_fields)) if guest_company_name is not None: diff --git a/cloudbeds_pms_v1_3/api/house_account_api.py b/cloudbeds_pms_v1_3/api/house_account_api.py index 2180abf..d341ee5 100644 --- a/cloudbeds_pms_v1_3/api/house_account_api.py +++ b/cloudbeds_pms_v1_3/api/house_account_api.py @@ -16,11 +16,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from datetime import date from pydantic import Field, StrictBool, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse @@ -43,339 +41,6 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def get_house_account_details_get( - self, - house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetHouseAccountDetailsResponse: - """getHouseAccountDetails - - Pulls details of specific house account - - :param house_account_id: House Account ID to get details for (required) - :type house_account_id: str - :param property_id: Property ID - :type property_id: str - :param results_from: date\"] Inferior limit date, used to filter result records - :type results_from: date - :param results_to: date\"] Inferior limit date, used to filter result records - :type results_to: date - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_house_account_details_get_serialize( - house_account_id=house_account_id, - property_id=property_id, - results_from=results_from, - results_to=results_to, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_house_account_details_get_with_http_info( - self, - house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetHouseAccountDetailsResponse]: - """getHouseAccountDetails - - Pulls details of specific house account - - :param house_account_id: House Account ID to get details for (required) - :type house_account_id: str - :param property_id: Property ID - :type property_id: str - :param results_from: date\"] Inferior limit date, used to filter result records - :type results_from: date - :param results_to: date\"] Inferior limit date, used to filter result records - :type results_to: date - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_house_account_details_get_serialize( - house_account_id=house_account_id, - property_id=property_id, - results_from=results_from, - results_to=results_to, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_house_account_details_get_without_preload_content( - self, - house_account_id: Annotated[StrictStr, Field(description="House Account ID to get details for")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - results_to: Annotated[Optional[date], Field(description="date\"] Inferior limit date, used to filter result records")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getHouseAccountDetails - - Pulls details of specific house account - - :param house_account_id: House Account ID to get details for (required) - :type house_account_id: str - :param property_id: Property ID - :type property_id: str - :param results_from: date\"] Inferior limit date, used to filter result records - :type results_from: date - :param results_to: date\"] Inferior limit date, used to filter result records - :type results_to: date - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_house_account_details_get_serialize( - house_account_id=house_account_id, - property_id=property_id, - results_from=results_from, - results_to=results_to, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHouseAccountDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_house_account_details_get_serialize( - self, - house_account_id, - property_id, - results_from, - results_to, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if house_account_id is not None: - - _query_params.append(('houseAccountID', house_account_id)) - - if results_from is not None: - if isinstance(results_from, date): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, date): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getHouseAccountDetails', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def get_house_account_list_get( self, diff --git a/cloudbeds_pms_v1_3/api/payment_api.py b/cloudbeds_pms_v1_3/api/payment_api.py index 3be2efe..d945ed1 100644 --- a/cloudbeds_pms_v1_3/api/payment_api.py +++ b/cloudbeds_pms_v1_3/api/payment_api.py @@ -24,7 +24,6 @@ from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse -from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse @@ -1672,733 +1671,6 @@ def _get_pending_transactions_get_serialize( - @validate_call - def get_transactions_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTransactionsResponse: - """getTransactions - - Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_from: date - :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param transaction_filter: Transaction filter is used to filter transactions result - :type transaction_filter: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - service_date_from=service_date_from, - service_date_to=service_date_to, - created_from=created_from, - created_to=created_to, - transaction_filter=transaction_filter, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_transactions_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTransactionsResponse]: - """getTransactions - - Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_from: date - :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param transaction_filter: Transaction filter is used to filter transactions result - :type transaction_filter: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - service_date_from=service_date_from, - service_date_to=service_date_to, - created_from=created_from, - created_to=created_to, - transaction_filter=transaction_filter, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_transactions_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - service_date_from: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - service_date_to: Annotated[Optional[date], Field(description="Filter by the date of the service, the date that was intended the transaction to occured")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - transaction_filter: Annotated[Optional[StrictStr], Field(description="Transaction filter is used to filter transactions result")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getTransactions - - Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param service_date_from: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_from: date - :param service_date_to: Filter by the date of the service, the date that was intended the transaction to occured - :type service_date_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param transaction_filter: Transaction filter is used to filter transactions result - :type transaction_filter: str - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - service_date_from=service_date_from, - service_date_to=service_date_to, - created_from=created_from, - created_to=created_to, - transaction_filter=transaction_filter, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_transactions_get_serialize( - self, - property_id, - include_debit, - include_credit, - include_deleted, - include_children, - reservation_id, - sub_reservation_id, - room_id, - guest_id, - house_account_id, - transaction_ids, - results_from, - results_to, - modified_from, - modified_to, - service_date_from, - service_date_to, - created_from, - created_to, - transaction_filter, - page_number, - page_size, - sort_by, - order_by, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if include_debit is not None: - - _query_params.append(('includeDebit', include_debit)) - - if include_credit is not None: - - _query_params.append(('includeCredit', include_credit)) - - if include_deleted is not None: - - _query_params.append(('includeDeleted', include_deleted)) - - if include_children is not None: - - _query_params.append(('includeChildren', include_children)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if sub_reservation_id is not None: - - _query_params.append(('subReservationID', sub_reservation_id)) - - if room_id is not None: - - _query_params.append(('roomID', room_id)) - - if guest_id is not None: - - _query_params.append(('guestID', guest_id)) - - if house_account_id is not None: - - _query_params.append(('houseAccountID', house_account_id)) - - if transaction_ids is not None: - - _query_params.append(('transactionIDs', transaction_ids)) - - if results_from is not None: - if isinstance(results_from, date): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, date): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - if modified_from is not None: - if isinstance(modified_from, date): - _query_params.append( - ( - 'modifiedFrom', - modified_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('modifiedFrom', modified_from)) - - if modified_to is not None: - if isinstance(modified_to, date): - _query_params.append( - ( - 'modifiedTo', - modified_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('modifiedTo', modified_to)) - - if service_date_from is not None: - if isinstance(service_date_from, date): - _query_params.append( - ( - 'serviceDateFrom', - service_date_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('serviceDateFrom', service_date_from)) - - if service_date_to is not None: - if isinstance(service_date_to, date): - _query_params.append( - ( - 'serviceDateTo', - service_date_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('serviceDateTo', service_date_to)) - - if created_from is not None: - if isinstance(created_from, datetime): - _query_params.append( - ( - 'createdFrom', - created_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdFrom', created_from)) - - if created_to is not None: - if isinstance(created_to, datetime): - _query_params.append( - ( - 'createdTo', - created_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdTo', created_to)) - - if transaction_filter is not None: - - _query_params.append(('transactionFilter', transaction_filter)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - if sort_by is not None: - - _query_params.append(('sortBy', sort_by)) - - if order_by is not None: - - _query_params.append(('orderBy', order_by)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getTransactions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def post_charge_post( self, diff --git a/cloudbeds_pms_v1_3/api/reservation_api.py b/cloudbeds_pms_v1_3/api/reservation_api.py index a499c4e..08ed5d2 100644 --- a/cloudbeds_pms_v1_3/api/reservation_api.py +++ b/cloudbeds_pms_v1_3/api/reservation_api.py @@ -18,7 +18,7 @@ from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator -from typing import List, Optional, Tuple, Union +from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse @@ -1256,6 +1256,7 @@ def get_reservation_get( self, reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1277,6 +1278,8 @@ def get_reservation_get( :type reservation_id: str :param property_id: Property ID :type property_id: str + :param include_guest_requirements: Includes guest requirements data in the response. + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1302,6 +1305,7 @@ def get_reservation_get( _param = self._get_reservation_get_serialize( reservation_id=reservation_id, property_id=property_id, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1327,6 +1331,7 @@ def get_reservation_get_with_http_info( self, reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1348,6 +1353,8 @@ def get_reservation_get_with_http_info( :type reservation_id: str :param property_id: Property ID :type property_id: str + :param include_guest_requirements: Includes guest requirements data in the response. + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1373,6 +1380,7 @@ def get_reservation_get_with_http_info( _param = self._get_reservation_get_serialize( reservation_id=reservation_id, property_id=property_id, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1398,6 +1406,7 @@ def get_reservation_get_without_preload_content( self, reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1419,6 +1428,8 @@ def get_reservation_get_without_preload_content( :type reservation_id: str :param property_id: Property ID :type property_id: str + :param include_guest_requirements: Includes guest requirements data in the response. + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1444,6 +1455,7 @@ def get_reservation_get_without_preload_content( _param = self._get_reservation_get_serialize( reservation_id=reservation_id, property_id=property_id, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1464,6 +1476,7 @@ def _get_reservation_get_serialize( self, reservation_id, property_id, + include_guest_requirements, _request_auth, _content_type, _headers, @@ -1494,6 +1507,10 @@ def _get_reservation_get_serialize( _query_params.append(('reservationID', reservation_id)) + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + # process the header parameters # process the form parameters # process the body parameter @@ -2388,9 +2405,11 @@ def get_reservations_get( check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, @@ -2439,12 +2458,16 @@ def get_reservations_get( :type check_out_from: date :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date :type check_out_to: date + :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. + :type dates_query_mode: str :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. :type room_id: str :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. :type room_name: str :param include_guests_details: If guests details should be included or not :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool :param include_custom_fields: If reservation custom fields should be included or not :type include_custom_fields: bool :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. @@ -2500,9 +2523,11 @@ def get_reservations_get( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, @@ -2547,9 +2572,11 @@ def get_reservations_get_with_http_info( check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, @@ -2598,12 +2625,16 @@ def get_reservations_get_with_http_info( :type check_out_from: date :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date :type check_out_to: date + :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. + :type dates_query_mode: str :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. :type room_id: str :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. :type room_name: str :param include_guests_details: If guests details should be included or not :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool :param include_custom_fields: If reservation custom fields should be included or not :type include_custom_fields: bool :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. @@ -2659,9 +2690,11 @@ def get_reservations_get_with_http_info( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, @@ -2706,9 +2739,11 @@ def get_reservations_get_without_preload_content( check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, @@ -2757,12 +2792,16 @@ def get_reservations_get_without_preload_content( :type check_out_from: date :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date :type check_out_to: date + :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. + :type dates_query_mode: str :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. :type room_id: str :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. :type room_name: str :param include_guests_details: If guests details should be included or not :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool :param include_custom_fields: If reservation custom fields should be included or not :type include_custom_fields: bool :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. @@ -2818,9 +2857,11 @@ def get_reservations_get_without_preload_content( check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, + dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, @@ -2860,9 +2901,11 @@ def _get_reservations_get_serialize( check_in_to, check_out_from, check_out_to, + dates_query_mode, room_id, room_name, include_guests_details, + include_guest_requirements, include_custom_fields, include_all_rooms, source_id, @@ -3008,6 +3051,10 @@ def _get_reservations_get_serialize( else: _query_params.append(('checkOutTo', check_out_to)) + if dates_query_mode is not None: + + _query_params.append(('datesQueryMode', dates_query_mode)) + if room_id is not None: _query_params.append(('roomID', room_id)) @@ -3020,6 +3067,10 @@ def _get_reservations_get_serialize( _query_params.append(('includeGuestsDetails', include_guests_details)) + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + if include_custom_fields is not None: _query_params.append(('includeCustomFields', include_custom_fields)) @@ -3116,6 +3167,9 @@ def get_reservations_with_rate_details_get( reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -3157,6 +3211,12 @@ def get_reservations_with_rate_details_get( :type include_deleted: bool :param exclude_statuses: List of statuses (separated by comma) to be excluded from search :type exclude_statuses: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -3195,6 +3255,9 @@ def get_reservations_with_rate_details_get( reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, + include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -3231,6 +3294,9 @@ def get_reservations_with_rate_details_get_with_http_info( reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -3272,6 +3338,12 @@ def get_reservations_with_rate_details_get_with_http_info( :type include_deleted: bool :param exclude_statuses: List of statuses (separated by comma) to be excluded from search :type exclude_statuses: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -3310,6 +3382,9 @@ def get_reservations_with_rate_details_get_with_http_info( reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, + include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -3346,6 +3421,9 @@ def get_reservations_with_rate_details_get_without_preload_content( reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -3387,6 +3465,12 @@ def get_reservations_with_rate_details_get_without_preload_content( :type include_deleted: bool :param exclude_statuses: List of statuses (separated by comma) to be excluded from search :type exclude_statuses: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -3425,6 +3509,9 @@ def get_reservations_with_rate_details_get_without_preload_content( reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, + include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -3456,6 +3543,9 @@ def _get_reservations_with_rate_details_get_serialize( reservation_check_out_to, include_deleted, exclude_statuses, + include_guests_details, + include_guest_requirements, + include_custom_fields, page_number, page_size, _request_auth, @@ -3578,6 +3668,18 @@ def _get_reservations_with_rate_details_get_serialize( _query_params.append(('excludeStatuses', exclude_statuses)) + if include_guests_details is not None: + + _query_params.append(('includeGuestsDetails', include_guests_details)) + + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + + if include_custom_fields is not None: + + _query_params.append(('includeCustomFields', include_custom_fields)) + if page_number is not None: _query_params.append(('pageNumber', page_number)) @@ -4750,6 +4852,7 @@ def post_reservation_note_post( reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4775,6 +4878,8 @@ def post_reservation_note_post( :type reservation_note: str :param user_id: User ID Identify the actual user that is posting the note :type user_id: str + :param date_created: Datetime the note was created. + :type date_created: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4802,6 +4907,7 @@ def post_reservation_note_post( reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id, + date_created=date_created, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4829,6 +4935,7 @@ def post_reservation_note_post_with_http_info( reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4854,6 +4961,8 @@ def post_reservation_note_post_with_http_info( :type reservation_note: str :param user_id: User ID Identify the actual user that is posting the note :type user_id: str + :param date_created: Datetime the note was created. + :type date_created: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4881,6 +4990,7 @@ def post_reservation_note_post_with_http_info( reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id, + date_created=date_created, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4908,6 +5018,7 @@ def post_reservation_note_post_without_preload_content( reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4933,6 +5044,8 @@ def post_reservation_note_post_without_preload_content( :type reservation_note: str :param user_id: User ID Identify the actual user that is posting the note :type user_id: str + :param date_created: Datetime the note was created. + :type date_created: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4960,6 +5073,7 @@ def post_reservation_note_post_without_preload_content( reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id, + date_created=date_created, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4982,6 +5096,7 @@ def _post_reservation_note_post_serialize( reservation_id, reservation_note, user_id, + date_created, _request_auth, _content_type, _headers, @@ -5014,6 +5129,8 @@ def _post_reservation_note_post_serialize( _form_params.append(('reservationNote', reservation_note)) if user_id is not None: _form_params.append(('userID', user_id)) + if date_created is not None: + _form_params.append(('dateCreated', date_created)) # process the body parameter @@ -5078,6 +5195,7 @@ def post_reservation_post( guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, @@ -5132,6 +5250,8 @@ def post_reservation_post( :type guest_email: str :param guest_phone: Guest main phone number :type guest_phone: str + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str :param rooms: Array with quantity of rooms @@ -5193,6 +5313,7 @@ def post_reservation_post( guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, + guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, @@ -5241,6 +5362,7 @@ def post_reservation_post_with_http_info( guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, @@ -5295,6 +5417,8 @@ def post_reservation_post_with_http_info( :type guest_email: str :param guest_phone: Guest main phone number :type guest_phone: str + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str :param rooms: Array with quantity of rooms @@ -5356,6 +5480,7 @@ def post_reservation_post_with_http_info( guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, + guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, @@ -5404,6 +5529,7 @@ def post_reservation_post_without_preload_content( guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, @@ -5458,6 +5584,8 @@ def post_reservation_post_without_preload_content( :type guest_email: str :param guest_phone: Guest main phone number :type guest_phone: str + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str :param rooms: Array with quantity of rooms @@ -5519,6 +5647,7 @@ def post_reservation_post_without_preload_content( guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, + guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, @@ -5562,6 +5691,7 @@ def _post_reservation_post_serialize( guest_zip, guest_email, guest_phone, + guest_requirements, estimated_arrival_time, rooms, adults, @@ -5584,6 +5714,7 @@ def _post_reservation_post_serialize( _host = None _collection_formats: Dict[str, str] = { + 'guestRequirements': 'csv', 'rooms': 'csv', 'adults': 'csv', 'children': 'csv', @@ -5627,6 +5758,8 @@ def _post_reservation_post_serialize( _form_params.append(('guestEmail', guest_email)) if guest_phone is not None: _form_params.append(('guestPhone', guest_phone)) + if guest_requirements is not None: + _form_params.append(('guestRequirements', guest_requirements)) if estimated_arrival_time is not None: _form_params.append(('estimatedArrivalTime', estimated_arrival_time)) if rooms is not None: diff --git a/cloudbeds_pms_v1_3/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py index 232f462..68b8580 100644 --- a/cloudbeds_pms_v1_3/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -2360,9 +2360,9 @@ def _get_rooms_fees_and_taxes_get_serialize( @validate_call def get_rooms_get( self, - room_type_id: Annotated[StrictStr, Field(description="Room type ID, comma-separated, i.e. 37,345,89")], - room_type_name_short: Annotated[StrictStr, Field(description="Room Type (short-version)")], property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room type ID, comma-separated, i.e. 37,345,89")] = None, + room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type (short-version)")] = None, start_date: Annotated[Optional[date], Field(description="Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent.")] = None, end_date: Annotated[Optional[date], Field(description="Final stay date. Necessary if startDate is sent.")] = None, include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, @@ -2385,12 +2385,12 @@ def get_rooms_get( Returns a list of all rooms considering the informed parameters. If Check-in/out dates are sent, only unassigned rooms are returned. ### Group account support - :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 (required) - :type room_type_id: str - :param room_type_name_short: Room Type (short-version) (required) - :type room_type_name_short: str :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 :type property_ids: str + :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 + :type room_type_id: str + :param room_type_name_short: Room Type (short-version) + :type room_type_name_short: str :param start_date: Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. :type start_date: date :param end_date: Final stay date. Necessary if startDate is sent. @@ -2424,9 +2424,9 @@ def get_rooms_get( """ # noqa: E501 _param = self._get_rooms_get_serialize( + property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, - property_ids=property_ids, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, @@ -2455,9 +2455,9 @@ def get_rooms_get( @validate_call def get_rooms_get_with_http_info( self, - room_type_id: Annotated[StrictStr, Field(description="Room type ID, comma-separated, i.e. 37,345,89")], - room_type_name_short: Annotated[StrictStr, Field(description="Room Type (short-version)")], property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room type ID, comma-separated, i.e. 37,345,89")] = None, + room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type (short-version)")] = None, start_date: Annotated[Optional[date], Field(description="Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent.")] = None, end_date: Annotated[Optional[date], Field(description="Final stay date. Necessary if startDate is sent.")] = None, include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, @@ -2480,12 +2480,12 @@ def get_rooms_get_with_http_info( Returns a list of all rooms considering the informed parameters. If Check-in/out dates are sent, only unassigned rooms are returned. ### Group account support - :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 (required) - :type room_type_id: str - :param room_type_name_short: Room Type (short-version) (required) - :type room_type_name_short: str :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 :type property_ids: str + :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 + :type room_type_id: str + :param room_type_name_short: Room Type (short-version) + :type room_type_name_short: str :param start_date: Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. :type start_date: date :param end_date: Final stay date. Necessary if startDate is sent. @@ -2519,9 +2519,9 @@ def get_rooms_get_with_http_info( """ # noqa: E501 _param = self._get_rooms_get_serialize( + property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, - property_ids=property_ids, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, @@ -2550,9 +2550,9 @@ def get_rooms_get_with_http_info( @validate_call def get_rooms_get_without_preload_content( self, - room_type_id: Annotated[StrictStr, Field(description="Room type ID, comma-separated, i.e. 37,345,89")], - room_type_name_short: Annotated[StrictStr, Field(description="Room Type (short-version)")], property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room type ID, comma-separated, i.e. 37,345,89")] = None, + room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type (short-version)")] = None, start_date: Annotated[Optional[date], Field(description="Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent.")] = None, end_date: Annotated[Optional[date], Field(description="Final stay date. Necessary if startDate is sent.")] = None, include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, @@ -2575,12 +2575,12 @@ def get_rooms_get_without_preload_content( Returns a list of all rooms considering the informed parameters. If Check-in/out dates are sent, only unassigned rooms are returned. ### Group account support - :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 (required) - :type room_type_id: str - :param room_type_name_short: Room Type (short-version) (required) - :type room_type_name_short: str :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 :type property_ids: str + :param room_type_id: Room type ID, comma-separated, i.e. 37,345,89 + :type room_type_id: str + :param room_type_name_short: Room Type (short-version) + :type room_type_name_short: str :param start_date: Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. :type start_date: date :param end_date: Final stay date. Necessary if startDate is sent. @@ -2614,9 +2614,9 @@ def get_rooms_get_without_preload_content( """ # noqa: E501 _param = self._get_rooms_get_serialize( + property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, - property_ids=property_ids, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, @@ -2640,9 +2640,9 @@ def get_rooms_get_without_preload_content( def _get_rooms_get_serialize( self, + property_ids, room_type_id, room_type_name_short, - property_ids, start_date, end_date, include_room_relations, @@ -3028,9 +3028,10 @@ def post_room_assign_post( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, - new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned.")] = None, - room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be informed in case of assignment.")] = None, - old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be informed in case of reassignment.")] = None, + reservation_room_id: Annotated[Optional[StrictStr], Field(description="Reservation room ID. Must be set if you want to unassign a room.")] = None, + new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be provided in case of assignment.")] = None, + old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be provided in case of reassignment.")] = None, override_rates: Annotated[Optional[StrictBool], Field(description="Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment.")] = None, adjust_price: Annotated[Optional[StrictBool], Field(description="If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value.")] = None, _request_timeout: Union[ @@ -3056,11 +3057,13 @@ def post_room_assign_post( :type reservation_id: str :param sub_reservation_id: Sub Reservation identifier :type sub_reservation_id: str - :param new_room_id: Room ID of the room that will be assigned. + :param reservation_room_id: Reservation room ID. Must be set if you want to unassign a room. + :type reservation_room_id: str + :param new_room_id: Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room. :type new_room_id: str - :param room_type_id: Room Type ID of the room that will be assigned. Need to be informed in case of assignment. + :param room_type_id: Room Type ID of the room that will be assigned. Need to be provided in case of assignment. :type room_type_id: str - :param old_room_id: Room ID of the room that was assigned. Need to be informed in case of reassignment. + :param old_room_id: Room ID of the room that was assigned. Need to be provided in case of reassignment. :type old_room_id: str :param override_rates: Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. :type override_rates: bool @@ -3092,6 +3095,7 @@ def post_room_assign_post( property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, + reservation_room_id=reservation_room_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, @@ -3123,9 +3127,10 @@ def post_room_assign_post_with_http_info( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, - new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned.")] = None, - room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be informed in case of assignment.")] = None, - old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be informed in case of reassignment.")] = None, + reservation_room_id: Annotated[Optional[StrictStr], Field(description="Reservation room ID. Must be set if you want to unassign a room.")] = None, + new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be provided in case of assignment.")] = None, + old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be provided in case of reassignment.")] = None, override_rates: Annotated[Optional[StrictBool], Field(description="Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment.")] = None, adjust_price: Annotated[Optional[StrictBool], Field(description="If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value.")] = None, _request_timeout: Union[ @@ -3151,11 +3156,13 @@ def post_room_assign_post_with_http_info( :type reservation_id: str :param sub_reservation_id: Sub Reservation identifier :type sub_reservation_id: str - :param new_room_id: Room ID of the room that will be assigned. + :param reservation_room_id: Reservation room ID. Must be set if you want to unassign a room. + :type reservation_room_id: str + :param new_room_id: Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room. :type new_room_id: str - :param room_type_id: Room Type ID of the room that will be assigned. Need to be informed in case of assignment. + :param room_type_id: Room Type ID of the room that will be assigned. Need to be provided in case of assignment. :type room_type_id: str - :param old_room_id: Room ID of the room that was assigned. Need to be informed in case of reassignment. + :param old_room_id: Room ID of the room that was assigned. Need to be provided in case of reassignment. :type old_room_id: str :param override_rates: Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. :type override_rates: bool @@ -3187,6 +3194,7 @@ def post_room_assign_post_with_http_info( property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, + reservation_room_id=reservation_room_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, @@ -3218,9 +3226,10 @@ def post_room_assign_post_without_preload_content( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation identifier")] = None, - new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned.")] = None, - room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be informed in case of assignment.")] = None, - old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be informed in case of reassignment.")] = None, + reservation_room_id: Annotated[Optional[StrictStr], Field(description="Reservation room ID. Must be set if you want to unassign a room.")] = None, + new_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Room Type ID of the room that will be assigned. Need to be provided in case of assignment.")] = None, + old_room_id: Annotated[Optional[StrictStr], Field(description="Room ID of the room that was assigned. Need to be provided in case of reassignment.")] = None, override_rates: Annotated[Optional[StrictBool], Field(description="Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment.")] = None, adjust_price: Annotated[Optional[StrictBool], Field(description="If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value.")] = None, _request_timeout: Union[ @@ -3246,11 +3255,13 @@ def post_room_assign_post_without_preload_content( :type reservation_id: str :param sub_reservation_id: Sub Reservation identifier :type sub_reservation_id: str - :param new_room_id: Room ID of the room that will be assigned. + :param reservation_room_id: Reservation room ID. Must be set if you want to unassign a room. + :type reservation_room_id: str + :param new_room_id: Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room. :type new_room_id: str - :param room_type_id: Room Type ID of the room that will be assigned. Need to be informed in case of assignment. + :param room_type_id: Room Type ID of the room that will be assigned. Need to be provided in case of assignment. :type room_type_id: str - :param old_room_id: Room ID of the room that was assigned. Need to be informed in case of reassignment. + :param old_room_id: Room ID of the room that was assigned. Need to be provided in case of reassignment. :type old_room_id: str :param override_rates: Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. :type override_rates: bool @@ -3282,6 +3293,7 @@ def post_room_assign_post_without_preload_content( property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, + reservation_room_id=reservation_room_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, @@ -3308,6 +3320,7 @@ def _post_room_assign_post_serialize( property_id, reservation_id, sub_reservation_id, + reservation_room_id, new_room_id, room_type_id, old_room_id, @@ -3343,6 +3356,8 @@ def _post_room_assign_post_serialize( _form_params.append(('reservationID', reservation_id)) if sub_reservation_id is not None: _form_params.append(('subReservationID', sub_reservation_id)) + if reservation_room_id is not None: + _form_params.append(('reservationRoomID', reservation_room_id)) if new_room_id is not None: _form_params.append(('newRoomID', new_room_id)) if room_type_id is not None: diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 26d92ca..fd43e84 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.user_agent = 'OpenAPI-Generator/1.1.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 647176d..4374b9f 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.0.0".\ + "SDK Package Version: 1.1.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/AdjustmentApi.md b/cloudbeds_pms_v1_3/docs/AdjustmentApi.md index 3dcc5e2..471495e 100644 --- a/cloudbeds_pms_v1_3/docs/AdjustmentApi.md +++ b/cloudbeds_pms_v1_3/docs/AdjustmentApi.md @@ -5,8 +5,6 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_adjustment_delete**](AdjustmentApi.md#delete_adjustment_delete) | **DELETE** /deleteAdjustment | deleteAdjustment -[**get_adjustment_get**](AdjustmentApi.md#get_adjustment_get) | **GET** /getAdjustment | getAdjustment -[**get_adjustments_get**](AdjustmentApi.md#get_adjustments_get) | **GET** /getAdjustments | getAdjustments [**post_adjustment_post**](AdjustmentApi.md#post_adjustment_post) | **POST** /postAdjustment | postAdjustment @@ -96,174 +94,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_adjustment_get** -> GetAdjustmentResponse get_adjustment_get(adjustment_id, property_id=property_id) - -getAdjustment - -Gets the details for the one AdjustmentID - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.AdjustmentApi(api_client) - adjustment_id = 'adjustment_id_example' # str | Adjustment identifier - property_id = 'property_id_example' # str | Property ID (optional) - - try: - # getAdjustment - api_response = api_instance.get_adjustment_get(adjustment_id, property_id=property_id) - print("The response of AdjustmentApi->get_adjustment_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AdjustmentApi->get_adjustment_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **adjustment_id** | **str**| Adjustment identifier | - **property_id** | **str**| Property ID | [optional] - -### Return type - -[**GetAdjustmentResponse**](GetAdjustmentResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_adjustments_get** -> GetAdjustmentsResponse get_adjustments_get(reservation_id, property_id=property_id) - -getAdjustments - -Gets all the Adjustments and their details to a specified reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.AdjustmentApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation identifier - property_id = 'property_id_example' # str | Property ID (optional) - - try: - # getAdjustments - api_response = api_instance.get_adjustments_get(reservation_id, property_id=property_id) - print("The response of AdjustmentApi->get_adjustments_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AdjustmentApi->get_adjustments_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation identifier | - **property_id** | **str**| Property ID | [optional] - -### Return type - -[**GetAdjustmentsResponse**](GetAdjustmentsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_adjustment_post** > PostAdjustmentResponse post_adjustment_post(property_id=property_id, reservation_id=reservation_id, type=type, amount=amount, notes=notes, item_id=item_id) diff --git a/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md index 78cb657..2248857 100644 --- a/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **company_tax_id** | **str** | Company tax ID | [optional] **company_name** | **str** | Company name | [optional] **guest_opt_in** | **bool** | If guest has opted-in to marketing communication or not | [optional] +**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **guest_notes** | [**List[GetGuestListResponseDataValueGuestNotesInner]**](GetGuestListResponseDataValueGuestNotesInner.md) | Guest Notes | [optional] **status** | **str** | Reservation status<br /> in_progress - Reservation is pending confirmation<br /> confirmed - Reservation is confirmed<br /> not_confirmed - Reservation not passed confirmation<br /> canceled - Reservation is canceled<br /> checked_in - Guest is in hotel<br /> checked_out - Guest already left hotel<br /> no_show - Guest didn't showed up on check-in date | [optional] **is_merged** | **bool** | Flag indicating that guest was merged | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md b/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md index 31d62ea..54957f8 100644 --- a/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **document_issuing_country** | **str** | Document Issuing Country (2-digits code) | [optional] **document_expiration_date** | [**GetGuestResponseDataDocumentExpirationDate**](GetGuestResponseDataDocumentExpirationDate.md) | | [optional] **custom_fields** | [**List[GetGuestResponseDataCustomFieldsInner]**](GetGuestResponseDataCustomFieldsInner.md) | | [optional] +**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **special_requests** | **str** | Special requests made by the guest at the time of the booking | [optional] **tax_id** | **str** | Tax ID | [optional] **company_tax_id** | **str** | Company tax ID | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md index d1ed34e..18229ff 100644 --- a/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md @@ -30,6 +30,7 @@ Name | Type | Description | Notes **guest_document_expiration_date** | **date** | Document Expiration Date | [optional] **start_date** | **datetime** | Check-in date | [optional] **end_date** | **datetime** | Check-out date | [optional] +**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of custom fields | [optional] **date_modified** | **datetime** | Guest modification date | [optional] **tax_id** | **str** | Tax ID | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md index e9d8713..7bf8b1c 100644 --- a/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md +++ b/cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **currency_code** | **str** | Currency code | [optional] **currency_symbol** | **str** | Currency symbol | [optional] **currency_position** | **str** | Currency position | [optional] +**currency_decimal_separator** | **str** | Currency decimal separator | [optional] +**currency_thousands_separator** | **str** | Currency thousands separator | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md index e7a2f7d..60cfc5c 100644 --- a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md @@ -7,6 +7,7 @@ Invoice details Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **invoice_id** | **str** | Unique invoice ID | [optional] +**user_id** | **str** | Unique ID of User who generated invoice | [optional] **reservation_id** | **str** | Reservation identifier | [optional] **prefix** | **str** | Invoice ID prefix | [optional] **number** | **int** | Invoice ID number | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md index 7bc3cd0..92426c4 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **balance** | **float** | Balance currently owed | [optional] **balance_detailed** | [**List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]**](GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) | Reservation balance detailed with the information available on PC app, describing the financial items calculated | [optional] **reservation_origin** | **str** | Reservation Origin | [optional] +**reservation_meal_plans** | **str** | Reservation Meal Plans | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md index e08412d..fa2c4eb 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md @@ -16,6 +16,8 @@ Name | Type | Description | Notes **room_id** | **str** | Unique ID of the room | [optional] **room_name** | **str** | Name of the room | [optional] **room_type_id** | **str** | ID of the room type | [optional] +**market_name** | **str** | Market segmentation name | [optional] +**market_code** | **str** | Market segmentation code | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseData.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseData.md index e40478e..c92d5b6 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseData.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **status** | **str** | Reservation status<br /> 'not_confirmed' - Reservation is pending confirmation<br /> 'confirmed' - Reservation is confirmed<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] **total** | **float** | Total price of the booking | [optional] **balance** | **float** | Balance currently owed | [optional] -**balance_detailed** | [**List[GetReservationResponseDataBalanceDetailedInner]**](GetReservationResponseDataBalanceDetailedInner.md) | Reservation balance detailed with the information available on PC app, describing the financial items calculated | [optional] +**balance_detailed** | [**GetReservationResponseDataBalanceDetailed**](GetReservationResponseDataBalanceDetailed.md) | | [optional] **assigned** | [**List[GetReservationResponseDataAssignedInner]**](GetReservationResponseDataAssignedInner.md) | Assigned Rooms information | [optional] **unassigned** | [**List[GetReservationResponseDataUnassignedInner]**](GetReservationResponseDataUnassignedInner.md) | Unassigned Rooms information | [optional] **cards_on_file** | [**List[GetReservationResponseDataCardsOnFileInner]**](GetReservationResponseDataCardsOnFileInner.md) | Credit Cards stored for the reservation | [optional] @@ -32,6 +32,7 @@ Name | Type | Description | Notes **channel_provided_credit_card** | **bool** | Whether a credit card was provided by the channel. Only included for reservations originating from OTAs. | [optional] **group_inventory** | [**List[GetReservationResponseDataGroupInventoryInner]**](GetReservationResponseDataGroupInventoryInner.md) | Aggregate allotment block information | [optional] **origin** | **str** | Reservation origin | [optional] +**meal_plans** | **str** | Reservation Meal Plans | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md index 354f141..a0ccf21 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataAssignedInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**reservation_room_id** | **str** | Reservation room ID | [optional] **room_type_name** | **str** | Name of the assigned room type | [optional] **room_type_name_short** | **str** | Short name of the assigned room type | [optional] **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] @@ -18,7 +19,9 @@ Name | Type | Description | Notes **adults** | **str** | Number of adult staying in the room | [optional] **children** | **str** | Number of children staying in the room | [optional] **daily_rates** | [**List[GetReservationResponseDataAssignedInnerDailyRatesInner]**](GetReservationResponseDataAssignedInnerDailyRatesInner.md) | Array with rates detailed by day | [optional] -**room_total** | **float** | Room total rate | [optional] +**room_total** | **str** | Room total rate | [optional] +**market_name** | **str** | Market segmentation name | [optional] +**market_code** | **str** | Market segmentation code | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailed.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailed.md new file mode 100644 index 0000000..3ff721d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailed.md @@ -0,0 +1,35 @@ +# GetReservationResponseDataBalanceDetailed + +Reservation balance detailed with the information available on PC app, describing the financial items calculated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggested_deposit** | **str** | Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid | [optional] +**sub_total** | **float** | Sum of the room prices on the reservation | [optional] +**additional_items** | **float** | Sum of the additional items recorded on the reservation | [optional] +**taxes_fees** | **float** | Sum of the taxes and fees calculated on the reservation | [optional] +**grand_total** | **float** | Sum of sub.Total + additionalItems + taxesFees | [optional] +**paid** | **float** | Amount paid (reservation deposit + any other extra payment) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataBalanceDetailed from a JSON string +get_reservation_response_data_balance_detailed_instance = GetReservationResponseDataBalanceDetailed.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataBalanceDetailed.to_json()) + +# convert the object into a dict +get_reservation_response_data_balance_detailed_dict = get_reservation_response_data_balance_detailed_instance.to_dict() +# create an instance of GetReservationResponseDataBalanceDetailed from a dict +get_reservation_response_data_balance_detailed_from_dict = GetReservationResponseDataBalanceDetailed.from_dict(get_reservation_response_data_balance_detailed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedOneOf.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedOneOf.md new file mode 100644 index 0000000..f11c3f1 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedOneOf.md @@ -0,0 +1,34 @@ +# GetReservationResponseDataBalanceDetailedOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggested_deposit** | **str** | Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid | [optional] +**sub_total** | **float** | Sum of the room prices on the reservation | [optional] +**additional_items** | **float** | Sum of the additional items recorded on the reservation | [optional] +**taxes_fees** | **float** | Sum of the taxes and fees calculated on the reservation | [optional] +**grand_total** | **float** | Sum of sub.Total + additionalItems + taxesFees | [optional] +**paid** | **float** | Amount paid (reservation deposit + any other extra payment) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataBalanceDetailedOneOf from a JSON string +get_reservation_response_data_balance_detailed_one_of_instance = GetReservationResponseDataBalanceDetailedOneOf.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataBalanceDetailedOneOf.to_json()) + +# convert the object into a dict +get_reservation_response_data_balance_detailed_one_of_dict = get_reservation_response_data_balance_detailed_one_of_instance.to_dict() +# create an instance of GetReservationResponseDataBalanceDetailedOneOf from a dict +get_reservation_response_data_balance_detailed_one_of_from_dict = GetReservationResponseDataBalanceDetailedOneOf.from_dict(get_reservation_response_data_balance_detailed_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md index 9e2f0ac..85cdb72 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md @@ -19,22 +19,23 @@ Name | Type | Description | Notes **guest_country** | **str** | | [optional] **guest_zip** | **str** | | [optional] **guest_status** | **str** | | [optional] -**guest_birthdate** | **date** | | [optional] +**guest_birthdate** | [**GetReservationResponseDataGuestListValueGuestBirthdate**](GetReservationResponseDataGuestListValueGuestBirthdate.md) | | [optional] **guest_document_type** | **str** | | [optional] **guest_document_number** | **str** | | [optional] -**guest_document_issue_date** | **date** | | [optional] +**guest_document_issue_date** | [**GetReservationResponseDataGuestListValueGuestBirthdate**](GetReservationResponseDataGuestListValueGuestBirthdate.md) | | [optional] **guest_document_issuing_country** | **str** | | [optional] -**guest_document_expiration_date** | **date** | | [optional] +**guest_document_expiration_date** | [**GetReservationResponseDataGuestListValueGuestBirthdate**](GetReservationResponseDataGuestListValueGuestBirthdate.md) | | [optional] **tax_id** | **str** | | [optional] **company_tax_id** | **str** | | [optional] **company_name** | **str** | | [optional] -**assigned_room** | **str** | Returns true if guest has roomed assigned, false if not | [optional] +**assigned_room** | **bool** | Returns true if guest has roomed assigned, false if not | [optional] **is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] **room_id** | **str** | Room ID where guest is assigned | [optional] **room_name** | **str** | Room Name where guest is assigned | [optional] **room_type_name** | **str** | Room Type Name where guest is assigned | [optional] **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] **is_main_guest** | **bool** | If the guest is the main guest of the reservation or not | [optional] +**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **custom_fields** | [**List[GetReservationResponseDataGuestListValueCustomFieldsInner]**](GetReservationResponseDataGuestListValueCustomFieldsInner.md) | List of custom fields | [optional] **rooms** | [**List[GetReservationResponseDataGuestListValueRoomsInner]**](GetReservationResponseDataGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] **unassigned_rooms** | [**List[GetReservationResponseDataGuestListValueUnassignedRoomsInner]**](GetReservationResponseDataGuestListValueUnassignedRoomsInner.md) | List of unassigned rooms | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueGuestBirthdate.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueGuestBirthdate.md new file mode 100644 index 0000000..70d0585 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueGuestBirthdate.md @@ -0,0 +1,29 @@ +# GetReservationResponseDataGuestListValueGuestBirthdate + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationResponseDataGuestListValueGuestBirthdate from a JSON string +get_reservation_response_data_guest_list_value_guest_birthdate_instance = GetReservationResponseDataGuestListValueGuestBirthdate.from_json(json) +# print the JSON string representation of the object +print(GetReservationResponseDataGuestListValueGuestBirthdate.to_json()) + +# convert the object into a dict +get_reservation_response_data_guest_list_value_guest_birthdate_dict = get_reservation_response_data_guest_list_value_guest_birthdate_instance.to_dict() +# create an instance of GetReservationResponseDataGuestListValueGuestBirthdate from a dict +get_reservation_response_data_guest_list_value_guest_birthdate_from_dict = GetReservationResponseDataGuestListValueGuestBirthdate.from_dict(get_reservation_response_data_guest_list_value_guest_birthdate_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md index 0c5cbee..2f7fb32 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueRoomsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**reservation_room_id** | **str** | Reservation room ID where guest is assigned | [optional] **room_id** | **str** | Room ID where guest is assigned | [optional] **room_name** | **str** | Room Name where guest is assigned | [optional] **room_type_name** | **str** | Room Type Name where guest is assigned | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md index 9552f42..521759d 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValueUnassignedRoomsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**reservation_room_id** | **str** | Reservation room ID | [optional] **room_type_id** | **str** | ID of the assigned room type | [optional] **room_type_name** | **str** | Room Type Name where guest is assigned | [optional] **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md index cea934a..e9d33fc 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataUnassignedInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**reservation_room_id** | **str** | Reservation room ID | [optional] **room_type_name** | **str** | Name of the room type to be assigned | [optional] **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] **room_type_id** | **str** | ID of the room type to be assigned | [optional] @@ -14,7 +15,7 @@ Name | Type | Description | Notes **adults** | **str** | Number of adult staying in the room | [optional] **children** | **str** | Number of children staying in the room | [optional] **daily_rates** | [**List[GetReservationResponseDataAssignedInnerDailyRatesInner]**](GetReservationResponseDataAssignedInnerDailyRatesInner.md) | Array with rates detailed by day | [optional] -**room_total** | **float** | Room total rate | [optional] +**room_total** | **str** | Room total rate | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md index dbbe742..ce856a5 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md @@ -28,6 +28,7 @@ Name | Type | Description | Notes **rooms** | [**List[GetReservationsResponseDataInnerRoomsInner]**](GetReservationsResponseDataInnerRoomsInner.md) | Array with rooms information. Only returned if \"includeAllRooms\" is true | [optional] **guest_list** | [**Dict[str, GetReservationsResponseDataInnerGuestListValue]**](GetReservationsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] **origin** | **str** | Reservation origin | [optional] +**meal_plans** | **str** | Reservation meal plans | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md index f9a6821..1505f09 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md @@ -38,6 +38,7 @@ Name | Type | Description | Notes **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] **rooms** | [**List[GetReservationsResponseDataInnerGuestListValueRoomsInner]**](GetReservationsResponseDataInnerGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] **unassigned_rooms** | [**List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]**](GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) | List of all unassigned rooms | [optional] +**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`. | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of guest custom fields | [optional] **is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] **is_main_guest** | **bool** | Flag indicating the guest is the main guest on the reservation | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md index ff7b27b..7c0c6e1 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueRoomsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**reservation_room_id** | **str** | Reservation room ID where guest is assigned | [optional] **room_id** | **str** | Room ID where guest is assigned | [optional] **room_name** | **str** | Room Name where guest is assigned | [optional] **room_type_name** | **str** | Room Type Name where guest is assigned | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md index 9275c6a..2c34462 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**reservation_room_id** | **str** | Reservation room ID | [optional] **room_type_id** | **str** | ID of the assigned room type | [optional] **room_type_name** | **str** | Room Type Name where guest is assigned | [optional] **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md index 400b271..213e33d 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md @@ -13,11 +13,14 @@ Name | Type | Description | Notes **guest_name** | **str** | Name of the main guest assigned to the room | [optional] **adults** | **str** | Number of adults in the room | [optional] **children** | **str** | Number of children in the room | [optional] +**reservation_room_id** | **str** | Reservation room ID | [optional] **room_id** | **str** | Room ID (null if the reservation has not been assigned a specific room yet). | [optional] **room_name** | **str** | Name of the room, if roomID=null it does not exist. | [optional] **room_check_in** | **str** | Check-in date for the room | [optional] **room_check_out** | **str** | Check-out date for the room | [optional] **room_status** | **str** | | [optional] +**market_name** | **str** | Market segmentation name | [optional] +**market_code** | **str** | Market segmentation code | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md index 44b86e5..85cce19 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**property_id** | **str** | Properties identifier | [optional] **reservation_id** | **str** | Reservation's unique identifier | [optional] **is_deleted** | **bool** | | [optional] **date_created** | **datetime** | | [optional] @@ -24,10 +25,18 @@ Name | Type | Description | Notes **source_category** | **int** | Reservation source category | [optional] **source_reservation_id** | **int** | Reservation ID on the source | [optional] **property_currency** | **int** | Property currency ISO-formatted (3 characters) | [optional] -**balance_detailed** | [**List[GetReservationResponseDataBalanceDetailedInner]**](GetReservationResponseDataBalanceDetailedInner.md) | Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated | [optional] +**balance_detailed** | [**List[GetReservationResponseDataBalanceDetailedOneOf]**](GetReservationResponseDataBalanceDetailedOneOf.md) | Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated | [optional] **detailed_rates** | **List[object]** | Associative object, where key is the date, and value is the total rate for that date. | [optional] **rooms** | [**List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]**](GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) | Array with rooms information | [optional] **origin** | **str** | Reservation origin | [optional] +**meal_plans** | **str** | Reservation meal plans | [optional] +**guest_list** | [**Dict[str, GetReservationsResponseDataInnerGuestListValue]**](GetReservationsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] +**third_party_identifier** | **str** | | [optional] +**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of reservation custom fields. Only returned if \"includeCustomFields\" is true | [optional] +**estimated_arrival_time** | **str** | Estimated arrival time, 24-hour format. | [optional] +**total** | **float** | Total price of the booking | [optional] +**balance** | **float** | Balance currently owed | [optional] +**date_imported** | **str** | Date when the reservation was imported | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md index 0800259..035eb5a 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md @@ -15,12 +15,15 @@ Name | Type | Description | Notes **rate_name** | **str** | Name of the rate used for the booking room | [optional] **adults** | **str** | Number of adults in the room | [optional] **children** | **str** | Number of children in the room | [optional] +**reservation_room_id** | **str** | Reservation room ID | [optional] **room_id** | **str** | Room ID (null if the reservation has not been assigned a specific room yet). | [optional] **room_name** | **str** | Name of the room, if roomID=null it does not exist. | [optional] **room_check_in** | **str** | Check-in date for the room | [optional] **room_check_out** | **str** | Check-out date for the room | [optional] **room_status** | **str** | | [optional] **detailed_room_rates** | **List[object]** | Associative object, with dates as indexes, and rates as values | [optional] +**market_name** | **str** | Market segmentation name | [optional] +**market_code** | **str** | Market segmentation code | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md index 706b17b..3a1d0fe 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | Type. Fee or tax. | [optional] -**fee_id** | **int** | Fee's unique identifier. Only exists if type = fee. | [optional] -**tax_id** | **int** | Tax's unique identifier. Only exists if type = tax. | [optional] +**fee_id** | **str** | Fee's unique identifier. Only exists if type = fee. | [optional] +**tax_id** | **str** | Tax's unique identifier. Only exists if type = tax. | [optional] **name** | **str** | Name | [optional] **code** | **str** | Code | [optional] -**amount** | **float** | Amount | [optional] -**amount_adult** | **float** | Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] -**amount_child** | **float** | Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount** | **str** | Amount | [optional] +**amount_adult** | **str** | Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount_child** | **str** | Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] **amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) | Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based) | [optional] **amount_type** | **str** | Amount type. They mean:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>percentage</td><td>Percentage of Total Amount</td></tr> <tr><td>fixed</td><td>Fixed per Room Night / Item</td></tr> <tr><td>fixed_per_person</td><td>Fixed per Person per Night</td></tr> <tr><td>fixed_per_accomodation</td><td>Fixed per Accomodation</td></tr> <tr><td>fixed_per_reservation</td><td>Fixed per Reservation</td></tr> <tr><td>percentage_rate_based</td><td>Rate-based</td></tr> </table> | [optional] **available_for** | **List[str]** | Where this tax/fee is available?<br/>They mean:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>product</td><td>Items</td></tr> <tr><td>rate</td><td>Reservations</td></tr> <tr><td>fee</td><td>Fees -- this tax is charged on top of some fees</td></tr> </table> | [optional] -**fees_charged** | **List[int]** | List of Fee IDs charged by the current tax. Only exists if type = tax. | [optional] +**fees_charged** | **List[str]** | List of Fee IDs charged by the current tax. Only exists if type = tax. | [optional] **inclusive_or_exclusive** | **str** | If this tax/fee is inclusive or exclusive | [optional] **is_deleted** | **bool** | Flag indicating if tax was deleted from the system | [optional] **child_id** | **str** | ID of the tax or fee that replaced current one | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md index 6d3bed4..e222ebd 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rate** | **float** | Maximum rate for which this amount is valid | [optional] -**percentage** | **float** | Percentage applied for the rate | [optional] +**rate** | [**GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md) | | [optional] +**percentage** | [**GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md new file mode 100644 index 0000000..a12e546 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage + +Percentage applied for the rate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage from a JSON string +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage_instance = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage_dict = get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage from a dict +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage_from_dict = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.from_dict(get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md new file mode 100644 index 0000000..b87acac --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate + +Maximum rate for which this amount is valid + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate from a JSON string +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate_instance = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate_dict = get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate from a dict +get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate_from_dict = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.from_dict(get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md index 815d807..bab5630 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **range** | **object** | ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD | [optional] -**amount** | **float** | Amount | [optional] -**amount_adult** | **float** | Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] -**amount_child** | **float** | Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md) | | [optional] +**amount_adult** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) | | [optional] +**amount_child** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) | | [optional] **amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) | Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based) | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md new file mode 100644 index 0000000..a0df3cc --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount + +Amount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md new file mode 100644 index 0000000..17ccc4a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult + +Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md new file mode 100644 index 0000000..94cb14c --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild + +Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GuestApi.md b/cloudbeds_pms_v1_3/docs/GuestApi.md index 1534578..bb0e200 100644 --- a/cloudbeds_pms_v1_3/docs/GuestApi.md +++ b/cloudbeds_pms_v1_3/docs/GuestApi.md @@ -108,7 +108,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_guest_get** -> GetGuestResponse get_guest_get(property_id=property_id, reservation_id=reservation_id, guest_id=guest_id) +> GetGuestResponse get_guest_get(property_id=property_id, reservation_id=reservation_id, guest_id=guest_id, include_guest_requirements=include_guest_requirements) getGuest @@ -151,10 +151,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. Required if no guestID is provided. (optional) guest_id = 'guest_id_example' # str | Guest ID. Required if no reservationID is provided. (optional) + include_guest_requirements = False # bool | Includes guest requirements data in the response (optional) (default to False) try: # getGuest - api_response = api_instance.get_guest_get(property_id=property_id, reservation_id=reservation_id, guest_id=guest_id) + api_response = api_instance.get_guest_get(property_id=property_id, reservation_id=reservation_id, guest_id=guest_id, include_guest_requirements=include_guest_requirements) print("The response of GuestApi->get_guest_get:\n") pprint(api_response) except Exception as e: @@ -171,6 +172,7 @@ Name | Type | Description | Notes **property_id** | **str**| Property ID | [optional] **reservation_id** | **str**| Reservation Unique Identifier. Required if no guestID is provided. | [optional] **guest_id** | **str**| Guest ID. Required if no reservationID is provided. | [optional] + **include_guest_requirements** | **bool**| Includes guest requirements data in the response | [optional] [default to False] ### Return type @@ -194,7 +196,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_guest_list_get** -> GetGuestListResponse get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) +> GetGuestListResponse get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size) getGuestList @@ -250,12 +252,13 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: sort_by = modification # str | Sort By parameter (optional) (default to modification) include_guest_info = False # bool | If API response should return with more of Guest's information (optional) (default to False) exclude_secondary_guests = False # bool | If true, response only returns main guest's (optional) (default to False) + include_guest_requirements = False # bool | Includes guest requirements data in the response (optional) (default to False) page_number = 1 # int | Results page number (optional) (default to 1) page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) try: # getGuestList - api_response = api_instance.get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, page_number=page_number, page_size=page_size) + api_response = api_instance.get_guest_list_get(property_ids=property_ids, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, status=status, sort_by=sort_by, include_guest_info=include_guest_info, exclude_secondary_guests=exclude_secondary_guests, include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size) print("The response of GuestApi->get_guest_list_get:\n") pprint(api_response) except Exception as e: @@ -285,6 +288,7 @@ Name | Type | Description | Notes **sort_by** | **str**| Sort By parameter | [optional] [default to modification] **include_guest_info** | **bool**| If API response should return with more of Guest's information | [optional] [default to False] **exclude_secondary_guests** | **bool**| If true, response only returns main guest's | [optional] [default to False] + **include_guest_requirements** | **bool**| Includes guest requirements data in the response | [optional] [default to False] **page_number** | **int**| Results page number | [optional] [default to 1] **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] @@ -584,7 +588,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_guests_modified_get** -> GetGuestsModifiedResponse get_guests_modified_get(property_ids=property_ids, in_house=in_house, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, page_number=page_number, page_size=page_size) +> GetGuestsModifiedResponse get_guests_modified_get(property_ids=property_ids, in_house=in_house, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size) getGuestsModified @@ -632,12 +636,13 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: check_in_to = '2013-10-20' # date | Filters guests result to return only guests with check-in date range ending on this date (optional) check_out_from = '2013-10-20' # date | Filters guests result to return only guests with check-out date range starting on this date (optional) check_out_to = '2013-10-20' # date | Filters guests result to return only guests with check-out date range ending on this date (optional) + include_guest_requirements = False # bool | Includes guest requirements data in the response (optional) (default to False) page_number = 1 # int | Results page number (optional) (default to 1) page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) try: # getGuestsModified - api_response = api_instance.get_guests_modified_get(property_ids=property_ids, in_house=in_house, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, page_number=page_number, page_size=page_size) + api_response = api_instance.get_guests_modified_get(property_ids=property_ids, in_house=in_house, results_from=results_from, results_to=results_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, include_guest_requirements=include_guest_requirements, page_number=page_number, page_size=page_size) print("The response of GuestApi->get_guests_modified_get:\n") pprint(api_response) except Exception as e: @@ -659,6 +664,7 @@ Name | Type | Description | Notes **check_in_to** | **date**| Filters guests result to return only guests with check-in date range ending on this date | [optional] **check_out_from** | **date**| Filters guests result to return only guests with check-out date range starting on this date | [optional] **check_out_to** | **date**| Filters guests result to return only guests with check-out date range ending on this date | [optional] + **include_guest_requirements** | **bool**| Includes guest requirements data in the response | [optional] [default to False] **page_number** | **int**| Results page number | [optional] [default to 1] **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] @@ -684,7 +690,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_guest_credit_card_post** -> PostGuestCreditCardResponse post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv) +> PostGuestCreditCardResponse post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv, validate=validate) postGuestCreditCard @@ -730,10 +736,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: card_expiry_month = 56 # int | Credit Card expiration month (optional) card_expiry_year = 56 # int | Credit Card expiration year (2 or 4 digits) (optional) card_cvv = 'card_cvv_example' # str | Credit Card CVV code (optional) + validate = True # bool | should the card be validated? If true, the card will be validated against the payment gateway. (optional) try: # postGuestCreditCard - api_response = api_instance.post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv) + api_response = api_instance.post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv, validate=validate) print("The response of GuestApi->post_guest_credit_card_post:\n") pprint(api_response) except Exception as e: @@ -753,6 +760,7 @@ Name | Type | Description | Notes **card_expiry_month** | **int**| Credit Card expiration month | [optional] **card_expiry_year** | **int**| Credit Card expiration year (2 or 4 digits) | [optional] **card_cvv** | **str**| Credit Card CVV code | [optional] + **validate** | **bool**| should the card be validated? If true, the card will be validated against the payment gateway. | [optional] ### Return type @@ -1034,7 +1042,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_guest_post** -> PostGuestResponse post_guest_post(property_id=property_id, reservation_id=reservation_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) +> PostGuestResponse post_guest_post(property_id=property_id, reservation_id=reservation_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_requirements=guest_requirements, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) postGuest @@ -1095,6 +1103,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) + guest_requirements = None # List[object] | Object with guest requirements information. (optional) custom_fields = [cloudbeds_pms_v1_3.PostGuestRequestCustomFieldsInner()] # List[PostGuestRequestCustomFieldsInner] | Only guest custom fields are allowed. (optional) guest_note = 'guest_note_example' # str | Note to be added to the Guest (optional) reservation_note = 'reservation_note_example' # str | Note to be added only to the Reservation. (optional) @@ -1104,7 +1113,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # postGuest - api_response = api_instance.post_guest_post(property_id=property_id, reservation_id=reservation_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) + api_response = api_instance.post_guest_post(property_id=property_id, reservation_id=reservation_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_requirements=guest_requirements, custom_fields=custom_fields, guest_note=guest_note, reservation_note=reservation_note, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) print("The response of GuestApi->post_guest_post:\n") pprint(api_response) except Exception as e: @@ -1138,6 +1147,7 @@ Name | Type | Description | Notes **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI) | [optional] **guest_document_issuing_country** | **str**| Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or NIE) | [optional] + **guest_requirements** | [**List[object]**](object.md)| Object with guest requirements information. | [optional] **custom_fields** | [**List[PostGuestRequestCustomFieldsInner]**](PostGuestRequestCustomFieldsInner.md)| Only guest custom fields are allowed. | [optional] **guest_note** | **str**| Note to be added to the Guest | [optional] **reservation_note** | **str**| Note to be added only to the Reservation. | [optional] @@ -1167,7 +1177,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_guests_to_room_post** -> PostGuestsToRoomResponse post_guests_to_room_post(property_id=property_id, reservation_id=reservation_id, room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, remove_all=remove_all) +> PostGuestsToRoomResponse post_guests_to_room_post(property_id=property_id, reservation_id=reservation_id, room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, remove_guest_ids_from_room=remove_guest_ids_from_room, remove_all=remove_all) postGuestsToRoom @@ -1212,11 +1222,12 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: room_id = 56 # int | Room ID already assigned to Reservation (optional) guest_ids = 'guest_ids_example' # str | Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89 (optional) remove_guest_ids = 'remove_guest_ids_example' # str | If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. (optional) + remove_guest_ids_from_room = 'remove_guest_ids_from_room_example' # str | If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter. (optional) remove_all = True # bool | If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. (optional) try: # postGuestsToRoom - api_response = api_instance.post_guests_to_room_post(property_id=property_id, reservation_id=reservation_id, room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, remove_all=remove_all) + api_response = api_instance.post_guests_to_room_post(property_id=property_id, reservation_id=reservation_id, room_id=room_id, guest_ids=guest_ids, remove_guest_ids=remove_guest_ids, remove_guest_ids_from_room=remove_guest_ids_from_room, remove_all=remove_all) print("The response of GuestApi->post_guests_to_room_post:\n") pprint(api_response) except Exception as e: @@ -1235,6 +1246,7 @@ Name | Type | Description | Notes **room_id** | **int**| Room ID already assigned to Reservation | [optional] **guest_ids** | **str**| Guest ID(s) to be assigned to room. If more than one, send as comma-separated, i.e. 37,345,89 | [optional] **remove_guest_ids** | **str**| If sent, will remove guest ID(s) before adding guests sent in guestIDs parameter. If more than one, send as comma-separated, i.e. 37,345,89. Main Guest is never removed. | [optional] + **remove_guest_ids_from_room** | **str**| If sent, will remove guest ID(s) only from the specified Room ID(s). If more than one, send as comma-separated, i.e. 37,345,89. Incompatible with removeAll parameter. | [optional] **remove_all** | **bool**| If set true, will remove all guests assigned to roomID before assigning guests sent in guestIDs parameter. Main Guest is never removed. | [optional] ### Return type @@ -1347,7 +1359,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **put_guest_put** -> PutGuestResponse put_guest_put(property_id=property_id, guest_id=guest_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) +> PutGuestResponse put_guest_put(property_id=property_id, guest_id=guest_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_requirements=guest_requirements, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) putGuest @@ -1408,6 +1420,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) + guest_requirements = None # List[object] | Object with guest requirements information. (optional) guest_custom_fields = [cloudbeds_pms_v1_3.PutGuestRequestGuestCustomFieldsInner()] # List[PutGuestRequestGuestCustomFieldsInner] | (optional) guest_company_name = 'guest_company_name_example' # str | Guest company name (optional) guest_company_tax_id = 'guest_company_tax_id_example' # str | Guest company tax ID (optional) @@ -1415,7 +1428,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # putGuest - api_response = api_instance.put_guest_put(property_id=property_id, guest_id=guest_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) + api_response = api_instance.put_guest_put(property_id=property_id, guest_id=guest_id, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_email=guest_email, guest_phone=guest_phone, guest_cell_phone=guest_cell_phone, guest_address1=guest_address1, guest_address2=guest_address2, guest_city=guest_city, guest_country=guest_country, guest_state=guest_state, guest_zip=guest_zip, guest_birth_date=guest_birth_date, guest_document_type=guest_document_type, guest_document_number=guest_document_number, guest_document_issue_date=guest_document_issue_date, guest_document_issuing_country=guest_document_issuing_country, guest_document_expiration_date=guest_document_expiration_date, guest_requirements=guest_requirements, guest_custom_fields=guest_custom_fields, guest_company_name=guest_company_name, guest_company_tax_id=guest_company_tax_id, guest_tax_id=guest_tax_id) print("The response of GuestApi->put_guest_put:\n") pprint(api_response) except Exception as e: @@ -1449,6 +1462,7 @@ Name | Type | Description | Notes **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI) | [optional] **guest_document_issuing_country** | **str**| ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or NIE) | [optional] + **guest_requirements** | [**List[object]**](object.md)| Object with guest requirements information. | [optional] **guest_custom_fields** | [**List[PutGuestRequestGuestCustomFieldsInner]**](PutGuestRequestGuestCustomFieldsInner.md)| | [optional] **guest_company_name** | **str**| Guest company name | [optional] **guest_company_tax_id** | **str**| Guest company tax ID | [optional] diff --git a/cloudbeds_pms_v1_3/docs/HouseAccountApi.md b/cloudbeds_pms_v1_3/docs/HouseAccountApi.md index edfaa84..d3a973e 100644 --- a/cloudbeds_pms_v1_3/docs/HouseAccountApi.md +++ b/cloudbeds_pms_v1_3/docs/HouseAccountApi.md @@ -4,100 +4,11 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_house_account_details_get**](HouseAccountApi.md#get_house_account_details_get) | **GET** /getHouseAccountDetails | getHouseAccountDetails [**get_house_account_list_get**](HouseAccountApi.md#get_house_account_list_get) | **GET** /getHouseAccountList | getHouseAccountList [**post_new_house_account_post**](HouseAccountApi.md#post_new_house_account_post) | **POST** /postNewHouseAccount | postNewHouseAccount [**put_house_account_status_put**](HouseAccountApi.md#put_house_account_status_put) | **PUT** /putHouseAccountStatus | putHouseAccountStatus -# **get_house_account_details_get** -> GetHouseAccountDetailsResponse get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) - -getHouseAccountDetails - -Pulls details of specific house account - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.HouseAccountApi(api_client) - house_account_id = 'house_account_id_example' # str | House Account ID to get details for - property_id = 'property_id_example' # str | Property ID (optional) - results_from = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) - results_to = '2013-10-20' # date | date\"] Inferior limit date, used to filter result records (optional) - - try: - # getHouseAccountDetails - api_response = api_instance.get_house_account_details_get(house_account_id, property_id=property_id, results_from=results_from, results_to=results_to) - print("The response of HouseAccountApi->get_house_account_details_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling HouseAccountApi->get_house_account_details_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **house_account_id** | **str**| House Account ID to get details for | - **property_id** | **str**| Property ID | [optional] - **results_from** | **date**| date\"] Inferior limit date, used to filter result records | [optional] - **results_to** | **date**| date\"] Inferior limit date, used to filter result records | [optional] - -### Return type - -[**GetHouseAccountDetailsResponse**](GetHouseAccountDetailsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_house_account_list_get** > GetHouseAccountListResponse get_house_account_list_get(property_id=property_id) diff --git a/cloudbeds_pms_v1_3/docs/PaymentApi.md b/cloudbeds_pms_v1_3/docs/PaymentApi.md index 33d1230..9b40973 100644 --- a/cloudbeds_pms_v1_3/docs/PaymentApi.md +++ b/cloudbeds_pms_v1_3/docs/PaymentApi.md @@ -8,7 +8,6 @@ Method | HTTP request | Description [**get_payments_capabilities_get**](PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities [**get_payments_get**](PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments [**get_pending_transactions_get**](PaymentApi.md#get_pending_transactions_get) | **GET** /getPendingTransactions | getPendingTransactions -[**get_transactions_get**](PaymentApi.md#get_transactions_get) | **GET** /getTransactions | getTransactions [**post_charge_post**](PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge [**post_credit_card_post**](PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard [**post_custom_payment_method_post**](PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod @@ -404,134 +403,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_transactions_get** -> GetTransactionsResponse get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) - -getTransactions - -Get a list of transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) - property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) - include_debit = True # bool | If the response should include debit transactions (optional) (default to True) - include_credit = True # bool | If the response should include credit transactions (optional) (default to True) - include_deleted = False # bool | If the response should include deleted transactions (optional) (default to False) - include_children = False # bool | If the response should include children transactions (requires the parameter transactionIDs) (optional) (default to False) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. (optional) - sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation Identifier, used to filter transactions result (optional) - room_id = 'room_id_example' # str | Room ID, used to filter transactions result (optional) - guest_id = 'guest_id_example' # str | Guest ID, used to filter transactions result (optional) - house_account_id = 'house_account_id_example' # str | House Account ID, used to filter transactions result (optional) - transaction_ids = 'transaction_ids_example' # str | List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. (optional) - results_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (posted transaction date) (optional) - results_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (posted transaction date) (optional) - modified_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (optional) - modified_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (optional) - service_date_from = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) - service_date_to = '2013-10-20' # date | Filter by the date of the service, the date that was intended the transaction to occured (optional) - created_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. (optional) - created_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. (optional) - transaction_filter = 'simple_transactions,adjustments,adjustments_voids,voids,refunds' # str | Transaction filter is used to filter transactions result (optional) (default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds') - page_number = 1 # int | Results page number (optional) (default to 1) - page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) - sort_by = 'sort_by_example' # str | Sort response results by field (optional) - order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) - - try: - # getTransactions - api_response = api_instance.get_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, service_date_from=service_date_from, service_date_to=service_date_to, created_from=created_from, created_to=created_to, transaction_filter=transaction_filter, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) - print("The response of PaymentApi->get_transactions_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->get_transactions_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] - **include_debit** | **bool**| If the response should include debit transactions | [optional] [default to True] - **include_credit** | **bool**| If the response should include credit transactions | [optional] [default to True] - **include_deleted** | **bool**| If the response should include deleted transactions | [optional] [default to False] - **include_children** | **bool**| If the response should include children transactions (requires the parameter transactionIDs) | [optional] [default to False] - **reservation_id** | **str**| Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. | [optional] - **sub_reservation_id** | **str**| Sub Reservation Identifier, used to filter transactions result | [optional] - **room_id** | **str**| Room ID, used to filter transactions result | [optional] - **guest_id** | **str**| Guest ID, used to filter transactions result | [optional] - **house_account_id** | **str**| House Account ID, used to filter transactions result | [optional] - **transaction_ids** | **str**| List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. | [optional] - **results_from** | **date**| Inferior limit date, used to filter transactions result (posted transaction date) | [optional] - **results_to** | **date**| Superior limit date, used to filter transactions result (posted transaction date) | [optional] - **modified_from** | **date**| Inferior limit date, used to filter transactions result | [optional] - **modified_to** | **date**| Superior limit date, used to filter transactions result | [optional] - **service_date_from** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] - **service_date_to** | **date**| Filter by the date of the service, the date that was intended the transaction to occured | [optional] - **created_from** | **datetime**| Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. | [optional] - **created_to** | **datetime**| Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. | [optional] - **transaction_filter** | **str**| Transaction filter is used to filter transactions result | [optional] [default to 'simple_transactions,adjustments,adjustments_voids,voids,refunds'] - **page_number** | **int**| Results page number | [optional] [default to 1] - **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] - **sort_by** | **str**| Sort response results by field | [optional] - **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] - -### Return type - -[**GetTransactionsResponse**](GetTransactionsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_charge_post** > PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) diff --git a/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md b/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md index 4d2fa69..a46fa71 100644 --- a/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md @@ -7,7 +7,7 @@ Sold product details Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] -**transaction_id** | **str** | Transaction identifier | [optional] +**external_relation_id** | **str** | Same as sold product ID in case of this endpoint. Together with external relation kind ITEM_POS it can be used to get transaction from Accounting API | [optional] **notice** | **str** | In case that a referenceID was sent, for second time, this field will alert that nothing was created or updated. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostItemResponse.md b/cloudbeds_pms_v1_3/docs/PostItemResponse.md index 5dd611b..96ae9ea 100644 --- a/cloudbeds_pms_v1_3/docs/PostItemResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostItemResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**PostItemToReservationResponseData**](PostItemToReservationResponseData.md) | | [optional] +**data** | [**PostItemResponseData**](PostItemResponseData.md) | | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostItemResponseData.md b/cloudbeds_pms_v1_3/docs/PostItemResponseData.md new file mode 100644 index 0000000..6dbe622 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostItemResponseData.md @@ -0,0 +1,35 @@ +# PostItemResponseData + +Sold product details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] +**external_relation_id** | **str** | Same as sold product ID in case of this endpoint. Together with external relation kind (ITEM) it can be used to get transaction from Accounting API | [optional] +**transaction_status** | **str** | Transaction Status is returned \"Pending\" when sale date is in the future. | [optional] +**remaining_item_quantity** | **int** | Remaining number of items in stock (if applicable) | [optional] +**reorder_needed** | **bool** | true - Whether item is at or below value set for reorder threshold. | [optional] +**stop_sell_met** | **bool** | true - Whether item is at or below value set for stop-sell threshold. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemResponseData from a JSON string +post_item_response_data_instance = PostItemResponseData.from_json(json) +# print the JSON string representation of the object +print(PostItemResponseData.to_json()) + +# convert the object into a dict +post_item_response_data_dict = post_item_response_data_instance.to_dict() +# create an instance of PostItemResponseData from a dict +post_item_response_data_from_dict = PostItemResponseData.from_dict(post_item_response_data_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/ReservationApi.md b/cloudbeds_pms_v1_3/docs/ReservationApi.md index 600bdbb..c1f9625 100644 --- a/cloudbeds_pms_v1_3/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_3/docs/ReservationApi.md @@ -364,7 +364,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_reservation_get** -> GetReservationResponse get_reservation_get(reservation_id, property_id=property_id) +> GetReservationResponse get_reservation_get(reservation_id, property_id=property_id, include_guest_requirements=include_guest_requirements) getReservation @@ -406,10 +406,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods property_id = 'property_id_example' # str | Property ID (optional) + include_guest_requirements = False # bool | Includes guest requirements data in the response. (optional) (default to False) try: # getReservation - api_response = api_instance.get_reservation_get(reservation_id, property_id=property_id) + api_response = api_instance.get_reservation_get(reservation_id, property_id=property_id, include_guest_requirements=include_guest_requirements) print("The response of ReservationApi->get_reservation_get:\n") pprint(api_response) except Exception as e: @@ -425,6 +426,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **reservation_id** | **str**| Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods | **property_id** | **str**| Property ID | [optional] + **include_guest_requirements** | **bool**| Includes guest requirements data in the response. | [optional] [default to False] ### Return type @@ -700,7 +702,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_reservations_get** -> GetReservationsResponse get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) +> GetReservationsResponse get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) getReservations @@ -750,9 +752,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: check_in_to = '2013-10-20' # date | Filters reservations result to return only reservations with check-in date range ending on this date (optional) check_out_from = '2013-10-20' # date | Filters reservations result to return only reservations with check-out date range starting on this date (optional) check_out_to = '2013-10-20' # date | Filters reservations result to return only reservations with check-out date range ending on this date (optional) + dates_query_mode = booking # str | If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. (optional) (default to booking) room_id = 'room_id_example' # str | Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. (optional) room_name = 'room_name_example' # str | Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. (optional) include_guests_details = False # bool | If guests details should be included or not (optional) (default to False) + include_guest_requirements = False # bool | Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. (optional) (default to False) include_custom_fields = False # bool | If reservation custom fields should be included or not (optional) (default to False) include_all_rooms = False # bool | When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. (optional) (default to False) source_id = 'source_id_example' # str | Filters reservation with the supplied source ID. (optional) @@ -767,7 +771,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # getReservations - api_response = api_instance.get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) + api_response = api_instance.get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) print("The response of ReservationApi->get_reservations_get:\n") pprint(api_response) except Exception as e: @@ -791,9 +795,11 @@ Name | Type | Description | Notes **check_in_to** | **date**| Filters reservations result to return only reservations with check-in date range ending on this date | [optional] **check_out_from** | **date**| Filters reservations result to return only reservations with check-out date range starting on this date | [optional] **check_out_to** | **date**| Filters reservations result to return only reservations with check-out date range ending on this date | [optional] + **dates_query_mode** | **str**| If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. | [optional] [default to booking] **room_id** | **str**| Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. | [optional] **room_name** | **str**| Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. | [optional] **include_guests_details** | **bool**| If guests details should be included or not | [optional] [default to False] + **include_guest_requirements** | **bool**| Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. | [optional] [default to False] **include_custom_fields** | **bool**| If reservation custom fields should be included or not | [optional] [default to False] **include_all_rooms** | **bool**| When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. | [optional] [default to False] **source_id** | **str**| Filters reservation with the supplied source ID. | [optional] @@ -828,7 +834,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_reservations_with_rate_details_get** -> GetReservationsWithRateDetailsResponse get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, page_number=page_number, page_size=page_size) +> GetReservationsWithRateDetailsResponse get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, page_number=page_number, page_size=page_size) getReservationsWithRateDetails @@ -879,12 +885,15 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: reservation_check_out_to = '2013-10-20' # date | Superior limit datetime, used to filter reservations, based on reservation check-out date. (optional) include_deleted = False # bool | Include deleted reservations (optional) (default to False) exclude_statuses = 'exclude_statuses_example' # str | List of statuses (separated by comma) to be excluded from search (optional) + include_guests_details = False # bool | If guests details should be included or not (optional) (default to False) + include_guest_requirements = False # bool | Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. (optional) (default to False) + include_custom_fields = False # bool | If reservation custom fields should be included or not (optional) (default to False) page_number = 1 # int | Results page number (optional) (default to 1) page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) try: # getReservationsWithRateDetails - api_response = api_instance.get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, page_number=page_number, page_size=page_size) + api_response = api_instance.get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, page_number=page_number, page_size=page_size) print("The response of ReservationApi->get_reservations_with_rate_details_get:\n") pprint(api_response) except Exception as e: @@ -909,6 +918,9 @@ Name | Type | Description | Notes **reservation_check_out_to** | **date**| Superior limit datetime, used to filter reservations, based on reservation check-out date. | [optional] **include_deleted** | **bool**| Include deleted reservations | [optional] [default to False] **exclude_statuses** | **str**| List of statuses (separated by comma) to be excluded from search | [optional] + **include_guests_details** | **bool**| If guests details should be included or not | [optional] [default to False] + **include_guest_requirements** | **bool**| Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. | [optional] [default to False] + **include_custom_fields** | **bool**| If reservation custom fields should be included or not | [optional] [default to False] **page_number** | **int**| Results page number | [optional] [default to 1] **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] @@ -1266,7 +1278,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_reservation_note_post** -> PostReservationNoteResponse post_reservation_note_post(property_id=property_id, reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id) +> PostReservationNoteResponse post_reservation_note_post(property_id=property_id, reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id, date_created=date_created) postReservationNote @@ -1310,10 +1322,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) reservation_note = 'reservation_note_example' # str | Note to be added to reservation (optional) user_id = 'user_id_example' # str | User ID Identify the actual user that is posting the note (optional) + date_created = '2013-10-20T19:20:30+01:00' # datetime | Datetime the note was created. (optional) try: # postReservationNote - api_response = api_instance.post_reservation_note_post(property_id=property_id, reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id) + api_response = api_instance.post_reservation_note_post(property_id=property_id, reservation_id=reservation_id, reservation_note=reservation_note, user_id=user_id, date_created=date_created) print("The response of ReservationApi->post_reservation_note_post:\n") pprint(api_response) except Exception as e: @@ -1331,6 +1344,7 @@ Name | Type | Description | Notes **reservation_id** | **str**| Reservation Unique Identifier | [optional] **reservation_note** | **str**| Note to be added to reservation | [optional] **user_id** | **str**| User ID Identify the actual user that is posting the note | [optional] + **date_created** | **datetime**| Datetime the note was created. | [optional] ### Return type @@ -1354,7 +1368,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_reservation_post** -> PostReservationResponse post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation) +> PostReservationResponse post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation) postReservation @@ -1410,6 +1424,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: guest_zip = 'guest_zip_example' # str | ZIP Code (optional) guest_email = 'guest_email_example' # str | Guest email (optional) guest_phone = 'guest_phone_example' # str | Guest main phone number (optional) + guest_requirements = None # List[object] | Object with guest requirements information. (optional) estimated_arrival_time = 'estimated_arrival_time_example' # str | Estimated Arrival Time, 24-hour format. (optional) rooms = [cloudbeds_pms_v1_3.PostReservationRequestRoomsInner()] # List[PostReservationRequestRoomsInner] | Array with quantity of rooms (optional) adults = [cloudbeds_pms_v1_3.PostReservationRequestAdultsInner()] # List[PostReservationRequestAdultsInner] | Array with number of adults (optional) @@ -1426,7 +1441,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # postReservation - api_response = api_instance.post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation) + api_response = api_instance.post_reservation_post(property_id=property_id, source_id=source_id, third_party_identifier=third_party_identifier, start_date=start_date, end_date=end_date, guest_first_name=guest_first_name, guest_last_name=guest_last_name, guest_gender=guest_gender, guest_country=guest_country, guest_zip=guest_zip, guest_email=guest_email, guest_phone=guest_phone, guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, rooms=rooms, adults=adults, children=children, payment_method=payment_method, card_token=card_token, payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, promo_code=promo_code, allotment_block_code=allotment_block_code, group_code=group_code, date_created=date_created, send_email_confirmation=send_email_confirmation) print("The response of ReservationApi->post_reservation_post:\n") pprint(api_response) except Exception as e: @@ -1452,6 +1467,7 @@ Name | Type | Description | Notes **guest_zip** | **str**| ZIP Code | [optional] **guest_email** | **str**| Guest email | [optional] **guest_phone** | **str**| Guest main phone number | [optional] + **guest_requirements** | [**List[object]**](object.md)| Object with guest requirements information. | [optional] **estimated_arrival_time** | **str**| Estimated Arrival Time, 24-hour format. | [optional] **rooms** | [**List[PostReservationRequestRoomsInner]**](PostReservationRequestRoomsInner.md)| Array with quantity of rooms | [optional] **adults** | [**List[PostReservationRequestAdultsInner]**](PostReservationRequestAdultsInner.md)| Array with number of adults | [optional] diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index 191ffad..0a00708 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -589,7 +589,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_rooms_get** -> GetRoomsResponse get_rooms_get(room_type_id, room_type_name_short, property_ids=property_ids, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) +> GetRoomsResponse get_rooms_get(property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) getRooms @@ -629,9 +629,9 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) - room_type_id = 'room_type_id_example' # str | Room type ID, comma-separated, i.e. 37,345,89 - room_type_name_short = 'room_type_name_short_example' # str | Room Type (short-version) property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 (optional) + room_type_id = 'room_type_id_example' # str | Room type ID, comma-separated, i.e. 37,345,89 (optional) + room_type_name_short = 'room_type_name_short_example' # str | Room Type (short-version) (optional) start_date = '2013-10-20' # date | Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. (optional) end_date = '2013-10-20' # date | Final stay date. Necessary if startDate is sent. (optional) include_room_relations = 0 # int | Determines whether room relations info should be included in the response (optional) (default to 0) @@ -640,7 +640,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # getRooms - api_response = api_instance.get_rooms_get(room_type_id, room_type_name_short, property_ids=property_ids, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) + api_response = api_instance.get_rooms_get(property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) print("The response of RoomApi->get_rooms_get:\n") pprint(api_response) except Exception as e: @@ -654,9 +654,9 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **room_type_id** | **str**| Room type ID, comma-separated, i.e. 37,345,89 | - **room_type_name_short** | **str**| Room Type (short-version) | **property_ids** | **str**| Property ID list, comma-separated, i.e. 37,345,89 | [optional] + **room_type_id** | **str**| Room type ID, comma-separated, i.e. 37,345,89 | [optional] + **room_type_name_short** | **str**| Room Type (short-version) | [optional] **start_date** | **date**| Initial stay date. If sent, only returns unassigned rooms in this period. If not sent, will return all rooms available in property. Necessary if endDate is sent. | [optional] **end_date** | **date**| Final stay date. Necessary if startDate is sent. | [optional] **include_room_relations** | **int**| Determines whether room relations info should be included in the response | [optional] [default to 0] @@ -767,7 +767,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_room_assign_post** -> PostRoomAssignResponse post_room_assign_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, override_rates=override_rates, adjust_price=adjust_price) +> PostRoomAssignResponse post_room_assign_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, reservation_room_id=reservation_room_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, override_rates=override_rates, adjust_price=adjust_price) postRoomAssign @@ -810,15 +810,16 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation identifier (optional) - new_room_id = 'new_room_id_example' # str | Room ID of the room that will be assigned. (optional) - room_type_id = 'room_type_id_example' # str | Room Type ID of the room that will be assigned. Need to be informed in case of assignment. (optional) - old_room_id = 'old_room_id_example' # str | Room ID of the room that was assigned. Need to be informed in case of reassignment. (optional) + reservation_room_id = 'reservation_room_id_example' # str | Reservation room ID. Must be set if you want to unassign a room. (optional) + new_room_id = 'new_room_id_example' # str | Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room. (optional) + room_type_id = 'room_type_id_example' # str | Room Type ID of the room that will be assigned. Need to be provided in case of assignment. (optional) + old_room_id = 'old_room_id_example' # str | Room ID of the room that was assigned. Need to be provided in case of reassignment. (optional) override_rates = False # bool | Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. (optional) (default to False) adjust_price = False # bool | If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value. (optional) (default to False) try: # postRoomAssign - api_response = api_instance.post_room_assign_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, override_rates=override_rates, adjust_price=adjust_price) + api_response = api_instance.post_room_assign_post(property_id=property_id, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, reservation_room_id=reservation_room_id, new_room_id=new_room_id, room_type_id=room_type_id, old_room_id=old_room_id, override_rates=override_rates, adjust_price=adjust_price) print("The response of RoomApi->post_room_assign_post:\n") pprint(api_response) except Exception as e: @@ -835,9 +836,10 @@ Name | Type | Description | Notes **property_id** | **str**| Property ID | [optional] **reservation_id** | **str**| Reservation identifier | [optional] **sub_reservation_id** | **str**| Sub Reservation identifier | [optional] - **new_room_id** | **str**| Room ID of the room that will be assigned. | [optional] - **room_type_id** | **str**| Room Type ID of the room that will be assigned. Need to be informed in case of assignment. | [optional] - **old_room_id** | **str**| Room ID of the room that was assigned. Need to be informed in case of reassignment. | [optional] + **reservation_room_id** | **str**| Reservation room ID. Must be set if you want to unassign a room. | [optional] + **new_room_id** | **str**| Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room. | [optional] + **room_type_id** | **str**| Room Type ID of the room that will be assigned. Need to be provided in case of assignment. | [optional] + **old_room_id** | **str**| Room ID of the room that was assigned. Need to be provided in case of reassignment. | [optional] **override_rates** | **bool**| Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment. | [optional] [default to False] **adjust_price** | **bool**| If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value. | [optional] [default to False] diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index 337f2eb..a1cb91b 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -20,10 +20,6 @@ from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse -from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData -from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse -from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner @@ -98,10 +94,6 @@ from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse @@ -178,11 +170,13 @@ from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner @@ -221,10 +215,13 @@ from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner -from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse -from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse @@ -310,6 +307,7 @@ from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData diff --git a/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py index d3559bc..63af086 100644 --- a/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py @@ -64,8 +64,8 @@ def displayed_validate_enum(cls, value): return value for i in value: - if i not in set([]): - raise ValueError("each list item must be one of ()") + if i not in set(['reservation', 'booking', 'card']): + raise ValueError("each list item must be one of ('reservation', 'booking', 'card')") return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py index 9772cb9..5a0a36f 100644 --- a/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py +++ b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py @@ -57,11 +57,12 @@ class GetGuestListResponseDataValue(BaseModel): company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") company_name: Optional[StrictStr] = Field(default=None, description="Company name", alias="companyName") guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") + guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") guest_notes: Optional[List[GetGuestListResponseDataValueGuestNotesInner]] = Field(default=None, description="Guest Notes", alias="guestNotes") status: Optional[StrictStr] = Field(default=None, description="Reservation status
in_progress - Reservation is pending confirmation
confirmed - Reservation is confirmed
not_confirmed - Reservation not passed confirmation
canceled - Reservation is canceled
checked_in - Guest is in hotel
checked_out - Guest already left hotel
no_show - Guest didn't showed up on check-in date") is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") - __properties: ClassVar[List[str]] = ["reservationID", "guestName", "guestEmail", "guestID", "dateCreated", "dateModified", "isMainGuest", "isAnonymized", "guestFirstName", "guestLastName", "guestGender", "guestPhone", "guestCellPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "guestOptIn", "guestNotes", "status", "isMerged", "newGuestID"] + __properties: ClassVar[List[str]] = ["reservationID", "guestName", "guestEmail", "guestID", "dateCreated", "dateModified", "isMainGuest", "isAnonymized", "guestFirstName", "guestLastName", "guestGender", "guestPhone", "guestCellPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "guestOptIn", "guestRequirements", "guestNotes", "status", "isMerged", "newGuestID"] @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): @@ -234,6 +235,11 @@ def to_dict(self) -> Dict[str, Any]: if self.guest_opt_in is None and "guest_opt_in" in self.model_fields_set: _dict['guestOptIn'] = None + # set to None if guest_requirements (nullable) is None + # and model_fields_set contains the field + if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: + _dict['guestRequirements'] = None + # set to None if guest_notes (nullable) is None # and model_fields_set contains the field if self.guest_notes is None and "guest_notes" in self.model_fields_set: @@ -285,6 +291,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "companyTaxID": obj.get("companyTaxID"), "companyName": obj.get("companyName"), "guestOptIn": obj.get("guestOptIn"), + "guestRequirements": obj.get("guestRequirements"), "guestNotes": [GetGuestListResponseDataValueGuestNotesInner.from_dict(_item) for _item in obj["guestNotes"]] if obj.get("guestNotes") is not None else None, "status": obj.get("status"), "isMerged": obj.get("isMerged"), diff --git a/cloudbeds_pms_v1_3/models/get_guest_response_data.py b/cloudbeds_pms_v1_3/models/get_guest_response_data.py index 9efe3c4..7c6c1e7 100644 --- a/cloudbeds_pms_v1_3/models/get_guest_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data.py @@ -49,6 +49,7 @@ class GetGuestResponseData(BaseModel): document_issuing_country: Optional[StrictStr] = Field(default=None, description="Document Issuing Country (2-digits code)", alias="documentIssuingCountry") document_expiration_date: Optional[GetGuestResponseDataDocumentExpirationDate] = Field(default=None, alias="documentExpirationDate") custom_fields: Optional[List[GetGuestResponseDataCustomFieldsInner]] = Field(default=None, alias="customFields") + guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") special_requests: Optional[StrictStr] = Field(default=None, description="Special requests made by the guest at the time of the booking", alias="specialRequests") tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") @@ -57,7 +58,7 @@ class GetGuestResponseData(BaseModel): guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") - __properties: ClassVar[List[str]] = ["firstName", "lastName", "gender", "email", "phone", "cellPhone", "country", "address", "address2", "city", "zip", "state", "birthDate", "documentType", "documentNumber", "documentIssueDate", "documentIssuingCountry", "documentExpirationDate", "customFields", "specialRequests", "taxID", "companyTaxID", "companyName", "isAnonymized", "guestOptIn", "isMerged", "newGuestID"] + __properties: ClassVar[List[str]] = ["firstName", "lastName", "gender", "email", "phone", "cellPhone", "country", "address", "address2", "city", "zip", "state", "birthDate", "documentType", "documentNumber", "documentIssueDate", "documentIssuingCountry", "documentExpirationDate", "customFields", "guestRequirements", "specialRequests", "taxID", "companyTaxID", "companyName", "isAnonymized", "guestOptIn", "isMerged", "newGuestID"] @field_validator('gender') def gender_validate_enum(cls, value): @@ -124,6 +125,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_custom_fields: _items.append(_item_custom_fields.to_dict()) _dict['customFields'] = _items + # set to None if guest_requirements (nullable) is None + # and model_fields_set contains the field + if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: + _dict['guestRequirements'] = None + # set to None if tax_id (nullable) is None # and model_fields_set contains the field if self.tax_id is None and "tax_id" in self.model_fields_set: @@ -170,6 +176,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "documentIssuingCountry": obj.get("documentIssuingCountry"), "documentExpirationDate": GetGuestResponseDataDocumentExpirationDate.from_dict(obj["documentExpirationDate"]) if obj.get("documentExpirationDate") is not None else None, "customFields": [GetGuestResponseDataCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "guestRequirements": obj.get("guestRequirements"), "specialRequests": obj.get("specialRequests"), "taxID": obj.get("taxID"), "companyTaxID": obj.get("companyTaxID"), diff --git a/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py index 27b615d..946819b 100644 --- a/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py @@ -53,6 +53,7 @@ class GetGuestsModifiedResponseDataInner(BaseModel): guest_document_expiration_date: Optional[date] = Field(default=None, description="Document Expiration Date", alias="guestDocumentExpirationDate") start_date: Optional[datetime] = Field(default=None, description="Check-in date", alias="startDate") end_date: Optional[datetime] = Field(default=None, description="Check-out date", alias="endDate") + guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of custom fields", alias="customFields") date_modified: Optional[datetime] = Field(default=None, description="Guest modification date", alias="dateModified") tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") @@ -62,7 +63,7 @@ class GetGuestsModifiedResponseDataInner(BaseModel): guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") new_guest_id: Optional[StrictStr] = Field(default=None, description="Merged guest ID", alias="newGuestID") - __properties: ClassVar[List[str]] = ["guestID", "reservationID", "roomTypeID", "roomID", "roomName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "startDate", "endDate", "customFields", "dateModified", "taxID", "companyTaxID", "companyName", "isAnonymized", "guestOptIn", "isMerged", "newGuestID"] + __properties: ClassVar[List[str]] = ["guestID", "reservationID", "roomTypeID", "roomID", "roomName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "startDate", "endDate", "guestRequirements", "customFields", "dateModified", "taxID", "companyTaxID", "companyName", "isAnonymized", "guestOptIn", "isMerged", "newGuestID"] @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): @@ -120,6 +121,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_custom_fields: _items.append(_item_custom_fields.to_dict()) _dict['customFields'] = _items + # set to None if guest_requirements (nullable) is None + # and model_fields_set contains the field + if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: + _dict['guestRequirements'] = None + # set to None if tax_id (nullable) is None # and model_fields_set contains the field if self.tax_id is None and "tax_id" in self.model_fields_set: @@ -172,6 +178,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), + "guestRequirements": obj.get("guestRequirements"), "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, "dateModified": obj.get("dateModified"), "taxID": obj.get("taxID"), diff --git a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py index fc3d15d..a8627bf 100644 --- a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py @@ -29,7 +29,9 @@ class GetHotelDetailsResponseDataPropertyCurrency(BaseModel): currency_code: Optional[StrictStr] = Field(default=None, description="Currency code", alias="currencyCode") currency_symbol: Optional[StrictStr] = Field(default=None, description="Currency symbol", alias="currencySymbol") currency_position: Optional[StrictStr] = Field(default=None, description="Currency position", alias="currencyPosition") - __properties: ClassVar[List[str]] = ["currencyCode", "currencySymbol", "currencyPosition"] + currency_decimal_separator: Optional[StrictStr] = Field(default=None, description="Currency decimal separator", alias="currencyDecimalSeparator") + currency_thousands_separator: Optional[StrictStr] = Field(default=None, description="Currency thousands separator", alias="currencyThousandsSeparator") + __properties: ClassVar[List[str]] = ["currencyCode", "currencySymbol", "currencyPosition", "currencyDecimalSeparator", "currencyThousandsSeparator"] @field_validator('currency_position') def currency_position_validate_enum(cls, value): @@ -94,7 +96,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "currencyCode": obj.get("currencyCode"), "currencySymbol": obj.get("currencySymbol"), - "currencyPosition": obj.get("currencyPosition") + "currencyPosition": obj.get("currencyPosition"), + "currencyDecimalSeparator": obj.get("currencyDecimalSeparator"), + "currencyThousandsSeparator": obj.get("currencyThousandsSeparator") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_invoice_response_data.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data.py index e4f91fb..50a9c42 100644 --- a/cloudbeds_pms_v1_3/models/get_invoice_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_invoice_response_data.py @@ -31,6 +31,7 @@ class GetInvoiceResponseData(BaseModel): Invoice details """ # noqa: E501 invoice_id: Optional[StrictStr] = Field(default=None, description="Unique invoice ID", alias="invoiceID") + user_id: Optional[StrictStr] = Field(default=None, description="Unique ID of User who generated invoice", alias="userID") reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier", alias="reservationID") prefix: Optional[StrictStr] = Field(default=None, description="Invoice ID prefix") number: Optional[StrictInt] = Field(default=None, description="Invoice ID number") @@ -41,7 +42,7 @@ class GetInvoiceResponseData(BaseModel): items: Optional[List[GetInvoiceResponseDataItemsInner]] = Field(default=None, description="Invoice items") taxes: Optional[List[GetInvoiceResponseDataItemsInnerTaxesInner]] = None fees: Optional[List[GetInvoiceResponseDataItemsInnerFeesInner]] = None - __properties: ClassVar[List[str]] = ["invoiceID", "reservationID", "prefix", "number", "suffix", "documentIssueDate", "status", "billedTo", "items", "taxes", "fees"] + __properties: ClassVar[List[str]] = ["invoiceID", "userID", "reservationID", "prefix", "number", "suffix", "documentIssueDate", "status", "billedTo", "items", "taxes", "fees"] model_config = ConfigDict( populate_by_name=True, @@ -119,6 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "invoiceID": obj.get("invoiceID"), + "userID": obj.get("userID"), "reservationID": obj.get("reservationID"), "prefix": obj.get("prefix"), "number": obj.get("number"), diff --git a/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py index 8762bff..4b681f0 100644 --- a/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py @@ -65,8 +65,8 @@ def days_of_week_validate_enum(cls, value): return value for i in value: - if i not in set([]): - raise ValueError("each list item must be one of ()") + if i not in set(['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']): + raise ValueError("each list item must be one of ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat')") return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py index c2845eb..95082fe 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py @@ -54,7 +54,8 @@ class GetReservationInvoiceInformationResponseDataInner(BaseModel): balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance currently owed") balance_detailed: Optional[List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on PC app, describing the financial items calculated", alias="balanceDetailed") reservation_origin: Optional[StrictStr] = Field(default=None, description="Reservation Origin", alias="reservationOrigin") - __properties: ClassVar[List[str]] = ["status", "customFields", "mainGuestDetails", "reservationRooms", "reservationRoomsTotal", "reservationAdjustments", "reservationAdjustmentsTotal", "reservationPayments", "reservationAdditionalProducts", "reservationAdditionalProductsTotal", "reservationAddOnProducts", "reservationAddOnProductsTotal", "reservationTaxes", "reservationTaxesTotal", "reservationFees", "reservationFeesTotal", "balance", "balanceDetailed", "reservationOrigin"] + reservation_meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation Meal Plans", alias="reservationMealPlans") + __properties: ClassVar[List[str]] = ["status", "customFields", "mainGuestDetails", "reservationRooms", "reservationRoomsTotal", "reservationAdjustments", "reservationAdjustmentsTotal", "reservationPayments", "reservationAdditionalProducts", "reservationAdditionalProductsTotal", "reservationAddOnProducts", "reservationAddOnProductsTotal", "reservationTaxes", "reservationTaxesTotal", "reservationFees", "reservationFeesTotal", "balance", "balanceDetailed", "reservationOrigin", "reservationMealPlans"] @field_validator('status') def status_validate_enum(cls, value): @@ -205,7 +206,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reservationFeesTotal": obj.get("reservationFeesTotal"), "balance": obj.get("balance"), "balanceDetailed": [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, - "reservationOrigin": obj.get("reservationOrigin") + "reservationOrigin": obj.get("reservationOrigin"), + "reservationMealPlans": obj.get("reservationMealPlans") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py index 17f0ab2..eb1f638 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py @@ -38,7 +38,9 @@ class GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(Bas room_id: Optional[StrictStr] = Field(default=None, description="Unique ID of the room", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Name of the room", alias="roomName") room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") - __properties: ClassVar[List[str]] = ["roomTypeName", "guestName", "startDate", "endDate", "adults", "children", "nights", "roomTotal", "roomID", "roomName", "roomTypeID"] + market_name: Optional[StrictStr] = Field(default=None, description="Market segmentation name", alias="marketName") + market_code: Optional[StrictStr] = Field(default=None, description="Market segmentation code", alias="marketCode") + __properties: ClassVar[List[str]] = ["roomTypeName", "guestName", "startDate", "endDate", "adults", "children", "nights", "roomTotal", "roomID", "roomName", "roomTypeID", "marketName", "marketCode"] model_config = ConfigDict( populate_by_name=True, @@ -101,7 +103,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "roomTotal": obj.get("roomTotal"), "roomID": obj.get("roomID"), "roomName": obj.get("roomName"), - "roomTypeID": obj.get("roomTypeID") + "roomTypeID": obj.get("roomTypeID"), + "marketName": obj.get("marketName"), + "marketCode": obj.get("marketCode") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data.py index 43e6ea5..48e4cd6 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue @@ -49,7 +49,7 @@ class GetReservationResponseData(BaseModel): status: Optional[StrictStr] = Field(default=None, description="Reservation status
'not_confirmed' - Reservation is pending confirmation
'confirmed' - Reservation is confirmed
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date") total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total price of the booking") balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance currently owed") - balance_detailed: Optional[List[GetReservationResponseDataBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on PC app, describing the financial items calculated", alias="balanceDetailed") + balance_detailed: Optional[GetReservationResponseDataBalanceDetailed] = Field(default=None, alias="balanceDetailed") assigned: Optional[List[GetReservationResponseDataAssignedInner]] = Field(default=None, description="Assigned Rooms information") unassigned: Optional[List[GetReservationResponseDataUnassignedInner]] = Field(default=None, description="Unassigned Rooms information") cards_on_file: Optional[List[GetReservationResponseDataCardsOnFileInner]] = Field(default=None, description="Credit Cards stored for the reservation", alias="cardsOnFile") @@ -60,7 +60,8 @@ class GetReservationResponseData(BaseModel): channel_provided_credit_card: Optional[StrictBool] = Field(default=None, description="Whether a credit card was provided by the channel. Only included for reservations originating from OTAs.", alias="channelProvidedCreditCard") group_inventory: Optional[List[GetReservationResponseDataGroupInventoryInner]] = Field(default=None, description="Aggregate allotment block information", alias="groupInventory") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") - __properties: ClassVar[List[str]] = ["propertyID", "guestName", "guestEmail", "isAnonymized", "guestList", "reservationID", "dateCreated", "dateModified", "estimatedArrivalTime", "source", "sourceID", "thirdPartyIdentifier", "status", "total", "balance", "balanceDetailed", "assigned", "unassigned", "cardsOnFile", "customFields", "startDate", "endDate", "allotmentBlockCode", "channelProvidedCreditCard", "groupInventory", "origin"] + meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation Meal Plans", alias="mealPlans") + __properties: ClassVar[List[str]] = ["propertyID", "guestName", "guestEmail", "isAnonymized", "guestList", "reservationID", "dateCreated", "dateModified", "estimatedArrivalTime", "source", "sourceID", "thirdPartyIdentifier", "status", "total", "balance", "balanceDetailed", "assigned", "unassigned", "cardsOnFile", "customFields", "startDate", "endDate", "allotmentBlockCode", "channelProvidedCreditCard", "groupInventory", "origin", "mealPlans"] @field_validator('status') def status_validate_enum(cls, value): @@ -118,13 +119,9 @@ def to_dict(self) -> Dict[str, Any]: if self.guest_list[_key_guest_list]: _field_dict[_key_guest_list] = self.guest_list[_key_guest_list].to_dict() _dict['guestList'] = _field_dict - # override the default output from pydantic by calling `to_dict()` of each item in balance_detailed (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of balance_detailed if self.balance_detailed: - for _item_balance_detailed in self.balance_detailed: - if _item_balance_detailed: - _items.append(_item_balance_detailed.to_dict()) - _dict['balanceDetailed'] = _items + _dict['balanceDetailed'] = self.balance_detailed.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in assigned (list) _items = [] if self.assigned: @@ -212,7 +209,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "total": obj.get("total"), "balance": obj.get("balance"), - "balanceDetailed": [GetReservationResponseDataBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, + "balanceDetailed": GetReservationResponseDataBalanceDetailed.from_dict(obj["balanceDetailed"]) if obj.get("balanceDetailed") is not None else None, "assigned": [GetReservationResponseDataAssignedInner.from_dict(_item) for _item in obj["assigned"]] if obj.get("assigned") is not None else None, "unassigned": [GetReservationResponseDataUnassignedInner.from_dict(_item) for _item in obj["unassigned"]] if obj.get("unassigned") is not None else None, "cardsOnFile": [GetReservationResponseDataCardsOnFileInner.from_dict(_item) for _item in obj["cardsOnFile"]] if obj.get("cardsOnFile") is not None else None, @@ -222,7 +219,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allotmentBlockCode": obj.get("allotmentBlockCode"), "channelProvidedCreditCard": obj.get("channelProvidedCreditCard"), "groupInventory": [GetReservationResponseDataGroupInventoryInner.from_dict(_item) for _item in obj["groupInventory"]] if obj.get("groupInventory") is not None else None, - "origin": obj.get("origin") + "origin": obj.get("origin"), + "mealPlans": obj.get("mealPlans") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py index 9b3f528..53fe247 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_assigned_inner.py @@ -18,8 +18,8 @@ import json from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner from typing import Optional, Set from typing_extensions import Self @@ -28,6 +28,7 @@ class GetReservationResponseDataAssignedInner(BaseModel): """ GetReservationResponseDataAssignedInner """ # noqa: E501 + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID", alias="reservationRoomID") room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the assigned room type", alias="roomTypeName") room_type_name_short: Optional[StrictStr] = Field(default=None, description="Short name of the assigned room type", alias="roomTypeNameShort") room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") @@ -41,8 +42,10 @@ class GetReservationResponseDataAssignedInner(BaseModel): adults: Optional[StrictStr] = Field(default=None, description="Number of adult staying in the room") children: Optional[StrictStr] = Field(default=None, description="Number of children staying in the room") daily_rates: Optional[List[GetReservationResponseDataAssignedInnerDailyRatesInner]] = Field(default=None, description="Array with rates detailed by day", alias="dailyRates") - room_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Room total rate", alias="roomTotal") - __properties: ClassVar[List[str]] = ["roomTypeName", "roomTypeNameShort", "roomTypeIsVirtual", "dormRoomName", "roomTypeID", "subReservationID", "roomName", "roomID", "startDate", "endDate", "adults", "children", "dailyRates", "roomTotal"] + room_total: Optional[StrictStr] = Field(default=None, description="Room total rate", alias="roomTotal") + market_name: Optional[StrictStr] = Field(default=None, description="Market segmentation name", alias="marketName") + market_code: Optional[StrictStr] = Field(default=None, description="Market segmentation code", alias="marketCode") + __properties: ClassVar[List[str]] = ["reservationRoomID", "roomTypeName", "roomTypeNameShort", "roomTypeIsVirtual", "dormRoomName", "roomTypeID", "subReservationID", "roomName", "roomID", "startDate", "endDate", "adults", "children", "dailyRates", "roomTotal", "marketName", "marketCode"] model_config = ConfigDict( populate_by_name=True, @@ -107,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "reservationRoomID": obj.get("reservationRoomID"), "roomTypeName": obj.get("roomTypeName"), "roomTypeNameShort": obj.get("roomTypeNameShort"), "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), @@ -120,7 +124,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "adults": obj.get("adults"), "children": obj.get("children"), "dailyRates": [GetReservationResponseDataAssignedInnerDailyRatesInner.from_dict(_item) for _item in obj["dailyRates"]] if obj.get("dailyRates") is not None else None, - "roomTotal": obj.get("roomTotal") + "roomTotal": obj.get("roomTotal"), + "marketName": obj.get("marketName"), + "marketCode": obj.get("marketCode") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed.py new file mode 100644 index 0000000..6ca9614 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETRESERVATIONRESPONSEDATABALANCEDETAILED_ONE_OF_SCHEMAS = ["GetReservationResponseDataBalanceDetailedOneOf", "List[GetReservationResponseDataBalanceDetailedOneOf]"] + +class GetReservationResponseDataBalanceDetailed(BaseModel): + """ + Reservation balance detailed with the information available on PC app, describing the financial items calculated + """ + # data type: GetReservationResponseDataBalanceDetailedOneOf + oneof_schema_1_validator: Optional[GetReservationResponseDataBalanceDetailedOneOf] = None + # data type: List[GetReservationResponseDataBalanceDetailedOneOf] + oneof_schema_2_validator: Optional[List[GetReservationResponseDataBalanceDetailedOneOf]] = None + actual_instance: Optional[Union[GetReservationResponseDataBalanceDetailedOneOf, List[GetReservationResponseDataBalanceDetailedOneOf]]] = None + one_of_schemas: Set[str] = { "GetReservationResponseDataBalanceDetailedOneOf", "List[GetReservationResponseDataBalanceDetailedOneOf]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetReservationResponseDataBalanceDetailed.model_construct() + error_messages = [] + match = 0 + # validate data type: GetReservationResponseDataBalanceDetailedOneOf + if not isinstance(v, GetReservationResponseDataBalanceDetailedOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetReservationResponseDataBalanceDetailedOneOf`") + else: + match += 1 + # validate data type: List[GetReservationResponseDataBalanceDetailedOneOf] + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetReservationResponseDataBalanceDetailed with oneOf schemas: GetReservationResponseDataBalanceDetailedOneOf, List[GetReservationResponseDataBalanceDetailedOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetReservationResponseDataBalanceDetailed with oneOf schemas: GetReservationResponseDataBalanceDetailedOneOf, List[GetReservationResponseDataBalanceDetailedOneOf]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into GetReservationResponseDataBalanceDetailedOneOf + try: + instance.actual_instance = GetReservationResponseDataBalanceDetailedOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[GetReservationResponseDataBalanceDetailedOneOf] + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetReservationResponseDataBalanceDetailed with oneOf schemas: GetReservationResponseDataBalanceDetailedOneOf, List[GetReservationResponseDataBalanceDetailedOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetReservationResponseDataBalanceDetailed with oneOf schemas: GetReservationResponseDataBalanceDetailedOneOf, List[GetReservationResponseDataBalanceDetailedOneOf]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetReservationResponseDataBalanceDetailedOneOf, List[GetReservationResponseDataBalanceDetailedOneOf]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_one_of.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_one_of.py new file mode 100644 index 0000000..e26e380 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_one_of.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationResponseDataBalanceDetailedOneOf(BaseModel): + """ + GetReservationResponseDataBalanceDetailedOneOf + """ # noqa: E501 + suggested_deposit: Optional[StrictStr] = Field(default=None, description="Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid", alias="suggestedDeposit") + sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the room prices on the reservation", alias="subTotal") + additional_items: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the additional items recorded on the reservation", alias="additionalItems") + taxes_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the taxes and fees calculated on the reservation", alias="taxesFees") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of sub.Total + additionalItems + taxesFees", alias="grandTotal") + paid: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount paid (reservation deposit + any other extra payment)") + __properties: ClassVar[List[str]] = ["suggestedDeposit", "subTotal", "additionalItems", "taxesFees", "grandTotal", "paid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationResponseDataBalanceDetailedOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationResponseDataBalanceDetailedOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "suggestedDeposit": obj.get("suggestedDeposit"), + "subTotal": obj.get("subTotal"), + "additionalItems": obj.get("additionalItems"), + "taxesFees": obj.get("taxesFees"), + "grandTotal": obj.get("grandTotal"), + "paid": obj.get("paid") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py index 6029dcb..00f6d3c 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py @@ -17,10 +17,10 @@ import re # noqa: F401 import json -from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner from typing import Optional, Set @@ -44,26 +44,27 @@ class GetReservationResponseDataGuestListValue(BaseModel): guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") guest_status: Optional[StrictStr] = Field(default=None, alias="guestStatus") - guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") + guest_birthdate: Optional[GetReservationResponseDataGuestListValueGuestBirthdate] = Field(default=None, alias="guestBirthdate") guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") - guest_document_issue_date: Optional[date] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issue_date: Optional[GetReservationResponseDataGuestListValueGuestBirthdate] = Field(default=None, alias="guestDocumentIssueDate") guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") - guest_document_expiration_date: Optional[date] = Field(default=None, alias="guestDocumentExpirationDate") + guest_document_expiration_date: Optional[GetReservationResponseDataGuestListValueGuestBirthdate] = Field(default=None, alias="guestDocumentExpirationDate") tax_id: Optional[StrictStr] = Field(default=None, alias="taxID") company_tax_id: Optional[StrictStr] = Field(default=None, alias="companyTaxID") company_name: Optional[StrictStr] = Field(default=None, alias="companyName") - assigned_room: Optional[StrictStr] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + assigned_room: Optional[StrictBool] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") is_main_guest: Optional[StrictBool] = Field(default=None, description="If the guest is the main guest of the reservation or not", alias="isMainGuest") + guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") custom_fields: Optional[List[GetReservationResponseDataGuestListValueCustomFieldsInner]] = Field(default=None, description="List of custom fields", alias="customFields") rooms: Optional[List[GetReservationResponseDataGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") unassigned_rooms: Optional[List[GetReservationResponseDataGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of unassigned rooms", alias="unassignedRooms") - __properties: ClassVar[List[str]] = ["guestID", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestStatus", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "assignedRoom", "isAnonymized", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "isMainGuest", "customFields", "rooms", "unassignedRooms"] + __properties: ClassVar[List[str]] = ["guestID", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestStatus", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "assignedRoom", "isAnonymized", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "isMainGuest", "guestRequirements", "customFields", "rooms", "unassignedRooms"] @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): @@ -124,6 +125,15 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of guest_birthdate + if self.guest_birthdate: + _dict['guestBirthdate'] = self.guest_birthdate.to_dict() + # override the default output from pydantic by calling `to_dict()` of guest_document_issue_date + if self.guest_document_issue_date: + _dict['guestDocumentIssueDate'] = self.guest_document_issue_date.to_dict() + # override the default output from pydantic by calling `to_dict()` of guest_document_expiration_date + if self.guest_document_expiration_date: + _dict['guestDocumentExpirationDate'] = self.guest_document_expiration_date.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) _items = [] if self.custom_fields: @@ -145,6 +155,36 @@ def to_dict(self) -> Dict[str, Any]: if _item_unassigned_rooms: _items.append(_item_unassigned_rooms.to_dict()) _dict['unassignedRooms'] = _items + # set to None if guest_birthdate (nullable) is None + # and model_fields_set contains the field + if self.guest_birthdate is None and "guest_birthdate" in self.model_fields_set: + _dict['guestBirthdate'] = None + + # set to None if guest_document_type (nullable) is None + # and model_fields_set contains the field + if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: + _dict['guestDocumentType'] = None + + # set to None if guest_document_number (nullable) is None + # and model_fields_set contains the field + if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: + _dict['guestDocumentNumber'] = None + + # set to None if guest_document_issue_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: + _dict['guestDocumentIssueDate'] = None + + # set to None if guest_document_issuing_country (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: + _dict['guestDocumentIssuingCountry'] = None + + # set to None if guest_document_expiration_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: + _dict['guestDocumentExpirationDate'] = None + # set to None if tax_id (nullable) is None # and model_fields_set contains the field if self.tax_id is None and "tax_id" in self.model_fields_set: @@ -180,6 +220,11 @@ def to_dict(self) -> Dict[str, Any]: if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: _dict['roomTypeIsVirtual'] = None + # set to None if guest_requirements (nullable) is None + # and model_fields_set contains the field + if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: + _dict['guestRequirements'] = None + return _dict @classmethod @@ -206,12 +251,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "guestCountry": obj.get("guestCountry"), "guestZip": obj.get("guestZip"), "guestStatus": obj.get("guestStatus"), - "guestBirthdate": obj.get("guestBirthdate"), + "guestBirthdate": GetReservationResponseDataGuestListValueGuestBirthdate.from_dict(obj["guestBirthdate"]) if obj.get("guestBirthdate") is not None else None, "guestDocumentType": obj.get("guestDocumentType"), "guestDocumentNumber": obj.get("guestDocumentNumber"), - "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssueDate": GetReservationResponseDataGuestListValueGuestBirthdate.from_dict(obj["guestDocumentIssueDate"]) if obj.get("guestDocumentIssueDate") is not None else None, "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), - "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "guestDocumentExpirationDate": GetReservationResponseDataGuestListValueGuestBirthdate.from_dict(obj["guestDocumentExpirationDate"]) if obj.get("guestDocumentExpirationDate") is not None else None, "taxID": obj.get("taxID"), "companyTaxID": obj.get("companyTaxID"), "companyName": obj.get("companyName"), @@ -222,6 +267,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "roomTypeName": obj.get("roomTypeName"), "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), "isMainGuest": obj.get("isMainGuest"), + "guestRequirements": obj.get("guestRequirements"), "customFields": [GetReservationResponseDataGuestListValueCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, "rooms": [GetReservationResponseDataGuestListValueRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, "unassignedRooms": [GetReservationResponseDataGuestListValueUnassignedRoomsInner.from_dict(_item) for _item in obj["unassignedRooms"]] if obj.get("unassignedRooms") is not None else None diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_guest_birthdate.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_guest_birthdate.py new file mode 100644 index 0000000..bff0a70 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_guest_birthdate.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETRESERVATIONRESPONSEDATAGUESTLISTVALUEGUESTBIRTHDATE_ONE_OF_SCHEMAS = ["date", "str"] + +class GetReservationResponseDataGuestListValueGuestBirthdate(BaseModel): + """ + + """ + # data type: date + oneof_schema_1_validator: Optional[date] = None + # data type: str + oneof_schema_2_validator: Optional[StrictStr] = None + actual_instance: Optional[Union[date, str]] = None + one_of_schemas: Set[str] = { "date", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + if v is None: + return v + + instance = GetReservationResponseDataGuestListValueGuestBirthdate.model_construct() + error_messages = [] + match = 0 + # validate data type: date + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: str + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetReservationResponseDataGuestListValueGuestBirthdate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetReservationResponseDataGuestListValueGuestBirthdate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: Optional[str]) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + match = 0 + + # deserialize data into date + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into str + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetReservationResponseDataGuestListValueGuestBirthdate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetReservationResponseDataGuestListValueGuestBirthdate with oneOf schemas: date, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], date, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py index 8dff59f..ac337ff 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_rooms_inner.py @@ -26,12 +26,13 @@ class GetReservationResponseDataGuestListValueRoomsInner(BaseModel): """ GetReservationResponseDataGuestListValueRoomsInner """ # noqa: E501 + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID where guest is assigned", alias="reservationRoomID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") - __properties: ClassVar[List[str]] = ["roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "subReservationID"] + __properties: ClassVar[List[str]] = ["reservationRoomID", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "subReservationID"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if reservation_room_id (nullable) is None + # and model_fields_set contains the field + if self.reservation_room_id is None and "reservation_room_id" in self.model_fields_set: + _dict['reservationRoomID'] = None + # set to None if room_id (nullable) is None # and model_fields_set contains the field if self.room_id is None and "room_id" in self.model_fields_set: @@ -109,6 +115,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "reservationRoomID": obj.get("reservationRoomID"), "roomID": obj.get("roomID"), "roomName": obj.get("roomName"), "roomTypeName": obj.get("roomTypeName"), diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py index 5aaa95d..20b6f7b 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py @@ -26,11 +26,12 @@ class GetReservationResponseDataGuestListValueUnassignedRoomsInner(BaseModel): """ GetReservationResponseDataGuestListValueUnassignedRoomsInner """ # noqa: E501 + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID", alias="reservationRoomID") room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the assigned room type", alias="roomTypeID") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") - __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeIsVirtual", "subReservationID"] + __properties: ClassVar[List[str]] = ["reservationRoomID", "roomTypeID", "roomTypeName", "roomTypeIsVirtual", "subReservationID"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +72,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if reservation_room_id (nullable) is None + # and model_fields_set contains the field + if self.reservation_room_id is None and "reservation_room_id" in self.model_fields_set: + _dict['reservationRoomID'] = None + # set to None if room_type_id (nullable) is None # and model_fields_set contains the field if self.room_type_id is None and "room_type_id" in self.model_fields_set: @@ -103,6 +109,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "reservationRoomID": obj.get("reservationRoomID"), "roomTypeID": obj.get("roomTypeID"), "roomTypeName": obj.get("roomTypeName"), "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py index e1349a6..6d178d3 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_unassigned_inner.py @@ -18,8 +18,8 @@ import json from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner from typing import Optional, Set from typing_extensions import Self @@ -28,6 +28,7 @@ class GetReservationResponseDataUnassignedInner(BaseModel): """ GetReservationResponseDataUnassignedInner """ # noqa: E501 + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID", alias="reservationRoomID") room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type to be assigned", alias="roomTypeName") room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type to be assigned", alias="roomTypeID") @@ -37,8 +38,8 @@ class GetReservationResponseDataUnassignedInner(BaseModel): adults: Optional[StrictStr] = Field(default=None, description="Number of adult staying in the room") children: Optional[StrictStr] = Field(default=None, description="Number of children staying in the room") daily_rates: Optional[List[GetReservationResponseDataAssignedInnerDailyRatesInner]] = Field(default=None, description="Array with rates detailed by day", alias="dailyRates") - room_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Room total rate", alias="roomTotal") - __properties: ClassVar[List[str]] = ["roomTypeName", "roomTypeIsVirtual", "roomTypeID", "subReservationID", "startDate", "endDate", "adults", "children", "dailyRates", "roomTotal"] + room_total: Optional[StrictStr] = Field(default=None, description="Room total rate", alias="roomTotal") + __properties: ClassVar[List[str]] = ["reservationRoomID", "roomTypeName", "roomTypeIsVirtual", "roomTypeID", "subReservationID", "startDate", "endDate", "adults", "children", "dailyRates", "roomTotal"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "reservationRoomID": obj.get("reservationRoomID"), "roomTypeName": obj.get("roomTypeName"), "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), "roomTypeID": obj.get("roomTypeID"), diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py index 411c358..a1819fc 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py @@ -54,7 +54,8 @@ class GetReservationsResponseDataInner(BaseModel): rooms: Optional[List[GetReservationsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information. Only returned if \"includeAllRooms\" is true") guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "groupInventory", "subReservationID", "customFields", "rooms", "guestList", "origin"] + meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation meal plans", alias="mealPlans") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "groupInventory", "subReservationID", "customFields", "rooms", "guestList", "origin", "mealPlans"] @field_validator('status') def status_validate_enum(cls, value): @@ -197,7 +198,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) if obj.get("guestList") is not None else None, - "origin": obj.get("origin") + "origin": obj.get("origin"), + "mealPlans": obj.get("mealPlans") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py index 8042f07..2bec38a 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py @@ -63,10 +63,11 @@ class GetReservationsResponseDataInnerGuestListValue(BaseModel): room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") unassigned_rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of all unassigned rooms", alias="unassignedRooms") + guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`.", alias="guestRequirements") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of guest custom fields", alias="customFields") is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") is_main_guest: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest is the main guest on the reservation", alias="isMainGuest") - __properties: ClassVar[List[str]] = ["guestID", "guestName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "subReservationID", "startDate", "endDate", "assignedRoom", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "rooms", "unassignedRooms", "customFields", "isAnonymized", "isMainGuest"] + __properties: ClassVar[List[str]] = ["guestID", "guestName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "subReservationID", "startDate", "endDate", "assignedRoom", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "rooms", "unassignedRooms", "guestRequirements", "customFields", "isAnonymized", "isMainGuest"] @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): @@ -303,6 +304,11 @@ def to_dict(self) -> Dict[str, Any]: if self.unassigned_rooms is None and "unassigned_rooms" in self.model_fields_set: _dict['unassignedRooms'] = None + # set to None if guest_requirements (nullable) is None + # and model_fields_set contains the field + if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: + _dict['guestRequirements'] = None + # set to None if custom_fields (nullable) is None # and model_fields_set contains the field if self.custom_fields is None and "custom_fields" in self.model_fields_set: @@ -363,6 +369,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), "rooms": [GetReservationsResponseDataInnerGuestListValueRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, "unassignedRooms": [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.from_dict(_item) for _item in obj["unassignedRooms"]] if obj.get("unassignedRooms") is not None else None, + "guestRequirements": obj.get("guestRequirements"), "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, "isAnonymized": obj.get("isAnonymized"), "isMainGuest": obj.get("isMainGuest") diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py index ccd747a..6a2f624 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py @@ -26,6 +26,7 @@ class GetReservationsResponseDataInnerGuestListValueRoomsInner(BaseModel): """ GetReservationsResponseDataInnerGuestListValueRoomsInner """ # noqa: E501 + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID where guest is assigned", alias="reservationRoomID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") @@ -36,7 +37,7 @@ class GetReservationsResponseDataInnerGuestListValueRoomsInner(BaseModel): rate_plan_name: Optional[StrictStr] = Field(default=None, description="Rate plan name", alias="ratePlanName") room_status: Optional[StrictStr] = Field(default=None, alias="roomStatus") sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") - __properties: ClassVar[List[str]] = ["roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "roomTypeID", "roomTypeNameShort", "rateID", "ratePlanName", "roomStatus", "subReservationID"] + __properties: ClassVar[List[str]] = ["reservationRoomID", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "roomTypeID", "roomTypeNameShort", "rateID", "ratePlanName", "roomStatus", "subReservationID"] @field_validator('room_status') def room_status_validate_enum(cls, value): @@ -87,6 +88,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if reservation_room_id (nullable) is None + # and model_fields_set contains the field + if self.reservation_room_id is None and "reservation_room_id" in self.model_fields_set: + _dict['reservationRoomID'] = None + # set to None if room_id (nullable) is None # and model_fields_set contains the field if self.room_id is None and "room_id" in self.model_fields_set: @@ -149,6 +155,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "reservationRoomID": obj.get("reservationRoomID"), "roomID": obj.get("roomID"), "roomName": obj.get("roomName"), "roomTypeName": obj.get("roomTypeName"), diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py index 2572fe0..7b243d9 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py @@ -26,6 +26,7 @@ class GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner(BaseMod """ GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner """ # noqa: E501 + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID", alias="reservationRoomID") room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the assigned room type", alias="roomTypeID") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") @@ -33,7 +34,7 @@ class GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner(BaseMod rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") rate_plan_name: Optional[StrictStr] = Field(default=None, description="Rate plan name", alias="ratePlanName") sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID of the specific assigned room", alias="subReservationID") - __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeIsVirtual", "roomTypeNameShort", "rateID", "ratePlanName", "subReservationID"] + __properties: ClassVar[List[str]] = ["reservationRoomID", "roomTypeID", "roomTypeName", "roomTypeIsVirtual", "roomTypeNameShort", "rateID", "ratePlanName", "subReservationID"] model_config = ConfigDict( populate_by_name=True, @@ -74,6 +75,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if reservation_room_id (nullable) is None + # and model_fields_set contains the field + if self.reservation_room_id is None and "reservation_room_id" in self.model_fields_set: + _dict['reservationRoomID'] = None + # set to None if room_type_id (nullable) is None # and model_fields_set contains the field if self.room_type_id is None and "room_type_id" in self.model_fields_set: @@ -121,6 +127,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "reservationRoomID": obj.get("reservationRoomID"), "roomTypeID": obj.get("roomTypeID"), "roomTypeName": obj.get("roomTypeName"), "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py index 5763f99..b2aa899 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py @@ -34,12 +34,15 @@ class GetReservationsResponseDataInnerRoomsInner(BaseModel): guest_name: Optional[StrictStr] = Field(default=None, description="Name of the main guest assigned to the room", alias="guestName") adults: Optional[StrictStr] = Field(default=None, description="Number of adults in the room") children: Optional[StrictStr] = Field(default=None, description="Number of children in the room") + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID", alias="reservationRoomID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID (null if the reservation has not been assigned a specific room yet).", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Name of the room, if roomID=null it does not exist.", alias="roomName") room_check_in: Optional[StrictStr] = Field(default=None, description="Check-in date for the room", alias="roomCheckIn") room_check_out: Optional[StrictStr] = Field(default=None, description="Check-out date for the room", alias="roomCheckOut") room_status: Optional[StrictStr] = Field(default=None, alias="roomStatus") - __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeIsVirtual", "subReservationID", "guestID", "guestName", "adults", "children", "roomID", "roomName", "roomCheckIn", "roomCheckOut", "roomStatus"] + market_name: Optional[StrictStr] = Field(default=None, description="Market segmentation name", alias="marketName") + market_code: Optional[StrictStr] = Field(default=None, description="Market segmentation code", alias="marketCode") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeName", "roomTypeIsVirtual", "subReservationID", "guestID", "guestName", "adults", "children", "reservationRoomID", "roomID", "roomName", "roomCheckIn", "roomCheckOut", "roomStatus", "marketName", "marketCode"] @field_validator('room_status') def room_status_validate_enum(cls, value): @@ -115,11 +118,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "guestName": obj.get("guestName"), "adults": obj.get("adults"), "children": obj.get("children"), + "reservationRoomID": obj.get("reservationRoomID"), "roomID": obj.get("roomID"), "roomName": obj.get("roomName"), "roomCheckIn": obj.get("roomCheckIn"), "roomCheckOut": obj.get("roomCheckOut"), - "roomStatus": obj.get("roomStatus") + "roomStatus": obj.get("roomStatus"), + "marketName": obj.get("marketName"), + "marketCode": obj.get("marketCode") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py index 90711f3..30cd0f6 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py @@ -18,9 +18,11 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner from typing import Optional, Set @@ -30,6 +32,7 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): """ GetReservationsWithRateDetailsResponseDataInner """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, description="Properties identifier", alias="propertyID") reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation's unique identifier", alias="reservationID") is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") date_created: Optional[datetime] = Field(default=None, alias="dateCreated") @@ -49,11 +52,19 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): source_category: Optional[StrictInt] = Field(default=None, description="Reservation source category", alias="sourceCategory") source_reservation_id: Optional[StrictInt] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") property_currency: Optional[StrictInt] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") - balance_detailed: Optional[List[GetReservationResponseDataBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated", alias="balanceDetailed") + balance_detailed: Optional[List[GetReservationResponseDataBalanceDetailedOneOf]] = Field(default=None, description="Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated", alias="balanceDetailed") detailed_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") rooms: Optional[List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") - __properties: ClassVar[List[str]] = ["reservationID", "isDeleted", "dateCreated", "dateCreatedUTC", "dateModified", "dateModifiedUTC", "dateCancelled", "dateCancelledUTC", "status", "reservationCheckIn", "reservationCheckOut", "guestID", "profileID", "guestCountry", "sourceName", "source", "sourceCategory", "sourceReservationID", "propertyCurrency", "balanceDetailed", "detailedRates", "rooms", "origin"] + meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation meal plans", alias="mealPlans") + guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") + third_party_identifier: Optional[StrictStr] = Field(default=None, alias="thirdPartyIdentifier") + custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of reservation custom fields. Only returned if \"includeCustomFields\" is true", alias="customFields") + estimated_arrival_time: Optional[StrictStr] = Field(default=None, description="Estimated arrival time, 24-hour format.", alias="estimatedArrivalTime") + total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total price of the booking") + balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance currently owed") + date_imported: Optional[StrictStr] = Field(default=None, description="Date when the reservation was imported", alias="dateImported") + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "isDeleted", "dateCreated", "dateCreatedUTC", "dateModified", "dateModifiedUTC", "dateCancelled", "dateCancelledUTC", "status", "reservationCheckIn", "reservationCheckOut", "guestID", "profileID", "guestCountry", "sourceName", "source", "sourceCategory", "sourceReservationID", "propertyCurrency", "balanceDetailed", "detailedRates", "rooms", "origin", "mealPlans", "guestList", "thirdPartyIdentifier", "customFields", "estimatedArrivalTime", "total", "balance", "dateImported"] @field_validator('status') def status_validate_enum(cls, value): @@ -125,6 +136,20 @@ def to_dict(self) -> Dict[str, Any]: if _item_rooms: _items.append(_item_rooms.to_dict()) _dict['rooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each value in guest_list (dict) + _field_dict = {} + if self.guest_list: + for _key_guest_list in self.guest_list: + if self.guest_list[_key_guest_list]: + _field_dict[_key_guest_list] = self.guest_list[_key_guest_list].to_dict() + _dict['guestList'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items # set to None if date_cancelled (nullable) is None # and model_fields_set contains the field if self.date_cancelled is None and "date_cancelled" in self.model_fields_set: @@ -150,6 +175,21 @@ def to_dict(self) -> Dict[str, Any]: if self.property_currency is None and "property_currency" in self.model_fields_set: _dict['propertyCurrency'] = None + # set to None if guest_list (nullable) is None + # and model_fields_set contains the field + if self.guest_list is None and "guest_list" in self.model_fields_set: + _dict['guestList'] = None + + # set to None if custom_fields (nullable) is None + # and model_fields_set contains the field + if self.custom_fields is None and "custom_fields" in self.model_fields_set: + _dict['customFields'] = None + + # set to None if estimated_arrival_time (nullable) is None + # and model_fields_set contains the field + if self.estimated_arrival_time is None and "estimated_arrival_time" in self.model_fields_set: + _dict['estimatedArrivalTime'] = None + return _dict @classmethod @@ -162,6 +202,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "propertyID": obj.get("propertyID"), "reservationID": obj.get("reservationID"), "isDeleted": obj.get("isDeleted"), "dateCreated": obj.get("dateCreated"), @@ -181,10 +222,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sourceCategory": obj.get("sourceCategory"), "sourceReservationID": obj.get("sourceReservationID"), "propertyCurrency": obj.get("propertyCurrency"), - "balanceDetailed": [GetReservationResponseDataBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, + "balanceDetailed": [GetReservationResponseDataBalanceDetailedOneOf.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, "detailedRates": obj.get("detailedRates"), "rooms": [GetReservationsWithRateDetailsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, - "origin": obj.get("origin") + "origin": obj.get("origin"), + "mealPlans": obj.get("mealPlans"), + "guestList": dict( + (_k, GetReservationsResponseDataInnerGuestListValue.from_dict(_v)) + for _k, _v in obj["guestList"].items() + ) + if obj.get("guestList") is not None + else None, + "thirdPartyIdentifier": obj.get("thirdPartyIdentifier"), + "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "estimatedArrivalTime": obj.get("estimatedArrivalTime"), + "total": obj.get("total"), + "balance": obj.get("balance"), + "dateImported": obj.get("dateImported") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py index 682d523..7a64cda 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -36,13 +36,16 @@ class GetReservationsWithRateDetailsResponseDataInnerRoomsInner(BaseModel): rate_name: Optional[StrictStr] = Field(default=None, description="Name of the rate used for the booking room", alias="rateName") adults: Optional[StrictStr] = Field(default=None, description="Number of adults in the room") children: Optional[StrictStr] = Field(default=None, description="Number of children in the room") + reservation_room_id: Optional[StrictStr] = Field(default=None, description="Reservation room ID", alias="reservationRoomID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID (null if the reservation has not been assigned a specific room yet).", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Name of the room, if roomID=null it does not exist.", alias="roomName") room_check_in: Optional[StrictStr] = Field(default=None, description="Check-in date for the room", alias="roomCheckIn") room_check_out: Optional[StrictStr] = Field(default=None, description="Check-out date for the room", alias="roomCheckOut") room_status: Optional[StrictStr] = Field(default=None, alias="roomStatus") detailed_room_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, with dates as indexes, and rates as values", alias="detailedRoomRates") - __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeIsVirtual", "roomTypeName", "subReservationID", "guestID", "guestName", "rateID", "rateName", "adults", "children", "roomID", "roomName", "roomCheckIn", "roomCheckOut", "roomStatus", "detailedRoomRates"] + market_name: Optional[StrictStr] = Field(default=None, description="Market segmentation name", alias="marketName") + market_code: Optional[StrictStr] = Field(default=None, description="Market segmentation code", alias="marketCode") + __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeIsVirtual", "roomTypeName", "subReservationID", "guestID", "guestName", "rateID", "rateName", "adults", "children", "reservationRoomID", "roomID", "roomName", "roomCheckIn", "roomCheckOut", "roomStatus", "detailedRoomRates", "marketName", "marketCode"] @field_validator('room_status') def room_status_validate_enum(cls, value): @@ -120,12 +123,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "rateName": obj.get("rateName"), "adults": obj.get("adults"), "children": obj.get("children"), + "reservationRoomID": obj.get("reservationRoomID"), "roomID": obj.get("roomID"), "roomName": obj.get("roomName"), "roomCheckIn": obj.get("roomCheckIn"), "roomCheckOut": obj.get("roomCheckOut"), "roomStatus": obj.get("roomStatus"), - "detailedRoomRates": obj.get("detailedRoomRates") + "detailedRoomRates": obj.get("detailedRoomRates"), + "marketName": obj.get("marketName"), + "marketCode": obj.get("marketCode") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py index 5abe50d..6f9e212 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py @@ -17,8 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner @@ -30,17 +30,17 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): GetTaxesAndFeesResponseDataInner """ # noqa: E501 type: Optional[StrictStr] = Field(default=None, description="Type. Fee or tax.") - fee_id: Optional[StrictInt] = Field(default=None, description="Fee's unique identifier. Only exists if type = fee.", alias="feeID") - tax_id: Optional[StrictInt] = Field(default=None, description="Tax's unique identifier. Only exists if type = tax.", alias="taxID") + fee_id: Optional[StrictStr] = Field(default=None, description="Fee's unique identifier. Only exists if type = fee.", alias="feeID") + tax_id: Optional[StrictStr] = Field(default=None, description="Tax's unique identifier. Only exists if type = tax.", alias="taxID") name: Optional[StrictStr] = Field(default=None, description="Name") code: Optional[StrictStr] = Field(default=None, description="Code") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount") - amount_adult: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountAdult") - amount_child: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountChild") + amount: Optional[StrictStr] = Field(default=None, description="Amount") + amount_adult: Optional[StrictStr] = Field(default=None, description="Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountAdult") + amount_child: Optional[StrictStr] = Field(default=None, description="Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountChild") amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]] = Field(default=None, description="Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based)", alias="amountRateBased") amount_type: Optional[StrictStr] = Field(default=None, description="Amount type. They mean:
ValueMeaning
percentagePercentage of Total Amount
fixedFixed per Room Night / Item
fixed_per_personFixed per Person per Night
fixed_per_accomodationFixed per Accomodation
fixed_per_reservationFixed per Reservation
percentage_rate_basedRate-based
", alias="amountType") available_for: Optional[List[StrictStr]] = Field(default=None, description="Where this tax/fee is available?
They mean:
ValueMeaning
productItems
rateReservations
feeFees -- this tax is charged on top of some fees
", alias="availableFor") - fees_charged: Optional[List[StrictInt]] = Field(default=None, description="List of Fee IDs charged by the current tax. Only exists if type = tax.", alias="feesCharged") + fees_charged: Optional[List[StrictStr]] = Field(default=None, description="List of Fee IDs charged by the current tax. Only exists if type = tax.", alias="feesCharged") inclusive_or_exclusive: Optional[StrictStr] = Field(default=None, description="If this tax/fee is inclusive or exclusive", alias="inclusiveOrExclusive") is_deleted: Optional[StrictBool] = Field(default=None, description="Flag indicating if tax was deleted from the system", alias="isDeleted") child_id: Optional[StrictStr] = Field(default=None, description="ID of the tax or fee that replaced current one", alias="childId") @@ -77,8 +77,8 @@ def available_for_validate_enum(cls, value): return value for i in value: - if i not in set([]): - raise ValueError("each list item must be one of ()") + if i not in set(['product', 'rate', 'fee']): + raise ValueError("each list item must be one of ('product', 'rate', 'fee')") return value @field_validator('inclusive_or_exclusive') diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py index 12a6390..78086fa 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py @@ -17,8 +17,10 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate from typing import Optional, Set from typing_extensions import Self @@ -26,8 +28,8 @@ class GetTaxesAndFeesResponseDataInnerAmountRateBasedInner(BaseModel): """ GetTaxesAndFeesResponseDataInnerAmountRateBasedInner """ # noqa: E501 - rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum rate for which this amount is valid") - percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage applied for the rate") + rate: Optional[GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate] = None + percentage: Optional[GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage] = None __properties: ClassVar[List[str]] = ["rate", "percentage"] model_config = ConfigDict( @@ -69,6 +71,12 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of rate + if self.rate: + _dict['rate'] = self.rate.to_dict() + # override the default output from pydantic by calling `to_dict()` of percentage + if self.percentage: + _dict['percentage'] = self.percentage.to_dict() return _dict @classmethod @@ -81,8 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "rate": obj.get("rate"), - "percentage": obj.get("percentage") + "rate": GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.from_dict(obj["rate"]) if obj.get("rate") is not None else None, + "percentage": GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.from_dict(obj["percentage"]) if obj.get("percentage") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py new file mode 100644 index 0000000..544537f --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETTAXESANDFEESRESPONSEDATAINNERAMOUNTRATEBASEDINNERPERCENTAGE_ONE_OF_SCHEMAS = ["float", "str"] + +class GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage(BaseModel): + """ + Percentage applied for the rate + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = None + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: Set[str] = { "float", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py new file mode 100644 index 0000000..0eb83b8 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETTAXESANDFEESRESPONSEDATAINNERAMOUNTRATEBASEDINNERRATE_ONE_OF_SCHEMAS = ["float", "str"] + +class GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate(BaseModel): + """ + Maximum rate for which this amount is valid + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = None + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: Set[str] = { "float", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py index a5ad633..987fd2a 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -17,9 +17,12 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from typing import Optional, Set from typing_extensions import Self @@ -28,9 +31,9 @@ class GetTaxesAndFeesResponseDataInnerDateRangesInner(BaseModel): GetTaxesAndFeesResponseDataInnerDateRangesInner """ # noqa: E501 range: Optional[Dict[str, Any]] = Field(default=None, description="ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount") - amount_adult: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountAdult") - amount_child: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountChild") + amount: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount] = None + amount_adult: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult] = Field(default=None, alias="amountAdult") + amount_child: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild] = Field(default=None, alias="amountChild") amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]] = Field(default=None, description="Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based)", alias="amountRateBased") __properties: ClassVar[List[str]] = ["range", "amount", "amountAdult", "amountChild", "amountRateBased"] @@ -73,6 +76,15 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of amount + if self.amount: + _dict['amount'] = self.amount.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount_adult + if self.amount_adult: + _dict['amountAdult'] = self.amount_adult.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount_child + if self.amount_child: + _dict['amountChild'] = self.amount_child.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in amount_rate_based (list) _items = [] if self.amount_rate_based: @@ -98,9 +110,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "range": obj.get("range"), - "amount": obj.get("amount"), - "amountAdult": obj.get("amountAdult"), - "amountChild": obj.get("amountChild"), + "amount": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, + "amountAdult": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.from_dict(obj["amountAdult"]) if obj.get("amountAdult") is not None else None, + "amountChild": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.from_dict(obj["amountChild"]) if obj.get("amountChild") is not None else None, "amountRateBased": [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py new file mode 100644 index 0000000..ff0e1c2 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETTAXESANDFEESRESPONSEDATAINNERDATERANGESINNERAMOUNT_ONE_OF_SCHEMAS = ["float", "str"] + +class GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount(BaseModel): + """ + Amount + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = None + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: Set[str] = { "float", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py new file mode 100644 index 0000000..bcf2c9b --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETTAXESANDFEESRESPONSEDATAINNERDATERANGESINNERAMOUNTADULT_ONE_OF_SCHEMAS = ["float", "str"] + +class GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult(BaseModel): + """ + Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = None + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: Set[str] = { "float", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py new file mode 100644 index 0000000..879f079 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETTAXESANDFEESRESPONSEDATAINNERDATERANGESINNERAMOUNTCHILD_ONE_OF_SCHEMAS = ["float", "str"] + +class GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild(BaseModel): + """ + Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = None + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: Set[str] = { "float", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py b/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py index c19383f..a3d8d7a 100644 --- a/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py @@ -27,9 +27,9 @@ class PostCustomItemResponseData(BaseModel): Sold product details """ # noqa: E501 sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") + external_relation_id: Optional[StrictStr] = Field(default=None, description="Same as sold product ID in case of this endpoint. Together with external relation kind ITEM_POS it can be used to get transaction from Accounting API", alias="externalRelationID") notice: Optional[StrictStr] = Field(default=None, description="In case that a referenceID was sent, for second time, this field will alert that nothing was created or updated.") - __properties: ClassVar[List[str]] = ["soldProductID", "transactionID", "notice"] + __properties: ClassVar[List[str]] = ["soldProductID", "externalRelationID", "notice"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +83,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "soldProductID": obj.get("soldProductID"), - "transactionID": obj.get("transactionID"), + "externalRelationID": obj.get("externalRelationID"), "notice": obj.get("notice") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_item_response.py b/cloudbeds_pms_v1_3/models/post_item_response.py index ff473a8..e9ee633 100644 --- a/cloudbeds_pms_v1_3/models/post_item_response.py +++ b/cloudbeds_pms_v1_3/models/post_item_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData +from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class PostItemResponse(BaseModel): PostItemResponse """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[PostItemToReservationResponseData] = None + data: Optional[PostItemResponseData] = None message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "data", "message"] @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), - "data": PostItemToReservationResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, + "data": PostItemResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, "message": obj.get("message") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_item_response_data.py b/cloudbeds_pms_v1_3/models/post_item_response_data.py new file mode 100644 index 0000000..16057cc --- /dev/null +++ b/cloudbeds_pms_v1_3/models/post_item_response_data.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PostItemResponseData(BaseModel): + """ + Sold product details + """ # noqa: E501 + sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") + external_relation_id: Optional[StrictStr] = Field(default=None, description="Same as sold product ID in case of this endpoint. Together with external relation kind (ITEM) it can be used to get transaction from Accounting API", alias="externalRelationID") + transaction_status: Optional[StrictStr] = Field(default=None, description="Transaction Status is returned \"Pending\" when sale date is in the future.", alias="transactionStatus") + remaining_item_quantity: Optional[StrictInt] = Field(default=None, description="Remaining number of items in stock (if applicable)", alias="remainingItemQuantity") + reorder_needed: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for reorder threshold.", alias="reorderNeeded") + stop_sell_met: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for stop-sell threshold.", alias="stopSellMet") + __properties: ClassVar[List[str]] = ["soldProductID", "externalRelationID", "transactionStatus", "remainingItemQuantity", "reorderNeeded", "stopSellMet"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PostItemResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if transaction_status (nullable) is None + # and model_fields_set contains the field + if self.transaction_status is None and "transaction_status" in self.model_fields_set: + _dict['transactionStatus'] = None + + # set to None if remaining_item_quantity (nullable) is None + # and model_fields_set contains the field + if self.remaining_item_quantity is None and "remaining_item_quantity" in self.model_fields_set: + _dict['remainingItemQuantity'] = None + + # set to None if reorder_needed (nullable) is None + # and model_fields_set contains the field + if self.reorder_needed is None and "reorder_needed" in self.model_fields_set: + _dict['reorderNeeded'] = None + + # set to None if stop_sell_met (nullable) is None + # and model_fields_set contains the field + if self.stop_sell_met is None and "stop_sell_met" in self.model_fields_set: + _dict['stopSellMet'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PostItemResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "soldProductID": obj.get("soldProductID"), + "externalRelationID": obj.get("externalRelationID"), + "transactionStatus": obj.get("transactionStatus"), + "remainingItemQuantity": obj.get("remainingItemQuantity"), + "reorderNeeded": obj.get("reorderNeeded"), + "stopSellMet": obj.get("stopSellMet") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py new file mode 100644 index 0000000..7c780e5 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed + +class TestGetReservationResponseDataBalanceDetailed(unittest.TestCase): + """GetReservationResponseDataBalanceDetailed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataBalanceDetailed: + """Test GetReservationResponseDataBalanceDetailed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataBalanceDetailed` + """ + model = GetReservationResponseDataBalanceDetailed() + if include_optional: + return GetReservationResponseDataBalanceDetailed( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337 + ) + else: + return GetReservationResponseDataBalanceDetailed( + ) + """ + + def testGetReservationResponseDataBalanceDetailed(self): + """Test GetReservationResponseDataBalanceDetailed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py new file mode 100644 index 0000000..6f860d2 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf + +class TestGetReservationResponseDataBalanceDetailedOneOf(unittest.TestCase): + """GetReservationResponseDataBalanceDetailedOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataBalanceDetailedOneOf: + """Test GetReservationResponseDataBalanceDetailedOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataBalanceDetailedOneOf` + """ + model = GetReservationResponseDataBalanceDetailedOneOf() + if include_optional: + return GetReservationResponseDataBalanceDetailedOneOf( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337 + ) + else: + return GetReservationResponseDataBalanceDetailedOneOf( + ) + """ + + def testGetReservationResponseDataBalanceDetailedOneOf(self): + """Test GetReservationResponseDataBalanceDetailedOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py new file mode 100644 index 0000000..fee3a40 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate + +class TestGetReservationResponseDataGuestListValueGuestBirthdate(unittest.TestCase): + """GetReservationResponseDataGuestListValueGuestBirthdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationResponseDataGuestListValueGuestBirthdate: + """Test GetReservationResponseDataGuestListValueGuestBirthdate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationResponseDataGuestListValueGuestBirthdate` + """ + model = GetReservationResponseDataGuestListValueGuestBirthdate() + if include_optional: + return GetReservationResponseDataGuestListValueGuestBirthdate( + ) + else: + return GetReservationResponseDataGuestListValueGuestBirthdate( + ) + """ + + def testGetReservationResponseDataGuestListValueGuestBirthdate(self): + """Test GetReservationResponseDataGuestListValueGuestBirthdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py new file mode 100644 index 0000000..64690d8 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage + +class TestGetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage: + """Test GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage` + """ + model = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage() + if include_optional: + return GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage( + ) + else: + return GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage(self): + """Test GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py new file mode 100644 index 0000000..eb0f955 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate + +class TestGetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate: + """Test GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate` + """ + model = GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate() + if include_optional: + return GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate( + ) + else: + return GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate(self): + """Test GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py new file mode 100644 index 0000000..ece7701 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount + +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerAmount(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount` + """ + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount() + if include_optional: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount( + ) + else: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerAmount(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py new file mode 100644 index 0000000..57749e5 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult + +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult` + """ + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult() + if include_optional: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult( + ) + else: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py new file mode 100644 index 0000000..37b5fbd --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild + +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild` + """ + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild() + if include_optional: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild( + ) + else: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_item_response_data.py b/cloudbeds_pms_v1_3/test/test_post_item_response_data.py new file mode 100644 index 0000000..b545777 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_post_item_response_data.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData + +class TestPostItemResponseData(unittest.TestCase): + """PostItemResponseData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostItemResponseData: + """Test PostItemResponseData + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostItemResponseData` + """ + model = PostItemResponseData() + if include_optional: + return PostItemResponseData( + sold_product_id = '', + external_relation_id = '', + transaction_status = '', + remaining_item_quantity = 56, + reorder_needed = True, + stop_sell_met = True + ) + else: + return PostItemResponseData( + ) + """ + + def testPostItemResponseData(self): + """Test PostItemResponseData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/openapitools.json b/openapitools.json index df45c78..a0108fa 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.0.0", + "packageVersion": "1.1.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 14e9b6cd1f1f644b3e9e00132ad5f7fb60145d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 10 Jun 2025 16:39:44 +0200 Subject: [PATCH 22/46] feat: v1.2.0 --- .openapi-generator/FILES | 460 +- README.md | 98 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 71 +- cloudbeds_pms_v1_3/api/__init__.py | 5 - cloudbeds_pms_v1_3/api/app_settings_api.py | 306 - cloudbeds_pms_v1_3/api/authentication_api.py | 246 - cloudbeds_pms_v1_3/api/beta_api.py | 320 - cloudbeds_pms_v1_3/api/crm_api.py | 636 -- cloudbeds_pms_v1_3/api/guest_api.py | 366 -- cloudbeds_pms_v1_3/api/import_api.py | 531 -- cloudbeds_pms_v1_3/api/integration_api.py | 1034 +--- cloudbeds_pms_v1_3/api/invoices_api.py | 922 --- cloudbeds_pms_v1_3/api/item_api.py | 695 +-- cloudbeds_pms_v1_3/api/payment_api.py | 2314 +------- cloudbeds_pms_v1_3/api/rate_api.py | 42 +- cloudbeds_pms_v1_3/api/reservation_api.py | 5134 +++++------------ cloudbeds_pms_v1_3/api/room_api.py | 396 -- cloudbeds_pms_v1_3/api/rooms_api.py | 441 -- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/AppSettingsApi.md | 87 - cloudbeds_pms_v1_3/docs/AuthenticationApi.md | 65 - cloudbeds_pms_v1_3/docs/BetaApi.md | 93 - cloudbeds_pms_v1_3/docs/CRMApi.md | 180 - .../docs/DeleteItemFromReservationResponse.md | 30 - .../docs/GetAdjustmentResponse.md | 30 - .../docs/GetAdjustmentResponseData.md | 42 - .../docs/GetAdjustmentsResponse.md | 30 - .../docs/GetAdjustmentsResponseData.md | 37 - .../docs/GetAsyncApiJobResponse.md | 32 - .../docs/GetAsyncApiJobResponseDataInner.md | 32 - ...syncApiJobResponseDataInnerUpdatesInner.md | 53 - ...nnerUpdatesInnerAllotmentIntervalsInner.md | 33 - ...nnerAllotmentIntervalsInnerAvailability.md | 35 - ...tIntervalsInnerAvailabilityGuestPricing.md | 35 - ...nnerAllotmentIntervalsInnerRestrictions.md | 35 - ...esponseDataInnerUpdatesInnerAutoRelease.md | 32 - .../docs/GetHotelRoomTypesResponse.md | 33 - .../docs/GetHouseAccountDetailsResponse.md | 30 - .../GetHouseAccountDetailsResponseData.md | 31 - ...eAccountDetailsResponseDataRecordsInner.md | 43 - ...useAccountDetailsResponseDataTotalInner.md | 32 - .../GetImportDummyReservationsResponse.md | 30 - .../docs/GetImportToursResponse.md | 30 - cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md | 30 - .../docs/GetInvoiceResponseData.md | 41 - .../docs/GetInvoiceResponseDataBilledTo.md | 31 - .../docs/GetInvoiceResponseDataItemsInner.md | 36 - ...tInvoiceResponseDataItemsInnerFeesInner.md | 32 - ...InvoiceResponseDataItemsInnerTaxesInner.md | 32 - .../docs/GetPaymentsResponse.md | 33 - .../docs/GetPaymentsResponseDataInner.md | 59 - ...ResponseDataInnerPaymentAllocationInner.md | 34 - .../docs/GetPendingTransactionsResponse.md | 33 - ...GetPendingTransactionsResponseDataInner.md | 60 - .../docs/GetReservationArrivalsResponse.md | 31 - ...GetReservationArrivalsResponseDataInner.md | 35 - .../docs/GetReservationDeparturesResponse.md | 31 - ...tReservationDeparturesResponseDataInner.md | 33 - .../docs/GetReservationInHouseResponse.md | 31 - .../GetReservationInHouseResponseDataInner.md | 54 - ...etReservationInvoiceInformationResponse.md | 31 - ...tionInvoiceInformationResponseDataInner.md | 48 - ...onResponseDataInnerBalanceDetailedInner.md | 36 - ...nResponseDataInnerMainGuestDetailsInner.md | 44 - ...eDataInnerReservationAddOnProductsInner.md | 37 - ...InnerReservationAdditionalProductsInner.md | 40 - ...nseDataInnerReservationAdjustmentsInner.md | 33 - ...sponseDataInnerReservationPaymentsInner.md | 34 - ...nResponseDataInnerReservationRoomsInner.md | 41 - ...nResponseDataInnerReservationTaxesInner.md | 30 - ...rvationResponseDataBalanceDetailedInner.md | 34 - .../docs/GetTransactionsResponse.md | 34 - .../docs/GetTransactionsResponseDataInner.md | 61 - cloudbeds_pms_v1_3/docs/GuestApi.md | 95 - cloudbeds_pms_v1_3/docs/ImportApi.md | 166 - cloudbeds_pms_v1_3/docs/IntegrationApi.md | 265 +- cloudbeds_pms_v1_3/docs/InvoicesApi.md | 267 - cloudbeds_pms_v1_3/docs/ItemApi.md | 191 +- cloudbeds_pms_v1_3/docs/PaymentApi.md | 394 -- .../docs/PostAccessTokenCheckResponse.md | 29 - .../PostAppSettingsRequestSettingsInner.md | 30 - .../docs/PostAppSettingsResponse.md | 30 - .../docs/PostAppStateInternalResponse.md | 29 - .../PostBulkAppPropertySettingsResponse.md | 29 - .../docs/PostCRMCacheRemoveResponse.md | 29 - .../docs/PostCRMCacheUpdateResponse.md | 29 - .../docs/PostCustomItemResponseData.md | 2 +- .../docs/PostGuestCreditCardResponse.md | 29 - .../docs/PostItemRequestPaymentsInner.md | 31 + .../docs/PostItemResponseData.md | 2 +- ...stItemToReservationRequestPaymentsInner.md | 31 - .../docs/PostItemToReservationResponse.md | 31 - .../docs/PostItemToReservationResponseData.md | 35 - .../docs/PostPatchInvoiceResponse.md | 30 - .../docs/PostPaymentCashResponse.md | 30 - .../docs/PostPaymentCreditCardResponse.md | 30 - cloudbeds_pms_v1_3/docs/PostPutRateRequest.md | 29 - .../docs/PostReservationCheckInResponse.md | 30 - .../docs/PostReservationCheckOutResponse.md | 30 - .../docs/PostRoomTypeResponse.md | 31 - .../docs/PostRoomTypeResponseData.md | 30 - .../docs/PutRateRequestRatesInner.md | 30 - .../PutRateRequestRatesInnerIntervalInner.md | 31 - cloudbeds_pms_v1_3/docs/PutRateResponse.md | 31 - ...ervationDetailsRequestCustomFieldsInner.md | 30 - .../docs/PutReservationDetailsResponse.md | 31 - cloudbeds_pms_v1_3/docs/RateApi.md | 22 +- cloudbeds_pms_v1_3/docs/ReservationApi.md | 598 -- cloudbeds_pms_v1_3/docs/RoomApi.md | 99 - cloudbeds_pms_v1_3/docs/RoomsApi.md | 105 - cloudbeds_pms_v1_3/models/__init__.py | 64 +- .../delete_item_from_reservation_response.py | 94 - .../models/get_adjustment_response.py | 93 - .../models/get_adjustment_response_data.py | 112 - .../models/get_adjustments_response.py | 93 - .../models/get_adjustments_response_data.py | 102 - .../models/get_async_api_job_response.py | 106 - .../get_async_api_job_response_data_inner.py | 102 - ...i_job_response_data_inner_updates_inner.py | 248 - ...updates_inner_allotment_intervals_inner.py | 129 - ..._allotment_intervals_inner_availability.py | 132 - ...ervals_inner_availability_guest_pricing.py | 127 - ..._allotment_intervals_inner_restrictions.py | 127 - ...e_data_inner_updates_inner_auto_release.py | 116 - .../models/get_hotel_room_types_response.py | 100 - .../get_house_account_details_response.py | 93 - ...get_house_account_details_response_data.py | 105 - ...unt_details_response_data_records_inner.py | 116 - ...count_details_response_data_total_inner.py | 93 - .../get_import_dummy_reservations_response.py | 89 - .../models/get_import_tours_response.py | 89 - .../models/get_invoice_response.py | 93 - .../models/get_invoice_response_data.py | 137 - .../get_invoice_response_data_billed_to.py | 99 - .../get_invoice_response_data_items_inner.py | 117 - ...ce_response_data_items_inner_fees_inner.py | 93 - ...e_response_data_items_inner_taxes_inner.py | 93 - .../models/get_payments_response.py | 108 - .../get_payments_response_data_inner.py | 231 - ...nse_data_inner_payment_allocation_inner.py | 127 - .../get_pending_transactions_response.py | 108 - ...ending_transactions_response_data_inner.py | 180 - .../get_reservation_arrivals_response.py | 104 - ...eservation_arrivals_response_data_inner.py | 104 - .../get_reservation_departures_response.py | 104 - ...ervation_departures_response_data_inner.py | 95 - .../get_reservation_in_house_response.py | 104 - ...eservation_in_house_response_data_inner.py | 228 - ...eservation_invoice_information_response.py | 104 - ...invoice_information_response_data_inner.py | 214 - ...ponse_data_inner_balance_detailed_inner.py | 101 - ...nse_data_inner_main_guest_details_inner.py | 127 - ...inner_reservation_add_on_products_inner.py | 104 - ...r_reservation_additional_products_inner.py | 110 - ...ata_inner_reservation_adjustments_inner.py | 96 - ...e_data_inner_reservation_payments_inner.py | 98 - ...onse_data_inner_reservation_rooms_inner.py | 112 - ...onse_data_inner_reservation_taxes_inner.py | 89 - ...on_response_data_balance_detailed_inner.py | 97 - .../models/get_transactions_response.py | 110 - .../get_transactions_response_data_inner.py | 182 - .../post_access_token_check_response.py | 87 - ...ost_app_settings_request_settings_inner.py | 89 - .../models/post_app_settings_response.py | 89 - .../post_app_state_internal_response.py | 87 - ...ost_bulk_app_property_settings_response.py | 87 - .../models/post_crm_cache_remove_response.py | 87 - .../models/post_crm_cache_update_response.py | 87 - .../models/post_custom_item_response_data.py | 6 +- .../models/post_guest_credit_card_response.py | 87 - ...py => post_item_request_payments_inner.py} | 8 +- .../models/post_item_response_data.py | 6 +- .../post_item_to_reservation_response.py | 100 - .../post_item_to_reservation_response_data.py | 117 - .../models/post_patch_invoice_response.py | 94 - .../models/post_payment_cash_response.py | 94 - .../post_payment_credit_card_response.py | 94 - .../models/post_put_rate_request.py | 95 - .../post_reservation_check_in_response.py | 94 - .../post_reservation_check_out_response.py | 94 - .../models/post_room_type_response.py | 100 - .../models/post_room_type_response_data.py | 87 - .../models/put_rate_request_rates_inner.py | 97 - ...rate_request_rates_inner_interval_inner.py | 102 - .../models/put_rate_response.py | 91 - ...ion_details_request_custom_fields_inner.py | 99 - .../put_reservation_details_response.py | 101 - .../test/test_adjustment_api.py | 14 - .../test/test_app_settings_api.py | 7 - .../test/test_authentication_api.py | 7 - cloudbeds_pms_v1_3/test/test_beta_api.py | 38 - cloudbeds_pms_v1_3/test/test_crm_api.py | 45 - ...t_delete_item_from_reservation_response.py | 52 - .../test/test_get_adjustment_response.py | 65 - .../test/test_get_adjustment_response_data.py | 63 - .../test/test_get_adjustments_response.py | 60 - .../test_get_adjustments_response_data.py | 58 - .../test/test_get_async_api_job_response.py | 115 - ...t_get_async_api_job_response_data_inner.py | 109 - ...i_job_response_data_inner_updates_inner.py | 103 - ...updates_inner_allotment_intervals_inner.py | 73 - ..._allotment_intervals_inner_availability.py | 62 - ...ervals_inner_availability_guest_pricing.py | 56 - ..._allotment_intervals_inner_restrictions.py | 56 - ...e_data_inner_updates_inner_auto_release.py | 53 - .../test/test_get_custom_fields_response.py | 4 +- ...t_get_custom_fields_response_data_inner.py | 4 +- .../test/test_get_guest_list_response.py | 3 + ...test_get_guest_list_response_data_value.py | 3 + .../test/test_get_guest_response.py | 3 + .../test/test_get_guest_response_data.py | 3 + .../test/test_get_guests_modified_response.py | 3 + ...get_guests_modified_response_data_inner.py | 3 + .../test/test_get_hotel_details_response.py | 4 +- .../test_get_hotel_details_response_data.py | 4 +- ...details_response_data_property_currency.py | 4 +- .../test_get_hotel_room_types_response.py | 57 - ...test_get_house_account_details_response.py | 77 - ...get_house_account_details_response_data.py | 75 - ...unt_details_response_data_records_inner.py | 65 - ...count_details_response_data_total_inner.py | 54 - ..._get_import_dummy_reservations_response.py | 54 - .../test/test_get_import_tours_response.py | 54 - .../test/test_get_invoice_response.py | 99 - .../test/test_get_invoice_response_data.py | 97 - ...est_get_invoice_response_data_billed_to.py | 52 - ...t_get_invoice_response_data_items_inner.py | 70 - ...ce_response_data_items_inner_fees_inner.py | 54 - ...e_response_data_items_inner_taxes_inner.py | 54 - .../test/test_get_payments_response.py | 100 - .../test_get_payments_response_data_inner.py | 93 - ...nse_data_inner_payment_allocation_inner.py | 60 - .../test_get_pending_transactions_response.py | 89 - ...ending_transactions_response_data_inner.py | 82 - .../test/test_get_rate_plans_response.py | 4 +- ...test_get_rate_plans_response_data_inner.py | 4 +- .../test_get_reservation_arrivals_response.py | 62 - ...eservation_arrivals_response_data_inner.py | 57 - ...est_get_reservation_departures_response.py | 62 - ...ervation_departures_response_data_inner.py | 57 - .../test_get_reservation_in_house_response.py | 85 - ...eservation_in_house_response_data_inner.py | 80 - ...eservation_invoice_information_response.py | 167 - ...invoice_information_response_data_inner.py | 162 - ...ponse_data_inner_balance_detailed_inner.py | 58 - ...nse_data_inner_main_guest_details_inner.py | 66 - ...inner_reservation_add_on_products_inner.py | 59 - ...r_reservation_additional_products_inner.py | 62 - ...ata_inner_reservation_adjustments_inner.py | 55 - ...e_data_inner_reservation_payments_inner.py | 56 - ...onse_data_inner_reservation_rooms_inner.py | 61 - ...onse_data_inner_reservation_taxes_inner.py | 52 - .../test/test_get_reservation_response.py | 34 +- .../test_get_reservation_response_data.py | 34 +- ...eservation_response_data_assigned_inner.py | 5 +- ...on_response_data_balance_detailed_inner.py | 56 - ...ervation_response_data_guest_list_value.py | 13 +- ...ponse_data_guest_list_value_rooms_inner.py | 1 + ...guest_list_value_unassigned_rooms_inner.py | 1 + ...ervation_response_data_unassigned_inner.py | 3 +- .../test/test_get_reservations_response.py | 12 +- ...st_get_reservations_response_data_inner.py | 13 +- ...ns_response_data_inner_guest_list_value.py | 5 + ...data_inner_guest_list_value_rooms_inner.py | 1 + ...guest_list_value_unassigned_rooms_inner.py | 1 + ...vations_response_data_inner_rooms_inner.py | 5 +- ...reservations_with_rate_details_response.py | 76 +- ...s_with_rate_details_response_data_inner.py | 90 +- ...details_response_data_inner_rooms_inner.py | 5 +- .../test/test_get_taxes_and_fees_response.py | 26 +- ..._get_taxes_and_fees_response_data_inner.py | 30 +- ...onse_data_inner_amount_rate_based_inner.py | 4 +- ...s_response_data_inner_date_ranges_inner.py | 10 +- .../test/test_get_transactions_response.py | 91 - ...st_get_transactions_response_data_inner.py | 83 - cloudbeds_pms_v1_3/test/test_guest_api.py | 7 - .../test/test_house_account_api.py | 7 - cloudbeds_pms_v1_3/test/test_import_api.py | 45 - .../test/test_integration_api.py | 14 - cloudbeds_pms_v1_3/test/test_invoices_api.py | 52 - cloudbeds_pms_v1_3/test/test_item_api.py | 14 - cloudbeds_pms_v1_3/test/test_payment_api.py | 35 - ...ost_app_settings_request_settings_inner.py | 52 - .../test/test_post_app_settings_response.py | 52 - .../test_post_app_state_internal_response.py | 51 - ...ost_bulk_app_property_settings_response.py | 51 - .../test_post_crm_cache_remove_response.py | 51 - .../test_post_crm_cache_update_response.py | 51 - .../test_post_guest_credit_card_response.py | 51 - ... test_post_item_request_payments_inner.py} | 26 +- .../test/test_post_item_response.py | 2 +- .../test/test_post_item_response_data.py | 2 +- ...m_to_reservation_request_payments_inner.py | 53 - .../test_post_item_to_reservation_response.py | 59 - ..._post_item_to_reservation_response_data.py | 56 - .../test/test_post_patch_invoice_response.py | 52 - .../test/test_post_payment_cash_response.py | 52 - .../test_post_payment_credit_card_response.py | 52 - .../test/test_post_put_rate_request.py | 60 - ...test_post_reservation_check_in_response.py | 52 - ...est_post_reservation_check_out_response.py | 52 - .../test/test_post_room_type_response.py | 54 - .../test/test_post_room_type_response_data.py | 51 - .../test/test_put_rate_request_rates_inner.py | 57 - ...rate_request_rates_inner_interval_inner.py | 53 - .../test/test_put_rate_response.py | 53 - ...ion_details_request_custom_fields_inner.py | 52 - .../test_put_reservation_details_response.py | 53 - cloudbeds_pms_v1_3/test/test_rate_api.py | 4 +- .../test/test_reservation_api.py | 49 - cloudbeds_pms_v1_3/test/test_room_api.py | 7 - cloudbeds_pms_v1_3/test/test_rooms_api.py | 38 - openapitools.json | 2 +- 315 files changed, 2948 insertions(+), 30155 deletions(-) delete mode 100644 cloudbeds_pms_v1_3/api/beta_api.py delete mode 100644 cloudbeds_pms_v1_3/api/crm_api.py delete mode 100644 cloudbeds_pms_v1_3/api/import_api.py delete mode 100644 cloudbeds_pms_v1_3/api/invoices_api.py delete mode 100644 cloudbeds_pms_v1_3/api/rooms_api.py delete mode 100644 cloudbeds_pms_v1_3/docs/BetaApi.md delete mode 100644 cloudbeds_pms_v1_3/docs/CRMApi.md delete mode 100644 cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetImportToursResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/ImportApi.md delete mode 100644 cloudbeds_pms_v1_3/docs/InvoicesApi.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md create mode 100644 cloudbeds_pms_v1_3/docs/PostItemRequestPaymentsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostPutRateRequest.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md delete mode 100644 cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/PutRateResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md delete mode 100644 cloudbeds_pms_v1_3/docs/RoomsApi.md delete mode 100644 cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_adjustment_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_adjustment_response_data.py delete mode 100644 cloudbeds_pms_v1_3/models/get_adjustments_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_adjustments_response_data.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py delete mode 100644 cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py delete mode 100644 cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py delete mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_import_tours_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_invoice_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_invoice_response_data.py delete mode 100644 cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py delete mode 100644 cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_payments_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_pending_transactions_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_departures_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/get_transactions_response.py delete mode 100644 cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/post_access_token_check_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/post_app_settings_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_app_state_internal_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py rename cloudbeds_pms_v1_3/models/{post_item_to_reservation_request_payments_inner.py => post_item_request_payments_inner.py} (94%) delete mode 100644 cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py delete mode 100644 cloudbeds_pms_v1_3/models/post_patch_invoice_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_payment_cash_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_put_rate_request.py delete mode 100644 cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_room_type_response.py delete mode 100644 cloudbeds_pms_v1_3/models/post_room_type_response_data.py delete mode 100644 cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/put_rate_response.py delete mode 100644 cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py delete mode 100644 cloudbeds_pms_v1_3/models/put_reservation_details_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_beta_api.py delete mode 100644 cloudbeds_pms_v1_3/test/test_crm_api.py delete mode 100644 cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustment_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustments_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_import_tours_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_invoice_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_payments_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_transactions_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_import_api.py delete mode 100644 cloudbeds_pms_v1_3/test/test_invoices_api.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_app_settings_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py rename cloudbeds_pms_v1_3/test/{test_post_access_token_check_response.py => test_post_item_request_payments_inner.py} (76%) delete mode 100644 cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_put_rate_request.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_room_type_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py delete mode 100644 cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_put_rate_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py delete mode 100644 cloudbeds_pms_v1_3/test/test_rooms_api.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fdac3c2..419d2ee 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,8 +5,6 @@ cloudbeds_pms_v1_3/api/adjustment_api.py cloudbeds_pms_v1_3/api/allotment_blocks_api.py cloudbeds_pms_v1_3/api/app_settings_api.py cloudbeds_pms_v1_3/api/authentication_api.py -cloudbeds_pms_v1_3/api/beta_api.py -cloudbeds_pms_v1_3/api/crm_api.py cloudbeds_pms_v1_3/api/currency_api.py cloudbeds_pms_v1_3/api/custom_fields_api.py cloudbeds_pms_v1_3/api/dashboard_api.py @@ -16,16 +14,13 @@ cloudbeds_pms_v1_3/api/guest_api.py cloudbeds_pms_v1_3/api/hotel_api.py cloudbeds_pms_v1_3/api/house_account_api.py cloudbeds_pms_v1_3/api/housekeeping_api.py -cloudbeds_pms_v1_3/api/import_api.py cloudbeds_pms_v1_3/api/integration_api.py -cloudbeds_pms_v1_3/api/invoices_api.py cloudbeds_pms_v1_3/api/item_api.py cloudbeds_pms_v1_3/api/package_api.py cloudbeds_pms_v1_3/api/payment_api.py cloudbeds_pms_v1_3/api/rate_api.py cloudbeds_pms_v1_3/api/reservation_api.py cloudbeds_pms_v1_3/api/room_api.py -cloudbeds_pms_v1_3/api/rooms_api.py cloudbeds_pms_v1_3/api/taxes_and_fees_api.py cloudbeds_pms_v1_3/api/user_api.py cloudbeds_pms_v1_3/api_client.py @@ -35,14 +30,11 @@ cloudbeds_pms_v1_3/docs/AdjustmentApi.md cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md cloudbeds_pms_v1_3/docs/AppSettingsApi.md cloudbeds_pms_v1_3/docs/AuthenticationApi.md -cloudbeds_pms_v1_3/docs/BetaApi.md -cloudbeds_pms_v1_3/docs/CRMApi.md cloudbeds_pms_v1_3/docs/CurrencyApi.md cloudbeds_pms_v1_3/docs/CustomFieldsApi.md cloudbeds_pms_v1_3/docs/DashboardApi.md cloudbeds_pms_v1_3/docs/DeleteAdjustmentResponse.md cloudbeds_pms_v1_3/docs/DeleteGuestNoteResponse.md -cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md @@ -60,14 +52,6 @@ cloudbeds_pms_v1_3/docs/GetAppSettingsResponse.md cloudbeds_pms_v1_3/docs/GetAppSettingsResponseData.md cloudbeds_pms_v1_3/docs/GetAppStateResponse.md cloudbeds_pms_v1_3/docs/GetAppStateResponseData.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md -cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponse.md cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInner.md cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md @@ -117,7 +101,6 @@ cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyAddress.md cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyImageInner.md cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyPolicy.md -cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md cloudbeds_pms_v1_3/docs/GetHotelsResponse.md cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md @@ -127,14 +110,6 @@ cloudbeds_pms_v1_3/docs/GetHousekeepersResponse.md cloudbeds_pms_v1_3/docs/GetHousekeepersResponseDataInner.md cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponse.md cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md -cloudbeds_pms_v1_3/docs/GetImportToursResponse.md -cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md -cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md -cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md -cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md -cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md -cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md cloudbeds_pms_v1_3/docs/GetItemCategoriesResponse.md cloudbeds_pms_v1_3/docs/GetItemCategoriesResponseDataInner.md cloudbeds_pms_v1_3/docs/GetItemResponse.md @@ -157,11 +132,6 @@ cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md -cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md -cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md -cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetRateJobsResponse.md cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInnerUpdatesInner.md @@ -172,25 +142,9 @@ cloudbeds_pms_v1_3/docs/GetRatePlansResponseDataInnerRoomRateDetailedInner.md cloudbeds_pms_v1_3/docs/GetRateResponse.md cloudbeds_pms_v1_3/docs/GetRateResponseData.md cloudbeds_pms_v1_3/docs/GetRateResponseDataRoomRateDetailedInner.md -cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md -cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponse.md cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md -cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md -cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md -cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md -cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md cloudbeds_pms_v1_3/docs/GetReservationNotesResponse.md cloudbeds_pms_v1_3/docs/GetReservationNotesResponseDataInner.md cloudbeds_pms_v1_3/docs/GetReservationResponse.md @@ -265,13 +219,10 @@ cloudbeds_pms_v1_3/docs/GuestApi.md cloudbeds_pms_v1_3/docs/HotelApi.md cloudbeds_pms_v1_3/docs/HouseAccountApi.md cloudbeds_pms_v1_3/docs/HousekeepingApi.md -cloudbeds_pms_v1_3/docs/ImportApi.md cloudbeds_pms_v1_3/docs/IntegrationApi.md -cloudbeds_pms_v1_3/docs/InvoicesApi.md cloudbeds_pms_v1_3/docs/ItemApi.md cloudbeds_pms_v1_3/docs/PackageApi.md cloudbeds_pms_v1_3/docs/PaymentApi.md -cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md cloudbeds_pms_v1_3/docs/PostAccessTokenResponse.md cloudbeds_pms_v1_3/docs/PostAccessTokenResponseResourcesInner.md cloudbeds_pms_v1_3/docs/PostAdjustmentResponse.md @@ -280,15 +231,9 @@ cloudbeds_pms_v1_3/docs/PostAppErrorResponse.md cloudbeds_pms_v1_3/docs/PostAppErrorResponseData.md cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponse.md cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponseData.md -cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md -cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md -cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md cloudbeds_pms_v1_3/docs/PostAppStateResponse.md cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponse.md cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponseData.md -cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md -cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md -cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md cloudbeds_pms_v1_3/docs/PostCardResponse.md cloudbeds_pms_v1_3/docs/PostCardResponseData.md cloudbeds_pms_v1_3/docs/PostChargeResponse.md @@ -331,7 +276,6 @@ cloudbeds_pms_v1_3/docs/PostFileResponse.md cloudbeds_pms_v1_3/docs/PostGovernmentReceiptResponse.md cloudbeds_pms_v1_3/docs/PostGroupNoteResponse.md cloudbeds_pms_v1_3/docs/PostGroupNoteResponseDataInner.md -cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md cloudbeds_pms_v1_3/docs/PostGuestDocumentResponse.md cloudbeds_pms_v1_3/docs/PostGuestDocumentResponseData.md cloudbeds_pms_v1_3/docs/PostGuestNoteResponse.md @@ -344,11 +288,9 @@ cloudbeds_pms_v1_3/docs/PostHousekeepingAssignmentResponse.md cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md +cloudbeds_pms_v1_3/docs/PostItemRequestPaymentsInner.md cloudbeds_pms_v1_3/docs/PostItemResponse.md cloudbeds_pms_v1_3/docs/PostItemResponseData.md -cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md -cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md -cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md cloudbeds_pms_v1_3/docs/PostItemsToInventoryRequestItem.md cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponse.md cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponseDataInner.md @@ -356,21 +298,15 @@ cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponse.md cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponseData.md cloudbeds_pms_v1_3/docs/PostPatchGroupResponse.md cloudbeds_pms_v1_3/docs/PostPatchGroupResponseDataInner.md -cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInner.md cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInnerInterval.md cloudbeds_pms_v1_3/docs/PostPatchRateResponse.md -cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md -cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md cloudbeds_pms_v1_3/docs/PostPaymentResponse.md cloudbeds_pms_v1_3/docs/PostPutAppPropertySettingsResponse.md cloudbeds_pms_v1_3/docs/PostPutGroupResponse.md -cloudbeds_pms_v1_3/docs/PostPutRateRequest.md cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInner.md cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInnerIntervalInner.md cloudbeds_pms_v1_3/docs/PostPutRateResponse.md -cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md -cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md cloudbeds_pms_v1_3/docs/PostReservationDocumentResponse.md cloudbeds_pms_v1_3/docs/PostReservationNoteResponse.md cloudbeds_pms_v1_3/docs/PostReservationRequestAdultsInner.md @@ -385,8 +321,6 @@ cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md cloudbeds_pms_v1_3/docs/PostRoomCheckInResponse.md cloudbeds_pms_v1_3/docs/PostRoomCheckOutResponse.md -cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md -cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponse.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md @@ -408,11 +342,6 @@ cloudbeds_pms_v1_3/docs/PutGuestResponse.md cloudbeds_pms_v1_3/docs/PutHouseAccountStatusResponse.md cloudbeds_pms_v1_3/docs/PutHousekeeperResponse.md cloudbeds_pms_v1_3/docs/PutItemToInventoryResponse.md -cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md -cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md -cloudbeds_pms_v1_3/docs/PutRateResponse.md -cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md -cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md cloudbeds_pms_v1_3/docs/PutReservationNoteResponse.md cloudbeds_pms_v1_3/docs/PutReservationRequestCustomFieldsInner.md cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md @@ -422,14 +351,12 @@ cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md cloudbeds_pms_v1_3/docs/RateApi.md cloudbeds_pms_v1_3/docs/ReservationApi.md cloudbeds_pms_v1_3/docs/RoomApi.md -cloudbeds_pms_v1_3/docs/RoomsApi.md cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md cloudbeds_pms_v1_3/docs/UserApi.md cloudbeds_pms_v1_3/exceptions.py cloudbeds_pms_v1_3/models/__init__.py cloudbeds_pms_v1_3/models/delete_adjustment_response.py cloudbeds_pms_v1_3/models/delete_guest_note_response.py -cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py cloudbeds_pms_v1_3/models/delete_reservation_note_response.py cloudbeds_pms_v1_3/models/delete_room_block_response.py cloudbeds_pms_v1_3/models/delete_webhook_response.py @@ -446,14 +373,6 @@ cloudbeds_pms_v1_3/models/get_app_settings_response.py cloudbeds_pms_v1_3/models/get_app_settings_response_data.py cloudbeds_pms_v1_3/models/get_app_state_response.py cloudbeds_pms_v1_3/models/get_app_state_response_data.py -cloudbeds_pms_v1_3/models/get_async_api_job_response.py -cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py -cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py -cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py cloudbeds_pms_v1_3/models/get_available_room_types_response.py cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner.py cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py @@ -503,7 +422,6 @@ cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_address.py cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_image_inner.py cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py -cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py cloudbeds_pms_v1_3/models/get_hotels_response.py cloudbeds_pms_v1_3/models/get_hotels_response_data_inner.py cloudbeds_pms_v1_3/models/get_hotels_response_data_inner_property_currency_inner.py @@ -513,14 +431,6 @@ cloudbeds_pms_v1_3/models/get_housekeepers_response.py cloudbeds_pms_v1_3/models/get_housekeepers_response_data_inner.py cloudbeds_pms_v1_3/models/get_housekeeping_status_response.py cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py -cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py -cloudbeds_pms_v1_3/models/get_import_tours_response.py -cloudbeds_pms_v1_3/models/get_invoice_response.py -cloudbeds_pms_v1_3/models/get_invoice_response_data.py -cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py -cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py -cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py -cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py cloudbeds_pms_v1_3/models/get_item_categories_response.py cloudbeds_pms_v1_3/models/get_item_categories_response_data_inner.py cloudbeds_pms_v1_3/models/get_item_response.py @@ -543,11 +453,6 @@ cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner_card_types_inner.py cloudbeds_pms_v1_3/models/get_payments_capabilities_response.py cloudbeds_pms_v1_3/models/get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_3/models/get_payments_response.py -cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py -cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py -cloudbeds_pms_v1_3/models/get_pending_transactions_response.py -cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py cloudbeds_pms_v1_3/models/get_rate_jobs_response.py cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner.py cloudbeds_pms_v1_3/models/get_rate_jobs_response_data_inner_updates_inner.py @@ -558,25 +463,9 @@ cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner_room_rate_detailed_ cloudbeds_pms_v1_3/models/get_rate_response.py cloudbeds_pms_v1_3/models/get_rate_response_data.py cloudbeds_pms_v1_3/models/get_rate_response_data_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py -cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py cloudbeds_pms_v1_3/models/get_reservation_assignments_response.py cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner.py cloudbeds_pms_v1_3/models/get_reservation_assignments_response_data_inner_assigned_inner.py -cloudbeds_pms_v1_3/models/get_reservation_departures_response.py -cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py -cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py -cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py -cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py cloudbeds_pms_v1_3/models/get_reservation_notes_response.py cloudbeds_pms_v1_3/models/get_reservation_notes_response_data_inner.py cloudbeds_pms_v1_3/models/get_reservation_response.py @@ -646,7 +535,6 @@ cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_event.py cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_owner.py cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_subscription_data.py -cloudbeds_pms_v1_3/models/post_access_token_check_response.py cloudbeds_pms_v1_3/models/post_access_token_response.py cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py cloudbeds_pms_v1_3/models/post_adjustment_response.py @@ -655,13 +543,9 @@ cloudbeds_pms_v1_3/models/post_app_error_response.py cloudbeds_pms_v1_3/models/post_app_error_response_data.py cloudbeds_pms_v1_3/models/post_app_property_setting_response.py cloudbeds_pms_v1_3/models/post_app_property_setting_response_data.py -cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py -cloudbeds_pms_v1_3/models/post_app_settings_response.py -cloudbeds_pms_v1_3/models/post_app_state_internal_response.py cloudbeds_pms_v1_3/models/post_app_state_response.py cloudbeds_pms_v1_3/models/post_append_custom_item_response.py cloudbeds_pms_v1_3/models/post_append_custom_item_response_data.py -cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py cloudbeds_pms_v1_3/models/post_card_response.py cloudbeds_pms_v1_3/models/post_card_response_data.py cloudbeds_pms_v1_3/models/post_charge_response.py @@ -682,8 +566,6 @@ cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotm cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py -cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py -cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py cloudbeds_pms_v1_3/models/post_custom_field_response.py cloudbeds_pms_v1_3/models/post_custom_field_response_data.py cloudbeds_pms_v1_3/models/post_custom_item_request_items_inner.py @@ -706,7 +588,6 @@ cloudbeds_pms_v1_3/models/post_file_response.py cloudbeds_pms_v1_3/models/post_government_receipt_response.py cloudbeds_pms_v1_3/models/post_group_note_response.py cloudbeds_pms_v1_3/models/post_group_note_response_data_inner.py -cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py cloudbeds_pms_v1_3/models/post_guest_document_response.py cloudbeds_pms_v1_3/models/post_guest_document_response_data.py cloudbeds_pms_v1_3/models/post_guest_note_response.py @@ -719,11 +600,9 @@ cloudbeds_pms_v1_3/models/post_housekeeping_assignment_response.py cloudbeds_pms_v1_3/models/post_housekeeping_status_response.py cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py cloudbeds_pms_v1_3/models/post_item_category_response.py +cloudbeds_pms_v1_3/models/post_item_request_payments_inner.py cloudbeds_pms_v1_3/models/post_item_response.py cloudbeds_pms_v1_3/models/post_item_response_data.py -cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py -cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py -cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py cloudbeds_pms_v1_3/models/post_items_to_inventory_response.py cloudbeds_pms_v1_3/models/post_items_to_inventory_response_data_inner.py @@ -731,21 +610,15 @@ cloudbeds_pms_v1_3/models/post_new_house_account_response.py cloudbeds_pms_v1_3/models/post_new_house_account_response_data.py cloudbeds_pms_v1_3/models/post_patch_group_response.py cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py -cloudbeds_pms_v1_3/models/post_patch_invoice_response.py cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner.py cloudbeds_pms_v1_3/models/post_patch_rate_request_rates_inner_interval.py cloudbeds_pms_v1_3/models/post_patch_rate_response.py -cloudbeds_pms_v1_3/models/post_payment_cash_response.py -cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py cloudbeds_pms_v1_3/models/post_payment_response.py cloudbeds_pms_v1_3/models/post_put_app_property_settings_response.py cloudbeds_pms_v1_3/models/post_put_group_response.py -cloudbeds_pms_v1_3/models/post_put_rate_request.py cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner.py cloudbeds_pms_v1_3/models/post_put_rate_request_rates_inner_interval_inner.py cloudbeds_pms_v1_3/models/post_put_rate_response.py -cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py -cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py cloudbeds_pms_v1_3/models/post_reservation_document_response.py cloudbeds_pms_v1_3/models/post_reservation_note_response.py cloudbeds_pms_v1_3/models/post_reservation_request_adults_inner.py @@ -760,8 +633,6 @@ cloudbeds_pms_v1_3/models/post_room_block_response.py cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py cloudbeds_pms_v1_3/models/post_room_check_in_response.py cloudbeds_pms_v1_3/models/post_room_check_out_response.py -cloudbeds_pms_v1_3/models/post_room_type_response.py -cloudbeds_pms_v1_3/models/post_room_type_response_data.py cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response.py cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response_data.py cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py @@ -783,11 +654,6 @@ cloudbeds_pms_v1_3/models/put_guest_response.py cloudbeds_pms_v1_3/models/put_house_account_status_response.py cloudbeds_pms_v1_3/models/put_housekeeper_response.py cloudbeds_pms_v1_3/models/put_item_to_inventory_response.py -cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py -cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_3/models/put_rate_response.py -cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py -cloudbeds_pms_v1_3/models/put_reservation_details_response.py cloudbeds_pms_v1_3/models/put_reservation_note_response.py cloudbeds_pms_v1_3/models/put_reservation_request_custom_fields_inner.py cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py @@ -796,8 +662,330 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py +cloudbeds_pms_v1_3/test/test_adjustment_api.py +cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py +cloudbeds_pms_v1_3/test/test_app_settings_api.py +cloudbeds_pms_v1_3/test/test_authentication_api.py +cloudbeds_pms_v1_3/test/test_currency_api.py +cloudbeds_pms_v1_3/test/test_custom_fields_api.py +cloudbeds_pms_v1_3/test/test_dashboard_api.py +cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py +cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py +cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_delete_room_block_response.py +cloudbeds_pms_v1_3/test/test_delete_webhook_response.py +cloudbeds_pms_v1_3/test/test_emails_api.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_state_response.py +cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_files_response.py +cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py +cloudbeds_pms_v1_3/test/test_get_groups_response.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_3/test/test_get_hotels_response.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response.py +cloudbeds_pms_v1_3/test/test_get_item_response_data.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_items_response.py +cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_metadata_response.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py +cloudbeds_pms_v1_3/test/test_get_packages_response.py +cloudbeds_pms_v1_3/test/test_get_packages_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_response.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response.py +cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_3/test/test_groups_api.py +cloudbeds_pms_v1_3/test/test_guest_api.py +cloudbeds_pms_v1_3/test/test_hotel_api.py +cloudbeds_pms_v1_3/test/test_house_account_api.py +cloudbeds_pms_v1_3/test/test_housekeeping_api.py +cloudbeds_pms_v1_3/test/test_integration_api.py +cloudbeds_pms_v1_3/test/test_item_api.py +cloudbeds_pms_v1_3/test/test_package_api.py +cloudbeds_pms_v1_3/test/test_payment_api.py +cloudbeds_pms_v1_3/test/test_post_access_token_response.py +cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_error_response.py +cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_state_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_card_response.py +cloudbeds_pms_v1_3/test/test_post_card_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py +cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py +cloudbeds_pms_v1_3/test/test_post_email_template_response.py +cloudbeds_pms_v1_3/test/test_post_file_response.py +cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py +cloudbeds_pms_v1_3/test/test_post_guest_note_response.py +cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py +cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_response.py +cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py +cloudbeds_pms_v1_3/test/test_post_item_category_response.py +cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_item_response.py +cloudbeds_pms_v1_3/test/test_post_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py +cloudbeds_pms_v1_3/test/test_post_payment_response.py +cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_put_group_response.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_post_room_assign_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_block_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py +cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_void_item_response.py +cloudbeds_pms_v1_3/test/test_post_void_payment_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py +cloudbeds_pms_v1_3/test/test_put_guest_note_response.py +cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_guest_response.py +cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py +cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_response.py +cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_room_block_response.py +cloudbeds_pms_v1_3/test/test_rate_api.py +cloudbeds_pms_v1_3/test/test_reservation_api.py +cloudbeds_pms_v1_3/test/test_room_api.py +cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py +cloudbeds_pms_v1_3/test/test_user_api.py diff --git a/README.md b/README.md index 4ea0cf6..7f0503e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.1.0 +- Package version: 1.2.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -90,15 +90,10 @@ Class | Method | HTTP request | Description *AppSettingsApi* | [**delete_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#delete_app_property_settings_post) | **POST** /deleteAppPropertySettings | deleteAppPropertySettings *AppSettingsApi* | [**get_app_property_settings_get**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#get_app_property_settings_get) | **GET** /getAppPropertySettings | getAppPropertySettings *AppSettingsApi* | [**post_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#post_app_property_settings_post) | **POST** /postAppPropertySettings | postAppPropertySettings -*AppSettingsApi* | [**post_bulk_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#post_bulk_app_property_settings_post) | **POST** /postBulkAppPropertySettings | postBulkAppPropertySettings *AppSettingsApi* | [**put_app_property_settings_post**](cloudbeds_pms_v1_3/docs/AppSettingsApi.md#put_app_property_settings_post) | **POST** /putAppPropertySettings | putAppPropertySettings -*AuthenticationApi* | [**access_token_check_post**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#access_token_check_post) | **POST** /access_token_check | access_token_check *AuthenticationApi* | [**access_token_post**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#access_token_post) | **POST** /access_token | access_token *AuthenticationApi* | [**oauth_metadata_get**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#oauth_metadata_get) | **GET** /oauth/metadata | metadata *AuthenticationApi* | [**userinfo_get**](cloudbeds_pms_v1_3/docs/AuthenticationApi.md#userinfo_get) | **GET** /userinfo | userinfo -*BetaApi* | [**get_async_api_job_get**](cloudbeds_pms_v1_3/docs/BetaApi.md#get_async_api_job_get) | **GET** /getAsyncApiJob | getAsyncApiJob -*CRMApi* | [**crm_cache_remove_post**](cloudbeds_pms_v1_3/docs/CRMApi.md#crm_cache_remove_post) | **POST** /crm/cache_remove | PostCRMCacheRemove -*CRMApi* | [**crm_cache_update_post**](cloudbeds_pms_v1_3/docs/CRMApi.md#crm_cache_update_post) | **POST** /crm/cache_update | PostCRMCacheUpdate *CurrencyApi* | [**get_currency_settings_get**](cloudbeds_pms_v1_3/docs/CurrencyApi.md#get_currency_settings_get) | **GET** /getCurrencySettings | getCurrencySettings *CustomFieldsApi* | [**get_custom_fields_get**](cloudbeds_pms_v1_3/docs/CustomFieldsApi.md#get_custom_fields_get) | **GET** /getCustomFields | getCustomFields *CustomFieldsApi* | [**post_custom_field_post**](cloudbeds_pms_v1_3/docs/CustomFieldsApi.md#post_custom_field_post) | **POST** /postCustomField | postCustomField @@ -119,7 +114,6 @@ Class | Method | HTTP request | Description *GuestApi* | [**get_guests_by_filter_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guests_by_filter_get) | **GET** /getGuestsByFilter | getGuestsByFilter *GuestApi* | [**get_guests_by_status_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guests_by_status_get) | **GET** /getGuestsByStatus | getGuestsByStatus *GuestApi* | [**get_guests_modified_get**](cloudbeds_pms_v1_3/docs/GuestApi.md#get_guests_modified_get) | **GET** /getGuestsModified | getGuestsModified -*GuestApi* | [**post_guest_credit_card_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_credit_card_post) | **POST** /postGuestCreditCard | postGuestCreditCard *GuestApi* | [**post_guest_document_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_document_post) | **POST** /postGuestDocument | postGuestDocument *GuestApi* | [**post_guest_note_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_note_post) | **POST** /postGuestNote | postGuestNote *GuestApi* | [**post_guest_photo_post**](cloudbeds_pms_v1_3/docs/GuestApi.md#post_guest_photo_post) | **POST** /postGuestPhoto | postGuestPhoto @@ -140,30 +134,21 @@ Class | Method | HTTP request | Description *HousekeepingApi* | [**post_housekeeping_assignment_post**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#post_housekeeping_assignment_post) | **POST** /postHousekeepingAssignment | postHousekeepingAssignment *HousekeepingApi* | [**post_housekeeping_status_post**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#post_housekeeping_status_post) | **POST** /postHousekeepingStatus | postHousekeepingStatus *HousekeepingApi* | [**put_housekeeper_put**](cloudbeds_pms_v1_3/docs/HousekeepingApi.md#put_housekeeper_put) | **PUT** /putHousekeeper | putHousekeeper -*ImportApi* | [**import_dummy_reservations_get**](cloudbeds_pms_v1_3/docs/ImportApi.md#import_dummy_reservations_get) | **GET** /import/dummyReservations | GetImportDummyReservations -*ImportApi* | [**import_tours_get**](cloudbeds_pms_v1_3/docs/ImportApi.md#import_tours_get) | **GET** /import/tours | GetImportTours *IntegrationApi* | [**delete_webhook_delete**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#delete_webhook_delete) | **DELETE** /deleteWebhook | deleteWebhook *IntegrationApi* | [**get_app_settings_get**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#get_app_settings_get) | **GET** /getAppSettings | getAppSettings *IntegrationApi* | [**get_app_state_get**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#get_app_state_get) | **GET** /getAppState | getAppState *IntegrationApi* | [**get_webhooks_get**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#get_webhooks_get) | **GET** /getWebhooks | getWebhooks *IntegrationApi* | [**post_app_error_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_error_post) | **POST** /postAppError | postAppError -*IntegrationApi* | [**post_app_settings_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_settings_post) | **POST** /postAppSettings | postAppSettings -*IntegrationApi* | [**post_app_state_internal_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_state_internal_post) | **POST** /postAppStateInternal | postAppStateInternal *IntegrationApi* | [**post_app_state_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_app_state_post) | **POST** /postAppState | postAppState *IntegrationApi* | [**post_government_receipt_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_government_receipt_post) | **POST** /postGovernmentReceipt | postGovernmentReceipt *IntegrationApi* | [**post_webhook_post**](cloudbeds_pms_v1_3/docs/IntegrationApi.md#post_webhook_post) | **POST** /postWebhook | postWebhook -*InvoicesApi* | [**get_invoice_get**](cloudbeds_pms_v1_3/docs/InvoicesApi.md#get_invoice_get) | **GET** /getInvoice | getInvoice -*InvoicesApi* | [**invoice_get**](cloudbeds_pms_v1_3/docs/InvoicesApi.md#invoice_get) | **GET** /invoice | invoice -*InvoicesApi* | [**patch_invoice_post**](cloudbeds_pms_v1_3/docs/InvoicesApi.md#patch_invoice_post) | **POST** /patchInvoice | patchInvoice *ItemApi* | [**append_custom_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#append_custom_item_post) | **POST** /appendCustomItem | appendCustomItem -*ItemApi* | [**delete_item_from_reservation_delete**](cloudbeds_pms_v1_3/docs/ItemApi.md#delete_item_from_reservation_delete) | **DELETE** /deleteItemFromReservation | deleteItemFromReservation *ItemApi* | [**get_item_categories_get**](cloudbeds_pms_v1_3/docs/ItemApi.md#get_item_categories_get) | **GET** /getItemCategories | getItemCategories *ItemApi* | [**get_item_get**](cloudbeds_pms_v1_3/docs/ItemApi.md#get_item_get) | **GET** /getItem | getItem *ItemApi* | [**get_items_get**](cloudbeds_pms_v1_3/docs/ItemApi.md#get_items_get) | **GET** /getItems | getItems *ItemApi* | [**post_custom_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_custom_item_post) | **POST** /postCustomItem | postCustomItem *ItemApi* | [**post_item_category_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_item_category_post) | **POST** /postItemCategory | postItemCategory *ItemApi* | [**post_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_item_post) | **POST** /postItem | postItem -*ItemApi* | [**post_item_to_reservation_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_item_to_reservation_post) | **POST** /postItemToReservation | postItemToReservation *ItemApi* | [**post_items_to_inventory_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_items_to_inventory_post) | **POST** /postItemsToInventory | postItemsToInventory *ItemApi* | [**post_void_item_post**](cloudbeds_pms_v1_3/docs/ItemApi.md#post_void_item_post) | **POST** /postVoidItem | postVoidItem *ItemApi* | [**put_item_to_inventory_put**](cloudbeds_pms_v1_3/docs/ItemApi.md#put_item_to_inventory_put) | **PUT** /putItemToInventory | putItemToInventory @@ -171,37 +156,26 @@ Class | Method | HTTP request | Description *PackageApi* | [**get_packages_get**](cloudbeds_pms_v1_3/docs/PackageApi.md#get_packages_get) | **GET** /getPackages | getPackages *PaymentApi* | [**get_payment_methods_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods *PaymentApi* | [**get_payments_capabilities_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities -*PaymentApi* | [**get_payments_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments -*PaymentApi* | [**get_pending_transactions_get**](cloudbeds_pms_v1_3/docs/PaymentApi.md#get_pending_transactions_get) | **GET** /getPendingTransactions | getPendingTransactions *PaymentApi* | [**post_charge_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge *PaymentApi* | [**post_credit_card_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard *PaymentApi* | [**post_custom_payment_method_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod -*PaymentApi* | [**post_payment_cash_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_payment_cash_post) | **POST** /postPaymentCash | postPaymentCash -*PaymentApi* | [**post_payment_credit_card_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_payment_credit_card_post) | **POST** /postPaymentCreditCard | postPaymentCreditCard *PaymentApi* | [**post_payment_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment *PaymentApi* | [**post_void_payment_post**](cloudbeds_pms_v1_3/docs/PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment *RateApi* | [**get_rate_get**](cloudbeds_pms_v1_3/docs/RateApi.md#get_rate_get) | **GET** /getRate | getRate *RateApi* | [**get_rate_jobs_get**](cloudbeds_pms_v1_3/docs/RateApi.md#get_rate_jobs_get) | **GET** /getRateJobs | getRateJobs *RateApi* | [**get_rate_plans_get**](cloudbeds_pms_v1_3/docs/RateApi.md#get_rate_plans_get) | **GET** /getRatePlans | getRatePlans *RateApi* | [**patch_rate_post**](cloudbeds_pms_v1_3/docs/RateApi.md#patch_rate_post) | **POST** /patchRate | patchRate -*RateApi* | [**put_rate_put**](cloudbeds_pms_v1_3/docs/RateApi.md#put_rate_put) | **PUT** /putRate | putRate +*RateApi* | [**put_rate_post**](cloudbeds_pms_v1_3/docs/RateApi.md#put_rate_post) | **POST** /putRate | putRate *ReservationApi* | [**delete_reservation_note_delete**](cloudbeds_pms_v1_3/docs/ReservationApi.md#delete_reservation_note_delete) | **DELETE** /deleteReservationNote | deleteReservationNote -*ReservationApi* | [**get_reservation_arrivals_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_arrivals_get) | **GET** /getReservationArrivals | getReservationArrivals *ReservationApi* | [**get_reservation_assignments_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_assignments_get) | **GET** /getReservationAssignments | getReservationAssignments -*ReservationApi* | [**get_reservation_departures_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_departures_get) | **GET** /getReservationDepartures | getReservationDepartures *ReservationApi* | [**get_reservation_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_get) | **GET** /getReservation | getReservation -*ReservationApi* | [**get_reservation_in_house_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_in_house_get) | **GET** /getReservationInHouse | getReservationInHouse -*ReservationApi* | [**get_reservation_invoice_information_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_invoice_information_get) | **GET** /getReservationInvoiceInformation | getReservationInvoiceInformation *ReservationApi* | [**get_reservation_notes_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservation_notes_get) | **GET** /getReservationNotes | getReservationNotes *ReservationApi* | [**get_reservations_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservations_get) | **GET** /getReservations | getReservations *ReservationApi* | [**get_reservations_with_rate_details_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_reservations_with_rate_details_get) | **GET** /getReservationsWithRateDetails | getReservationsWithRateDetails *ReservationApi* | [**get_sources_get**](cloudbeds_pms_v1_3/docs/ReservationApi.md#get_sources_get) | **GET** /getSources | getSources -*ReservationApi* | [**post_reservation_check_in_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_check_in_post) | **POST** /postReservationCheckIn | postReservationCheckIn -*ReservationApi* | [**post_reservation_check_out_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_check_out_post) | **POST** /postReservationCheckOut | postReservationCheckOut *ReservationApi* | [**post_reservation_document_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_document_post) | **POST** /postReservationDocument | postReservationDocument *ReservationApi* | [**post_reservation_note_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_note_post) | **POST** /postReservationNote | postReservationNote *ReservationApi* | [**post_reservation_post**](cloudbeds_pms_v1_3/docs/ReservationApi.md#post_reservation_post) | **POST** /postReservation | postReservation -*ReservationApi* | [**put_reservation_details_put**](cloudbeds_pms_v1_3/docs/ReservationApi.md#put_reservation_details_put) | **PUT** /putReservationDetails | putReservationDetails *ReservationApi* | [**put_reservation_note_put**](cloudbeds_pms_v1_3/docs/ReservationApi.md#put_reservation_note_put) | **PUT** /putReservationNote | putReservationNote *ReservationApi* | [**put_reservation_put**](cloudbeds_pms_v1_3/docs/ReservationApi.md#put_reservation_put) | **PUT** /putReservation | putReservation *RoomApi* | [**delete_room_block_delete**](cloudbeds_pms_v1_3/docs/RoomApi.md#delete_room_block_delete) | **DELETE** /deleteRoomBlock | deleteRoomBlock @@ -216,9 +190,7 @@ Class | Method | HTTP request | Description *RoomApi* | [**post_room_block_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_block_post) | **POST** /postRoomBlock | postRoomBlock *RoomApi* | [**post_room_check_in_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_check_in_post) | **POST** /postRoomCheckIn | postRoomCheckIn *RoomApi* | [**post_room_check_out_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_check_out_post) | **POST** /postRoomCheckOut | postRoomCheckOut -*RoomApi* | [**post_room_type_post**](cloudbeds_pms_v1_3/docs/RoomApi.md#post_room_type_post) | **POST** /postRoomType | postRoomType *RoomApi* | [**put_room_block_put**](cloudbeds_pms_v1_3/docs/RoomApi.md#put_room_block_put) | **PUT** /putRoomBlock | putRoomBlock -*RoomsApi* | [**get_hotel_room_types_get**](cloudbeds_pms_v1_3/docs/RoomsApi.md#get_hotel_room_types_get) | **GET** /getHotelRoomTypes | getHotelRoomTypes *TaxesAndFeesApi* | [**get_taxes_and_fees_get**](cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md#get_taxes_and_fees_get) | **GET** /getTaxesAndFees | getTaxesAndFees *UserApi* | [**get_users_get**](cloudbeds_pms_v1_3/docs/UserApi.md#get_users_get) | **GET** /getUsers | getUsers @@ -227,7 +199,6 @@ Class | Method | HTTP request | Description - [DeleteAdjustmentResponse](cloudbeds_pms_v1_3/docs/DeleteAdjustmentResponse.md) - [DeleteGuestNoteResponse](cloudbeds_pms_v1_3/docs/DeleteGuestNoteResponse.md) - - [DeleteItemFromReservationResponse](cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md) - [DeleteReservationNoteResponse](cloudbeds_pms_v1_3/docs/DeleteReservationNoteResponse.md) - [DeleteRoomBlockResponse](cloudbeds_pms_v1_3/docs/DeleteRoomBlockResponse.md) - [DeleteWebhookResponse](cloudbeds_pms_v1_3/docs/DeleteWebhookResponse.md) @@ -244,14 +215,6 @@ Class | Method | HTTP request | Description - [GetAppSettingsResponseData](cloudbeds_pms_v1_3/docs/GetAppSettingsResponseData.md) - [GetAppStateResponse](cloudbeds_pms_v1_3/docs/GetAppStateResponse.md) - [GetAppStateResponseData](cloudbeds_pms_v1_3/docs/GetAppStateResponseData.md) - - [GetAsyncApiJobResponse](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md) - - [GetAsyncApiJobResponseDataInner](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md) - - [GetAsyncApiJobResponseDataInnerUpdatesInner](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md) - - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md) - - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md) - - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) - - [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md) - - [GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease](cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md) - [GetAvailableRoomTypesResponse](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponse.md) - [GetAvailableRoomTypesResponseDataInner](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInner.md) - [GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_3/docs/GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner.md) @@ -301,7 +264,6 @@ Class | Method | HTTP request | Description - [GetHotelDetailsResponseDataPropertyCurrency](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyCurrency.md) - [GetHotelDetailsResponseDataPropertyImageInner](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyImageInner.md) - [GetHotelDetailsResponseDataPropertyPolicy](cloudbeds_pms_v1_3/docs/GetHotelDetailsResponseDataPropertyPolicy.md) - - [GetHotelRoomTypesResponse](cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md) - [GetHotelsResponse](cloudbeds_pms_v1_3/docs/GetHotelsResponse.md) - [GetHotelsResponseDataInner](cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInner.md) - [GetHotelsResponseDataInnerPropertyCurrencyInner](cloudbeds_pms_v1_3/docs/GetHotelsResponseDataInnerPropertyCurrencyInner.md) @@ -311,14 +273,6 @@ Class | Method | HTTP request | Description - [GetHousekeepersResponseDataInner](cloudbeds_pms_v1_3/docs/GetHousekeepersResponseDataInner.md) - [GetHousekeepingStatusResponse](cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponse.md) - [GetHousekeepingStatusResponseDataInner](cloudbeds_pms_v1_3/docs/GetHousekeepingStatusResponseDataInner.md) - - [GetImportDummyReservationsResponse](cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md) - - [GetImportToursResponse](cloudbeds_pms_v1_3/docs/GetImportToursResponse.md) - - [GetInvoiceResponse](cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md) - - [GetInvoiceResponseData](cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md) - - [GetInvoiceResponseDataBilledTo](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md) - - [GetInvoiceResponseDataItemsInner](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md) - - [GetInvoiceResponseDataItemsInnerFeesInner](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md) - - [GetInvoiceResponseDataItemsInnerTaxesInner](cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md) - [GetItemCategoriesResponse](cloudbeds_pms_v1_3/docs/GetItemCategoriesResponse.md) - [GetItemCategoriesResponseDataInner](cloudbeds_pms_v1_3/docs/GetItemCategoriesResponseDataInner.md) - [GetItemResponse](cloudbeds_pms_v1_3/docs/GetItemResponse.md) @@ -341,11 +295,6 @@ Class | Method | HTTP request | Description - [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) - [GetPaymentsCapabilitiesResponse](cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md) - [GetPaymentsCapabilitiesResponseDataInner](cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponseDataInner.md) - - [GetPaymentsResponse](cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md) - - [GetPaymentsResponseDataInner](cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md) - - [GetPaymentsResponseDataInnerPaymentAllocationInner](cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md) - - [GetPendingTransactionsResponse](cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md) - - [GetPendingTransactionsResponseDataInner](cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md) - [GetRateJobsResponse](cloudbeds_pms_v1_3/docs/GetRateJobsResponse.md) - [GetRateJobsResponseDataInner](cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInner.md) - [GetRateJobsResponseDataInnerUpdatesInner](cloudbeds_pms_v1_3/docs/GetRateJobsResponseDataInnerUpdatesInner.md) @@ -356,25 +305,9 @@ Class | Method | HTTP request | Description - [GetRateResponse](cloudbeds_pms_v1_3/docs/GetRateResponse.md) - [GetRateResponseData](cloudbeds_pms_v1_3/docs/GetRateResponseData.md) - [GetRateResponseDataRoomRateDetailedInner](cloudbeds_pms_v1_3/docs/GetRateResponseDataRoomRateDetailedInner.md) - - [GetReservationArrivalsResponse](cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md) - - [GetReservationArrivalsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md) - [GetReservationAssignmentsResponse](cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponse.md) - [GetReservationAssignmentsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInner.md) - [GetReservationAssignmentsResponseDataInnerAssignedInner](cloudbeds_pms_v1_3/docs/GetReservationAssignmentsResponseDataInnerAssignedInner.md) - - [GetReservationDeparturesResponse](cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md) - - [GetReservationDeparturesResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md) - - [GetReservationInHouseResponse](cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md) - - [GetReservationInHouseResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md) - - [GetReservationInvoiceInformationResponse](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md) - - [GetReservationInvoiceInformationResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md) - - [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) - - [GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md) - - [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner](cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) - [GetReservationNotesResponse](cloudbeds_pms_v1_3/docs/GetReservationNotesResponse.md) - [GetReservationNotesResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationNotesResponseDataInner.md) - [GetReservationResponse](cloudbeds_pms_v1_3/docs/GetReservationResponse.md) @@ -444,7 +377,6 @@ Class | Method | HTTP request | Description - [GetWebhooksResponseDataInnerKey](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerKey.md) - [GetWebhooksResponseDataInnerOwner](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerOwner.md) - [GetWebhooksResponseDataInnerSubscriptionData](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerSubscriptionData.md) - - [PostAccessTokenCheckResponse](cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md) - [PostAccessTokenResponse](cloudbeds_pms_v1_3/docs/PostAccessTokenResponse.md) - [PostAccessTokenResponseResourcesInner](cloudbeds_pms_v1_3/docs/PostAccessTokenResponseResourcesInner.md) - [PostAdjustmentResponse](cloudbeds_pms_v1_3/docs/PostAdjustmentResponse.md) @@ -453,15 +385,9 @@ Class | Method | HTTP request | Description - [PostAppErrorResponseData](cloudbeds_pms_v1_3/docs/PostAppErrorResponseData.md) - [PostAppPropertySettingResponse](cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponse.md) - [PostAppPropertySettingResponseData](cloudbeds_pms_v1_3/docs/PostAppPropertySettingResponseData.md) - - [PostAppSettingsRequestSettingsInner](cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md) - - [PostAppSettingsResponse](cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md) - - [PostAppStateInternalResponse](cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md) - [PostAppStateResponse](cloudbeds_pms_v1_3/docs/PostAppStateResponse.md) - [PostAppendCustomItemResponse](cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponse.md) - [PostAppendCustomItemResponseData](cloudbeds_pms_v1_3/docs/PostAppendCustomItemResponseData.md) - - [PostBulkAppPropertySettingsResponse](cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md) - - [PostCRMCacheRemoveResponse](cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md) - - [PostCRMCacheUpdateResponse](cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md) - [PostCardResponse](cloudbeds_pms_v1_3/docs/PostCardResponse.md) - [PostCardResponseData](cloudbeds_pms_v1_3/docs/PostCardResponseData.md) - [PostChargeResponse](cloudbeds_pms_v1_3/docs/PostChargeResponse.md) @@ -504,7 +430,6 @@ Class | Method | HTTP request | Description - [PostGovernmentReceiptResponse](cloudbeds_pms_v1_3/docs/PostGovernmentReceiptResponse.md) - [PostGroupNoteResponse](cloudbeds_pms_v1_3/docs/PostGroupNoteResponse.md) - [PostGroupNoteResponseDataInner](cloudbeds_pms_v1_3/docs/PostGroupNoteResponseDataInner.md) - - [PostGuestCreditCardResponse](cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md) - [PostGuestDocumentResponse](cloudbeds_pms_v1_3/docs/PostGuestDocumentResponse.md) - [PostGuestDocumentResponseData](cloudbeds_pms_v1_3/docs/PostGuestDocumentResponseData.md) - [PostGuestNoteResponse](cloudbeds_pms_v1_3/docs/PostGuestNoteResponse.md) @@ -517,11 +442,9 @@ Class | Method | HTTP request | Description - [PostHousekeepingStatusResponse](cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponse.md) - [PostHousekeepingStatusResponseData](cloudbeds_pms_v1_3/docs/PostHousekeepingStatusResponseData.md) - [PostItemCategoryResponse](cloudbeds_pms_v1_3/docs/PostItemCategoryResponse.md) + - [PostItemRequestPaymentsInner](cloudbeds_pms_v1_3/docs/PostItemRequestPaymentsInner.md) - [PostItemResponse](cloudbeds_pms_v1_3/docs/PostItemResponse.md) - [PostItemResponseData](cloudbeds_pms_v1_3/docs/PostItemResponseData.md) - - [PostItemToReservationRequestPaymentsInner](cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md) - - [PostItemToReservationResponse](cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md) - - [PostItemToReservationResponseData](cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md) - [PostItemsToInventoryRequestItem](cloudbeds_pms_v1_3/docs/PostItemsToInventoryRequestItem.md) - [PostItemsToInventoryResponse](cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponse.md) - [PostItemsToInventoryResponseDataInner](cloudbeds_pms_v1_3/docs/PostItemsToInventoryResponseDataInner.md) @@ -529,21 +452,15 @@ Class | Method | HTTP request | Description - [PostNewHouseAccountResponseData](cloudbeds_pms_v1_3/docs/PostNewHouseAccountResponseData.md) - [PostPatchGroupResponse](cloudbeds_pms_v1_3/docs/PostPatchGroupResponse.md) - [PostPatchGroupResponseDataInner](cloudbeds_pms_v1_3/docs/PostPatchGroupResponseDataInner.md) - - [PostPatchInvoiceResponse](cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md) - [PostPatchRateRequestRatesInner](cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInner.md) - [PostPatchRateRequestRatesInnerInterval](cloudbeds_pms_v1_3/docs/PostPatchRateRequestRatesInnerInterval.md) - [PostPatchRateResponse](cloudbeds_pms_v1_3/docs/PostPatchRateResponse.md) - - [PostPaymentCashResponse](cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md) - - [PostPaymentCreditCardResponse](cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md) - [PostPaymentResponse](cloudbeds_pms_v1_3/docs/PostPaymentResponse.md) - [PostPutAppPropertySettingsResponse](cloudbeds_pms_v1_3/docs/PostPutAppPropertySettingsResponse.md) - [PostPutGroupResponse](cloudbeds_pms_v1_3/docs/PostPutGroupResponse.md) - - [PostPutRateRequest](cloudbeds_pms_v1_3/docs/PostPutRateRequest.md) - [PostPutRateRequestRatesInner](cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInner.md) - [PostPutRateRequestRatesInnerIntervalInner](cloudbeds_pms_v1_3/docs/PostPutRateRequestRatesInnerIntervalInner.md) - [PostPutRateResponse](cloudbeds_pms_v1_3/docs/PostPutRateResponse.md) - - [PostReservationCheckInResponse](cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md) - - [PostReservationCheckOutResponse](cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md) - [PostReservationDocumentResponse](cloudbeds_pms_v1_3/docs/PostReservationDocumentResponse.md) - [PostReservationNoteResponse](cloudbeds_pms_v1_3/docs/PostReservationNoteResponse.md) - [PostReservationRequestAdultsInner](cloudbeds_pms_v1_3/docs/PostReservationRequestAdultsInner.md) @@ -558,8 +475,6 @@ Class | Method | HTTP request | Description - [PostRoomBlockResponseRoomsInner](cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md) - [PostRoomCheckInResponse](cloudbeds_pms_v1_3/docs/PostRoomCheckInResponse.md) - [PostRoomCheckOutResponse](cloudbeds_pms_v1_3/docs/PostRoomCheckOutResponse.md) - - [PostRoomTypeResponse](cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md) - - [PostRoomTypeResponseData](cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md) - [PostUpdateAllotmentBlockNotesResponse](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponse.md) - [PostUpdateAllotmentBlockNotesResponseData](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md) - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md) @@ -581,11 +496,6 @@ Class | Method | HTTP request | Description - [PutHouseAccountStatusResponse](cloudbeds_pms_v1_3/docs/PutHouseAccountStatusResponse.md) - [PutHousekeeperResponse](cloudbeds_pms_v1_3/docs/PutHousekeeperResponse.md) - [PutItemToInventoryResponse](cloudbeds_pms_v1_3/docs/PutItemToInventoryResponse.md) - - [PutRateRequestRatesInner](cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md) - - [PutRateRequestRatesInnerIntervalInner](cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md) - - [PutRateResponse](cloudbeds_pms_v1_3/docs/PutRateResponse.md) - - [PutReservationDetailsRequestCustomFieldsInner](cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md) - - [PutReservationDetailsResponse](cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md) - [PutReservationNoteResponse](cloudbeds_pms_v1_3/docs/PutReservationNoteResponse.md) - [PutReservationRequestCustomFieldsInner](cloudbeds_pms_v1_3/docs/PutReservationRequestCustomFieldsInner.md) - [PutReservationRequestRoomsInner](cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md) @@ -613,10 +523,8 @@ Authentication schemes defined for the API: - **Flow**: accessCode - **Authorization URL**: - **Scopes**: - - **access_token**: access_token - **delete:adjustment**: delete:adjustment - **delete:appPropertySettings**: delete:appPropertySettings - - **delete:item**: delete:item - **delete:roomblock**: delete:roomblock - **read:allotmentBlock**: read:allotmentBlock - **read:appPropertySettings**: read:appPropertySettings diff --git a/VERSION b/VERSION index 9084fa2..26aaba0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.0 +1.2.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 86adcdd..16358dd 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,15 +14,13 @@ """ # noqa: E501 -__version__ = "1.1.0" +__version__ = "1.2.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi -from cloudbeds_pms_v1_3.api.beta_api import BetaApi -from cloudbeds_pms_v1_3.api.crm_api import CRMApi from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi @@ -32,16 +30,13 @@ from cloudbeds_pms_v1_3.api.hotel_api import HotelApi from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi -from cloudbeds_pms_v1_3.api.import_api import ImportApi from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi -from cloudbeds_pms_v1_3.api.invoices_api import InvoicesApi from cloudbeds_pms_v1_3.api.item_api import ItemApi from cloudbeds_pms_v1_3.api.package_api import PackageApi from cloudbeds_pms_v1_3.api.payment_api import PaymentApi from cloudbeds_pms_v1_3.api.rate_api import RateApi from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi from cloudbeds_pms_v1_3.api.room_api import RoomApi -from cloudbeds_pms_v1_3.api.rooms_api import RoomsApi from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi from cloudbeds_pms_v1_3.api.user_api import UserApi @@ -59,7 +54,6 @@ # import models into sdk package from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse -from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse @@ -76,14 +70,6 @@ from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData -from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner @@ -133,7 +119,6 @@ from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy -from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner @@ -143,14 +128,6 @@ from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner -from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse -from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse -from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData -from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse @@ -173,11 +150,6 @@ from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner -from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse -from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner @@ -188,25 +160,9 @@ from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner -from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse -from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse @@ -276,7 +232,6 @@ from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData -from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse @@ -285,15 +240,9 @@ from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData -from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner -from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse -from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData -from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse -from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse @@ -336,7 +285,6 @@ from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner -from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse @@ -349,11 +297,9 @@ from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData -from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner @@ -361,21 +307,15 @@ from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner -from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse -from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse -from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse -from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse -from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner @@ -390,8 +330,6 @@ from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse -from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner @@ -413,11 +351,6 @@ from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner -from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse -from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner diff --git a/cloudbeds_pms_v1_3/api/__init__.py b/cloudbeds_pms_v1_3/api/__init__.py index fbbe42b..e69a82e 100644 --- a/cloudbeds_pms_v1_3/api/__init__.py +++ b/cloudbeds_pms_v1_3/api/__init__.py @@ -5,8 +5,6 @@ from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi -from cloudbeds_pms_v1_3.api.beta_api import BetaApi -from cloudbeds_pms_v1_3.api.crm_api import CRMApi from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi @@ -16,16 +14,13 @@ from cloudbeds_pms_v1_3.api.hotel_api import HotelApi from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi -from cloudbeds_pms_v1_3.api.import_api import ImportApi from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi -from cloudbeds_pms_v1_3.api.invoices_api import InvoicesApi from cloudbeds_pms_v1_3.api.item_api import ItemApi from cloudbeds_pms_v1_3.api.package_api import PackageApi from cloudbeds_pms_v1_3.api.payment_api import PaymentApi from cloudbeds_pms_v1_3.api.rate_api import RateApi from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi from cloudbeds_pms_v1_3.api.room_api import RoomApi -from cloudbeds_pms_v1_3.api.rooms_api import RoomsApi from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi from cloudbeds_pms_v1_3.api.user_api import UserApi diff --git a/cloudbeds_pms_v1_3/api/app_settings_api.py b/cloudbeds_pms_v1_3/api/app_settings_api.py index 4463bab..65517b4 100644 --- a/cloudbeds_pms_v1_3/api/app_settings_api.py +++ b/cloudbeds_pms_v1_3/api/app_settings_api.py @@ -21,7 +21,6 @@ from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse -from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse @@ -934,311 +933,6 @@ def _post_app_property_settings_post_serialize( - @validate_call - def post_bulk_app_property_settings_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, - settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostBulkAppPropertySettingsResponse: - """postBulkAppPropertySettings - - - - :param property_id: Property ID - :type property_id: str - :param app_client_id: Application Client ID - :type app_client_id: str - :param settings: JSON array of settings values - :type settings: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_bulk_app_property_settings_post_serialize( - property_id=property_id, - app_client_id=app_client_id, - settings=settings, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostBulkAppPropertySettingsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_bulk_app_property_settings_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, - settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostBulkAppPropertySettingsResponse]: - """postBulkAppPropertySettings - - - - :param property_id: Property ID - :type property_id: str - :param app_client_id: Application Client ID - :type app_client_id: str - :param settings: JSON array of settings values - :type settings: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_bulk_app_property_settings_post_serialize( - property_id=property_id, - app_client_id=app_client_id, - settings=settings, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostBulkAppPropertySettingsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_bulk_app_property_settings_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - app_client_id: Annotated[Optional[StrictStr], Field(description="Application Client ID")] = None, - settings: Annotated[Optional[StrictStr], Field(description="JSON array of settings values")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postBulkAppPropertySettings - - - - :param property_id: Property ID - :type property_id: str - :param app_client_id: Application Client ID - :type app_client_id: str - :param settings: JSON array of settings values - :type settings: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_bulk_app_property_settings_post_serialize( - property_id=property_id, - app_client_id=app_client_id, - settings=settings, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostBulkAppPropertySettingsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_bulk_app_property_settings_post_serialize( - self, - property_id, - app_client_id, - settings, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if app_client_id is not None: - _form_params.append(('appClientID', app_client_id)) - if settings is not None: - _form_params.append(('settings', settings)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postBulkAppPropertySettings', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def put_app_property_settings_post( self, diff --git a/cloudbeds_pms_v1_3/api/authentication_api.py b/cloudbeds_pms_v1_3/api/authentication_api.py index e3b04c8..25a5a9a 100644 --- a/cloudbeds_pms_v1_3/api/authentication_api.py +++ b/cloudbeds_pms_v1_3/api/authentication_api.py @@ -21,7 +21,6 @@ from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse -from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized @@ -42,251 +41,6 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def access_token_check_post( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostAccessTokenCheckResponse: - """access_token_check - - A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._access_token_check_post_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAccessTokenCheckResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def access_token_check_post_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostAccessTokenCheckResponse]: - """access_token_check - - A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._access_token_check_post_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAccessTokenCheckResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def access_token_check_post_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """access_token_check - - A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._access_token_check_post_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAccessTokenCheckResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _access_token_check_post_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/access_token_check', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def access_token_post( self, diff --git a/cloudbeds_pms_v1_3/api/beta_api.py b/cloudbeds_pms_v1_3/api/beta_api.py deleted file mode 100644 index 1b6d50f..0000000 --- a/cloudbeds_pms_v1_3/api/beta_api.py +++ /dev/null @@ -1,320 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictStr -from typing import Optional -from typing_extensions import Annotated -from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse - -from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_3.api_response import ApiResponse -from cloudbeds_pms_v1_3.rest import RESTResponseType - - -class BetaApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_async_api_job_get( - self, - job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAsyncApiJobResponse: - """getAsyncApiJob - - Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. - - :param job_reference_id: Filter Rate Jobs by jobReferenceID - :type job_reference_id: str - :param status: Filter Rate Jobs based on status - :type status: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_async_api_job_get_serialize( - job_reference_id=job_reference_id, - status=status, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAsyncApiJobResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_async_api_job_get_with_http_info( - self, - job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAsyncApiJobResponse]: - """getAsyncApiJob - - Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. - - :param job_reference_id: Filter Rate Jobs by jobReferenceID - :type job_reference_id: str - :param status: Filter Rate Jobs based on status - :type status: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_async_api_job_get_serialize( - job_reference_id=job_reference_id, - status=status, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAsyncApiJobResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_async_api_job_get_without_preload_content( - self, - job_reference_id: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs by jobReferenceID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter Rate Jobs based on status")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getAsyncApiJob - - Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. - - :param job_reference_id: Filter Rate Jobs by jobReferenceID - :type job_reference_id: str - :param status: Filter Rate Jobs based on status - :type status: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_async_api_job_get_serialize( - job_reference_id=job_reference_id, - status=status, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAsyncApiJobResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_async_api_job_get_serialize( - self, - job_reference_id, - status, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if job_reference_id is not None: - - _query_params.append(('jobReferenceID', job_reference_id)) - - if status is not None: - - _query_params.append(('status', status)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getAsyncApiJob', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/cloudbeds_pms_v1_3/api/crm_api.py b/cloudbeds_pms_v1_3/api/crm_api.py deleted file mode 100644 index d07ae2b..0000000 --- a/cloudbeds_pms_v1_3/api/crm_api.py +++ /dev/null @@ -1,636 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBool, StrictStr -from typing import List, Optional -from typing_extensions import Annotated -from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse -from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse - -from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_3.api_response import ApiResponse -from cloudbeds_pms_v1_3.rest import RESTResponseType - - -class CRMApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def crm_cache_remove_post( - self, - property_id: Annotated[Optional[List[StrictStr]], Field(description="Property IDs that needs the cache to be removed")] = None, - association_id: Annotated[Optional[StrictStr], Field(description="Association ID that needs the cache to be removed")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostCRMCacheRemoveResponse: - """PostCRMCacheRemove - - - - :param property_id: Property IDs that needs the cache to be removed - :type property_id: List[str] - :param association_id: Association ID that needs the cache to be removed - :type association_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._crm_cache_remove_post_serialize( - property_id=property_id, - association_id=association_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCRMCacheRemoveResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def crm_cache_remove_post_with_http_info( - self, - property_id: Annotated[Optional[List[StrictStr]], Field(description="Property IDs that needs the cache to be removed")] = None, - association_id: Annotated[Optional[StrictStr], Field(description="Association ID that needs the cache to be removed")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostCRMCacheRemoveResponse]: - """PostCRMCacheRemove - - - - :param property_id: Property IDs that needs the cache to be removed - :type property_id: List[str] - :param association_id: Association ID that needs the cache to be removed - :type association_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._crm_cache_remove_post_serialize( - property_id=property_id, - association_id=association_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCRMCacheRemoveResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def crm_cache_remove_post_without_preload_content( - self, - property_id: Annotated[Optional[List[StrictStr]], Field(description="Property IDs that needs the cache to be removed")] = None, - association_id: Annotated[Optional[StrictStr], Field(description="Association ID that needs the cache to be removed")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """PostCRMCacheRemove - - - - :param property_id: Property IDs that needs the cache to be removed - :type property_id: List[str] - :param association_id: Association ID that needs the cache to be removed - :type association_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._crm_cache_remove_post_serialize( - property_id=property_id, - association_id=association_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCRMCacheRemoveResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _crm_cache_remove_post_serialize( - self, - property_id, - association_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'property_id': 'csv', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('property_id', property_id)) - if association_id is not None: - _form_params.append(('association_id', association_id)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/crm/cache_remove', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def crm_cache_update_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID that needs the cache to be updated")] = None, - clear: Annotated[Optional[StrictBool], Field(description="If property cache should be cleared")] = None, - clear_packages: Annotated[Optional[StrictBool], Field(description="If packages cache should be cleared for the property")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostCRMCacheUpdateResponse: - """PostCRMCacheUpdate - - - - :param property_id: Property ID that needs the cache to be updated - :type property_id: str - :param clear: If property cache should be cleared - :type clear: bool - :param clear_packages: If packages cache should be cleared for the property - :type clear_packages: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._crm_cache_update_post_serialize( - property_id=property_id, - clear=clear, - clear_packages=clear_packages, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCRMCacheUpdateResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def crm_cache_update_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID that needs the cache to be updated")] = None, - clear: Annotated[Optional[StrictBool], Field(description="If property cache should be cleared")] = None, - clear_packages: Annotated[Optional[StrictBool], Field(description="If packages cache should be cleared for the property")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostCRMCacheUpdateResponse]: - """PostCRMCacheUpdate - - - - :param property_id: Property ID that needs the cache to be updated - :type property_id: str - :param clear: If property cache should be cleared - :type clear: bool - :param clear_packages: If packages cache should be cleared for the property - :type clear_packages: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._crm_cache_update_post_serialize( - property_id=property_id, - clear=clear, - clear_packages=clear_packages, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCRMCacheUpdateResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def crm_cache_update_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID that needs the cache to be updated")] = None, - clear: Annotated[Optional[StrictBool], Field(description="If property cache should be cleared")] = None, - clear_packages: Annotated[Optional[StrictBool], Field(description="If packages cache should be cleared for the property")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """PostCRMCacheUpdate - - - - :param property_id: Property ID that needs the cache to be updated - :type property_id: str - :param clear: If property cache should be cleared - :type clear: bool - :param clear_packages: If packages cache should be cleared for the property - :type clear_packages: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._crm_cache_update_post_serialize( - property_id=property_id, - clear=clear, - clear_packages=clear_packages, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCRMCacheUpdateResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _crm_cache_update_post_serialize( - self, - property_id, - clear, - clear_packages, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('property_id', property_id)) - if clear is not None: - _form_params.append(('clear', clear)) - if clear_packages is not None: - _form_params.append(('clear_packages', clear_packages)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/crm/cache_update', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/cloudbeds_pms_v1_3/api/guest_api.py b/cloudbeds_pms_v1_3/api/guest_api.py index e1b3431..a929b3e 100644 --- a/cloudbeds_pms_v1_3/api/guest_api.py +++ b/cloudbeds_pms_v1_3/api/guest_api.py @@ -27,7 +27,6 @@ from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse -from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse @@ -2865,371 +2864,6 @@ def _get_guests_modified_get_serialize( - @validate_call - def post_guest_credit_card_post( - self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - card_name: Annotated[Optional[StrictStr], Field(description="Cardholder Name, as written in card")] = None, - card_number: Annotated[Optional[StrictStr], Field(description="Credit Card number")] = None, - card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, - card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, - card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, - validate: Annotated[Optional[StrictBool], Field(description="should the card be validated? If true, the card will be validated against the payment gateway.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostGuestCreditCardResponse: - """postGuestCreditCard - - Add a new credit card to guest file - - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param card_name: Cardholder Name, as written in card - :type card_name: str - :param card_number: Credit Card number - :type card_number: str - :param card_expiry_month: Credit Card expiration month - :type card_expiry_month: int - :param card_expiry_year: Credit Card expiration year (2 or 4 digits) - :type card_expiry_year: int - :param card_cvv: Credit Card CVV code - :type card_cvv: str - :param validate: should the card be validated? If true, the card will be validated against the payment gateway. - :type validate: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_guest_credit_card_post_serialize( - reservation_id=reservation_id, - card_name=card_name, - card_number=card_number, - card_expiry_month=card_expiry_month, - card_expiry_year=card_expiry_year, - card_cvv=card_cvv, - validate=validate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostGuestCreditCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_guest_credit_card_post_with_http_info( - self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - card_name: Annotated[Optional[StrictStr], Field(description="Cardholder Name, as written in card")] = None, - card_number: Annotated[Optional[StrictStr], Field(description="Credit Card number")] = None, - card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, - card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, - card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, - validate: Annotated[Optional[StrictBool], Field(description="should the card be validated? If true, the card will be validated against the payment gateway.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostGuestCreditCardResponse]: - """postGuestCreditCard - - Add a new credit card to guest file - - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param card_name: Cardholder Name, as written in card - :type card_name: str - :param card_number: Credit Card number - :type card_number: str - :param card_expiry_month: Credit Card expiration month - :type card_expiry_month: int - :param card_expiry_year: Credit Card expiration year (2 or 4 digits) - :type card_expiry_year: int - :param card_cvv: Credit Card CVV code - :type card_cvv: str - :param validate: should the card be validated? If true, the card will be validated against the payment gateway. - :type validate: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_guest_credit_card_post_serialize( - reservation_id=reservation_id, - card_name=card_name, - card_number=card_number, - card_expiry_month=card_expiry_month, - card_expiry_year=card_expiry_year, - card_cvv=card_cvv, - validate=validate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostGuestCreditCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_guest_credit_card_post_without_preload_content( - self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - card_name: Annotated[Optional[StrictStr], Field(description="Cardholder Name, as written in card")] = None, - card_number: Annotated[Optional[StrictStr], Field(description="Credit Card number")] = None, - card_expiry_month: Annotated[Optional[StrictInt], Field(description="Credit Card expiration month")] = None, - card_expiry_year: Annotated[Optional[StrictInt], Field(description="Credit Card expiration year (2 or 4 digits)")] = None, - card_cvv: Annotated[Optional[StrictStr], Field(description="Credit Card CVV code")] = None, - validate: Annotated[Optional[StrictBool], Field(description="should the card be validated? If true, the card will be validated against the payment gateway.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postGuestCreditCard - - Add a new credit card to guest file - - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param card_name: Cardholder Name, as written in card - :type card_name: str - :param card_number: Credit Card number - :type card_number: str - :param card_expiry_month: Credit Card expiration month - :type card_expiry_month: int - :param card_expiry_year: Credit Card expiration year (2 or 4 digits) - :type card_expiry_year: int - :param card_cvv: Credit Card CVV code - :type card_cvv: str - :param validate: should the card be validated? If true, the card will be validated against the payment gateway. - :type validate: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_guest_credit_card_post_serialize( - reservation_id=reservation_id, - card_name=card_name, - card_number=card_number, - card_expiry_month=card_expiry_month, - card_expiry_year=card_expiry_year, - card_cvv=card_cvv, - validate=validate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostGuestCreditCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_guest_credit_card_post_serialize( - self, - reservation_id, - card_name, - card_number, - card_expiry_month, - card_expiry_year, - card_cvv, - validate, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if card_name is not None: - _form_params.append(('cardName', card_name)) - if card_number is not None: - _form_params.append(('cardNumber', card_number)) - if card_expiry_month is not None: - _form_params.append(('cardExpiryMonth', card_expiry_month)) - if card_expiry_year is not None: - _form_params.append(('cardExpiryYear', card_expiry_year)) - if card_cvv is not None: - _form_params.append(('cardCVV', card_cvv)) - if validate is not None: - _form_params.append(('validate', validate)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postGuestCreditCard', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def post_guest_document_post( self, diff --git a/cloudbeds_pms_v1_3/api/import_api.py b/cloudbeds_pms_v1_3/api/import_api.py deleted file mode 100644 index 782a532..0000000 --- a/cloudbeds_pms_v1_3/api/import_api.py +++ /dev/null @@ -1,531 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse -from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse - -from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_3.api_response import ApiResponse -from cloudbeds_pms_v1_3.rest import RESTResponseType - - -class ImportApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def import_dummy_reservations_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetImportDummyReservationsResponse: - """GetImportDummyReservations - - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._import_dummy_reservations_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetImportDummyReservationsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def import_dummy_reservations_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetImportDummyReservationsResponse]: - """GetImportDummyReservations - - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._import_dummy_reservations_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetImportDummyReservationsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def import_dummy_reservations_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """GetImportDummyReservations - - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._import_dummy_reservations_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetImportDummyReservationsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _import_dummy_reservations_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/import/dummyReservations', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def import_tours_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetImportToursResponse: - """GetImportTours - - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._import_tours_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetImportToursResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def import_tours_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetImportToursResponse]: - """GetImportTours - - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._import_tours_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetImportToursResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def import_tours_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """GetImportTours - - - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._import_tours_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetImportToursResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _import_tours_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/import/tours', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/cloudbeds_pms_v1_3/api/integration_api.py b/cloudbeds_pms_v1_3/api/integration_api.py index f75ceb0..8d228ed 100644 --- a/cloudbeds_pms_v1_3/api/integration_api.py +++ b/cloudbeds_pms_v1_3/api/integration_api.py @@ -18,16 +18,13 @@ from datetime import datetime from pydantic import Field, StrictFloat, StrictInt, StrictStr, field_validator -from typing import List, Optional, Union +from typing import Optional, Union from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse -from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner -from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse -from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse @@ -309,6 +306,8 @@ def _delete_webhook_delete_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( @@ -571,6 +570,8 @@ def _get_app_settings_get_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( @@ -595,7 +596,6 @@ def _get_app_settings_get_serialize( def get_app_state_get( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, - client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -611,12 +611,10 @@ def get_app_state_get( ) -> GetAppStateResponse: """getAppState - Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. :param property_id: Property identifier to be queried :type property_id: str - :param client_id: Client identifier - :type client_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -641,7 +639,6 @@ def get_app_state_get( _param = self._get_app_state_get_serialize( property_id=property_id, - client_id=client_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -666,7 +663,6 @@ def get_app_state_get( def get_app_state_get_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, - client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -682,12 +678,10 @@ def get_app_state_get_with_http_info( ) -> ApiResponse[GetAppStateResponse]: """getAppState - Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. :param property_id: Property identifier to be queried :type property_id: str - :param client_id: Client identifier - :type client_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -712,7 +706,6 @@ def get_app_state_get_with_http_info( _param = self._get_app_state_get_serialize( property_id=property_id, - client_id=client_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -737,7 +730,6 @@ def get_app_state_get_with_http_info( def get_app_state_get_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, - client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -753,12 +745,10 @@ def get_app_state_get_without_preload_content( ) -> RESTResponseType: """getAppState - Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. :param property_id: Property identifier to be queried :type property_id: str - :param client_id: Client identifier - :type client_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -783,7 +773,6 @@ def get_app_state_get_without_preload_content( _param = self._get_app_state_get_serialize( property_id=property_id, - client_id=client_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -803,7 +792,6 @@ def get_app_state_get_without_preload_content( def _get_app_state_get_serialize( self, property_id, - client_id, _request_auth, _content_type, _headers, @@ -830,10 +818,6 @@ def _get_app_state_get_serialize( _query_params.append(('propertyID', property_id)) - if client_id is not None: - - _query_params.append(('clientID', client_id)) - # process the header parameters # process the form parameters # process the body parameter @@ -850,6 +834,8 @@ def _get_app_state_get_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( @@ -1112,6 +1098,8 @@ def _get_webhooks_get_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( @@ -1528,10 +1516,10 @@ def _post_app_error_post_serialize( @validate_call - def post_app_settings_post( + def post_app_state_post( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, - settings: Annotated[Optional[List[PostAppSettingsRequestSettingsInner]], Field(description="An array of setings")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1544,15 +1532,15 @@ def post_app_settings_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostAppSettingsResponse: - """postAppSettings + ) -> PostAppStateResponse: + """postAppState - Update the current app settings for a property.
+ Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. - :param property_id: Property identifier to be queried + :param property_id: Property identifier to be updated :type property_id: str - :param settings: An array of setings - :type settings: List[PostAppSettingsRequestSettingsInner] + :param app_state: Current integration state between third-party and property. + :type app_state: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1575,9 +1563,9 @@ def post_app_settings_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_settings_post_serialize( + _param = self._post_app_state_post_serialize( property_id=property_id, - settings=settings, + app_state=app_state, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1585,7 +1573,7 @@ def post_app_settings_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppSettingsResponse", + '200': "PostAppStateResponse", } response_data = self.api_client.call_api( *_param, @@ -1599,10 +1587,10 @@ def post_app_settings_post( @validate_call - def post_app_settings_post_with_http_info( + def post_app_state_post_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, - settings: Annotated[Optional[List[PostAppSettingsRequestSettingsInner]], Field(description="An array of setings")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1615,15 +1603,15 @@ def post_app_settings_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostAppSettingsResponse]: - """postAppSettings + ) -> ApiResponse[PostAppStateResponse]: + """postAppState - Update the current app settings for a property.
+ Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. - :param property_id: Property identifier to be queried + :param property_id: Property identifier to be updated :type property_id: str - :param settings: An array of setings - :type settings: List[PostAppSettingsRequestSettingsInner] + :param app_state: Current integration state between third-party and property. + :type app_state: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1646,9 +1634,9 @@ def post_app_settings_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_settings_post_serialize( + _param = self._post_app_state_post_serialize( property_id=property_id, - settings=settings, + app_state=app_state, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1656,7 +1644,7 @@ def post_app_settings_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppSettingsResponse", + '200': "PostAppStateResponse", } response_data = self.api_client.call_api( *_param, @@ -1670,10 +1658,10 @@ def post_app_settings_post_with_http_info( @validate_call - def post_app_settings_post_without_preload_content( + def post_app_state_post_without_preload_content( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be queried")] = None, - settings: Annotated[Optional[List[PostAppSettingsRequestSettingsInner]], Field(description="An array of setings")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, + app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1687,14 +1675,14 @@ def post_app_settings_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postAppSettings + """postAppState - Update the current app settings for a property.
+ Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. - :param property_id: Property identifier to be queried + :param property_id: Property identifier to be updated :type property_id: str - :param settings: An array of setings - :type settings: List[PostAppSettingsRequestSettingsInner] + :param app_state: Current integration state between third-party and property. + :type app_state: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1717,9 +1705,9 @@ def post_app_settings_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_settings_post_serialize( + _param = self._post_app_state_post_serialize( property_id=property_id, - settings=settings, + app_state=app_state, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1727,7 +1715,7 @@ def post_app_settings_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppSettingsResponse", + '200': "PostAppStateResponse", } response_data = self.api_client.call_api( *_param, @@ -1736,10 +1724,10 @@ def post_app_settings_post_without_preload_content( return response_data.response - def _post_app_settings_post_serialize( + def _post_app_state_post_serialize( self, property_id, - settings, + app_state, _request_auth, _content_type, _headers, @@ -1749,7 +1737,6 @@ def _post_app_settings_post_serialize( _host = None _collection_formats: Dict[str, str] = { - 'settings': 'csv', } _path_params: Dict[str, str] = {} @@ -1767,8 +1754,8 @@ def _post_app_settings_post_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if settings is not None: - _form_params.append(('settings', settings)) + if app_state is not None: + _form_params.append(('app_state', app_state)) # process the body parameter @@ -1796,11 +1783,13 @@ def _post_app_settings_post_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( method='POST', - resource_path='/postAppSettings', + resource_path='/postAppState', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1817,11 +1806,16 @@ def _post_app_settings_post_serialize( @validate_call - def post_app_state_internal_post( + def post_government_receipt_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, - app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, + url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, + identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, + issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1834,17 +1828,27 @@ def post_app_state_internal_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostAppStateInternalResponse: - """postAppStateInternal + ) -> PostGovernmentReceiptResponse: + """postGovernmentReceipt - Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Add a Government Receipt to a Reservation or House Account :param property_id: Property identifier to be updated :type property_id: str - :param client_id: Client identifier - :type client_id: str - :param app_state: Current integration state between third-party and property. - :type app_state: str + :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. It, or reservationID, is necessary. + :type house_account_id: str + :param name: Name of the document. Will be used to describe document in MFD. + :type name: str + :param url: URL for user to download document. + :type url: str + :param amount: Value of posted document + :type amount: float + :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. + :type identifier: str + :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. + :type issue_date: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1867,10 +1871,15 @@ def post_app_state_internal_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_state_internal_post_serialize( + _param = self._post_government_receipt_post_serialize( property_id=property_id, - client_id=client_id, - app_state=app_state, + reservation_id=reservation_id, + house_account_id=house_account_id, + name=name, + url=url, + amount=amount, + identifier=identifier, + issue_date=issue_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1878,7 +1887,7 @@ def post_app_state_internal_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppStateInternalResponse", + '200': "PostGovernmentReceiptResponse", } response_data = self.api_client.call_api( *_param, @@ -1892,11 +1901,16 @@ def post_app_state_internal_post( @validate_call - def post_app_state_internal_post_with_http_info( + def post_government_receipt_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, - app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, + url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, + identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, + issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1909,17 +1923,27 @@ def post_app_state_internal_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostAppStateInternalResponse]: - """postAppStateInternal + ) -> ApiResponse[PostGovernmentReceiptResponse]: + """postGovernmentReceipt - Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Add a Government Receipt to a Reservation or House Account :param property_id: Property identifier to be updated :type property_id: str - :param client_id: Client identifier - :type client_id: str - :param app_state: Current integration state between third-party and property. - :type app_state: str + :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. It, or reservationID, is necessary. + :type house_account_id: str + :param name: Name of the document. Will be used to describe document in MFD. + :type name: str + :param url: URL for user to download document. + :type url: str + :param amount: Value of posted document + :type amount: float + :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. + :type identifier: str + :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. + :type issue_date: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1942,10 +1966,15 @@ def post_app_state_internal_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_state_internal_post_serialize( + _param = self._post_government_receipt_post_serialize( property_id=property_id, - client_id=client_id, - app_state=app_state, + reservation_id=reservation_id, + house_account_id=house_account_id, + name=name, + url=url, + amount=amount, + identifier=identifier, + issue_date=issue_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1953,7 +1982,7 @@ def post_app_state_internal_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppStateInternalResponse", + '200': "PostGovernmentReceiptResponse", } response_data = self.api_client.call_api( *_param, @@ -1967,11 +1996,16 @@ def post_app_state_internal_post_with_http_info( @validate_call - def post_app_state_internal_post_without_preload_content( + def post_government_receipt_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - client_id: Annotated[Optional[StrictStr], Field(description="Client identifier")] = None, - app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, + name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, + url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, + amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, + identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, + issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1985,16 +2019,26 @@ def post_app_state_internal_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postAppStateInternal + """postGovernmentReceipt - Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Add a Government Receipt to a Reservation or House Account :param property_id: Property identifier to be updated :type property_id: str - :param client_id: Client identifier - :type client_id: str - :param app_state: Current integration state between third-party and property. - :type app_state: str + :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. + :type reservation_id: str + :param house_account_id: House Account identifier. It, or reservationID, is necessary. + :type house_account_id: str + :param name: Name of the document. Will be used to describe document in MFD. + :type name: str + :param url: URL for user to download document. + :type url: str + :param amount: Value of posted document + :type amount: float + :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. + :type identifier: str + :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. + :type issue_date: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2017,10 +2061,15 @@ def post_app_state_internal_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_state_internal_post_serialize( + _param = self._post_government_receipt_post_serialize( property_id=property_id, - client_id=client_id, - app_state=app_state, + reservation_id=reservation_id, + house_account_id=house_account_id, + name=name, + url=url, + amount=amount, + identifier=identifier, + issue_date=issue_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2028,7 +2077,7 @@ def post_app_state_internal_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppStateInternalResponse", + '200': "PostGovernmentReceiptResponse", } response_data = self.api_client.call_api( *_param, @@ -2037,11 +2086,16 @@ def post_app_state_internal_post_without_preload_content( return response_data.response - def _post_app_state_internal_post_serialize( + def _post_government_receipt_post_serialize( self, property_id, - client_id, - app_state, + reservation_id, + house_account_id, + name, + url, + amount, + identifier, + issue_date, _request_auth, _content_type, _headers, @@ -2068,10 +2122,20 @@ def _post_app_state_internal_post_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if client_id is not None: - _form_params.append(('clientID', client_id)) - if app_state is not None: - _form_params.append(('appState', app_state)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if name is not None: + _form_params.append(('name', name)) + if url is not None: + _form_params.append(('url', url)) + if amount is not None: + _form_params.append(('amount', amount)) + if identifier is not None: + _form_params.append(('identifier', identifier)) + if issue_date is not None: + _form_params.append(('issueDate', issue_date)) # process the body parameter @@ -2099,11 +2163,13 @@ def _post_app_state_internal_post_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( method='POST', - resource_path='/postAppStateInternal', + resource_path='/postGovernmentReceipt', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2120,10 +2186,12 @@ def _post_app_state_internal_post_serialize( @validate_call - def post_app_state_post( + def post_webhook_post( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + object: Annotated[Optional[StrictStr], Field(description="Event object")] = None, + action: Annotated[Optional[StrictStr], Field(description="Event action")] = None, + endpoint_url: Annotated[Optional[StrictStr], Field(description="Endpoint URL")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2136,15 +2204,19 @@ def post_app_state_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostAppStateResponse: - """postAppState + ) -> PostWebhookResponse: + """postWebhook - Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. - :param property_id: Property identifier to be updated + :param property_id: Property ID :type property_id: str - :param app_state: Current integration state between third-party and property. - :type app_state: str + :param object: Event object + :type object: str + :param action: Event action + :type action: str + :param endpoint_url: Endpoint URL + :type endpoint_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2167,9 +2239,11 @@ def post_app_state_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_state_post_serialize( + _param = self._post_webhook_post_serialize( property_id=property_id, - app_state=app_state, + object=object, + action=action, + endpoint_url=endpoint_url, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2177,7 +2251,7 @@ def post_app_state_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppStateResponse", + '200': "PostWebhookResponse", } response_data = self.api_client.call_api( *_param, @@ -2191,10 +2265,12 @@ def post_app_state_post( @validate_call - def post_app_state_post_with_http_info( + def post_webhook_post_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + object: Annotated[Optional[StrictStr], Field(description="Event object")] = None, + action: Annotated[Optional[StrictStr], Field(description="Event action")] = None, + endpoint_url: Annotated[Optional[StrictStr], Field(description="Endpoint URL")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2207,15 +2283,19 @@ def post_app_state_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostAppStateResponse]: - """postAppState + ) -> ApiResponse[PostWebhookResponse]: + """postWebhook - Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. + Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. - :param property_id: Property identifier to be updated + :param property_id: Property ID :type property_id: str - :param app_state: Current integration state between third-party and property. - :type app_state: str + :param object: Event object + :type object: str + :param action: Event action + :type action: str + :param endpoint_url: Endpoint URL + :type endpoint_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2238,687 +2318,7 @@ def post_app_state_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_app_state_post_serialize( - property_id=property_id, - app_state=app_state, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppStateResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_app_state_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - app_state: Annotated[Optional[StrictStr], Field(description="Current integration state between third-party and property.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postAppState - - Update app integration state for a property ID.
This call is only available for third-party integration partners, and not for property client IDs.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. - - :param property_id: Property identifier to be updated - :type property_id: str - :param app_state: Current integration state between third-party and property. - :type app_state: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_app_state_post_serialize( - property_id=property_id, - app_state=app_state, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostAppStateResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_app_state_post_serialize( - self, - property_id, - app_state, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if app_state is not None: - _form_params.append(('app_state', app_state)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postAppState', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_government_receipt_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, - name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, - url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, - identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, - issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostGovernmentReceiptResponse: - """postGovernmentReceipt - - Add a Government Receipt to a Reservation or House Account - - :param property_id: Property identifier to be updated - :type property_id: str - :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. - :type reservation_id: str - :param house_account_id: House Account identifier. It, or reservationID, is necessary. - :type house_account_id: str - :param name: Name of the document. Will be used to describe document in MFD. - :type name: str - :param url: URL for user to download document. - :type url: str - :param amount: Value of posted document - :type amount: float - :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. - :type identifier: str - :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. - :type issue_date: datetime - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_government_receipt_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - name=name, - url=url, - amount=amount, - identifier=identifier, - issue_date=issue_date, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostGovernmentReceiptResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_government_receipt_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, - name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, - url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, - identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, - issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostGovernmentReceiptResponse]: - """postGovernmentReceipt - - Add a Government Receipt to a Reservation or House Account - - :param property_id: Property identifier to be updated - :type property_id: str - :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. - :type reservation_id: str - :param house_account_id: House Account identifier. It, or reservationID, is necessary. - :type house_account_id: str - :param name: Name of the document. Will be used to describe document in MFD. - :type name: str - :param url: URL for user to download document. - :type url: str - :param amount: Value of posted document - :type amount: float - :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. - :type identifier: str - :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. - :type issue_date: datetime - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_government_receipt_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - name=name, - url=url, - amount=amount, - identifier=identifier, - issue_date=issue_date, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostGovernmentReceiptResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_government_receipt_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property identifier to be updated")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier. It, or houseAccountID, is necessary.")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier. It, or reservationID, is necessary.")] = None, - name: Annotated[Optional[StrictStr], Field(description="Name of the document. Will be used to describe document in MFD.")] = None, - url: Annotated[Optional[StrictStr], Field(description="URL for user to download document.")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Value of posted document")] = None, - identifier: Annotated[Optional[StrictStr], Field(description="Receipt Identifier of document. If not sent, a random identifier will be generated.")] = None, - issue_date: Annotated[Optional[datetime], Field(description="Datetime of document emission, if not sent, current datetime will be assumed.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postGovernmentReceipt - - Add a Government Receipt to a Reservation or House Account - - :param property_id: Property identifier to be updated - :type property_id: str - :param reservation_id: Reservation identifier. It, or houseAccountID, is necessary. - :type reservation_id: str - :param house_account_id: House Account identifier. It, or reservationID, is necessary. - :type house_account_id: str - :param name: Name of the document. Will be used to describe document in MFD. - :type name: str - :param url: URL for user to download document. - :type url: str - :param amount: Value of posted document - :type amount: float - :param identifier: Receipt Identifier of document. If not sent, a random identifier will be generated. - :type identifier: str - :param issue_date: Datetime of document emission, if not sent, current datetime will be assumed. - :type issue_date: datetime - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_government_receipt_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - name=name, - url=url, - amount=amount, - identifier=identifier, - issue_date=issue_date, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostGovernmentReceiptResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_government_receipt_post_serialize( - self, - property_id, - reservation_id, - house_account_id, - name, - url, - amount, - identifier, - issue_date, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if house_account_id is not None: - _form_params.append(('houseAccountID', house_account_id)) - if name is not None: - _form_params.append(('name', name)) - if url is not None: - _form_params.append(('url', url)) - if amount is not None: - _form_params.append(('amount', amount)) - if identifier is not None: - _form_params.append(('identifier', identifier)) - if issue_date is not None: - _form_params.append(('issueDate', issue_date)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postGovernmentReceipt', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_webhook_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - object: Annotated[Optional[StrictStr], Field(description="Event object")] = None, - action: Annotated[Optional[StrictStr], Field(description="Event action")] = None, - endpoint_url: Annotated[Optional[StrictStr], Field(description="Endpoint URL")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostWebhookResponse: - """postWebhook - - Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. - - :param property_id: Property ID - :type property_id: str - :param object: Event object - :type object: str - :param action: Event action - :type action: str - :param endpoint_url: Endpoint URL - :type endpoint_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_webhook_post_serialize( - property_id=property_id, - object=object, - action=action, - endpoint_url=endpoint_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostWebhookResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_webhook_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - object: Annotated[Optional[StrictStr], Field(description="Event object")] = None, - action: Annotated[Optional[StrictStr], Field(description="Event action")] = None, - endpoint_url: Annotated[Optional[StrictStr], Field(description="Endpoint URL")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostWebhookResponse]: - """postWebhook - - Subscribe a webhook for a specified event. Read the [Webhooks guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007612553-Webhooks) to see available objects, actions, payload info and more. - - :param property_id: Property ID - :type property_id: str - :param object: Event object - :type object: str - :param action: Event action - :type action: str - :param endpoint_url: Endpoint URL - :type endpoint_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_webhook_post_serialize( + _param = self._post_webhook_post_serialize( property_id=property_id, object=object, action=action, @@ -3083,6 +2483,8 @@ def _post_webhook_post_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( diff --git a/cloudbeds_pms_v1_3/api/invoices_api.py b/cloudbeds_pms_v1_3/api/invoices_api.py deleted file mode 100644 index aa9e504..0000000 --- a/cloudbeds_pms_v1_3/api/invoices_api.py +++ /dev/null @@ -1,922 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBytes, StrictStr, field_validator -from typing import Optional, Tuple, Union -from typing_extensions import Annotated -from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse - -from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_3.api_response import ApiResponse -from cloudbeds_pms_v1_3.rest import RESTResponseType - - -class InvoicesApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_invoice_get( - self, - invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetInvoiceResponse: - """getInvoice - - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - - :param invoice_id: Invoice ID (required) - :type invoice_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_invoice_get_serialize( - invoice_id=invoice_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_invoice_get_with_http_info( - self, - invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetInvoiceResponse]: - """getInvoice - - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - - :param invoice_id: Invoice ID (required) - :type invoice_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_invoice_get_serialize( - invoice_id=invoice_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_invoice_get_without_preload_content( - self, - invoice_id: Annotated[StrictStr, Field(description="Invoice ID")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getInvoice - - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - - :param invoice_id: Invoice ID (required) - :type invoice_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_invoice_get_serialize( - invoice_id=invoice_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_invoice_get_serialize( - self, - invoice_id, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if invoice_id is not None: - - _query_params.append(('invoiceID', invoice_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getInvoice', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def invoice_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetInvoiceResponse: - """invoice - - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - - :param property_id: Property ID - :type property_id: str - :param invoice_id: Invoice ID - :type invoice_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._invoice_get_serialize( - property_id=property_id, - invoice_id=invoice_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def invoice_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetInvoiceResponse]: - """invoice - - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - - :param property_id: Property ID - :type property_id: str - :param invoice_id: Invoice ID - :type invoice_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._invoice_get_serialize( - property_id=property_id, - invoice_id=invoice_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def invoice_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """invoice - - Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - - :param property_id: Property ID - :type property_id: str - :param invoice_id: Invoice ID - :type invoice_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._invoice_get_serialize( - property_id=property_id, - invoice_id=invoice_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _invoice_get_serialize( - self, - property_id, - invoice_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if invoice_id is not None: - - _query_params.append(('invoiceID', invoice_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/invoice', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def patch_invoice_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostPatchInvoiceResponse: - """patchInvoice - - Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. - - :param property_id: Property ID - :type property_id: str - :param invoice_id: Invoice unique ID - :type invoice_id: str - :param status: Desired new invoice status - :type status: str - :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_invoice_post_serialize( - property_id=property_id, - invoice_id=invoice_id, - status=status, - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPatchInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def patch_invoice_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostPatchInvoiceResponse]: - """patchInvoice - - Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. - - :param property_id: Property ID - :type property_id: str - :param invoice_id: Invoice unique ID - :type invoice_id: str - :param status: Desired new invoice status - :type status: str - :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_invoice_post_serialize( - property_id=property_id, - invoice_id=invoice_id, - status=status, - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPatchInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def patch_invoice_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - invoice_id: Annotated[Optional[StrictStr], Field(description="Invoice unique ID")] = None, - status: Annotated[Optional[StrictStr], Field(description="Desired new invoice status")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patchInvoice - - Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. - - :param property_id: Property ID - :type property_id: str - :param invoice_id: Invoice unique ID - :type invoice_id: str - :param status: Desired new invoice status - :type status: str - :param file: Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_invoice_post_serialize( - property_id=property_id, - invoice_id=invoice_id, - status=status, - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPatchInvoiceResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _patch_invoice_post_serialize( - self, - property_id, - invoice_id, - status, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if invoice_id is not None: - _form_params.append(('invoiceID', invoice_id)) - if status is not None: - _form_params.append(('status', status)) - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/patchInvoice', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/cloudbeds_pms_v1_3/api/item_api.py b/cloudbeds_pms_v1_3/api/item_api.py index 1dd8370..1ab1c16 100644 --- a/cloudbeds_pms_v1_3/api/item_api.py +++ b/cloudbeds_pms_v1_3/api/item_api.py @@ -16,11 +16,10 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from datetime import date, datetime +from datetime import datetime from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import List, Optional, Union from typing_extensions import Annotated -from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse @@ -29,9 +28,8 @@ from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse -from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse @@ -482,287 +480,6 @@ def _append_custom_item_post_serialize( - @validate_call - def delete_item_from_reservation_delete( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - sold_product_id: Annotated[StrictStr, Field(description="Item identifier")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteItemFromReservationResponse: - """deleteItemFromReservation - - Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param sold_product_id: Item identifier (required) - :type sold_product_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_item_from_reservation_delete_serialize( - reservation_id=reservation_id, - sold_product_id=sold_product_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteItemFromReservationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_item_from_reservation_delete_with_http_info( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - sold_product_id: Annotated[StrictStr, Field(description="Item identifier")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteItemFromReservationResponse]: - """deleteItemFromReservation - - Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param sold_product_id: Item identifier (required) - :type sold_product_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_item_from_reservation_delete_serialize( - reservation_id=reservation_id, - sold_product_id=sold_product_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteItemFromReservationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_item_from_reservation_delete_without_preload_content( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation identifier")], - sold_product_id: Annotated[StrictStr, Field(description="Item identifier")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """deleteItemFromReservation - - Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. - - :param reservation_id: Reservation identifier (required) - :type reservation_id: str - :param sold_product_id: Item identifier (required) - :type sold_product_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_item_from_reservation_delete_serialize( - reservation_id=reservation_id, - sold_product_id=sold_product_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteItemFromReservationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_item_from_reservation_delete_serialize( - self, - reservation_id, - sold_product_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if sold_product_id is not None: - - _query_params.append(('soldProductID', sold_product_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/deleteItemFromReservation', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def get_item_categories_get( self, @@ -2396,7 +2113,7 @@ def post_item_post( item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2437,7 +2154,7 @@ def post_item_post( :param sale_date: posting date :type sale_date: datetime :param payments: list of payments If the item is already paid - :type payments: List[PostItemToReservationRequestPaymentsInner] + :type payments: List[PostItemRequestPaymentsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2507,7 +2224,7 @@ def post_item_post_with_http_info( item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2548,7 +2265,7 @@ def post_item_post_with_http_info( :param sale_date: posting date :type sale_date: datetime :param payments: list of payments If the item is already paid - :type payments: List[PostItemToReservationRequestPaymentsInner] + :type payments: List[PostItemRequestPaymentsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2618,7 +2335,7 @@ def post_item_post_without_preload_content( item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, sale_date: Annotated[Optional[datetime], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, + payments: Annotated[Optional[List[PostItemRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2659,7 +2376,7 @@ def post_item_post_without_preload_content( :param sale_date: posting date :type sale_date: datetime :param payments: list of payments If the item is already paid - :type payments: List[PostItemToReservationRequestPaymentsInner] + :type payments: List[PostItemRequestPaymentsInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2823,402 +2540,6 @@ def _post_item_post_serialize( - @validate_call - def post_item_to_reservation_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, - item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, - item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, - item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, - item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, - sale_date: Annotated[Optional[date], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostItemToReservationResponse: - """postItemToReservation - - Adds an item to a reservation. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param item_id: Item identifier - :type item_id: str - :param item_quantity: Items quantity - :type item_quantity: int - :param item_price: Item price, if not sent, items registered price will be used - :type item_price: str - :param item_note: Item note - :type item_note: str - :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. - :type item_paid: bool - :param sale_date: posting date - :type sale_date: date - :param payments: list of payments If the item is already paid - :type payments: List[PostItemToReservationRequestPaymentsInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_item_to_reservation_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - item_id=item_id, - item_quantity=item_quantity, - item_price=item_price, - item_note=item_note, - item_paid=item_paid, - sale_date=sale_date, - payments=payments, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostItemToReservationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_item_to_reservation_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, - item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, - item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, - item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, - item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, - sale_date: Annotated[Optional[date], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostItemToReservationResponse]: - """postItemToReservation - - Adds an item to a reservation. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param item_id: Item identifier - :type item_id: str - :param item_quantity: Items quantity - :type item_quantity: int - :param item_price: Item price, if not sent, items registered price will be used - :type item_price: str - :param item_note: Item note - :type item_note: str - :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. - :type item_paid: bool - :param sale_date: posting date - :type sale_date: date - :param payments: list of payments If the item is already paid - :type payments: List[PostItemToReservationRequestPaymentsInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_item_to_reservation_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - item_id=item_id, - item_quantity=item_quantity, - item_price=item_price, - item_note=item_note, - item_paid=item_paid, - sale_date=sale_date, - payments=payments, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostItemToReservationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_item_to_reservation_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - item_id: Annotated[Optional[StrictStr], Field(description="Item identifier")] = None, - item_quantity: Annotated[Optional[StrictInt], Field(description="Items quantity")] = None, - item_price: Annotated[Optional[StrictStr], Field(description="Item price, if not sent, items registered price will be used")] = None, - item_note: Annotated[Optional[StrictStr], Field(description="Item note")] = None, - item_paid: Annotated[Optional[StrictBool], Field(description="If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored.")] = None, - sale_date: Annotated[Optional[date], Field(description="posting date")] = None, - payments: Annotated[Optional[List[PostItemToReservationRequestPaymentsInner]], Field(description="list of payments If the item is already paid")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postItemToReservation - - Adds an item to a reservation. - - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation identifier - :type reservation_id: str - :param item_id: Item identifier - :type item_id: str - :param item_quantity: Items quantity - :type item_quantity: int - :param item_price: Item price, if not sent, items registered price will be used - :type item_price: str - :param item_note: Item note - :type item_note: str - :param item_paid: If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. - :type item_paid: bool - :param sale_date: posting date - :type sale_date: date - :param payments: list of payments If the item is already paid - :type payments: List[PostItemToReservationRequestPaymentsInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_item_to_reservation_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - item_id=item_id, - item_quantity=item_quantity, - item_price=item_price, - item_note=item_note, - item_paid=item_paid, - sale_date=sale_date, - payments=payments, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostItemToReservationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_item_to_reservation_post_serialize( - self, - property_id, - reservation_id, - item_id, - item_quantity, - item_price, - item_note, - item_paid, - sale_date, - payments, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'payments': 'csv', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if item_id is not None: - _form_params.append(('itemID', item_id)) - if item_quantity is not None: - _form_params.append(('itemQuantity', item_quantity)) - if item_price is not None: - _form_params.append(('itemPrice', item_price)) - if item_note is not None: - _form_params.append(('itemNote', item_note)) - if item_paid is not None: - _form_params.append(('itemPaid', item_paid)) - if sale_date is not None: - _form_params.append(('saleDate', sale_date)) - if payments is not None: - _form_params.append(('payments', payments)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postItemToReservation', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def post_items_to_inventory_post( self, diff --git a/cloudbeds_pms_v1_3/api/payment_api.py b/cloudbeds_pms_v1_3/api/payment_api.py index d945ed1..798cc8b 100644 --- a/cloudbeds_pms_v1_3/api/payment_api.py +++ b/cloudbeds_pms_v1_3/api/payment_api.py @@ -16,19 +16,14 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from datetime import date, datetime from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Optional, Union from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse -from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse -from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse @@ -596,17 +591,19 @@ def _get_payments_capabilities_get_serialize( @validate_call - def get_payments_get( + def post_charge_post( self, - reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], - house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], - guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, - include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -619,29 +616,33 @@ def get_payments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPaymentsResponse: - """getPayments + ) -> PostChargeResponse: + """postCharge - Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - :param reservation_id: ¹ ID for the reservation to be queried. (required) + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID :type reservation_id: str - :param house_account_id: ¹ ID for the house account to be queried. (required) + :param house_account_id: House Account ID :type house_account_id: str - :param guest_id: ¹ ID for the guest to be queried. (required) - :type guest_id: str - :param property_id: Property ID - :type property_id: str - :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. - :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. - :type created_to: datetime - :param include_payment_allocation: Adds payment allocation to response, when available. - :type include_payment_allocation: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -664,16 +665,18 @@ def get_payments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payments_get_serialize( + _param = self._post_charge_post_serialize( + property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - guest_id=guest_id, - property_id=property_id, - created_from=created_from, - created_to=created_to, - include_payment_allocation=include_payment_allocation, - page_number=page_number, - page_size=page_size, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -681,7 +684,7 @@ def get_payments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsResponse", + '200': "PostChargeResponse", } response_data = self.api_client.call_api( *_param, @@ -695,17 +698,19 @@ def get_payments_get( @validate_call - def get_payments_get_with_http_info( + def post_charge_post_with_http_info( self, - reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], - house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], - guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, - include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -718,29 +723,33 @@ def get_payments_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPaymentsResponse]: - """getPayments + ) -> ApiResponse[PostChargeResponse]: + """postCharge - Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - :param reservation_id: ¹ ID for the reservation to be queried. (required) + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID :type reservation_id: str - :param house_account_id: ¹ ID for the house account to be queried. (required) + :param house_account_id: House Account ID :type house_account_id: str - :param guest_id: ¹ ID for the guest to be queried. (required) - :type guest_id: str - :param property_id: Property ID - :type property_id: str - :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. - :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. - :type created_to: datetime - :param include_payment_allocation: Adds payment allocation to response, when available. - :type include_payment_allocation: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -763,16 +772,18 @@ def get_payments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_payments_get_serialize( + _param = self._post_charge_post_serialize( + property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - guest_id=guest_id, - property_id=property_id, - created_from=created_from, - created_to=created_to, - include_payment_allocation=include_payment_allocation, - page_number=page_number, - page_size=page_size, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -780,7 +791,7 @@ def get_payments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsResponse", + '200': "PostChargeResponse", } response_data = self.api_client.call_api( *_param, @@ -794,17 +805,19 @@ def get_payments_get_with_http_info( @validate_call - def get_payments_get_without_preload_content( + def post_charge_post_without_preload_content( self, - reservation_id: Annotated[StrictStr, Field(description="¹ ID for the reservation to be queried.")], - house_account_id: Annotated[StrictStr, Field(description="¹ ID for the house account to be queried.")], - guest_id: Annotated[StrictStr, Field(description="¹ ID for the guest to be queried.")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - created_from: Annotated[Optional[datetime], Field(description="Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used.")] = None, - include_payment_allocation: Annotated[Optional[StrictBool], Field(description="Adds payment allocation to response, when available.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + property_id: Optional[StrictStr] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, + house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, + accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, + amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, + currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, + description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, + is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, + redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -818,1798 +831,32 @@ def get_payments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getPayments + """postCharge - Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) + Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - :param reservation_id: ¹ ID for the reservation to be queried. (required) + :param property_id: + :type property_id: str + :param reservation_id: Reservation ID :type reservation_id: str - :param house_account_id: ¹ ID for the house account to be queried. (required) + :param house_account_id: House Account ID :type house_account_id: str - :param guest_id: ¹ ID for the guest to be queried. (required) - :type guest_id: str - :param property_id: Property ID - :type property_id: str - :param created_from: Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. - :type created_from: datetime - :param created_to: Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. - :type created_to: datetime - :param include_payment_allocation: Adds payment allocation to response, when available. - :type include_payment_allocation: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_payments_get_serialize( - reservation_id=reservation_id, - house_account_id=house_account_id, - guest_id=guest_id, - property_id=property_id, - created_from=created_from, - created_to=created_to, - include_payment_allocation=include_payment_allocation, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPaymentsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_payments_get_serialize( - self, - reservation_id, - house_account_id, - guest_id, - property_id, - created_from, - created_to, - include_payment_allocation, - page_number, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if house_account_id is not None: - - _query_params.append(('houseAccountID', house_account_id)) - - if guest_id is not None: - - _query_params.append(('guestID', guest_id)) - - if created_from is not None: - if isinstance(created_from, datetime): - _query_params.append( - ( - 'createdFrom', - created_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdFrom', created_from)) - - if created_to is not None: - if isinstance(created_to, datetime): - _query_params.append( - ( - 'createdTo', - created_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdTo', created_to)) - - if include_payment_allocation is not None: - - _query_params.append(('includePaymentAllocation', include_payment_allocation)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getPayments', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_pending_transactions_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPendingTransactionsResponse: - """getPendingTransactions - - Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_pending_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - created_from=created_from, - created_to=created_to, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_pending_transactions_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPendingTransactionsResponse]: - """getPendingTransactions - - Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_pending_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - created_from=created_from, - created_to=created_to, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_pending_transactions_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - include_debit: Annotated[Optional[StrictBool], Field(description="If the response should include debit transactions")] = None, - include_credit: Annotated[Optional[StrictBool], Field(description="If the response should include credit transactions")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted transactions")] = None, - include_children: Annotated[Optional[StrictBool], Field(description="If the response should include children transactions (requires the parameter transactionIDs)")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned.")] = None, - sub_reservation_id: Annotated[Optional[StrictStr], Field(description="Sub Reservation Identifier, used to filter transactions result")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Room ID, used to filter transactions result")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Guest ID, used to filter transactions result")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID, used to filter transactions result")] = None, - transaction_ids: Annotated[Optional[StrictStr], Field(description="List of transaction IDs to be returned, comma-separated, i.e. 37,345,89.")] = None, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result (posted transaction date)")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result (posted transaction date)")] = None, - modified_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter transactions result")] = None, - modified_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter transactions result")] = None, - created_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00.")] = None, - created_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59.")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - sort_by: Annotated[Optional[StrictStr], Field(description="Sort response results by field")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Order response in DESCending or ASCending order, used together with sortBy")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getPendingTransactions - - Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param include_debit: If the response should include debit transactions - :type include_debit: bool - :param include_credit: If the response should include credit transactions - :type include_credit: bool - :param include_deleted: If the response should include deleted transactions - :type include_deleted: bool - :param include_children: If the response should include children transactions (requires the parameter transactionIDs) - :type include_children: bool - :param reservation_id: Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. - :type reservation_id: str - :param sub_reservation_id: Sub Reservation Identifier, used to filter transactions result - :type sub_reservation_id: str - :param room_id: Room ID, used to filter transactions result - :type room_id: str - :param guest_id: Guest ID, used to filter transactions result - :type guest_id: str - :param house_account_id: House Account ID, used to filter transactions result - :type house_account_id: str - :param transaction_ids: List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. - :type transaction_ids: str - :param results_from: Inferior limit date, used to filter transactions result (posted transaction date) - :type results_from: date - :param results_to: Superior limit date, used to filter transactions result (posted transaction date) - :type results_to: date - :param modified_from: Inferior limit date, used to filter transactions result - :type modified_from: date - :param modified_to: Superior limit date, used to filter transactions result - :type modified_to: date - :param created_from: Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. - :type created_from: datetime - :param created_to: Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. - :type created_to: datetime - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param sort_by: Sort response results by field - :type sort_by: str - :param order_by: Order response in DESCending or ASCending order, used together with sortBy - :type order_by: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_pending_transactions_get_serialize( - property_id=property_id, - include_debit=include_debit, - include_credit=include_credit, - include_deleted=include_deleted, - include_children=include_children, - reservation_id=reservation_id, - sub_reservation_id=sub_reservation_id, - room_id=room_id, - guest_id=guest_id, - house_account_id=house_account_id, - transaction_ids=transaction_ids, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - created_from=created_from, - created_to=created_to, - page_number=page_number, - page_size=page_size, - sort_by=sort_by, - order_by=order_by, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingTransactionsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_pending_transactions_get_serialize( - self, - property_id, - include_debit, - include_credit, - include_deleted, - include_children, - reservation_id, - sub_reservation_id, - room_id, - guest_id, - house_account_id, - transaction_ids, - results_from, - results_to, - modified_from, - modified_to, - created_from, - created_to, - page_number, - page_size, - sort_by, - order_by, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if include_debit is not None: - - _query_params.append(('includeDebit', include_debit)) - - if include_credit is not None: - - _query_params.append(('includeCredit', include_credit)) - - if include_deleted is not None: - - _query_params.append(('includeDeleted', include_deleted)) - - if include_children is not None: - - _query_params.append(('includeChildren', include_children)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if sub_reservation_id is not None: - - _query_params.append(('subReservationID', sub_reservation_id)) - - if room_id is not None: - - _query_params.append(('roomID', room_id)) - - if guest_id is not None: - - _query_params.append(('guestID', guest_id)) - - if house_account_id is not None: - - _query_params.append(('houseAccountID', house_account_id)) - - if transaction_ids is not None: - - _query_params.append(('transactionIDs', transaction_ids)) - - if results_from is not None: - if isinstance(results_from, date): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, date): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - if modified_from is not None: - if isinstance(modified_from, date): - _query_params.append( - ( - 'modifiedFrom', - modified_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('modifiedFrom', modified_from)) - - if modified_to is not None: - if isinstance(modified_to, date): - _query_params.append( - ( - 'modifiedTo', - modified_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('modifiedTo', modified_to)) - - if created_from is not None: - if isinstance(created_from, datetime): - _query_params.append( - ( - 'createdFrom', - created_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdFrom', created_from)) - - if created_to is not None: - if isinstance(created_to, datetime): - _query_params.append( - ( - 'createdTo', - created_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('createdTo', created_to)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - if sort_by is not None: - - _query_params.append(('sortBy', sort_by)) - - if order_by is not None: - - _query_params.append(('orderBy', order_by)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getPendingTransactions', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_charge_post( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, - accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, - amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, - currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, - description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostChargeResponse: - """postCharge - - Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - - :param property_id: - :type property_id: str - :param reservation_id: Reservation ID - :type reservation_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param group_id: Group ID - :type group_id: str - :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID - :type accounts_receivable_ledger_id: str - :param amount: Amount to charge - :type amount: str - :param currency: Currency to charge - :type currency: str - :param description: Description of the payment to display on folio - :type description: str - :param payment_method_id: Payment method UUID - :type payment_method_id: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type redirect_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_charge_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - group_id=group_id, - accounts_receivable_ledger_id=accounts_receivable_ledger_id, - amount=amount, - currency=currency, - description=description, - payment_method_id=payment_method_id, - is_deposit=is_deposit, - redirect_url=redirect_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostChargeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_charge_post_with_http_info( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, - accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, - amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, - currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, - description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostChargeResponse]: - """postCharge - - Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - - :param property_id: - :type property_id: str - :param reservation_id: Reservation ID - :type reservation_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param group_id: Group ID - :type group_id: str - :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID - :type accounts_receivable_ledger_id: str - :param amount: Amount to charge - :type amount: str - :param currency: Currency to charge - :type currency: str - :param description: Description of the payment to display on folio - :type description: str - :param payment_method_id: Payment method UUID - :type payment_method_id: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type redirect_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_charge_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - group_id=group_id, - accounts_receivable_ledger_id=accounts_receivable_ledger_id, - amount=amount, - currency=currency, - description=description, - payment_method_id=payment_method_id, - is_deposit=is_deposit, - redirect_url=redirect_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostChargeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_charge_post_without_preload_content( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation ID")] = None, - house_account_id: Annotated[Optional[StrictStr], Field(description="House Account ID")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID")] = None, - accounts_receivable_ledger_id: Annotated[Optional[StrictStr], Field(description="Accounts Receivable Ledger ID")] = None, - amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, - currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, - description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, - is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, - redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postCharge - - Use a payment method to process a payment on a reservation, group profile, accounts receivable ledger, or house account. - - :param property_id: - :type property_id: str - :param reservation_id: Reservation ID - :type reservation_id: str - :param house_account_id: House Account ID - :type house_account_id: str - :param group_id: Group ID - :type group_id: str - :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID - :type accounts_receivable_ledger_id: str - :param amount: Amount to charge - :type amount: str - :param currency: Currency to charge - :type currency: str - :param description: Description of the payment to display on folio - :type description: str - :param payment_method_id: Payment method UUID - :type payment_method_id: str - :param is_deposit: determine if this payment is a deposit (default: false) - :type is_deposit: bool - :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type redirect_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_charge_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - house_account_id=house_account_id, - group_id=group_id, - accounts_receivable_ledger_id=accounts_receivable_ledger_id, - amount=amount, - currency=currency, - description=description, - payment_method_id=payment_method_id, - is_deposit=is_deposit, - redirect_url=redirect_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostChargeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_charge_post_serialize( - self, - property_id, - reservation_id, - house_account_id, - group_id, - accounts_receivable_ledger_id, - amount, - currency, - description, - payment_method_id, - is_deposit, - redirect_url, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if house_account_id is not None: - _form_params.append(('houseAccountID', house_account_id)) - if group_id is not None: - _form_params.append(('groupID', group_id)) - if accounts_receivable_ledger_id is not None: - _form_params.append(('accountsReceivableLedgerID', accounts_receivable_ledger_id)) - if amount is not None: - _form_params.append(('amount', amount)) - if currency is not None: - _form_params.append(('currency', currency)) - if description is not None: - _form_params.append(('description', description)) - if payment_method_id is not None: - _form_params.append(('paymentMethodId', payment_method_id)) - if is_deposit is not None: - _form_params.append(('isDeposit', is_deposit)) - if redirect_url is not None: - _form_params.append(('redirectUrl', redirect_url)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postCharge', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_credit_card_post( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Optional[StrictStr] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, - return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostCardResponse: - """postCreditCard - - Returns the rate of the room type selected, based on the provided parameters - - :param property_id: - :type property_id: str - :param reservation_id: - :type reservation_id: str - :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided - :type card_token: str - :param payment_method_id: Payment Method ID provided by the payments SDK - :type payment_method_id: str - :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type return_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_credit_card_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - card_token=card_token, - payment_method_id=payment_method_id, - return_url=return_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_credit_card_post_with_http_info( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Optional[StrictStr] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, - return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostCardResponse]: - """postCreditCard - - Returns the rate of the room type selected, based on the provided parameters - - :param property_id: - :type property_id: str - :param reservation_id: - :type reservation_id: str - :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided - :type card_token: str - :param payment_method_id: Payment Method ID provided by the payments SDK - :type payment_method_id: str - :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type return_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_credit_card_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - card_token=card_token, - payment_method_id=payment_method_id, - return_url=return_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_credit_card_post_without_preload_content( - self, - property_id: Optional[StrictStr] = None, - reservation_id: Optional[StrictStr] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, - payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, - return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postCreditCard - - Returns the rate of the room type selected, based on the provided parameters - - :param property_id: - :type property_id: str - :param reservation_id: - :type reservation_id: str - :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided - :type card_token: str - :param payment_method_id: Payment Method ID provided by the payments SDK - :type payment_method_id: str - :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected - :type return_url: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_credit_card_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - card_token=card_token, - payment_method_id=payment_method_id, - return_url=return_url, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCardResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_credit_card_post_serialize( - self, - property_id, - reservation_id, - card_token, - payment_method_id, - return_url, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if card_token is not None: - _form_params.append(('cardToken', card_token)) - if payment_method_id is not None: - _form_params.append(('paymentMethodId', payment_method_id)) - if return_url is not None: - _form_params.append(('returnUrl', return_url)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postCreditCard', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_custom_payment_method_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, - method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, - method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostCustomPaymentMethodResponse: - """postCustomPaymentMethod - - Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - - :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. - :type property_id: str - :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. - :type method: str - :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. - :type method_name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_custom_payment_method_post_serialize( - property_id=property_id, - method=method, - method_name=method_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCustomPaymentMethodResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_custom_payment_method_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, - method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, - method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostCustomPaymentMethodResponse]: - """postCustomPaymentMethod - - Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - - :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. - :type property_id: str - :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. - :type method: str - :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. - :type method_name: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_custom_payment_method_post_serialize( - property_id=property_id, - method=method, - method_name=method_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCustomPaymentMethodResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_custom_payment_method_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, - method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, - method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postCustomPaymentMethod - - Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - - :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. - :type property_id: str - :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. - :type method: str - :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. - :type method_name: str + :param group_id: Group ID + :type group_id: str + :param accounts_receivable_ledger_id: Accounts Receivable Ledger ID + :type accounts_receivable_ledger_id: str + :param amount: Amount to charge + :type amount: str + :param currency: Currency to charge + :type currency: str + :param description: Description of the payment to display on folio + :type description: str + :param payment_method_id: Payment method UUID + :type payment_method_id: str + :param is_deposit: determine if this payment is a deposit (default: false) + :type is_deposit: bool + :param redirect_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type redirect_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2632,10 +879,18 @@ def post_custom_payment_method_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_custom_payment_method_post_serialize( + _param = self._post_charge_post_serialize( property_id=property_id, - method=method, - method_name=method_name, + reservation_id=reservation_id, + house_account_id=house_account_id, + group_id=group_id, + accounts_receivable_ledger_id=accounts_receivable_ledger_id, + amount=amount, + currency=currency, + description=description, + payment_method_id=payment_method_id, + is_deposit=is_deposit, + redirect_url=redirect_url, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2643,7 +898,7 @@ def post_custom_payment_method_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostCustomPaymentMethodResponse", + '200': "PostChargeResponse", } response_data = self.api_client.call_api( *_param, @@ -2652,11 +907,19 @@ def post_custom_payment_method_post_without_preload_content( return response_data.response - def _post_custom_payment_method_post_serialize( + def _post_charge_post_serialize( self, property_id, - method, - method_name, + reservation_id, + house_account_id, + group_id, + accounts_receivable_ledger_id, + amount, + currency, + description, + payment_method_id, + is_deposit, + redirect_url, _request_auth, _content_type, _headers, @@ -2683,10 +946,26 @@ def _post_custom_payment_method_post_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if method is not None: - _form_params.append(('method', method)) - if method_name is not None: - _form_params.append(('methodName', method_name)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if house_account_id is not None: + _form_params.append(('houseAccountID', house_account_id)) + if group_id is not None: + _form_params.append(('groupID', group_id)) + if accounts_receivable_ledger_id is not None: + _form_params.append(('accountsReceivableLedgerID', accounts_receivable_ledger_id)) + if amount is not None: + _form_params.append(('amount', amount)) + if currency is not None: + _form_params.append(('currency', currency)) + if description is not None: + _form_params.append(('description', description)) + if payment_method_id is not None: + _form_params.append(('paymentMethodId', payment_method_id)) + if is_deposit is not None: + _form_params.append(('isDeposit', is_deposit)) + if redirect_url is not None: + _form_params.append(('redirectUrl', redirect_url)) # process the body parameter @@ -2720,7 +999,7 @@ def _post_custom_payment_method_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/postCustomPaymentMethod', + resource_path='/postCharge', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2737,10 +1016,13 @@ def _post_custom_payment_method_post_serialize( @validate_call - def post_payment_cash_post( + def post_credit_card_post( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2753,15 +1035,21 @@ def post_payment_cash_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostPaymentCashResponse: - """postPaymentCash + ) -> PostCardResponse: + """postCreditCard - Add a payment done by cash to a specified reservation + Returns the rate of the room type selected, based on the provided parameters - :param reservation_id: Reservation identifier + :param property_id: + :type property_id: str + :param reservation_id: :type reservation_id: str - :param amount: Amount paid on this payment - :type amount: float + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2784,9 +1072,12 @@ def post_payment_cash_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_payment_cash_post_serialize( + _param = self._post_credit_card_post_serialize( + property_id=property_id, reservation_id=reservation_id, - amount=amount, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2794,7 +1085,7 @@ def post_payment_cash_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentCashResponse", + '200': "PostCardResponse", } response_data = self.api_client.call_api( *_param, @@ -2808,10 +1099,13 @@ def post_payment_cash_post( @validate_call - def post_payment_cash_post_with_http_info( + def post_credit_card_post_with_http_info( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2824,15 +1118,21 @@ def post_payment_cash_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostPaymentCashResponse]: - """postPaymentCash + ) -> ApiResponse[PostCardResponse]: + """postCreditCard - Add a payment done by cash to a specified reservation + Returns the rate of the room type selected, based on the provided parameters - :param reservation_id: Reservation identifier + :param property_id: + :type property_id: str + :param reservation_id: :type reservation_id: str - :param amount: Amount paid on this payment - :type amount: float + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2855,9 +1155,12 @@ def post_payment_cash_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_payment_cash_post_serialize( + _param = self._post_credit_card_post_serialize( + property_id=property_id, reservation_id=reservation_id, - amount=amount, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2865,7 +1168,7 @@ def post_payment_cash_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentCashResponse", + '200': "PostCardResponse", } response_data = self.api_client.call_api( *_param, @@ -2879,10 +1182,13 @@ def post_payment_cash_post_with_http_info( @validate_call - def post_payment_cash_post_without_preload_content( + def post_credit_card_post_without_preload_content( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, + property_id: Optional[StrictStr] = None, + reservation_id: Optional[StrictStr] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided")] = None, + payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment Method ID provided by the payments SDK")] = None, + return_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2896,14 +1202,20 @@ def post_payment_cash_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postPaymentCash + """postCreditCard - Add a payment done by cash to a specified reservation + Returns the rate of the room type selected, based on the provided parameters - :param reservation_id: Reservation identifier + :param property_id: + :type property_id: str + :param reservation_id: :type reservation_id: str - :param amount: Amount paid on this payment - :type amount: float + :param card_token: cardToken provided by Stripe JS, not recommended, not required if paymentMethodId is provided + :type card_token: str + :param payment_method_id: Payment Method ID provided by the payments SDK + :type payment_method_id: str + :param return_url: client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected + :type return_url: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2926,9 +1238,12 @@ def post_payment_cash_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_payment_cash_post_serialize( + _param = self._post_credit_card_post_serialize( + property_id=property_id, reservation_id=reservation_id, - amount=amount, + card_token=card_token, + payment_method_id=payment_method_id, + return_url=return_url, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2936,7 +1251,7 @@ def post_payment_cash_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentCashResponse", + '200': "PostCardResponse", } response_data = self.api_client.call_api( *_param, @@ -2945,10 +1260,13 @@ def post_payment_cash_post_without_preload_content( return response_data.response - def _post_payment_cash_post_serialize( + def _post_credit_card_post_serialize( self, + property_id, reservation_id, - amount, + card_token, + payment_method_id, + return_url, _request_auth, _content_type, _headers, @@ -2973,10 +1291,16 @@ def _post_payment_cash_post_serialize( # process the query parameters # process the header parameters # process the form parameters + if property_id is not None: + _form_params.append(('propertyID', property_id)) if reservation_id is not None: _form_params.append(('reservationID', reservation_id)) - if amount is not None: - _form_params.append(('amount', amount)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) + if payment_method_id is not None: + _form_params.append(('paymentMethodId', payment_method_id)) + if return_url is not None: + _form_params.append(('returnUrl', return_url)) # process the body parameter @@ -3010,7 +1334,7 @@ def _post_payment_cash_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/postPaymentCash', + resource_path='/postCreditCard', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3027,11 +1351,11 @@ def _post_payment_cash_post_serialize( @validate_call - def post_payment_credit_card_post( + def post_custom_payment_method_post( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, - card_id: Annotated[Optional[StrictStr], Field(description="Credit Card ID used on payment. Can be retrieved with reservation information")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3044,17 +1368,17 @@ def post_payment_credit_card_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostPaymentCreditCardResponse: - """postPaymentCreditCard + ) -> PostCustomPaymentMethodResponse: + """postCustomPaymentMethod - Add a payment done by credit card to a specified reservation + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - :param reservation_id: Reservation identifier - :type reservation_id: str - :param amount: Amount paid on this payment - :type amount: float - :param card_id: Credit Card ID used on payment. Can be retrieved with reservation information - :type card_id: str + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3077,10 +1401,10 @@ def post_payment_credit_card_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_payment_credit_card_post_serialize( - reservation_id=reservation_id, - amount=amount, - card_id=card_id, + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3088,7 +1412,7 @@ def post_payment_credit_card_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentCreditCardResponse", + '200': "PostCustomPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, @@ -3102,11 +1426,11 @@ def post_payment_credit_card_post( @validate_call - def post_payment_credit_card_post_with_http_info( + def post_custom_payment_method_post_with_http_info( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, - card_id: Annotated[Optional[StrictStr], Field(description="Credit Card ID used on payment. Can be retrieved with reservation information")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3119,17 +1443,17 @@ def post_payment_credit_card_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostPaymentCreditCardResponse]: - """postPaymentCreditCard + ) -> ApiResponse[PostCustomPaymentMethodResponse]: + """postCustomPaymentMethod - Add a payment done by credit card to a specified reservation + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - :param reservation_id: Reservation identifier - :type reservation_id: str - :param amount: Amount paid on this payment - :type amount: float - :param card_id: Credit Card ID used on payment. Can be retrieved with reservation information - :type card_id: str + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3152,10 +1476,10 @@ def post_payment_credit_card_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_payment_credit_card_post_serialize( - reservation_id=reservation_id, - amount=amount, - card_id=card_id, + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3163,7 +1487,7 @@ def post_payment_credit_card_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentCreditCardResponse", + '200': "PostCustomPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, @@ -3177,11 +1501,11 @@ def post_payment_credit_card_post_with_http_info( @validate_call - def post_payment_credit_card_post_without_preload_content( + def post_custom_payment_method_post_without_preload_content( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, - amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this payment")] = None, - card_id: Annotated[Optional[StrictStr], Field(description="Credit Card ID used on payment. Can be retrieved with reservation information")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID, if not sent will retrieve property ID from credentials, only one property ID call.")] = None, + method: Annotated[Optional[StrictStr], Field(description="Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it.")] = None, + method_name: Annotated[Optional[StrictStr], Field(description="Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3195,16 +1519,16 @@ def post_payment_credit_card_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postPaymentCreditCard + """postCustomPaymentMethod - Add a payment done by credit card to a specified reservation + Add a Custom Payment Method to a property. This call does not allow to add Payment Methods: credit cards, bank transfer or Pay Pal. - :param reservation_id: Reservation identifier - :type reservation_id: str - :param amount: Amount paid on this payment - :type amount: float - :param card_id: Credit Card ID used on payment. Can be retrieved with reservation information - :type card_id: str + :param property_id: Property ID, if not sent will retrieve property ID from credentials, only one property ID call. + :type property_id: str + :param method: Payment Method, value used in future calls. Must be unique for each property and no whitespaces are allowed (use camel case or underline instead). Will be verified against existing Payment Methods, if it exists, will try to enable it. + :type method: str + :param method_name: Payment Method Name, value used to represent the Payment Method. Can use spaces. If nothing is sent, will use value for method. + :type method_name: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3227,10 +1551,10 @@ def post_payment_credit_card_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_payment_credit_card_post_serialize( - reservation_id=reservation_id, - amount=amount, - card_id=card_id, + _param = self._post_custom_payment_method_post_serialize( + property_id=property_id, + method=method, + method_name=method_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3238,7 +1562,7 @@ def post_payment_credit_card_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostPaymentCreditCardResponse", + '200': "PostCustomPaymentMethodResponse", } response_data = self.api_client.call_api( *_param, @@ -3247,11 +1571,11 @@ def post_payment_credit_card_post_without_preload_content( return response_data.response - def _post_payment_credit_card_post_serialize( + def _post_custom_payment_method_post_serialize( self, - reservation_id, - amount, - card_id, + property_id, + method, + method_name, _request_auth, _content_type, _headers, @@ -3276,12 +1600,12 @@ def _post_payment_credit_card_post_serialize( # process the query parameters # process the header parameters # process the form parameters - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if amount is not None: - _form_params.append(('amount', amount)) - if card_id is not None: - _form_params.append(('cardID', card_id)) + if property_id is not None: + _form_params.append(('propertyID', property_id)) + if method is not None: + _form_params.append(('method', method)) + if method_name is not None: + _form_params.append(('methodName', method_name)) # process the body parameter @@ -3315,7 +1639,7 @@ def _post_payment_credit_card_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/postPaymentCreditCard', + resource_path='/postCustomPaymentMethod', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cloudbeds_pms_v1_3/api/rate_api.py b/cloudbeds_pms_v1_3/api/rate_api.py index 67f95ff..ee97ad1 100644 --- a/cloudbeds_pms_v1_3/api/rate_api.py +++ b/cloudbeds_pms_v1_3/api/rate_api.py @@ -25,8 +25,8 @@ from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner -from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized from cloudbeds_pms_v1_3.api_response import ApiResponse @@ -1423,9 +1423,9 @@ def _patch_rate_post_serialize( @validate_call - def put_rate_put( + def put_rate_post( self, - rates: Annotated[Optional[List[PutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1438,13 +1438,13 @@ def put_rate_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PutRateResponse: + ) -> PostPutRateResponse: """putRate Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. :param rates: Array of rates to update - :type rates: List[PutRateRequestRatesInner] + :type rates: List[PostPutRateRequestRatesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1467,7 +1467,7 @@ def put_rate_put( :return: Returns the result object. """ # noqa: E501 - _param = self._put_rate_put_serialize( + _param = self._put_rate_post_serialize( rates=rates, _request_auth=_request_auth, _content_type=_content_type, @@ -1476,7 +1476,7 @@ def put_rate_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutRateResponse", + '200': "PostPutRateResponse", } response_data = self.api_client.call_api( *_param, @@ -1490,9 +1490,9 @@ def put_rate_put( @validate_call - def put_rate_put_with_http_info( + def put_rate_post_with_http_info( self, - rates: Annotated[Optional[List[PutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1505,13 +1505,13 @@ def put_rate_put_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PutRateResponse]: + ) -> ApiResponse[PostPutRateResponse]: """putRate Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. :param rates: Array of rates to update - :type rates: List[PutRateRequestRatesInner] + :type rates: List[PostPutRateRequestRatesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1534,7 +1534,7 @@ def put_rate_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_rate_put_serialize( + _param = self._put_rate_post_serialize( rates=rates, _request_auth=_request_auth, _content_type=_content_type, @@ -1543,7 +1543,7 @@ def put_rate_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutRateResponse", + '200': "PostPutRateResponse", } response_data = self.api_client.call_api( *_param, @@ -1557,9 +1557,9 @@ def put_rate_put_with_http_info( @validate_call - def put_rate_put_without_preload_content( + def put_rate_post_without_preload_content( self, - rates: Annotated[Optional[List[PutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, + rates: Annotated[Optional[List[PostPutRateRequestRatesInner]], Field(description="Array of rates to update")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1578,7 +1578,7 @@ def put_rate_put_without_preload_content( Update the rate of the room based on rateID selected, based on the provided parameters. You can make multiple rate updates in a single API call. Providing a startDate and/or endDate will update rates only within the interval provided. Only non derived rates can be updated, requests to update a derived rate will return an error. This endpoint performs updates asynchronously, rate updates are added to a queue and the endpoint returns a job reference ID. This job reference ID can be used to track job status notifications or to look up details of the update once it is completed. The API is limited to 30 interval per update, sending more than 30 will return an error. :param rates: Array of rates to update - :type rates: List[PutRateRequestRatesInner] + :type rates: List[PostPutRateRequestRatesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1601,7 +1601,7 @@ def put_rate_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_rate_put_serialize( + _param = self._put_rate_post_serialize( rates=rates, _request_auth=_request_auth, _content_type=_content_type, @@ -1610,7 +1610,7 @@ def put_rate_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutRateResponse", + '200': "PostPutRateResponse", } response_data = self.api_client.call_api( *_param, @@ -1619,7 +1619,7 @@ def put_rate_put_without_preload_content( return response_data.response - def _put_rate_put_serialize( + def _put_rate_post_serialize( self, rates, _request_auth, @@ -1681,7 +1681,7 @@ def _put_rate_put_serialize( ] return self.api_client.param_serialize( - method='PUT', + method='POST', resource_path='/putRate', path_params=_path_params, query_params=_query_params, diff --git a/cloudbeds_pms_v1_3/api/reservation_api.py b/cloudbeds_pms_v1_3/api/reservation_api.py index 08ed5d2..4fc3b7d 100644 --- a/cloudbeds_pms_v1_3/api/reservation_api.py +++ b/cloudbeds_pms_v1_3/api/reservation_api.py @@ -21,18 +21,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse -from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse -from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse -from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner @@ -40,8 +34,6 @@ from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse -from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner @@ -364,10 +356,10 @@ def _delete_reservation_note_delete_serialize( @validate_call - def get_reservation_arrivals_get( + def get_reservation_assignments_get( self, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -380,15 +372,15 @@ def get_reservation_arrivals_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationArrivalsResponse: - """getReservationArrivals + ) -> GetReservationAssignmentsResponse: + """getReservationAssignments - Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. + Returns a list of rooms/reservations assigned for a selected date. - :param results_from: Inferior limit date, used to filter reservations result - :type results_from: date - :param results_to: Superior limit date, used to filter reservations result - :type results_to: date + :param property_id: Property ID + :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -411,9 +403,9 @@ def get_reservation_arrivals_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_arrivals_get_serialize( - results_from=results_from, - results_to=results_to, + _param = self._get_reservation_assignments_get_serialize( + property_id=property_id, + var_date=var_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -421,7 +413,7 @@ def get_reservation_arrivals_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationArrivalsResponse", + '200': "GetReservationAssignmentsResponse", } response_data = self.api_client.call_api( *_param, @@ -435,10 +427,10 @@ def get_reservation_arrivals_get( @validate_call - def get_reservation_arrivals_get_with_http_info( + def get_reservation_assignments_get_with_http_info( self, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -451,15 +443,15 @@ def get_reservation_arrivals_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationArrivalsResponse]: - """getReservationArrivals + ) -> ApiResponse[GetReservationAssignmentsResponse]: + """getReservationAssignments - Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. + Returns a list of rooms/reservations assigned for a selected date. - :param results_from: Inferior limit date, used to filter reservations result - :type results_from: date - :param results_to: Superior limit date, used to filter reservations result - :type results_to: date + :param property_id: Property ID + :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -482,9 +474,9 @@ def get_reservation_arrivals_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_arrivals_get_serialize( - results_from=results_from, - results_to=results_to, + _param = self._get_reservation_assignments_get_serialize( + property_id=property_id, + var_date=var_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -492,7 +484,7 @@ def get_reservation_arrivals_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationArrivalsResponse", + '200': "GetReservationAssignmentsResponse", } response_data = self.api_client.call_api( *_param, @@ -506,10 +498,10 @@ def get_reservation_arrivals_get_with_http_info( @validate_call - def get_reservation_arrivals_get_without_preload_content( + def get_reservation_assignments_get_without_preload_content( self, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -523,14 +515,14 @@ def get_reservation_arrivals_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservationArrivals + """getReservationAssignments - Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. + Returns a list of rooms/reservations assigned for a selected date. - :param results_from: Inferior limit date, used to filter reservations result - :type results_from: date - :param results_to: Superior limit date, used to filter reservations result - :type results_to: date + :param property_id: Property ID + :type property_id: str + :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. + :type var_date: date :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -553,9 +545,9 @@ def get_reservation_arrivals_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_arrivals_get_serialize( - results_from=results_from, - results_to=results_to, + _param = self._get_reservation_assignments_get_serialize( + property_id=property_id, + var_date=var_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -563,7 +555,7 @@ def get_reservation_arrivals_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationArrivalsResponse", + '200': "GetReservationAssignmentsResponse", } response_data = self.api_client.call_api( *_param, @@ -572,10 +564,10 @@ def get_reservation_arrivals_get_without_preload_content( return response_data.response - def _get_reservation_arrivals_get_serialize( + def _get_reservation_assignments_get_serialize( self, - results_from, - results_to, + property_id, + var_date, _request_auth, _content_type, _headers, @@ -598,31 +590,22 @@ def _get_reservation_arrivals_get_serialize( # process the path parameters # process the query parameters - if results_from is not None: - if isinstance(results_from, date): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) + if property_id is not None: - if results_to is not None: - if isinstance(results_to, date): + _query_params.append(('propertyID', property_id)) + + if var_date is not None: + if isinstance(var_date, date): _query_params.append( ( - 'resultsTo', - results_to.strftime( + 'date', + var_date.strftime( self.api_client.configuration.date_format ) ) ) else: - _query_params.append(('resultsTo', results_to)) + _query_params.append(('date', var_date)) # process the header parameters # process the form parameters @@ -646,7 +629,7 @@ def _get_reservation_arrivals_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getReservationArrivals', + resource_path='/getReservationAssignments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -663,10 +646,11 @@ def _get_reservation_arrivals_get_serialize( @validate_call - def get_reservation_assignments_get( + def get_reservation_get( self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -679,15 +663,17 @@ def get_reservation_assignments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationAssignmentsResponse: - """getReservationAssignments + ) -> GetReservationResponse: + """getReservation - Returns a list of rooms/reservations assigned for a selected date. + Returns information on a booking specified by the reservationID parameter + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) + :type reservation_id: str :param property_id: Property ID :type property_id: str - :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. - :type var_date: date + :param include_guest_requirements: Includes guest requirements data in the response. + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -710,9 +696,10 @@ def get_reservation_assignments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_assignments_get_serialize( + _param = self._get_reservation_get_serialize( + reservation_id=reservation_id, property_id=property_id, - var_date=var_date, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -720,7 +707,7 @@ def get_reservation_assignments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationAssignmentsResponse", + '200': "GetReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -734,10 +721,11 @@ def get_reservation_assignments_get( @validate_call - def get_reservation_assignments_get_with_http_info( + def get_reservation_get_with_http_info( self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -750,15 +738,17 @@ def get_reservation_assignments_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationAssignmentsResponse]: - """getReservationAssignments + ) -> ApiResponse[GetReservationResponse]: + """getReservation - Returns a list of rooms/reservations assigned for a selected date. + Returns information on a booking specified by the reservationID parameter + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) + :type reservation_id: str :param property_id: Property ID :type property_id: str - :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. - :type var_date: date + :param include_guest_requirements: Includes guest requirements data in the response. + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -781,9 +771,10 @@ def get_reservation_assignments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_assignments_get_serialize( + _param = self._get_reservation_get_serialize( + reservation_id=reservation_id, property_id=property_id, - var_date=var_date, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -791,7 +782,7 @@ def get_reservation_assignments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationAssignmentsResponse", + '200': "GetReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -805,10 +796,11 @@ def get_reservation_assignments_get_with_http_info( @validate_call - def get_reservation_assignments_get_without_preload_content( + def get_reservation_get_without_preload_content( self, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - var_date: Annotated[Optional[date], Field(description="Date selected to get the assignments. If no date is passed, it will return the results for the current day.")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -822,14 +814,16 @@ def get_reservation_assignments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservationAssignments + """getReservation - Returns a list of rooms/reservations assigned for a selected date. + Returns information on a booking specified by the reservationID parameter + :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) + :type reservation_id: str :param property_id: Property ID :type property_id: str - :param var_date: Date selected to get the assignments. If no date is passed, it will return the results for the current day. - :type var_date: date + :param include_guest_requirements: Includes guest requirements data in the response. + :type include_guest_requirements: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -852,9 +846,10 @@ def get_reservation_assignments_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_assignments_get_serialize( + _param = self._get_reservation_get_serialize( + reservation_id=reservation_id, property_id=property_id, - var_date=var_date, + include_guest_requirements=include_guest_requirements, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -862,7 +857,7 @@ def get_reservation_assignments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationAssignmentsResponse", + '200': "GetReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -871,10 +866,11 @@ def get_reservation_assignments_get_without_preload_content( return response_data.response - def _get_reservation_assignments_get_serialize( + def _get_reservation_get_serialize( self, + reservation_id, property_id, - var_date, + include_guest_requirements, _request_auth, _content_type, _headers, @@ -901,18 +897,13 @@ def _get_reservation_assignments_get_serialize( _query_params.append(('propertyID', property_id)) - if var_date is not None: - if isinstance(var_date, date): - _query_params.append( - ( - 'date', - var_date.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('date', var_date)) + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) # process the header parameters # process the form parameters @@ -936,7 +927,7 @@ def _get_reservation_assignments_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getReservationAssignments', + resource_path='/getReservation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -953,10 +944,10 @@ def _get_reservation_assignments_get_serialize( @validate_call - def get_reservation_departures_get( + def get_reservation_notes_get( self, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -969,15 +960,15 @@ def get_reservation_departures_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationDeparturesResponse: - """getReservationDepartures + ) -> GetReservationNotesResponse: + """getReservationNotes - Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. + Retrieves reservation notes based on parameters - :param results_from: Inferior limit date, used to filter reservations result - :type results_from: date - :param results_to: Superior limit date, used to filter reservations result - :type results_to: date + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1000,9 +991,9 @@ def get_reservation_departures_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_departures_get_serialize( - results_from=results_from, - results_to=results_to, + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1010,7 +1001,7 @@ def get_reservation_departures_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationDeparturesResponse", + '200': "GetReservationNotesResponse", } response_data = self.api_client.call_api( *_param, @@ -1024,10 +1015,10 @@ def get_reservation_departures_get( @validate_call - def get_reservation_departures_get_with_http_info( + def get_reservation_notes_get_with_http_info( self, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1040,15 +1031,15 @@ def get_reservation_departures_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationDeparturesResponse]: - """getReservationDepartures + ) -> ApiResponse[GetReservationNotesResponse]: + """getReservationNotes - Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. + Retrieves reservation notes based on parameters - :param results_from: Inferior limit date, used to filter reservations result - :type results_from: date - :param results_to: Superior limit date, used to filter reservations result - :type results_to: date + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1071,9 +1062,9 @@ def get_reservation_departures_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_departures_get_serialize( - results_from=results_from, - results_to=results_to, + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1081,7 +1072,7 @@ def get_reservation_departures_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationDeparturesResponse", + '200': "GetReservationNotesResponse", } response_data = self.api_client.call_api( *_param, @@ -1095,10 +1086,10 @@ def get_reservation_departures_get_with_http_info( @validate_call - def get_reservation_departures_get_without_preload_content( + def get_reservation_notes_get_without_preload_content( self, - results_from: Annotated[Optional[date], Field(description="Inferior limit date, used to filter reservations result")] = None, - results_to: Annotated[Optional[date], Field(description="Superior limit date, used to filter reservations result")] = None, + reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1112,14 +1103,14 @@ def get_reservation_departures_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """getReservationDepartures + """getReservationNotes - Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. + Retrieves reservation notes based on parameters - :param results_from: Inferior limit date, used to filter reservations result - :type results_from: date - :param results_to: Superior limit date, used to filter reservations result - :type results_to: date + :param reservation_id: Reservation Unique Identifier (required) + :type reservation_id: str + :param property_id: Property ID + :type property_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1142,9 +1133,9 @@ def get_reservation_departures_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_departures_get_serialize( - results_from=results_from, - results_to=results_to, + _param = self._get_reservation_notes_get_serialize( + reservation_id=reservation_id, + property_id=property_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1152,7 +1143,7 @@ def get_reservation_departures_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationDeparturesResponse", + '200': "GetReservationNotesResponse", } response_data = self.api_client.call_api( *_param, @@ -1161,10 +1152,10 @@ def get_reservation_departures_get_without_preload_content( return response_data.response - def _get_reservation_departures_get_serialize( + def _get_reservation_notes_get_serialize( self, - results_from, - results_to, + reservation_id, + property_id, _request_auth, _content_type, _headers, @@ -1187,31 +1178,13 @@ def _get_reservation_departures_get_serialize( # process the path parameters # process the query parameters - if results_from is not None: - if isinstance(results_from, date): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) + if property_id is not None: - if results_to is not None: - if isinstance(results_to, date): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) + _query_params.append(('propertyID', property_id)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) # process the header parameters # process the form parameters @@ -1235,7 +1208,7 @@ def _get_reservation_departures_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/getReservationDepartures', + resource_path='/getReservationNotes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1252,11 +1225,34 @@ def _get_reservation_departures_get_serialize( @validate_call - def get_reservation_get( + def get_reservations_get( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1269,17 +1265,63 @@ def get_reservation_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationResponse: - """getReservation + ) -> GetReservationsResponse: + """getReservations - Returns information on a booking specified by the reservationID parameter + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) - :type reservation_id: str - :param property_id: Property ID + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. :type property_id: str - :param include_guest_requirements: Includes guest requirements data in the response. + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. + :type dates_query_mode: str + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1302,10 +1344,33 @@ def get_reservation_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_get_serialize( - reservation_id=reservation_id, + _param = self._get_reservations_get_serialize( property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + dates_query_mode=dates_query_mode, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + guest_id=guest_id, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1313,7 +1378,7 @@ def get_reservation_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationResponse", + '200': "GetReservationsResponse", } response_data = self.api_client.call_api( *_param, @@ -1327,11 +1392,34 @@ def get_reservation_get( @validate_call - def get_reservation_get_with_http_info( + def get_reservations_get_with_http_info( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1344,17 +1432,63 @@ def get_reservation_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationResponse]: - """getReservation + ) -> ApiResponse[GetReservationsResponse]: + """getReservations - Returns information on a booking specified by the reservationID parameter + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) - :type reservation_id: str - :param property_id: Property ID + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. :type property_id: str - :param include_guest_requirements: Includes guest requirements data in the response. + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. + :type dates_query_mode: str + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1377,10 +1511,33 @@ def get_reservation_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_get_serialize( - reservation_id=reservation_id, + _param = self._get_reservations_get_serialize( property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + dates_query_mode=dates_query_mode, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + guest_id=guest_id, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1388,7 +1545,7 @@ def get_reservation_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationResponse", + '200': "GetReservationsResponse", } response_data = self.api_client.call_api( *_param, @@ -1402,34 +1559,103 @@ def get_reservation_get_with_http_info( @validate_call - def get_reservation_get_without_preload_content( + def get_reservations_get_without_preload_content( self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getReservation + property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, + status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, + check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, + check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, + check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, + check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, + dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, + room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, + room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, + source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, + rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """getReservations - Returns information on a booking specified by the reservationID parameter + Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - :param reservation_id: Reservation Unique Identifier. Obtained from one of the \"Reservations\" group methods (required) - :type reservation_id: str - :param property_id: Property ID + :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. :type property_id: str - :param include_guest_requirements: Includes guest requirements data in the response. + :param status: Filter by current reservation status + :type status: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date + :type results_to: datetime + :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date + :type modified_to: datetime + :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date + :type check_in_from: date + :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date + :type check_in_to: date + :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date + :type check_out_from: date + :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date + :type check_out_to: date + :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. + :type dates_query_mode: str + :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. + :type room_id: str + :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. + :type room_name: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. + :type include_all_rooms: bool + :param source_id: Filters reservation with the supplied source ID. + :type source_id: str + :param source_reservation_id: Filters reservation with the supplied reservation source ID. + :type source_reservation_id: str + :param rate_plan_id: Filters reservation with the supplied rate plan ID. + :type rate_plan_id: str + :param first_name: Filters reservation with the supplied primary guest first name. + :type first_name: str + :param last_name: Filters reservation with the supplied primary guest last name. + :type last_name: str + :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). + :type guest_id: str + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1452,10 +1678,33 @@ def get_reservation_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_reservation_get_serialize( - reservation_id=reservation_id, + _param = self._get_reservations_get_serialize( property_id=property_id, + status=status, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + check_in_from=check_in_from, + check_in_to=check_in_to, + check_out_from=check_out_from, + check_out_to=check_out_to, + dates_query_mode=dates_query_mode, + room_id=room_id, + room_name=room_name, + include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, + include_all_rooms=include_all_rooms, + source_id=source_id, + source_reservation_id=source_reservation_id, + rate_plan_id=rate_plan_id, + first_name=first_name, + last_name=last_name, + guest_id=guest_id, + sort_by_recent=sort_by_recent, + page_number=page_number, + page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1463,7 +1712,7 @@ def get_reservation_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationResponse", + '200': "GetReservationsResponse", } response_data = self.api_client.call_api( *_param, @@ -1472,11 +1721,34 @@ def get_reservation_get_without_preload_content( return response_data.response - def _get_reservation_get_serialize( + def _get_reservations_get_serialize( self, - reservation_id, property_id, + status, + results_from, + results_to, + modified_from, + modified_to, + check_in_from, + check_in_to, + check_out_from, + check_out_to, + dates_query_mode, + room_id, + room_name, + include_guests_details, include_guest_requirements, + include_custom_fields, + include_all_rooms, + source_id, + source_reservation_id, + rate_plan_id, + first_name, + last_name, + guest_id, + sort_by_recent, + page_number, + page_size, _request_auth, _content_type, _headers, @@ -1503,2454 +1775,177 @@ def _get_reservation_get_serialize( _query_params.append(('propertyID', property_id)) - if reservation_id is not None: + if status is not None: - _query_params.append(('reservationID', reservation_id)) + _query_params.append(('status', status)) - if include_guest_requirements is not None: + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) - _query_params.append(('includeGuestRequirements', include_guest_requirements)) + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getReservation', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_reservation_in_house_get( - self, - with_room_details: Annotated[Optional[StrictBool], Field(description="Include rooms details")] = None, - include_guest_info: Annotated[Optional[StrictBool], Field(description="Include guest details")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationInHouseResponse: - """getReservationInHouse - - Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
- - :param with_room_details: Include rooms details - :type with_room_details: bool - :param include_guest_info: Include guest details - :type include_guest_info: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_in_house_get_serialize( - with_room_details=with_room_details, - include_guest_info=include_guest_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInHouseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_reservation_in_house_get_with_http_info( - self, - with_room_details: Annotated[Optional[StrictBool], Field(description="Include rooms details")] = None, - include_guest_info: Annotated[Optional[StrictBool], Field(description="Include guest details")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationInHouseResponse]: - """getReservationInHouse - - Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
- - :param with_room_details: Include rooms details - :type with_room_details: bool - :param include_guest_info: Include guest details - :type include_guest_info: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_in_house_get_serialize( - with_room_details=with_room_details, - include_guest_info=include_guest_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInHouseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_reservation_in_house_get_without_preload_content( - self, - with_room_details: Annotated[Optional[StrictBool], Field(description="Include rooms details")] = None, - include_guest_info: Annotated[Optional[StrictBool], Field(description="Include guest details")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getReservationInHouse - - Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
- - :param with_room_details: Include rooms details - :type with_room_details: bool - :param include_guest_info: Include guest details - :type include_guest_info: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_in_house_get_serialize( - with_room_details=with_room_details, - include_guest_info=include_guest_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInHouseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_reservation_in_house_get_serialize( - self, - with_room_details, - include_guest_info, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if with_room_details is not None: + if modified_from is not None: + if isinstance(modified_from, datetime): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) - _query_params.append(('withRoomDetails', with_room_details)) + if modified_to is not None: + if isinstance(modified_to, datetime): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) - if include_guest_info is not None: + if check_in_from is not None: + if isinstance(check_in_from, date): + _query_params.append( + ( + 'checkInFrom', + check_in_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInFrom', check_in_from)) - _query_params.append(('includeGuestInfo', include_guest_info)) + if check_in_to is not None: + if isinstance(check_in_to, date): + _query_params.append( + ( + 'checkInTo', + check_in_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkInTo', check_in_to)) - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getReservationInHouse', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_reservation_invoice_information_get( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationInvoiceInformationResponse: - """getReservationInvoiceInformation - - Returns information that can be used to create an invoice for the selected reservation - - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_invoice_information_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInvoiceInformationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_reservation_invoice_information_get_with_http_info( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationInvoiceInformationResponse]: - """getReservationInvoiceInformation - - Returns information that can be used to create an invoice for the selected reservation - - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_invoice_information_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInvoiceInformationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_reservation_invoice_information_get_without_preload_content( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getReservationInvoiceInformation - - Returns information that can be used to create an invoice for the selected reservation - - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_invoice_information_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationInvoiceInformationResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_reservation_invoice_information_get_serialize( - self, - reservation_id, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: + if check_out_from is not None: + if isinstance(check_out_from, date): + _query_params.append( + ( + 'checkOutFrom', + check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutFrom', check_out_from)) - _query_params.append(('propertyID', property_id)) + if check_out_to is not None: + if isinstance(check_out_to, date): + _query_params.append( + ( + 'checkOutTo', + check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('checkOutTo', check_out_to)) - if reservation_id is not None: + if dates_query_mode is not None: - _query_params.append(('reservationID', reservation_id)) + _query_params.append(('datesQueryMode', dates_query_mode)) - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getReservationInvoiceInformation', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_reservation_notes_get( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationNotesResponse: - """getReservationNotes - - Retrieves reservation notes based on parameters - - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_notes_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationNotesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_reservation_notes_get_with_http_info( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationNotesResponse]: - """getReservationNotes - - Retrieves reservation notes based on parameters - - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_notes_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationNotesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_reservation_notes_get_without_preload_content( - self, - reservation_id: Annotated[StrictStr, Field(description="Reservation Unique Identifier")], - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getReservationNotes - - Retrieves reservation notes based on parameters - - :param reservation_id: Reservation Unique Identifier (required) - :type reservation_id: str - :param property_id: Property ID - :type property_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservation_notes_get_serialize( - reservation_id=reservation_id, - property_id=property_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationNotesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_reservation_notes_get_serialize( - self, - reservation_id, - property_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getReservationNotes', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_reservations_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, - check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, - check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, - check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, - check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, - dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, - room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, - source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, - rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, - first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, - last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationsResponse: - """getReservations - - Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param status: Filter by current reservation status - :type status: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date - :type results_to: datetime - :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date - :type modified_to: datetime - :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date - :type check_in_from: date - :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date - :type check_in_to: date - :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date - :type check_out_from: date - :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date - :type check_out_to: date - :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. - :type dates_query_mode: str - :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. - :type room_id: str - :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. - :type room_name: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. - :type include_guest_requirements: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. - :type include_all_rooms: bool - :param source_id: Filters reservation with the supplied source ID. - :type source_id: str - :param source_reservation_id: Filters reservation with the supplied reservation source ID. - :type source_reservation_id: str - :param rate_plan_id: Filters reservation with the supplied rate plan ID. - :type rate_plan_id: str - :param first_name: Filters reservation with the supplied primary guest first name. - :type first_name: str - :param last_name: Filters reservation with the supplied primary guest last name. - :type last_name: str - :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). - :type guest_id: str - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservations_get_serialize( - property_id=property_id, - status=status, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - check_in_from=check_in_from, - check_in_to=check_in_to, - check_out_from=check_out_from, - check_out_to=check_out_to, - dates_query_mode=dates_query_mode, - room_id=room_id, - room_name=room_name, - include_guests_details=include_guests_details, - include_guest_requirements=include_guest_requirements, - include_custom_fields=include_custom_fields, - include_all_rooms=include_all_rooms, - source_id=source_id, - source_reservation_id=source_reservation_id, - rate_plan_id=rate_plan_id, - first_name=first_name, - last_name=last_name, - guest_id=guest_id, - sort_by_recent=sort_by_recent, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_reservations_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, - check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, - check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, - check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, - check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, - dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, - room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, - source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, - rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, - first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, - last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationsResponse]: - """getReservations - - Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param status: Filter by current reservation status - :type status: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date - :type results_to: datetime - :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date - :type modified_to: datetime - :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date - :type check_in_from: date - :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date - :type check_in_to: date - :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date - :type check_out_from: date - :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date - :type check_out_to: date - :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. - :type dates_query_mode: str - :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. - :type room_id: str - :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. - :type room_name: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. - :type include_guest_requirements: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. - :type include_all_rooms: bool - :param source_id: Filters reservation with the supplied source ID. - :type source_id: str - :param source_reservation_id: Filters reservation with the supplied reservation source ID. - :type source_reservation_id: str - :param rate_plan_id: Filters reservation with the supplied rate plan ID. - :type rate_plan_id: str - :param first_name: Filters reservation with the supplied primary guest first name. - :type first_name: str - :param last_name: Filters reservation with the supplied primary guest last name. - :type last_name: str - :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). - :type guest_id: str - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservations_get_serialize( - property_id=property_id, - status=status, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - check_in_from=check_in_from, - check_in_to=check_in_to, - check_out_from=check_out_from, - check_out_to=check_out_to, - dates_query_mode=dates_query_mode, - room_id=room_id, - room_name=room_name, - include_guests_details=include_guests_details, - include_guest_requirements=include_guest_requirements, - include_custom_fields=include_custom_fields, - include_all_rooms=include_all_rooms, - source_id=source_id, - source_reservation_id=source_reservation_id, - rate_plan_id=rate_plan_id, - first_name=first_name, - last_name=last_name, - guest_id=guest_id, - sort_by_recent=sort_by_recent, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_reservations_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Filter by current reservation status")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking modification date")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking modification date")] = None, - check_in_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range starting on this date")] = None, - check_in_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-in date range ending on this date")] = None, - check_out_from: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range starting on this date")] = None, - check_out_to: Annotated[Optional[date], Field(description="Filters reservations result to return only reservations with check-out date range ending on this date")] = None, - dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, - room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, - room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - include_all_rooms: Annotated[Optional[StrictBool], Field(description="When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms.")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied source ID.")] = None, - source_reservation_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied reservation source ID.")] = None, - rate_plan_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied rate plan ID.")] = None, - first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, - last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, - guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getReservations - - Returns a list of reservations that matched the filters criteria.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - - :param property_id: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. - :type property_id: str - :param status: Filter by current reservation status - :type status: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date - :type results_to: datetime - :param modified_from: Inferior limit datetime, used to filter reservations, based on booking modification date - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on booking modification date - :type modified_to: datetime - :param check_in_from: Filters reservations result to return only reservations with check-in date range starting on this date - :type check_in_from: date - :param check_in_to: Filters reservations result to return only reservations with check-in date range ending on this date - :type check_in_to: date - :param check_out_from: Filters reservations result to return only reservations with check-out date range starting on this date - :type check_out_from: date - :param check_out_to: Filters reservations result to return only reservations with check-out date range ending on this date - :type check_out_to: date - :param dates_query_mode: If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. - :type dates_query_mode: str - :param room_id: Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. - :type room_id: str - :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. - :type room_name: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. - :type include_guest_requirements: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param include_all_rooms: When specified, the response will include an additional rooms field that combines both unassigned and assigned rooms. - :type include_all_rooms: bool - :param source_id: Filters reservation with the supplied source ID. - :type source_id: str - :param source_reservation_id: Filters reservation with the supplied reservation source ID. - :type source_reservation_id: str - :param rate_plan_id: Filters reservation with the supplied rate plan ID. - :type rate_plan_id: str - :param first_name: Filters reservation with the supplied primary guest first name. - :type first_name: str - :param last_name: Filters reservation with the supplied primary guest last name. - :type last_name: str - :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). - :type guest_id: str - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservations_get_serialize( - property_id=property_id, - status=status, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - check_in_from=check_in_from, - check_in_to=check_in_to, - check_out_from=check_out_from, - check_out_to=check_out_to, - dates_query_mode=dates_query_mode, - room_id=room_id, - room_name=room_name, - include_guests_details=include_guests_details, - include_guest_requirements=include_guest_requirements, - include_custom_fields=include_custom_fields, - include_all_rooms=include_all_rooms, - source_id=source_id, - source_reservation_id=source_reservation_id, - rate_plan_id=rate_plan_id, - first_name=first_name, - last_name=last_name, - guest_id=guest_id, - sort_by_recent=sort_by_recent, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_reservations_get_serialize( - self, - property_id, - status, - results_from, - results_to, - modified_from, - modified_to, - check_in_from, - check_in_to, - check_out_from, - check_out_to, - dates_query_mode, - room_id, - room_name, - include_guests_details, - include_guest_requirements, - include_custom_fields, - include_all_rooms, - source_id, - source_reservation_id, - rate_plan_id, - first_name, - last_name, - guest_id, - sort_by_recent, - page_number, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if status is not None: - - _query_params.append(('status', status)) - - if results_from is not None: - if isinstance(results_from, datetime): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, datetime): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - if modified_from is not None: - if isinstance(modified_from, datetime): - _query_params.append( - ( - 'modifiedFrom', - modified_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedFrom', modified_from)) - - if modified_to is not None: - if isinstance(modified_to, datetime): - _query_params.append( - ( - 'modifiedTo', - modified_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedTo', modified_to)) - - if check_in_from is not None: - if isinstance(check_in_from, date): - _query_params.append( - ( - 'checkInFrom', - check_in_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkInFrom', check_in_from)) - - if check_in_to is not None: - if isinstance(check_in_to, date): - _query_params.append( - ( - 'checkInTo', - check_in_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkInTo', check_in_to)) - - if check_out_from is not None: - if isinstance(check_out_from, date): - _query_params.append( - ( - 'checkOutFrom', - check_out_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkOutFrom', check_out_from)) - - if check_out_to is not None: - if isinstance(check_out_to, date): - _query_params.append( - ( - 'checkOutTo', - check_out_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('checkOutTo', check_out_to)) - - if dates_query_mode is not None: - - _query_params.append(('datesQueryMode', dates_query_mode)) - - if room_id is not None: - - _query_params.append(('roomID', room_id)) - - if room_name is not None: - - _query_params.append(('roomName', room_name)) - - if include_guests_details is not None: - - _query_params.append(('includeGuestsDetails', include_guests_details)) - - if include_guest_requirements is not None: - - _query_params.append(('includeGuestRequirements', include_guest_requirements)) - - if include_custom_fields is not None: - - _query_params.append(('includeCustomFields', include_custom_fields)) - - if include_all_rooms is not None: - - _query_params.append(('includeAllRooms', include_all_rooms)) - - if source_id is not None: - - _query_params.append(('sourceId', source_id)) - - if source_reservation_id is not None: - - _query_params.append(('sourceReservationId', source_reservation_id)) - - if rate_plan_id is not None: - - _query_params.append(('ratePlanId', rate_plan_id)) - - if first_name is not None: - - _query_params.append(('firstName', first_name)) - - if last_name is not None: - - _query_params.append(('lastName', last_name)) - - if guest_id is not None: - - _query_params.append(('guestID', guest_id)) - - if sort_by_recent is not None: - - _query_params.append(('sortByRecent', sort_by_recent)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getReservations', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_reservations_with_rate_details_get( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, - reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, - exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetReservationsWithRateDetailsResponse: - """getReservationsWithRateDetails - - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. - - :param property_id: Property ID - :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date - :type results_to: datetime - :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_to: datetime - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. - :type reservation_id: str - :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_from: date - :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_to: date - :param include_deleted: Include deleted reservations - :type include_deleted: bool - :param exclude_statuses: List of statuses (separated by comma) to be excluded from search - :type exclude_statuses: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. - :type include_guest_requirements: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservations_with_rate_details_get_serialize( - property_id=property_id, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - sort_by_recent=sort_by_recent, - reservation_id=reservation_id, - reservation_check_out_from=reservation_check_out_from, - reservation_check_out_to=reservation_check_out_to, - include_deleted=include_deleted, - exclude_statuses=exclude_statuses, - include_guests_details=include_guests_details, - include_guest_requirements=include_guest_requirements, - include_custom_fields=include_custom_fields, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsWithRateDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_reservations_with_rate_details_get_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, - reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, - exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetReservationsWithRateDetailsResponse]: - """getReservationsWithRateDetails - - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. - - :param property_id: Property ID - :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date - :type results_to: datetime - :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_to: datetime - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. - :type reservation_id: str - :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_from: date - :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_to: date - :param include_deleted: Include deleted reservations - :type include_deleted: bool - :param exclude_statuses: List of statuses (separated by comma) to be excluded from search - :type exclude_statuses: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. - :type include_guest_requirements: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservations_with_rate_details_get_serialize( - property_id=property_id, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - sort_by_recent=sort_by_recent, - reservation_id=reservation_id, - reservation_check_out_from=reservation_check_out_from, - reservation_check_out_to=reservation_check_out_to, - include_deleted=include_deleted, - exclude_statuses=exclude_statuses, - include_guests_details=include_guests_details, - include_guest_requirements=include_guest_requirements, - include_custom_fields=include_custom_fields, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsWithRateDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_reservations_with_rate_details_get_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, - results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, - modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, - sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, - reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, - include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, - exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, - include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, - include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, - include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getReservationsWithRateDetails - - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. - - :param property_id: Property ID - :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago - :type results_from: datetime - :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date - :type results_to: datetime - :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_from: datetime - :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. - :type modified_to: datetime - :param sort_by_recent: Sort response results by most recent action - :type sort_by_recent: bool - :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. - :type reservation_id: str - :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_from: date - :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. - :type reservation_check_out_to: date - :param include_deleted: Include deleted reservations - :type include_deleted: bool - :param exclude_statuses: List of statuses (separated by comma) to be excluded from search - :type exclude_statuses: str - :param include_guests_details: If guests details should be included or not - :type include_guests_details: bool - :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. - :type include_guest_requirements: bool - :param include_custom_fields: If reservation custom fields should be included or not - :type include_custom_fields: bool - :param page_number: Results page number - :type page_number: int - :param page_size: Results page size. Max = 100 - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_reservations_with_rate_details_get_serialize( - property_id=property_id, - results_from=results_from, - results_to=results_to, - modified_from=modified_from, - modified_to=modified_to, - sort_by_recent=sort_by_recent, - reservation_id=reservation_id, - reservation_check_out_from=reservation_check_out_from, - reservation_check_out_to=reservation_check_out_to, - include_deleted=include_deleted, - exclude_statuses=exclude_statuses, - include_guests_details=include_guests_details, - include_guest_requirements=include_guest_requirements, - include_custom_fields=include_custom_fields, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetReservationsWithRateDetailsResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_reservations_with_rate_details_get_serialize( - self, - property_id, - results_from, - results_to, - modified_from, - modified_to, - sort_by_recent, - reservation_id, - reservation_check_out_from, - reservation_check_out_to, - include_deleted, - exclude_statuses, - include_guests_details, - include_guest_requirements, - include_custom_fields, - page_number, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_id is not None: - - _query_params.append(('propertyID', property_id)) - - if results_from is not None: - if isinstance(results_from, datetime): - _query_params.append( - ( - 'resultsFrom', - results_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsFrom', results_from)) - - if results_to is not None: - if isinstance(results_to, datetime): - _query_params.append( - ( - 'resultsTo', - results_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('resultsTo', results_to)) - - if modified_from is not None: - if isinstance(modified_from, datetime): - _query_params.append( - ( - 'modifiedFrom', - modified_from.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedFrom', modified_from)) - - if modified_to is not None: - if isinstance(modified_to, datetime): - _query_params.append( - ( - 'modifiedTo', - modified_to.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('modifiedTo', modified_to)) - - if sort_by_recent is not None: - - _query_params.append(('sortByRecent', sort_by_recent)) - - if reservation_id is not None: - - _query_params.append(('reservationID', reservation_id)) - - if reservation_check_out_from is not None: - if isinstance(reservation_check_out_from, date): - _query_params.append( - ( - 'reservationCheckOutFrom', - reservation_check_out_from.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('reservationCheckOutFrom', reservation_check_out_from)) - - if reservation_check_out_to is not None: - if isinstance(reservation_check_out_to, date): - _query_params.append( - ( - 'reservationCheckOutTo', - reservation_check_out_to.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('reservationCheckOutTo', reservation_check_out_to)) - - if include_deleted is not None: - - _query_params.append(('includeDeleted', include_deleted)) - - if exclude_statuses is not None: - - _query_params.append(('excludeStatuses', exclude_statuses)) - - if include_guests_details is not None: - - _query_params.append(('includeGuestsDetails', include_guests_details)) - - if include_guest_requirements is not None: - - _query_params.append(('includeGuestRequirements', include_guest_requirements)) - - if include_custom_fields is not None: - - _query_params.append(('includeCustomFields', include_custom_fields)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getReservationsWithRateDetails', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_sources_get( - self, - property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetSourcesResponse: - """getSources - - Gets available property sources - - :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
- :type property_ids: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sources_get_serialize( - property_ids=property_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourcesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_sources_get_with_http_info( - self, - property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetSourcesResponse]: - """getSources - - Gets available property sources - - :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
- :type property_ids: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sources_get_serialize( - property_ids=property_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourcesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_sources_get_without_preload_content( - self, - property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getSources - - Gets available property sources - - :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
- :type property_ids: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_sources_get_serialize( - property_ids=property_ids, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourcesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_sources_get_serialize( - self, - property_ids, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_ids is not None: - - _query_params.append(('propertyIDs', property_ids)) + if room_id is not None: + + _query_params.append(('roomID', room_id)) + + if room_name is not None: + + _query_params.append(('roomName', room_name)) + + if include_guests_details is not None: + + _query_params.append(('includeGuestsDetails', include_guests_details)) + + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + + if include_custom_fields is not None: + + _query_params.append(('includeCustomFields', include_custom_fields)) + + if include_all_rooms is not None: + + _query_params.append(('includeAllRooms', include_all_rooms)) + + if source_id is not None: + + _query_params.append(('sourceId', source_id)) + + if source_reservation_id is not None: + + _query_params.append(('sourceReservationId', source_reservation_id)) + + if rate_plan_id is not None: + + _query_params.append(('ratePlanId', rate_plan_id)) + + if first_name is not None: + + _query_params.append(('firstName', first_name)) + + if last_name is not None: + + _query_params.append(('lastName', last_name)) + + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + + if sort_by_recent is not None: + + _query_params.append(('sortByRecent', sort_by_recent)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) # process the header parameters # process the form parameters @@ -3973,283 +1968,8 @@ def _get_sources_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/getSources', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_reservation_check_in_post( - self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationCheckInResponse: - """postReservationCheckIn - - Confirm a guest checkin to a reservation - - :param reservation_id: Reservation Unique Identifier. - :type reservation_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_reservation_check_in_post_serialize( - reservation_id=reservation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationCheckInResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_reservation_check_in_post_with_http_info( - self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationCheckInResponse]: - """postReservationCheckIn - - Confirm a guest checkin to a reservation - - :param reservation_id: Reservation Unique Identifier. - :type reservation_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_reservation_check_in_post_serialize( - reservation_id=reservation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationCheckInResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_reservation_check_in_post_without_preload_content( - self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postReservationCheckIn - - Confirm a guest checkin to a reservation - - :param reservation_id: Reservation Unique Identifier. - :type reservation_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_reservation_check_in_post_serialize( - reservation_id=reservation_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationCheckInResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_reservation_check_in_post_serialize( - self, - reservation_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postReservationCheckIn', + method='GET', + resource_path='/getReservations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4266,9 +1986,24 @@ def _post_reservation_check_in_post_serialize( @validate_call - def post_reservation_check_out_post( + def get_reservations_with_rate_details_get( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4281,13 +2016,43 @@ def post_reservation_check_out_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationCheckOutResponse: - """postReservationCheckOut + ) -> GetReservationsWithRateDetailsResponse: + """getReservationsWithRateDetails - CheckOut guest from a reservation + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. - :param reservation_id: Reservation Unique Identifier. + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4310,8 +2075,23 @@ def post_reservation_check_out_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_check_out_post_serialize( + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, + page_number=page_number, + page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4319,7 +2099,7 @@ def post_reservation_check_out_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationCheckOutResponse", + '200': "GetReservationsWithRateDetailsResponse", } response_data = self.api_client.call_api( *_param, @@ -4333,9 +2113,24 @@ def post_reservation_check_out_post( @validate_call - def post_reservation_check_out_post_with_http_info( + def get_reservations_with_rate_details_get_with_http_info( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4348,13 +2143,43 @@ def post_reservation_check_out_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationCheckOutResponse]: - """postReservationCheckOut + ) -> ApiResponse[GetReservationsWithRateDetailsResponse]: + """getReservationsWithRateDetails - CheckOut guest from a reservation + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. - :param reservation_id: Reservation Unique Identifier. + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4377,8 +2202,23 @@ def post_reservation_check_out_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_check_out_post_serialize( + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, + page_number=page_number, + page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4386,7 +2226,7 @@ def post_reservation_check_out_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationCheckOutResponse", + '200': "GetReservationsWithRateDetailsResponse", } response_data = self.api_client.call_api( *_param, @@ -4400,9 +2240,24 @@ def post_reservation_check_out_post_with_http_info( @validate_call - def post_reservation_check_out_post_without_preload_content( + def get_reservations_with_rate_details_get_without_preload_content( self, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier.")] = None, + property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, + modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, + sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations.")] = None, + reservation_check_out_from: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + reservation_check_out_to: Annotated[Optional[date], Field(description="Superior limit datetime, used to filter reservations, based on reservation check-out date.")] = None, + include_deleted: Annotated[Optional[StrictBool], Field(description="Include deleted reservations")] = None, + exclude_statuses: Annotated[Optional[StrictStr], Field(description="List of statuses (separated by comma) to be excluded from search")] = None, + include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, + include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, + include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4416,12 +2271,42 @@ def post_reservation_check_out_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postReservationCheckOut + """getReservationsWithRateDetails - CheckOut guest from a reservation + Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. - :param reservation_id: Reservation Unique Identifier. + :param property_id: Property ID + :type property_id: str + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :type results_from: datetime + :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date + :type results_to: datetime + :param modified_from: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_from: datetime + :param modified_to: Superior limit datetime, used to filter reservations, based on modification date. + :type modified_to: datetime + :param sort_by_recent: Sort response results by most recent action + :type sort_by_recent: bool + :param reservation_id: Reservation identifiers, comma-separated, i.e. 37,345,89, used to return transactions limited to the selected reservations. :type reservation_id: str + :param reservation_check_out_from: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_from: date + :param reservation_check_out_to: Superior limit datetime, used to filter reservations, based on reservation check-out date. + :type reservation_check_out_to: date + :param include_deleted: Include deleted reservations + :type include_deleted: bool + :param exclude_statuses: List of statuses (separated by comma) to be excluded from search + :type exclude_statuses: str + :param include_guests_details: If guests details should be included or not + :type include_guests_details: bool + :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. + :type include_guest_requirements: bool + :param include_custom_fields: If reservation custom fields should be included or not + :type include_custom_fields: bool + :param page_number: Results page number + :type page_number: int + :param page_size: Results page size. Max = 100 + :type page_size: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4444,8 +2329,23 @@ def post_reservation_check_out_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_check_out_post_serialize( + _param = self._get_reservations_with_rate_details_get_serialize( + property_id=property_id, + results_from=results_from, + results_to=results_to, + modified_from=modified_from, + modified_to=modified_to, + sort_by_recent=sort_by_recent, reservation_id=reservation_id, + reservation_check_out_from=reservation_check_out_from, + reservation_check_out_to=reservation_check_out_to, + include_deleted=include_deleted, + exclude_statuses=exclude_statuses, + include_guests_details=include_guests_details, + include_guest_requirements=include_guest_requirements, + include_custom_fields=include_custom_fields, + page_number=page_number, + page_size=page_size, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4453,7 +2353,7 @@ def post_reservation_check_out_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationCheckOutResponse", + '200': "GetReservationsWithRateDetailsResponse", } response_data = self.api_client.call_api( *_param, @@ -4462,9 +2362,24 @@ def post_reservation_check_out_post_without_preload_content( return response_data.response - def _post_reservation_check_out_post_serialize( + def _get_reservations_with_rate_details_get_serialize( self, + property_id, + results_from, + results_to, + modified_from, + modified_to, + sort_by_recent, reservation_id, + reservation_check_out_from, + reservation_check_out_to, + include_deleted, + exclude_statuses, + include_guests_details, + include_guest_requirements, + include_custom_fields, + page_number, + page_size, _request_auth, _content_type, _headers, @@ -4487,10 +2402,126 @@ def _post_reservation_check_out_post_serialize( # process the path parameters # process the query parameters + if property_id is not None: + + _query_params.append(('propertyID', property_id)) + + if results_from is not None: + if isinstance(results_from, datetime): + _query_params.append( + ( + 'resultsFrom', + results_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsFrom', results_from)) + + if results_to is not None: + if isinstance(results_to, datetime): + _query_params.append( + ( + 'resultsTo', + results_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('resultsTo', results_to)) + + if modified_from is not None: + if isinstance(modified_from, datetime): + _query_params.append( + ( + 'modifiedFrom', + modified_from.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedFrom', modified_from)) + + if modified_to is not None: + if isinstance(modified_to, datetime): + _query_params.append( + ( + 'modifiedTo', + modified_to.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('modifiedTo', modified_to)) + + if sort_by_recent is not None: + + _query_params.append(('sortByRecent', sort_by_recent)) + + if reservation_id is not None: + + _query_params.append(('reservationID', reservation_id)) + + if reservation_check_out_from is not None: + if isinstance(reservation_check_out_from, date): + _query_params.append( + ( + 'reservationCheckOutFrom', + reservation_check_out_from.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('reservationCheckOutFrom', reservation_check_out_from)) + + if reservation_check_out_to is not None: + if isinstance(reservation_check_out_to, date): + _query_params.append( + ( + 'reservationCheckOutTo', + reservation_check_out_to.strftime( + self.api_client.configuration.date_format + ) + ) + ) + else: + _query_params.append(('reservationCheckOutTo', reservation_check_out_to)) + + if include_deleted is not None: + + _query_params.append(('includeDeleted', include_deleted)) + + if exclude_statuses is not None: + + _query_params.append(('excludeStatuses', exclude_statuses)) + + if include_guests_details is not None: + + _query_params.append(('includeGuestsDetails', include_guests_details)) + + if include_guest_requirements is not None: + + _query_params.append(('includeGuestRequirements', include_guest_requirements)) + + if include_custom_fields is not None: + + _query_params.append(('includeCustomFields', include_custom_fields)) + + if page_number is not None: + + _query_params.append(('pageNumber', page_number)) + + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + # process the header parameters # process the form parameters - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) # process the body parameter @@ -4502,19 +2533,6 @@ def _post_reservation_check_out_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4523,8 +2541,8 @@ def _post_reservation_check_out_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/postReservationCheckOut', + method='GET', + resource_path='/getReservationsWithRateDetails', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4541,11 +2559,9 @@ def _post_reservation_check_out_post_serialize( @validate_call - def post_reservation_document_post( + def get_sources_get( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4558,17 +2574,13 @@ def post_reservation_document_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationDocumentResponse: - """postReservationDocument + ) -> GetSourcesResponse: + """getSources - Attaches a document to a reservation + Gets available property sources - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB - :type file: bytearray + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4591,10 +2603,8 @@ def post_reservation_document_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_document_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - file=file, + _param = self._get_sources_get_serialize( + property_ids=property_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4602,7 +2612,7 @@ def post_reservation_document_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationDocumentResponse", + '200': "GetSourcesResponse", } response_data = self.api_client.call_api( *_param, @@ -4616,11 +2626,9 @@ def post_reservation_document_post( @validate_call - def post_reservation_document_post_with_http_info( + def get_sources_get_with_http_info( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4633,17 +2641,13 @@ def post_reservation_document_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationDocumentResponse]: - """postReservationDocument + ) -> ApiResponse[GetSourcesResponse]: + """getSources - Attaches a document to a reservation + Gets available property sources - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB - :type file: bytearray + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4666,10 +2670,8 @@ def post_reservation_document_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_document_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - file=file, + _param = self._get_sources_get_serialize( + property_ids=property_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4677,7 +2679,7 @@ def post_reservation_document_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationDocumentResponse", + '200': "GetSourcesResponse", } response_data = self.api_client.call_api( *_param, @@ -4691,11 +2693,9 @@ def post_reservation_document_post_with_http_info( @validate_call - def post_reservation_document_post_without_preload_content( + def get_sources_get_without_preload_content( self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + property_ids: Annotated[Optional[StrictStr], Field(description="ID for the properties to be queried (comma-separated, i.e. 37,345,89).
")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4709,16 +2709,12 @@ def post_reservation_document_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postReservationDocument + """getSources - Attaches a document to a reservation + Gets available property sources - :param property_id: Property ID - :type property_id: str - :param reservation_id: Reservation Unique Identifier - :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB - :type file: bytearray + :param property_ids: ID for the properties to be queried (comma-separated, i.e. 37,345,89).
+ :type property_ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4738,13 +2734,11 @@ def post_reservation_document_post_without_preload_content( request; this effectively ignores the host_index in the spec for a single request. :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_reservation_document_post_serialize( - property_id=property_id, - reservation_id=reservation_id, - file=file, + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_sources_get_serialize( + property_ids=property_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4752,7 +2746,7 @@ def post_reservation_document_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationDocumentResponse", + '200': "GetSourcesResponse", } response_data = self.api_client.call_api( *_param, @@ -4761,11 +2755,9 @@ def post_reservation_document_post_without_preload_content( return response_data.response - def _post_reservation_document_post_serialize( + def _get_sources_get_serialize( self, - property_id, - reservation_id, - file, + property_ids, _request_auth, _content_type, _headers, @@ -4788,14 +2780,12 @@ def _post_reservation_document_post_serialize( # process the path parameters # process the query parameters + if property_ids is not None: + + _query_params.append(('propertyIDs', property_ids)) + # process the header parameters # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) - if file is not None: - _files['file'] = file # process the body parameter @@ -4807,19 +2797,6 @@ def _post_reservation_document_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4828,8 +2805,8 @@ def _post_reservation_document_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/postReservationDocument', + method='GET', + resource_path='/getSources', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4846,13 +2823,11 @@ def _post_reservation_document_post_serialize( @validate_call - def post_reservation_note_post( + def post_reservation_document_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, - date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4865,21 +2840,17 @@ def post_reservation_note_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationNoteResponse: - """postReservationNote + ) -> PostReservationDocumentResponse: + """postReservationDocument - Adds a reservation note + Attaches a document to a reservation :param property_id: Property ID :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param reservation_note: Note to be added to reservation - :type reservation_note: str - :param user_id: User ID Identify the actual user that is posting the note - :type user_id: str - :param date_created: Datetime the note was created. - :type date_created: datetime + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4902,12 +2873,10 @@ def post_reservation_note_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_note_post_serialize( + _param = self._post_reservation_document_post_serialize( property_id=property_id, reservation_id=reservation_id, - reservation_note=reservation_note, - user_id=user_id, - date_created=date_created, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4915,7 +2884,7 @@ def post_reservation_note_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationNoteResponse", + '200': "PostReservationDocumentResponse", } response_data = self.api_client.call_api( *_param, @@ -4929,13 +2898,11 @@ def post_reservation_note_post( @validate_call - def post_reservation_note_post_with_http_info( + def post_reservation_document_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, - date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4948,21 +2915,17 @@ def post_reservation_note_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationNoteResponse]: - """postReservationNote + ) -> ApiResponse[PostReservationDocumentResponse]: + """postReservationDocument - Adds a reservation note + Attaches a document to a reservation :param property_id: Property ID :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param reservation_note: Note to be added to reservation - :type reservation_note: str - :param user_id: User ID Identify the actual user that is posting the note - :type user_id: str - :param date_created: Datetime the note was created. - :type date_created: datetime + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4985,12 +2948,10 @@ def post_reservation_note_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_note_post_serialize( + _param = self._post_reservation_document_post_serialize( property_id=property_id, reservation_id=reservation_id, - reservation_note=reservation_note, - user_id=user_id, - date_created=date_created, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4998,7 +2959,7 @@ def post_reservation_note_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationNoteResponse", + '200': "PostReservationDocumentResponse", } response_data = self.api_client.call_api( *_param, @@ -5012,13 +2973,11 @@ def post_reservation_note_post_with_http_info( @validate_call - def post_reservation_note_post_without_preload_content( + def post_reservation_document_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, - date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5032,20 +2991,16 @@ def post_reservation_note_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postReservationNote + """postReservationDocument - Adds a reservation note + Attaches a document to a reservation :param property_id: Property ID :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param reservation_note: Note to be added to reservation - :type reservation_note: str - :param user_id: User ID Identify the actual user that is posting the note - :type user_id: str - :param date_created: Datetime the note was created. - :type date_created: datetime + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5068,12 +3023,10 @@ def post_reservation_note_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_note_post_serialize( + _param = self._post_reservation_document_post_serialize( property_id=property_id, reservation_id=reservation_id, - reservation_note=reservation_note, - user_id=user_id, - date_created=date_created, + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5081,7 +3034,7 @@ def post_reservation_note_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationNoteResponse", + '200': "PostReservationDocumentResponse", } response_data = self.api_client.call_api( *_param, @@ -5090,13 +3043,11 @@ def post_reservation_note_post_without_preload_content( return response_data.response - def _post_reservation_note_post_serialize( + def _post_reservation_document_post_serialize( self, property_id, reservation_id, - reservation_note, - user_id, - date_created, + file, _request_auth, _content_type, _headers, @@ -5125,12 +3076,8 @@ def _post_reservation_note_post_serialize( _form_params.append(('propertyID', property_id)) if reservation_id is not None: _form_params.append(('reservationID', reservation_id)) - if reservation_note is not None: - _form_params.append(('reservationNote', reservation_note)) - if user_id is not None: - _form_params.append(('userID', user_id)) - if date_created is not None: - _form_params.append(('dateCreated', date_created)) + if file is not None: + _files['file'] = file # process the body parameter @@ -5164,7 +3111,7 @@ def _post_reservation_note_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/postReservationNote', + resource_path='/postReservationDocument', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5181,34 +3128,13 @@ def _post_reservation_note_post_serialize( @validate_call - def post_reservation_post( + def post_reservation_note_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, - third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, - start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, - guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, - guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, - guest_gender: Optional[StrictStr] = None, - guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, - guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, - guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, - guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, - guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, - estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, - adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, - children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, - payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, - payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, - custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, - promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, - allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, - date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, - send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5221,63 +3147,21 @@ def post_reservation_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostReservationResponse: - """postReservation + ) -> PostReservationNoteResponse: + """postReservationNote - Adds a reservation to the selected property + Adds a reservation note :param property_id: Property ID :type property_id: str - :param source_id: The third-party source ID for this reservation. - :type source_id: str - :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. - :type third_party_identifier: str - :param start_date: Check-In date. - :type start_date: date - :param end_date: Check-Out date. - :type end_date: date - :param guest_first_name: First name of the guest - :type guest_first_name: str - :param guest_last_name: Last name of the guest - :type guest_last_name: str - :param guest_gender: - :type guest_gender: str - :param guest_country: Valid ISO-Code for Country (2 characters) - :type guest_country: str - :param guest_zip: ZIP Code - :type guest_zip: str - :param guest_email: Guest email - :type guest_email: str - :param guest_phone: Guest main phone number - :type guest_phone: str - :param guest_requirements: Object with guest requirements information. - :type guest_requirements: List[object] - :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. - :type estimated_arrival_time: str - :param rooms: Array with quantity of rooms - :type rooms: List[PostReservationRequestRoomsInner] - :param adults: Array with number of adults - :type adults: List[PostReservationRequestAdultsInner] - :param children: Array with number of children - :type children: List[PostReservationRequestChildrenInner] - :param payment_method: Payment Method of choice. - :type payment_method: str - :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. - :type card_token: str - :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. - :type payment_authorization_code: str - :param custom_fields: Array with custom fields information - :type custom_fields: List[PostReservationRequestCustomFieldsInner] - :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". - :type promo_code: str - :param allotment_block_code: Allotment block code to add reservation to allotment block. - :type allotment_block_code: str - :param group_code: Code from the Aggregate Allotment block the reservation will be added to. - :type group_code: str - :param date_created: Date reservation was made. Defaults to current date if omitted. + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param date_created: Datetime the note was created. :type date_created: datetime - :param send_email_confirmation: Send confirmation email to guest. - :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5300,33 +3184,12 @@ def post_reservation_post( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_post_serialize( - property_id=property_id, - source_id=source_id, - third_party_identifier=third_party_identifier, - start_date=start_date, - end_date=end_date, - guest_first_name=guest_first_name, - guest_last_name=guest_last_name, - guest_gender=guest_gender, - guest_country=guest_country, - guest_zip=guest_zip, - guest_email=guest_email, - guest_phone=guest_phone, - guest_requirements=guest_requirements, - estimated_arrival_time=estimated_arrival_time, - rooms=rooms, - adults=adults, - children=children, - payment_method=payment_method, - card_token=card_token, - payment_authorization_code=payment_authorization_code, - custom_fields=custom_fields, - promo_code=promo_code, - allotment_block_code=allotment_block_code, - group_code=group_code, + _param = self._post_reservation_note_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note=reservation_note, + user_id=user_id, date_created=date_created, - send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5334,7 +3197,7 @@ def post_reservation_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationResponse", + '200': "PostReservationNoteResponse", } response_data = self.api_client.call_api( *_param, @@ -5348,34 +3211,13 @@ def post_reservation_post( @validate_call - def post_reservation_post_with_http_info( + def post_reservation_note_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, - third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, - start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, - guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, - guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, - guest_gender: Optional[StrictStr] = None, - guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, - guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, - guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, - guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, - guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, - estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, - adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, - children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, - payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, - payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, - custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, - promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, - allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, - date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, - send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5388,63 +3230,21 @@ def post_reservation_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostReservationResponse]: - """postReservation + ) -> ApiResponse[PostReservationNoteResponse]: + """postReservationNote - Adds a reservation to the selected property + Adds a reservation note :param property_id: Property ID :type property_id: str - :param source_id: The third-party source ID for this reservation. - :type source_id: str - :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. - :type third_party_identifier: str - :param start_date: Check-In date. - :type start_date: date - :param end_date: Check-Out date. - :type end_date: date - :param guest_first_name: First name of the guest - :type guest_first_name: str - :param guest_last_name: Last name of the guest - :type guest_last_name: str - :param guest_gender: - :type guest_gender: str - :param guest_country: Valid ISO-Code for Country (2 characters) - :type guest_country: str - :param guest_zip: ZIP Code - :type guest_zip: str - :param guest_email: Guest email - :type guest_email: str - :param guest_phone: Guest main phone number - :type guest_phone: str - :param guest_requirements: Object with guest requirements information. - :type guest_requirements: List[object] - :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. - :type estimated_arrival_time: str - :param rooms: Array with quantity of rooms - :type rooms: List[PostReservationRequestRoomsInner] - :param adults: Array with number of adults - :type adults: List[PostReservationRequestAdultsInner] - :param children: Array with number of children - :type children: List[PostReservationRequestChildrenInner] - :param payment_method: Payment Method of choice. - :type payment_method: str - :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. - :type card_token: str - :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. - :type payment_authorization_code: str - :param custom_fields: Array with custom fields information - :type custom_fields: List[PostReservationRequestCustomFieldsInner] - :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". - :type promo_code: str - :param allotment_block_code: Allotment block code to add reservation to allotment block. - :type allotment_block_code: str - :param group_code: Code from the Aggregate Allotment block the reservation will be added to. - :type group_code: str - :param date_created: Date reservation was made. Defaults to current date if omitted. + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param date_created: Datetime the note was created. :type date_created: datetime - :param send_email_confirmation: Send confirmation email to guest. - :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5467,33 +3267,12 @@ def post_reservation_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._post_reservation_post_serialize( + _param = self._post_reservation_note_post_serialize( property_id=property_id, - source_id=source_id, - third_party_identifier=third_party_identifier, - start_date=start_date, - end_date=end_date, - guest_first_name=guest_first_name, - guest_last_name=guest_last_name, - guest_gender=guest_gender, - guest_country=guest_country, - guest_zip=guest_zip, - guest_email=guest_email, - guest_phone=guest_phone, - guest_requirements=guest_requirements, - estimated_arrival_time=estimated_arrival_time, - rooms=rooms, - adults=adults, - children=children, - payment_method=payment_method, - card_token=card_token, - payment_authorization_code=payment_authorization_code, - custom_fields=custom_fields, - promo_code=promo_code, - allotment_block_code=allotment_block_code, - group_code=group_code, + reservation_id=reservation_id, + reservation_note=reservation_note, + user_id=user_id, date_created=date_created, - send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5501,7 +3280,7 @@ def post_reservation_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationResponse", + '200': "PostReservationNoteResponse", } response_data = self.api_client.call_api( *_param, @@ -5515,34 +3294,13 @@ def post_reservation_post_with_http_info( @validate_call - def post_reservation_post_without_preload_content( + def post_reservation_note_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, - third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, - start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, - guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, - guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, - guest_gender: Optional[StrictStr] = None, - guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, - guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, - guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, - guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, - guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, - estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, - adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, - children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, - payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, - payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, - custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, - promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, - allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, - date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, - send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, + reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, + reservation_note: Annotated[Optional[StrictStr], Field(description="Note to be added to reservation")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="User ID Identify the actual user that is posting the note")] = None, + date_created: Annotated[Optional[datetime], Field(description="Datetime the note was created.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5556,62 +3314,20 @@ def post_reservation_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """postReservation + """postReservationNote - Adds a reservation to the selected property + Adds a reservation note :param property_id: Property ID :type property_id: str - :param source_id: The third-party source ID for this reservation. - :type source_id: str - :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. - :type third_party_identifier: str - :param start_date: Check-In date. - :type start_date: date - :param end_date: Check-Out date. - :type end_date: date - :param guest_first_name: First name of the guest - :type guest_first_name: str - :param guest_last_name: Last name of the guest - :type guest_last_name: str - :param guest_gender: - :type guest_gender: str - :param guest_country: Valid ISO-Code for Country (2 characters) - :type guest_country: str - :param guest_zip: ZIP Code - :type guest_zip: str - :param guest_email: Guest email - :type guest_email: str - :param guest_phone: Guest main phone number - :type guest_phone: str - :param guest_requirements: Object with guest requirements information. - :type guest_requirements: List[object] - :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. - :type estimated_arrival_time: str - :param rooms: Array with quantity of rooms - :type rooms: List[PostReservationRequestRoomsInner] - :param adults: Array with number of adults - :type adults: List[PostReservationRequestAdultsInner] - :param children: Array with number of children - :type children: List[PostReservationRequestChildrenInner] - :param payment_method: Payment Method of choice. - :type payment_method: str - :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. - :type card_token: str - :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. - :type payment_authorization_code: str - :param custom_fields: Array with custom fields information - :type custom_fields: List[PostReservationRequestCustomFieldsInner] - :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". - :type promo_code: str - :param allotment_block_code: Allotment block code to add reservation to allotment block. - :type allotment_block_code: str - :param group_code: Code from the Aggregate Allotment block the reservation will be added to. - :type group_code: str - :param date_created: Date reservation was made. Defaults to current date if omitted. + :param reservation_id: Reservation Unique Identifier + :type reservation_id: str + :param reservation_note: Note to be added to reservation + :type reservation_note: str + :param user_id: User ID Identify the actual user that is posting the note + :type user_id: str + :param date_created: Datetime the note was created. :type date_created: datetime - :param send_email_confirmation: Send confirmation email to guest. - :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5626,41 +3342,20 @@ def post_reservation_post_without_preload_content( :param _headers: set to override the headers for a single request; this effectively ignores the headers in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_reservation_post_serialize( - property_id=property_id, - source_id=source_id, - third_party_identifier=third_party_identifier, - start_date=start_date, - end_date=end_date, - guest_first_name=guest_first_name, - guest_last_name=guest_last_name, - guest_gender=guest_gender, - guest_country=guest_country, - guest_zip=guest_zip, - guest_email=guest_email, - guest_phone=guest_phone, - guest_requirements=guest_requirements, - estimated_arrival_time=estimated_arrival_time, - rooms=rooms, - adults=adults, - children=children, - payment_method=payment_method, - card_token=card_token, - payment_authorization_code=payment_authorization_code, - custom_fields=custom_fields, - promo_code=promo_code, - allotment_block_code=allotment_block_code, - group_code=group_code, + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_reservation_note_post_serialize( + property_id=property_id, + reservation_id=reservation_id, + reservation_note=reservation_note, + user_id=user_id, date_created=date_created, - send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5668,7 +3363,7 @@ def post_reservation_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PostReservationResponse", + '200': "PostReservationNoteResponse", } response_data = self.api_client.call_api( *_param, @@ -5677,34 +3372,13 @@ def post_reservation_post_without_preload_content( return response_data.response - def _post_reservation_post_serialize( + def _post_reservation_note_post_serialize( self, property_id, - source_id, - third_party_identifier, - start_date, - end_date, - guest_first_name, - guest_last_name, - guest_gender, - guest_country, - guest_zip, - guest_email, - guest_phone, - guest_requirements, - estimated_arrival_time, - rooms, - adults, - children, - payment_method, - card_token, - payment_authorization_code, - custom_fields, - promo_code, - allotment_block_code, - group_code, + reservation_id, + reservation_note, + user_id, date_created, - send_email_confirmation, _request_auth, _content_type, _headers, @@ -5714,11 +3388,6 @@ def _post_reservation_post_serialize( _host = None _collection_formats: Dict[str, str] = { - 'guestRequirements': 'csv', - 'rooms': 'csv', - 'adults': 'csv', - 'children': 'csv', - 'customFields': 'csv', } _path_params: Dict[str, str] = {} @@ -5736,56 +3405,14 @@ def _post_reservation_post_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if source_id is not None: - _form_params.append(('sourceID', source_id)) - if third_party_identifier is not None: - _form_params.append(('thirdPartyIdentifier', third_party_identifier)) - if start_date is not None: - _form_params.append(('startDate', start_date)) - if end_date is not None: - _form_params.append(('endDate', end_date)) - if guest_first_name is not None: - _form_params.append(('guestFirstName', guest_first_name)) - if guest_last_name is not None: - _form_params.append(('guestLastName', guest_last_name)) - if guest_gender is not None: - _form_params.append(('guestGender', guest_gender)) - if guest_country is not None: - _form_params.append(('guestCountry', guest_country)) - if guest_zip is not None: - _form_params.append(('guestZip', guest_zip)) - if guest_email is not None: - _form_params.append(('guestEmail', guest_email)) - if guest_phone is not None: - _form_params.append(('guestPhone', guest_phone)) - if guest_requirements is not None: - _form_params.append(('guestRequirements', guest_requirements)) - if estimated_arrival_time is not None: - _form_params.append(('estimatedArrivalTime', estimated_arrival_time)) - if rooms is not None: - _form_params.append(('rooms', rooms)) - if adults is not None: - _form_params.append(('adults', adults)) - if children is not None: - _form_params.append(('children', children)) - if payment_method is not None: - _form_params.append(('paymentMethod', payment_method)) - if card_token is not None: - _form_params.append(('cardToken', card_token)) - if payment_authorization_code is not None: - _form_params.append(('paymentAuthorizationCode', payment_authorization_code)) - if custom_fields is not None: - _form_params.append(('customFields', custom_fields)) - if promo_code is not None: - _form_params.append(('promoCode', promo_code)) - if allotment_block_code is not None: - _form_params.append(('allotmentBlockCode', allotment_block_code)) - if group_code is not None: - _form_params.append(('groupCode', group_code)) + if reservation_id is not None: + _form_params.append(('reservationID', reservation_id)) + if reservation_note is not None: + _form_params.append(('reservationNote', reservation_note)) + if user_id is not None: + _form_params.append(('userID', user_id)) if date_created is not None: _form_params.append(('dateCreated', date_created)) - if send_email_confirmation is not None: - _form_params.append(('sendEmailConfirmation', send_email_confirmation)) # process the body parameter @@ -5819,7 +3446,7 @@ def _post_reservation_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/postReservation', + resource_path='/postReservationNote', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5836,13 +3463,34 @@ def _post_reservation_post_serialize( @validate_call - def put_reservation_details_put( + def post_reservation_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, - custom_fields: Annotated[Optional[List[PutReservationDetailsRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5855,21 +3503,63 @@ def put_reservation_details_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PutReservationDetailsResponse: - """putReservationDetails + ) -> PostReservationResponse: + """postReservation - Updates a reservation details + Adds a reservation to the selected property :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation Unique Identifier, one reservation ID per call. - :type reservation_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str - :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date - :type status: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str :param custom_fields: Array with custom fields information - :type custom_fields: List[PutReservationDetailsRequestCustomFieldsInner] + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5892,12 +3582,33 @@ def put_reservation_details_put( :return: Returns the result object. """ # noqa: E501 - _param = self._put_reservation_details_put_serialize( + _param = self._post_reservation_post_serialize( property_id=property_id, - reservation_id=reservation_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, - status=status, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + group_code=group_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5905,7 +3616,7 @@ def put_reservation_details_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutReservationDetailsResponse", + '200': "PostReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -5919,13 +3630,34 @@ def put_reservation_details_put( @validate_call - def put_reservation_details_put_with_http_info( + def post_reservation_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, - custom_fields: Annotated[Optional[List[PutReservationDetailsRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5938,21 +3670,63 @@ def put_reservation_details_put_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PutReservationDetailsResponse]: - """putReservationDetails + ) -> ApiResponse[PostReservationResponse]: + """postReservation - Updates a reservation details + Adds a reservation to the selected property :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation Unique Identifier, one reservation ID per call. - :type reservation_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str - :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date - :type status: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str :param custom_fields: Array with custom fields information - :type custom_fields: List[PutReservationDetailsRequestCustomFieldsInner] + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5975,12 +3749,33 @@ def put_reservation_details_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_reservation_details_put_serialize( + _param = self._post_reservation_post_serialize( property_id=property_id, - reservation_id=reservation_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, - status=status, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + group_code=group_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5988,7 +3783,7 @@ def put_reservation_details_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutReservationDetailsResponse", + '200': "PostReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -6002,13 +3797,34 @@ def put_reservation_details_put_with_http_info( @validate_call - def put_reservation_details_put_without_preload_content( + def post_reservation_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier, one reservation ID per call.")] = None, + source_id: Annotated[Optional[StrictStr], Field(description="The third-party source ID for this reservation.")] = None, + third_party_identifier: Annotated[Optional[StrictStr], Field(description="If it was received from a booking channel, this can be an identifier from that channel.")] = None, + start_date: Annotated[Optional[date], Field(description="Check-In date.")] = None, + end_date: Annotated[Optional[date], Field(description="Check-Out date.")] = None, + guest_first_name: Annotated[Optional[StrictStr], Field(description="First name of the guest")] = None, + guest_last_name: Annotated[Optional[StrictStr], Field(description="Last name of the guest")] = None, + guest_gender: Optional[StrictStr] = None, + guest_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters)")] = None, + guest_zip: Annotated[Optional[StrictStr], Field(description="ZIP Code")] = None, + guest_email: Annotated[Optional[StrictStr], Field(description="Guest email")] = None, + guest_phone: Annotated[Optional[StrictStr], Field(description="Guest main phone number")] = None, + guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, estimated_arrival_time: Annotated[Optional[StrictStr], Field(description="Estimated Arrival Time, 24-hour format.")] = None, - status: Annotated[Optional[StrictStr], Field(description="Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date")] = None, - custom_fields: Annotated[Optional[List[PutReservationDetailsRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + rooms: Annotated[Optional[List[PostReservationRequestRoomsInner]], Field(description="Array with quantity of rooms")] = None, + adults: Annotated[Optional[List[PostReservationRequestAdultsInner]], Field(description="Array with number of adults")] = None, + children: Annotated[Optional[List[PostReservationRequestChildrenInner]], Field(description="Array with number of children")] = None, + payment_method: Annotated[Optional[StrictStr], Field(description="Payment Method of choice.")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID.")] = None, + payment_authorization_code: Annotated[Optional[StrictStr], Field(description="Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent.")] = None, + custom_fields: Annotated[Optional[List[PostReservationRequestCustomFieldsInner]], Field(description="Array with custom fields information")] = None, + promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\".")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code to add reservation to allotment block.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Code from the Aggregate Allotment block the reservation will be added to.")] = None, + date_created: Annotated[Optional[datetime], Field(description="Date reservation was made. Defaults to current date if omitted.")] = None, + send_email_confirmation: Annotated[Optional[StrictBool], Field(description="Send confirmation email to guest.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6022,20 +3838,62 @@ def put_reservation_details_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """putReservationDetails + """postReservation - Updates a reservation details + Adds a reservation to the selected property :param property_id: Property ID :type property_id: str - :param reservation_id: Reservation Unique Identifier, one reservation ID per call. - :type reservation_id: str + :param source_id: The third-party source ID for this reservation. + :type source_id: str + :param third_party_identifier: If it was received from a booking channel, this can be an identifier from that channel. + :type third_party_identifier: str + :param start_date: Check-In date. + :type start_date: date + :param end_date: Check-Out date. + :type end_date: date + :param guest_first_name: First name of the guest + :type guest_first_name: str + :param guest_last_name: Last name of the guest + :type guest_last_name: str + :param guest_gender: + :type guest_gender: str + :param guest_country: Valid ISO-Code for Country (2 characters) + :type guest_country: str + :param guest_zip: ZIP Code + :type guest_zip: str + :param guest_email: Guest email + :type guest_email: str + :param guest_phone: Guest main phone number + :type guest_phone: str + :param guest_requirements: Object with guest requirements information. + :type guest_requirements: List[object] :param estimated_arrival_time: Estimated Arrival Time, 24-hour format. :type estimated_arrival_time: str - :param status: Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date - :type status: str + :param rooms: Array with quantity of rooms + :type rooms: List[PostReservationRequestRoomsInner] + :param adults: Array with number of adults + :type adults: List[PostReservationRequestAdultsInner] + :param children: Array with number of children + :type children: List[PostReservationRequestChildrenInner] + :param payment_method: Payment Method of choice. + :type payment_method: str + :param card_token: Credit Card identifier. Payment Method must be credit. This field should be filled with credit card identifier according to gateway. Only available for Stripe and should send the Customer ID. + :type card_token: str + :param payment_authorization_code: Transaction identifier. Payment Method must be credit. This field should be filled with transaction identifier according to gateway. Only available for Stripe and it should be filled with Charge ID associated to the Payment Intent. + :type payment_authorization_code: str :param custom_fields: Array with custom fields information - :type custom_fields: List[PutReservationDetailsRequestCustomFieldsInner] + :type custom_fields: List[PostReservationRequestCustomFieldsInner] + :param promo_code: Promotional code. Required for specials and packages that uses it. \\\"rateID\\\" parameter required for using \\\"promoCode\\\". + :type promo_code: str + :param allotment_block_code: Allotment block code to add reservation to allotment block. + :type allotment_block_code: str + :param group_code: Code from the Aggregate Allotment block the reservation will be added to. + :type group_code: str + :param date_created: Date reservation was made. Defaults to current date if omitted. + :type date_created: datetime + :param send_email_confirmation: Send confirmation email to guest. + :type send_email_confirmation: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6058,12 +3916,33 @@ def put_reservation_details_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_reservation_details_put_serialize( + _param = self._post_reservation_post_serialize( property_id=property_id, - reservation_id=reservation_id, + source_id=source_id, + third_party_identifier=third_party_identifier, + start_date=start_date, + end_date=end_date, + guest_first_name=guest_first_name, + guest_last_name=guest_last_name, + guest_gender=guest_gender, + guest_country=guest_country, + guest_zip=guest_zip, + guest_email=guest_email, + guest_phone=guest_phone, + guest_requirements=guest_requirements, estimated_arrival_time=estimated_arrival_time, - status=status, + rooms=rooms, + adults=adults, + children=children, + payment_method=payment_method, + card_token=card_token, + payment_authorization_code=payment_authorization_code, custom_fields=custom_fields, + promo_code=promo_code, + allotment_block_code=allotment_block_code, + group_code=group_code, + date_created=date_created, + send_email_confirmation=send_email_confirmation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6071,7 +3950,7 @@ def put_reservation_details_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PutReservationDetailsResponse", + '200': "PostReservationResponse", } response_data = self.api_client.call_api( *_param, @@ -6080,13 +3959,34 @@ def put_reservation_details_put_without_preload_content( return response_data.response - def _put_reservation_details_put_serialize( + def _post_reservation_post_serialize( self, property_id, - reservation_id, + source_id, + third_party_identifier, + start_date, + end_date, + guest_first_name, + guest_last_name, + guest_gender, + guest_country, + guest_zip, + guest_email, + guest_phone, + guest_requirements, estimated_arrival_time, - status, + rooms, + adults, + children, + payment_method, + card_token, + payment_authorization_code, custom_fields, + promo_code, + allotment_block_code, + group_code, + date_created, + send_email_confirmation, _request_auth, _content_type, _headers, @@ -6096,6 +3996,10 @@ def _put_reservation_details_put_serialize( _host = None _collection_formats: Dict[str, str] = { + 'guestRequirements': 'csv', + 'rooms': 'csv', + 'adults': 'csv', + 'children': 'csv', 'customFields': 'csv', } @@ -6114,14 +4018,56 @@ def _put_reservation_details_put_serialize( # process the form parameters if property_id is not None: _form_params.append(('propertyID', property_id)) - if reservation_id is not None: - _form_params.append(('reservationID', reservation_id)) + if source_id is not None: + _form_params.append(('sourceID', source_id)) + if third_party_identifier is not None: + _form_params.append(('thirdPartyIdentifier', third_party_identifier)) + if start_date is not None: + _form_params.append(('startDate', start_date)) + if end_date is not None: + _form_params.append(('endDate', end_date)) + if guest_first_name is not None: + _form_params.append(('guestFirstName', guest_first_name)) + if guest_last_name is not None: + _form_params.append(('guestLastName', guest_last_name)) + if guest_gender is not None: + _form_params.append(('guestGender', guest_gender)) + if guest_country is not None: + _form_params.append(('guestCountry', guest_country)) + if guest_zip is not None: + _form_params.append(('guestZip', guest_zip)) + if guest_email is not None: + _form_params.append(('guestEmail', guest_email)) + if guest_phone is not None: + _form_params.append(('guestPhone', guest_phone)) + if guest_requirements is not None: + _form_params.append(('guestRequirements', guest_requirements)) if estimated_arrival_time is not None: _form_params.append(('estimatedArrivalTime', estimated_arrival_time)) - if status is not None: - _form_params.append(('status', status)) + if rooms is not None: + _form_params.append(('rooms', rooms)) + if adults is not None: + _form_params.append(('adults', adults)) + if children is not None: + _form_params.append(('children', children)) + if payment_method is not None: + _form_params.append(('paymentMethod', payment_method)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) + if payment_authorization_code is not None: + _form_params.append(('paymentAuthorizationCode', payment_authorization_code)) if custom_fields is not None: _form_params.append(('customFields', custom_fields)) + if promo_code is not None: + _form_params.append(('promoCode', promo_code)) + if allotment_block_code is not None: + _form_params.append(('allotmentBlockCode', allotment_block_code)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) + if date_created is not None: + _form_params.append(('dateCreated', date_created)) + if send_email_confirmation is not None: + _form_params.append(('sendEmailConfirmation', send_email_confirmation)) # process the body parameter @@ -6154,8 +4100,8 @@ def _put_reservation_details_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/putReservationDetails', + method='POST', + resource_path='/postReservation', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cloudbeds_pms_v1_3/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py index 68b8580..03269c1 100644 --- a/cloudbeds_pms_v1_3/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -33,7 +33,6 @@ from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse @@ -4408,401 +4407,6 @@ def _post_room_check_out_post_serialize( - @validate_call - def post_room_type_post( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - room_type_name: Annotated[Optional[StrictStr], Field(description="Room Type Name")] = None, - room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type Short Name")] = None, - room_type_description: Annotated[Optional[StrictStr], Field(description="Room Type Description")] = None, - max_guests: Annotated[Optional[StrictInt], Field(description="Max number of guests allowed in the room type")] = None, - adults_included: Annotated[Optional[StrictInt], Field(description="Number of adults included on the basic room rate")] = None, - children_included: Annotated[Optional[StrictInt], Field(description="Number of children included on the basic room rate")] = None, - rooms_available: Annotated[Optional[StrictInt], Field(description="Number of rooms available, based on the parameters provided")] = None, - is_private: Annotated[Optional[StrictBool], Field(description="If room is private (true) or shared (false)")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PostRoomTypeResponse: - """postRoomType - - Create a new accommodation type - - :param property_id: Property ID - :type property_id: str - :param room_type_name: Room Type Name - :type room_type_name: str - :param room_type_name_short: Room Type Short Name - :type room_type_name_short: str - :param room_type_description: Room Type Description - :type room_type_description: str - :param max_guests: Max number of guests allowed in the room type - :type max_guests: int - :param adults_included: Number of adults included on the basic room rate - :type adults_included: int - :param children_included: Number of children included on the basic room rate - :type children_included: int - :param rooms_available: Number of rooms available, based on the parameters provided - :type rooms_available: int - :param is_private: If room is private (true) or shared (false) - :type is_private: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_room_type_post_serialize( - property_id=property_id, - room_type_name=room_type_name, - room_type_name_short=room_type_name_short, - room_type_description=room_type_description, - max_guests=max_guests, - adults_included=adults_included, - children_included=children_included, - rooms_available=rooms_available, - is_private=is_private, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostRoomTypeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def post_room_type_post_with_http_info( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - room_type_name: Annotated[Optional[StrictStr], Field(description="Room Type Name")] = None, - room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type Short Name")] = None, - room_type_description: Annotated[Optional[StrictStr], Field(description="Room Type Description")] = None, - max_guests: Annotated[Optional[StrictInt], Field(description="Max number of guests allowed in the room type")] = None, - adults_included: Annotated[Optional[StrictInt], Field(description="Number of adults included on the basic room rate")] = None, - children_included: Annotated[Optional[StrictInt], Field(description="Number of children included on the basic room rate")] = None, - rooms_available: Annotated[Optional[StrictInt], Field(description="Number of rooms available, based on the parameters provided")] = None, - is_private: Annotated[Optional[StrictBool], Field(description="If room is private (true) or shared (false)")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PostRoomTypeResponse]: - """postRoomType - - Create a new accommodation type - - :param property_id: Property ID - :type property_id: str - :param room_type_name: Room Type Name - :type room_type_name: str - :param room_type_name_short: Room Type Short Name - :type room_type_name_short: str - :param room_type_description: Room Type Description - :type room_type_description: str - :param max_guests: Max number of guests allowed in the room type - :type max_guests: int - :param adults_included: Number of adults included on the basic room rate - :type adults_included: int - :param children_included: Number of children included on the basic room rate - :type children_included: int - :param rooms_available: Number of rooms available, based on the parameters provided - :type rooms_available: int - :param is_private: If room is private (true) or shared (false) - :type is_private: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_room_type_post_serialize( - property_id=property_id, - room_type_name=room_type_name, - room_type_name_short=room_type_name_short, - room_type_description=room_type_description, - max_guests=max_guests, - adults_included=adults_included, - children_included=children_included, - rooms_available=rooms_available, - is_private=is_private, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostRoomTypeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def post_room_type_post_without_preload_content( - self, - property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - room_type_name: Annotated[Optional[StrictStr], Field(description="Room Type Name")] = None, - room_type_name_short: Annotated[Optional[StrictStr], Field(description="Room Type Short Name")] = None, - room_type_description: Annotated[Optional[StrictStr], Field(description="Room Type Description")] = None, - max_guests: Annotated[Optional[StrictInt], Field(description="Max number of guests allowed in the room type")] = None, - adults_included: Annotated[Optional[StrictInt], Field(description="Number of adults included on the basic room rate")] = None, - children_included: Annotated[Optional[StrictInt], Field(description="Number of children included on the basic room rate")] = None, - rooms_available: Annotated[Optional[StrictInt], Field(description="Number of rooms available, based on the parameters provided")] = None, - is_private: Annotated[Optional[StrictBool], Field(description="If room is private (true) or shared (false)")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """postRoomType - - Create a new accommodation type - - :param property_id: Property ID - :type property_id: str - :param room_type_name: Room Type Name - :type room_type_name: str - :param room_type_name_short: Room Type Short Name - :type room_type_name_short: str - :param room_type_description: Room Type Description - :type room_type_description: str - :param max_guests: Max number of guests allowed in the room type - :type max_guests: int - :param adults_included: Number of adults included on the basic room rate - :type adults_included: int - :param children_included: Number of children included on the basic room rate - :type children_included: int - :param rooms_available: Number of rooms available, based on the parameters provided - :type rooms_available: int - :param is_private: If room is private (true) or shared (false) - :type is_private: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_room_type_post_serialize( - property_id=property_id, - room_type_name=room_type_name, - room_type_name_short=room_type_name_short, - room_type_description=room_type_description, - max_guests=max_guests, - adults_included=adults_included, - children_included=children_included, - rooms_available=rooms_available, - is_private=is_private, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PostRoomTypeResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _post_room_type_post_serialize( - self, - property_id, - room_type_name, - room_type_name_short, - room_type_description, - max_guests, - adults_included, - children_included, - rooms_available, - is_private, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if property_id is not None: - _form_params.append(('propertyID', property_id)) - if room_type_name is not None: - _form_params.append(('roomTypeName', room_type_name)) - if room_type_name_short is not None: - _form_params.append(('roomTypeNameShort', room_type_name_short)) - if room_type_description is not None: - _form_params.append(('roomTypeDescription', room_type_description)) - if max_guests is not None: - _form_params.append(('maxGuests', max_guests)) - if adults_included is not None: - _form_params.append(('adultsIncluded', adults_included)) - if children_included is not None: - _form_params.append(('childrenIncluded', children_included)) - if rooms_available is not None: - _form_params.append(('roomsAvailable', rooms_available)) - if is_private is not None: - _form_params.append(('isPrivate', is_private)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-www-form-urlencoded' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/postRoomType', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def put_room_block_put( self, diff --git a/cloudbeds_pms_v1_3/api/rooms_api.py b/cloudbeds_pms_v1_3/api/rooms_api.py deleted file mode 100644 index 01b0272..0000000 --- a/cloudbeds_pms_v1_3/api/rooms_api.py +++ /dev/null @@ -1,441 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from datetime import date -from pydantic import Field, StrictBool, StrictInt, StrictStr -from typing import Optional -from typing_extensions import Annotated -from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse - -from cloudbeds_pms_v1_3.api_client import ApiClient, RequestSerialized -from cloudbeds_pms_v1_3.api_response import ApiResponse -from cloudbeds_pms_v1_3.rest import RESTResponseType - - -class RoomsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_hotel_room_types_get( - self, - property_ids: Annotated[StrictStr, Field(description="Property ID list, comma-separated, i.e. 37,345,89")], - start_date: Annotated[Optional[date], Field(description="Check-In date. Required for rates to be returned.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date. Required for rates to be returned.")] = None, - adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for rates to be returned.")] = None, - children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for rates to be returned.")] = None, - detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetHotelRoomTypesResponse: - """getHotelRoomTypes - - Returns a list of room types of a specific property, or a list of properties - - :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 (required) - :type property_ids: str - :param start_date: Check-In date. Required for rates to be returned. - :type start_date: date - :param end_date: Check-Out date. Required for rates to be returned. - :type end_date: date - :param adults: Number of adults. Required for rates to be returned. - :type adults: int - :param children: Number of children. Required for rates to be returned. - :type children: int - :param detailed_rates: If detailed rates are expected - :type detailed_rates: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_hotel_room_types_get_serialize( - property_ids=property_ids, - start_date=start_date, - end_date=end_date, - adults=adults, - children=children, - detailed_rates=detailed_rates, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHotelRoomTypesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_hotel_room_types_get_with_http_info( - self, - property_ids: Annotated[StrictStr, Field(description="Property ID list, comma-separated, i.e. 37,345,89")], - start_date: Annotated[Optional[date], Field(description="Check-In date. Required for rates to be returned.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date. Required for rates to be returned.")] = None, - adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for rates to be returned.")] = None, - children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for rates to be returned.")] = None, - detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetHotelRoomTypesResponse]: - """getHotelRoomTypes - - Returns a list of room types of a specific property, or a list of properties - - :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 (required) - :type property_ids: str - :param start_date: Check-In date. Required for rates to be returned. - :type start_date: date - :param end_date: Check-Out date. Required for rates to be returned. - :type end_date: date - :param adults: Number of adults. Required for rates to be returned. - :type adults: int - :param children: Number of children. Required for rates to be returned. - :type children: int - :param detailed_rates: If detailed rates are expected - :type detailed_rates: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_hotel_room_types_get_serialize( - property_ids=property_ids, - start_date=start_date, - end_date=end_date, - adults=adults, - children=children, - detailed_rates=detailed_rates, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHotelRoomTypesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_hotel_room_types_get_without_preload_content( - self, - property_ids: Annotated[StrictStr, Field(description="Property ID list, comma-separated, i.e. 37,345,89")], - start_date: Annotated[Optional[date], Field(description="Check-In date. Required for rates to be returned.")] = None, - end_date: Annotated[Optional[date], Field(description="Check-Out date. Required for rates to be returned.")] = None, - adults: Annotated[Optional[StrictInt], Field(description="Number of adults. Required for rates to be returned.")] = None, - children: Annotated[Optional[StrictInt], Field(description="Number of children. Required for rates to be returned.")] = None, - detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, - page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """getHotelRoomTypes - - Returns a list of room types of a specific property, or a list of properties - - :param property_ids: Property ID list, comma-separated, i.e. 37,345,89 (required) - :type property_ids: str - :param start_date: Check-In date. Required for rates to be returned. - :type start_date: date - :param end_date: Check-Out date. Required for rates to be returned. - :type end_date: date - :param adults: Number of adults. Required for rates to be returned. - :type adults: int - :param children: Number of children. Required for rates to be returned. - :type children: int - :param detailed_rates: If detailed rates are expected - :type detailed_rates: bool - :param page_number: Page number - :type page_number: int - :param page_size: Page size - :type page_size: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_hotel_room_types_get_serialize( - property_ids=property_ids, - start_date=start_date, - end_date=end_date, - adults=adults, - children=children, - detailed_rates=detailed_rates, - page_number=page_number, - page_size=page_size, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHotelRoomTypesResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_hotel_room_types_get_serialize( - self, - property_ids, - start_date, - end_date, - adults, - children, - detailed_rates, - page_number, - page_size, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if property_ids is not None: - - _query_params.append(('propertyIDs', property_ids)) - - if start_date is not None: - if isinstance(start_date, date): - _query_params.append( - ( - 'startDate', - start_date.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('startDate', start_date)) - - if end_date is not None: - if isinstance(end_date, date): - _query_params.append( - ( - 'endDate', - end_date.strftime( - self.api_client.configuration.date_format - ) - ) - ) - else: - _query_params.append(('endDate', end_date)) - - if adults is not None: - - _query_params.append(('adults', adults)) - - if children is not None: - - _query_params.append(('children', children)) - - if detailed_rates is not None: - - _query_params.append(('detailedRates', detailed_rates)) - - if page_number is not None: - - _query_params.append(('pageNumber', page_number)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'api_key' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/getHotelRoomTypes', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index fd43e84..86b21be 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.1.0/python' + self.user_agent = 'OpenAPI-Generator/1.2.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 4374b9f..81dc9b8 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.1.0".\ + "SDK Package Version: 1.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/AppSettingsApi.md b/cloudbeds_pms_v1_3/docs/AppSettingsApi.md index ff5b6b3..4456c94 100644 --- a/cloudbeds_pms_v1_3/docs/AppSettingsApi.md +++ b/cloudbeds_pms_v1_3/docs/AppSettingsApi.md @@ -7,7 +7,6 @@ Method | HTTP request | Description [**delete_app_property_settings_post**](AppSettingsApi.md#delete_app_property_settings_post) | **POST** /deleteAppPropertySettings | deleteAppPropertySettings [**get_app_property_settings_get**](AppSettingsApi.md#get_app_property_settings_get) | **GET** /getAppPropertySettings | getAppPropertySettings [**post_app_property_settings_post**](AppSettingsApi.md#post_app_property_settings_post) | **POST** /postAppPropertySettings | postAppPropertySettings -[**post_bulk_app_property_settings_post**](AppSettingsApi.md#post_bulk_app_property_settings_post) | **POST** /postBulkAppPropertySettings | postBulkAppPropertySettings [**put_app_property_settings_post**](AppSettingsApi.md#put_app_property_settings_post) | **POST** /putAppPropertySettings | putAppPropertySettings @@ -267,92 +266,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **post_bulk_app_property_settings_post** -> PostBulkAppPropertySettingsResponse post_bulk_app_property_settings_post(property_id=property_id, app_client_id=app_client_id, settings=settings) - -postBulkAppPropertySettings - - - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.AppSettingsApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - app_client_id = 'app_client_id_example' # str | Application Client ID (optional) - settings = 'settings_example' # str | JSON array of settings values (optional) - - try: - # postBulkAppPropertySettings - api_response = api_instance.post_bulk_app_property_settings_post(property_id=property_id, app_client_id=app_client_id, settings=settings) - print("The response of AppSettingsApi->post_bulk_app_property_settings_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AppSettingsApi->post_bulk_app_property_settings_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **app_client_id** | **str**| Application Client ID | [optional] - **settings** | **str**| JSON array of settings values | [optional] - -### Return type - -[**PostBulkAppPropertySettingsResponse**](PostBulkAppPropertySettingsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **put_app_property_settings_post** > PostPutAppPropertySettingsResponse put_app_property_settings_post(property_id=property_id, key=key, value=value) diff --git a/cloudbeds_pms_v1_3/docs/AuthenticationApi.md b/cloudbeds_pms_v1_3/docs/AuthenticationApi.md index 6103639..20dc41a 100644 --- a/cloudbeds_pms_v1_3/docs/AuthenticationApi.md +++ b/cloudbeds_pms_v1_3/docs/AuthenticationApi.md @@ -4,76 +4,11 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- -[**access_token_check_post**](AuthenticationApi.md#access_token_check_post) | **POST** /access_token_check | access_token_check [**access_token_post**](AuthenticationApi.md#access_token_post) | **POST** /access_token | access_token [**oauth_metadata_get**](AuthenticationApi.md#oauth_metadata_get) | **GET** /oauth/metadata | metadata [**userinfo_get**](AuthenticationApi.md#userinfo_get) | **GET** /userinfo | userinfo -# **access_token_check_post** -> PostAccessTokenCheckResponse access_token_check_post() - -access_token_check - -A simple test method to determine if an API Key or an Access Token is valid. No request payload. Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice. - -### Example - - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.AuthenticationApi(api_client) - - try: - # access_token_check - api_response = api_instance.access_token_check_post() - print("The response of AuthenticationApi->access_token_check_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthenticationApi->access_token_check_post: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**PostAccessTokenCheckResponse**](PostAccessTokenCheckResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **access_token_post** > PostAccessTokenResponse access_token_post(grant_type=grant_type, client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri, code=code, refresh_token=refresh_token) diff --git a/cloudbeds_pms_v1_3/docs/BetaApi.md b/cloudbeds_pms_v1_3/docs/BetaApi.md deleted file mode 100644 index ec10ab5..0000000 --- a/cloudbeds_pms_v1_3/docs/BetaApi.md +++ /dev/null @@ -1,93 +0,0 @@ -# cloudbeds_pms_v1_3.BetaApi - -All URIs are relative to *https://api.cloudbeds.com/api/v1.3* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_async_api_job_get**](BetaApi.md#get_async_api_job_get) | **GET** /getAsyncApiJob | getAsyncApiJob - - -# **get_async_api_job_get** -> GetAsyncApiJobResponse get_async_api_job_get(job_reference_id=job_reference_id, status=status) - -getAsyncApiJob - -Returns a list of Rate Jobs. Rate jobs are only returned within 7 days of creation, after 7 days they will not be returned in the response. Requests which do not provide a jobReferenceID will be filtered by the client ID of the request's token. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.BetaApi(api_client) - job_reference_id = 'job_reference_id_example' # str | Filter Rate Jobs by jobReferenceID (optional) - status = 'status_example' # str | Filter Rate Jobs based on status (optional) - - try: - # getAsyncApiJob - api_response = api_instance.get_async_api_job_get(job_reference_id=job_reference_id, status=status) - print("The response of BetaApi->get_async_api_job_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling BetaApi->get_async_api_job_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **job_reference_id** | **str**| Filter Rate Jobs by jobReferenceID | [optional] - **status** | **str**| Filter Rate Jobs based on status | [optional] - -### Return type - -[**GetAsyncApiJobResponse**](GetAsyncApiJobResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/cloudbeds_pms_v1_3/docs/CRMApi.md b/cloudbeds_pms_v1_3/docs/CRMApi.md deleted file mode 100644 index 483f854..0000000 --- a/cloudbeds_pms_v1_3/docs/CRMApi.md +++ /dev/null @@ -1,180 +0,0 @@ -# cloudbeds_pms_v1_3.CRMApi - -All URIs are relative to *https://api.cloudbeds.com/api/v1.3* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**crm_cache_remove_post**](CRMApi.md#crm_cache_remove_post) | **POST** /crm/cache_remove | PostCRMCacheRemove -[**crm_cache_update_post**](CRMApi.md#crm_cache_update_post) | **POST** /crm/cache_update | PostCRMCacheUpdate - - -# **crm_cache_remove_post** -> PostCRMCacheRemoveResponse crm_cache_remove_post(property_id=property_id, association_id=association_id) - -PostCRMCacheRemove - - - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.CRMApi(api_client) - property_id = ['property_id_example'] # List[str] | Property IDs that needs the cache to be removed (optional) - association_id = 'association_id_example' # str | Association ID that needs the cache to be removed (optional) - - try: - # PostCRMCacheRemove - api_response = api_instance.crm_cache_remove_post(property_id=property_id, association_id=association_id) - print("The response of CRMApi->crm_cache_remove_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CRMApi->crm_cache_remove_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | [**List[str]**](str.md)| Property IDs that needs the cache to be removed | [optional] - **association_id** | **str**| Association ID that needs the cache to be removed | [optional] - -### Return type - -[**PostCRMCacheRemoveResponse**](PostCRMCacheRemoveResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **crm_cache_update_post** -> PostCRMCacheUpdateResponse crm_cache_update_post(property_id=property_id, clear=clear, clear_packages=clear_packages) - -PostCRMCacheUpdate - - - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.CRMApi(api_client) - property_id = 'property_id_example' # str | Property ID that needs the cache to be updated (optional) - clear = True # bool | If property cache should be cleared (optional) - clear_packages = True # bool | If packages cache should be cleared for the property (optional) - - try: - # PostCRMCacheUpdate - api_response = api_instance.crm_cache_update_post(property_id=property_id, clear=clear, clear_packages=clear_packages) - print("The response of CRMApi->crm_cache_update_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CRMApi->crm_cache_update_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID that needs the cache to be updated | [optional] - **clear** | **bool**| If property cache should be cleared | [optional] - **clear_packages** | **bool**| If packages cache should be cleared for the property | [optional] - -### Return type - -[**PostCRMCacheUpdateResponse**](PostCRMCacheUpdateResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md b/cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md deleted file mode 100644 index 4e1a975..0000000 --- a/cloudbeds_pms_v1_3/docs/DeleteItemFromReservationResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# DeleteItemFromReservationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteItemFromReservationResponse from a JSON string -delete_item_from_reservation_response_instance = DeleteItemFromReservationResponse.from_json(json) -# print the JSON string representation of the object -print(DeleteItemFromReservationResponse.to_json()) - -# convert the object into a dict -delete_item_from_reservation_response_dict = delete_item_from_reservation_response_instance.to_dict() -# create an instance of DeleteItemFromReservationResponse from a dict -delete_item_from_reservation_response_from_dict = DeleteItemFromReservationResponse.from_dict(delete_item_from_reservation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md deleted file mode 100644 index 9a7d44b..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAdjustmentResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAdjustmentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**GetAdjustmentResponseData**](GetAdjustmentResponseData.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentResponse from a JSON string -get_adjustment_response_instance = GetAdjustmentResponse.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentResponse.to_json()) - -# convert the object into a dict -get_adjustment_response_dict = get_adjustment_response_instance.to_dict() -# create an instance of GetAdjustmentResponse from a dict -get_adjustment_response_from_dict = GetAdjustmentResponse.from_dict(get_adjustment_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md deleted file mode 100644 index e39da92..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAdjustmentResponseData.md +++ /dev/null @@ -1,42 +0,0 @@ -# GetAdjustmentResponseData - -Adjustment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adjustment_id** | **str** | Adjustment unique identifier | [optional] -**property_id** | **str** | unique hotel identifier | [optional] -**created** | **datetime** | Adjustment created time | [optional] -**room_id** | **str** | Adjustment room id | [optional] -**room_name** | **str** | Room name of Adjustment | [optional] -**reservation_identifier** | **str** | Reservation Unique Identifier | [optional] -**description** | **str** | Adjustment description | [optional] -**notes** | **str** | Adjustment notes | [optional] -**amount** | **float** | Adjustment amount | [optional] -**currency** | **float** | Adjustment currency | [optional] -**posted** | **float** | Adjustment posted transaction | [optional] -**type** | **str** | Adjustment type | [optional] -**void_id** | **str** | Voided adjustment transaction unique identifier. Null if adjustment not voided | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentResponseData from a JSON string -get_adjustment_response_data_instance = GetAdjustmentResponseData.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentResponseData.to_json()) - -# convert the object into a dict -get_adjustment_response_data_dict = get_adjustment_response_data_instance.to_dict() -# create an instance of GetAdjustmentResponseData from a dict -get_adjustment_response_data_from_dict = GetAdjustmentResponseData.from_dict(get_adjustment_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md deleted file mode 100644 index 53b62cb..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAdjustmentsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**GetAdjustmentsResponseData**](GetAdjustmentsResponseData.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentsResponse from a JSON string -get_adjustments_response_instance = GetAdjustmentsResponse.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentsResponse.to_json()) - -# convert the object into a dict -get_adjustments_response_dict = get_adjustments_response_instance.to_dict() -# create an instance of GetAdjustmentsResponse from a dict -get_adjustments_response_from_dict = GetAdjustmentsResponse.from_dict(get_adjustments_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md b/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md deleted file mode 100644 index 0f8b3d0..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAdjustmentsResponseData.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetAdjustmentsResponseData - -Adjustments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adjustment_id** | **str** | Adjustment unique identifier | [optional] -**created** | **datetime** | Adjustment created time | [optional] -**room_id** | **str** | Adjustment room id | [optional] -**room_name** | **str** | Room name of Adjustment | [optional] -**description** | **str** | Adjustment description | [optional] -**notes** | **str** | Adjustment notes | [optional] -**amount** | **float** | Adjustment amount | [optional] -**type** | **str** | Adjustment type | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAdjustmentsResponseData from a JSON string -get_adjustments_response_data_instance = GetAdjustmentsResponseData.from_json(json) -# print the JSON string representation of the object -print(GetAdjustmentsResponseData.to_json()) - -# convert the object into a dict -get_adjustments_response_data_dict = get_adjustments_response_data_instance.to_dict() -# create an instance of GetAdjustmentsResponseData from a dict -get_adjustments_response_data_from_dict = GetAdjustmentsResponseData.from_dict(get_adjustments_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md deleted file mode 100644 index fccf9a5..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetAsyncApiJobResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**has_next_page** | **bool** | Returns true if there is another page of results after this one | [optional] -**next_page** | **str** | The URL of the next page of results if there is one | [optional] -**data** | [**List[GetAsyncApiJobResponseDataInner]**](GetAsyncApiJobResponseDataInner.md) | Job details | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponse from a JSON string -get_async_api_job_response_instance = GetAsyncApiJobResponse.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponse.to_json()) - -# convert the object into a dict -get_async_api_job_response_dict = get_async_api_job_response_instance.to_dict() -# create an instance of GetAsyncApiJobResponse from a dict -get_async_api_job_response_from_dict = GetAsyncApiJobResponse.from_dict(get_async_api_job_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md deleted file mode 100644 index 7ee3092..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInner.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetAsyncApiJobResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**job_reference_id** | **str** | Reference ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the rate:batch_job | [optional] -**date_created** | **date** | Rate Job creation datetime | [optional] -**status** | **str** | Status of the Rate Job. in_progress - job is processing. completed - job has completed successfully. error - there was an error with 1 or more updates requested in this job. Allowed values: in_progressgu, completed, error | [optional] -**updates** | [**List[GetAsyncApiJobResponseDataInnerUpdatesInner]**](GetAsyncApiJobResponseDataInnerUpdatesInner.md) | Array of actions produced from this job | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponseDataInner from a JSON string -get_async_api_job_response_data_inner_instance = GetAsyncApiJobResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponseDataInner.to_json()) - -# convert the object into a dict -get_async_api_job_response_data_inner_dict = get_async_api_job_response_data_inner_instance.to_dict() -# create an instance of GetAsyncApiJobResponseDataInner from a dict -get_async_api_job_response_data_inner_from_dict = GetAsyncApiJobResponseDataInner.from_dict(get_async_api_job_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md deleted file mode 100644 index a454abf..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInner.md +++ /dev/null @@ -1,53 +0,0 @@ -# GetAsyncApiJobResponseDataInnerUpdatesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rate_id** | **str** | Rate ID for which action was taken | [optional] -**action** | **str** | Action taken for this interval as part of this job. in_progress - interval wait for it turn. updated - interval was updated. created - new interval was created with the new date range. error - there was an error when attempting this update. Allowed values: in_progress, updated, created, error | [optional] -**start_date** | **date** | Interval start date | [optional] -**end_date** | **date** | Interval end date | [optional] -**rate** | **float** | Value of rate which was updated | [optional] -**max_los** | **int** | Maximum length of stay for this rate | [optional] -**min_los** | **int** | Minimum length of stay for this rate | [optional] -**closed_to_arrival** | **bool** | If this rate is closed to arrival | [optional] -**closed_to_departure** | **bool** | If this rate is closed to departure | [optional] -**cut_off** | **int** | Cutoff for this rate | [optional] -**last_minute_booking** | **int** | Last minute booking for this rate | [optional] -**property_id** | **str** | Property ID associated to the allotment block | [optional] -**allotment_block_code** | **str** | Allotment block code | [optional] -**allotment_block_status** | **str** | Allotment block status | [optional] -**allotment_block_name** | **str** | Allotment block name | [optional] -**allotment_block_id** | **str** | Allotment block ID | [optional] -**rate_type** | **str** | Rate type for the allotment block | [optional] -**rate_plan_id** | **str** | Rate plan ID if applicable | [optional] -**allotment_type** | **str** | the type of allotment block | [optional] -**group_id** | **str** | Group profile ID associated to the allotment block | [optional] -**groupcode** | **str** | Group profile code associated to the allotment block | [optional] -**is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] -**auto_release** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease**](GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md) | | [optional] -**allotment_intervals** | [**List[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner]**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] -**message** | **str** | Error message | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a JSON string -get_async_api_job_response_data_inner_updates_inner_instance = GetAsyncApiJobResponseDataInnerUpdatesInner.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponseDataInnerUpdatesInner.to_json()) - -# convert the object into a dict -get_async_api_job_response_data_inner_updates_inner_dict = get_async_api_job_response_data_inner_updates_inner_instance.to_dict() -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a dict -get_async_api_job_response_data_inner_updates_inner_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInner.from_dict(get_async_api_job_response_data_inner_updates_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md deleted file mode 100644 index debb637..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**room_type_id** | **str** | Room type ID | [optional] -**start_date** | **date** | Interval start date | [optional] -**end_date** | **date** | Interval end date | [optional] -**availability** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md) | | [optional] -**restrictions** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a JSON string -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.to_json()) - -# convert the object into a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_instance.to_dict() -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md deleted file mode 100644 index de04c6a..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability - -Interval availability data by day in interval - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_date** | **date** | Day within interval | [optional] -**block_remaining** | **int** | Number of units remaining for the room type for this day | [optional] -**block_allotted** | **int** | Total number of units available for the room type for this day | [optional] -**block_confirmed** | **int** | Number of units booked for the room type for this day | [optional] -**rate** | **str** | the price | [optional] -**guest_pricing** | [**GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing**](GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a JSON string -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.to_json()) - -# convert the object into a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_instance.to_dict() -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md deleted file mode 100644 index adde090..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing - -Guest pricing data if applicable. Note: the number of results varies here based on the occupancy settings and custom guest pricing for the room type. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adult1** | **str** | Price for adult 1 | [optional] -**adult2** | **str** | Price for adult 2 | [optional] -**adult3** | **str** | Price for adult 3 | [optional] -**child1** | **str** | Price for child 1 | [optional] -**child2** | **str** | Price for child 2 | [optional] -**child3** | **str** | Price for child 3 | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a JSON string -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.to_json()) - -# convert the object into a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_instance.to_dict() -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md deleted file mode 100644 index e19d727..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions - -Interval restrictions if applicable - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_los** | **int** | Minimum length of stay requirement | [optional] -**max_los** | **int** | Maximum length of stay requirement | [optional] -**cut_off_days** | **int** | How many days before arrival should the guests be required to book | [optional] -**last_minute_booking_days** | **int** | Hoe many days before the arrival guests are allowed to book | [optional] -**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] -**closed_to_departure** | **int** | If the interval dates are closed for departure | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a JSON string -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.to_json()) - -# convert the object into a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_dict = get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_instance.to_dict() -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a dict -get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.from_dict(get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md b/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md deleted file mode 100644 index 4f1c270..0000000 --- a/cloudbeds_pms_v1_3/docs/GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease - -auto-release data if applicable - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**release_type** | **str** | The type of auto-release | [optional] -**days** | **int** | The number of days prior to the end of the allotment block to begin releasing dates from the allotment block | [optional] -**release_time** | **str** | The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'... | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a JSON string -get_async_api_job_response_data_inner_updates_inner_auto_release_instance = GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.from_json(json) -# print the JSON string representation of the object -print(GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.to_json()) - -# convert the object into a dict -get_async_api_job_response_data_inner_updates_inner_auto_release_dict = get_async_api_job_response_data_inner_updates_inner_auto_release_instance.to_dict() -# create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a dict -get_async_api_job_response_data_inner_updates_inner_auto_release_from_dict = GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.from_dict(get_async_api_job_response_data_inner_updates_inner_auto_release_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md b/cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md deleted file mode 100644 index 3b3db40..0000000 --- a/cloudbeds_pms_v1_3/docs/GetHotelRoomTypesResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetHotelRoomTypesResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**count** | **int** | Number of results returned | [optional] -**data** | **List[str]** | Room Types details | [optional] -**total** | **int** | Total number of results | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHotelRoomTypesResponse from a JSON string -get_hotel_room_types_response_instance = GetHotelRoomTypesResponse.from_json(json) -# print the JSON string representation of the object -print(GetHotelRoomTypesResponse.to_json()) - -# convert the object into a dict -get_hotel_room_types_response_dict = get_hotel_room_types_response_instance.to_dict() -# create an instance of GetHotelRoomTypesResponse from a dict -get_hotel_room_types_response_from_dict = GetHotelRoomTypesResponse.from_dict(get_hotel_room_types_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md deleted file mode 100644 index ca3fa5d..0000000 --- a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetHouseAccountDetailsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**GetHouseAccountDetailsResponseData**](GetHouseAccountDetailsResponseData.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponse from a JSON string -get_house_account_details_response_instance = GetHouseAccountDetailsResponse.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponse.to_json()) - -# convert the object into a dict -get_house_account_details_response_dict = get_house_account_details_response_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponse from a dict -get_house_account_details_response_from_dict = GetHouseAccountDetailsResponse.from_dict(get_house_account_details_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md deleted file mode 100644 index 9be8c16..0000000 --- a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseData.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetHouseAccountDetailsResponseData - -Includes records list for House Account and summary info covering the date range specified - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | [**List[GetHouseAccountDetailsResponseDataTotalInner]**](GetHouseAccountDetailsResponseDataTotalInner.md) | Section with summary records info | [optional] -**records** | [**List[GetHouseAccountDetailsResponseDataRecordsInner]**](GetHouseAccountDetailsResponseDataRecordsInner.md) | Section with records list | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponseData from a JSON string -get_house_account_details_response_data_instance = GetHouseAccountDetailsResponseData.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponseData.to_json()) - -# convert the object into a dict -get_house_account_details_response_data_dict = get_house_account_details_response_data_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponseData from a dict -get_house_account_details_response_data_from_dict = GetHouseAccountDetailsResponseData.from_dict(get_house_account_details_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md deleted file mode 100644 index 32e1340..0000000 --- a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataRecordsInner.md +++ /dev/null @@ -1,43 +0,0 @@ -# GetHouseAccountDetailsResponseDataRecordsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**property_id** | **str** | Property ID | [optional] -**transaction_id** | **str** | Transaction ID | [optional] -**user_name** | **str** | User name | [optional] -**description** | **str** | Record description | [optional] -**notes** | **str** | Record notes | [optional] -**quantity** | **str** | Quantity of items (for product type record) | [optional] -**debit** | **str** | Debit amount (non formatted) | [optional] -**credit** | **str** | Credit amount (non formatted) | [optional] -**debit_formatter** | **str** | Debit amount (formatted) | [optional] -**credit_formatted** | **str** | Credit amount (formatted) | [optional] -**currency** | **str** | Currency string | [optional] -**transaction_code** | **str** | Transaction code | [optional] -**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] -**transaction_date** | **date** | Transaction date | [optional] -**transaction_date_time** | **datetime** | Transaction date and time | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string -get_house_account_details_response_data_records_inner_instance = GetHouseAccountDetailsResponseDataRecordsInner.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponseDataRecordsInner.to_json()) - -# convert the object into a dict -get_house_account_details_response_data_records_inner_dict = get_house_account_details_response_data_records_inner_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict -get_house_account_details_response_data_records_inner_from_dict = GetHouseAccountDetailsResponseDataRecordsInner.from_dict(get_house_account_details_response_data_records_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md b/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md deleted file mode 100644 index 9e55d0d..0000000 --- a/cloudbeds_pms_v1_3/docs/GetHouseAccountDetailsResponseDataTotalInner.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetHouseAccountDetailsResponseDataTotalInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | Total number of House Account records | [optional] -**quantity** | **str** | Total items quantity of product type records | [optional] -**debit** | **str** | Total debit (formatted) | [optional] -**credit** | **str** | Total credit (formatted) | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string -get_house_account_details_response_data_total_inner_instance = GetHouseAccountDetailsResponseDataTotalInner.from_json(json) -# print the JSON string representation of the object -print(GetHouseAccountDetailsResponseDataTotalInner.to_json()) - -# convert the object into a dict -get_house_account_details_response_data_total_inner_dict = get_house_account_details_response_data_total_inner_instance.to_dict() -# create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict -get_house_account_details_response_data_total_inner_from_dict = GetHouseAccountDetailsResponseDataTotalInner.from_dict(get_house_account_details_response_data_total_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md b/cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md deleted file mode 100644 index cb5b05d..0000000 --- a/cloudbeds_pms_v1_3/docs/GetImportDummyReservationsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetImportDummyReservationsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | **List[str]** | Reservations details | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetImportDummyReservationsResponse from a JSON string -get_import_dummy_reservations_response_instance = GetImportDummyReservationsResponse.from_json(json) -# print the JSON string representation of the object -print(GetImportDummyReservationsResponse.to_json()) - -# convert the object into a dict -get_import_dummy_reservations_response_dict = get_import_dummy_reservations_response_instance.to_dict() -# create an instance of GetImportDummyReservationsResponse from a dict -get_import_dummy_reservations_response_from_dict = GetImportDummyReservationsResponse.from_dict(get_import_dummy_reservations_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetImportToursResponse.md b/cloudbeds_pms_v1_3/docs/GetImportToursResponse.md deleted file mode 100644 index 17e0333..0000000 --- a/cloudbeds_pms_v1_3/docs/GetImportToursResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetImportToursResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | **List[str]** | Tours details | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetImportToursResponse from a JSON string -get_import_tours_response_instance = GetImportToursResponse.from_json(json) -# print the JSON string representation of the object -print(GetImportToursResponse.to_json()) - -# convert the object into a dict -get_import_tours_response_dict = get_import_tours_response_instance.to_dict() -# create an instance of GetImportToursResponse from a dict -get_import_tours_response_from_dict = GetImportToursResponse.from_dict(get_import_tours_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md deleted file mode 100644 index ba48c76..0000000 --- a/cloudbeds_pms_v1_3/docs/GetInvoiceResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetInvoiceResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**GetInvoiceResponseData**](GetInvoiceResponseData.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetInvoiceResponse from a JSON string -get_invoice_response_instance = GetInvoiceResponse.from_json(json) -# print the JSON string representation of the object -print(GetInvoiceResponse.to_json()) - -# convert the object into a dict -get_invoice_response_dict = get_invoice_response_instance.to_dict() -# create an instance of GetInvoiceResponse from a dict -get_invoice_response_from_dict = GetInvoiceResponse.from_dict(get_invoice_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md deleted file mode 100644 index 60cfc5c..0000000 --- a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseData.md +++ /dev/null @@ -1,41 +0,0 @@ -# GetInvoiceResponseData - -Invoice details - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_id** | **str** | Unique invoice ID | [optional] -**user_id** | **str** | Unique ID of User who generated invoice | [optional] -**reservation_id** | **str** | Reservation identifier | [optional] -**prefix** | **str** | Invoice ID prefix | [optional] -**number** | **int** | Invoice ID number | [optional] -**suffix** | **str** | Invoice ID suffix | [optional] -**document_issue_date** | **str** | Date and time when invoice was issued | [optional] -**status** | **str** | Invoice status | [optional] -**billed_to** | [**GetInvoiceResponseDataBilledTo**](GetInvoiceResponseDataBilledTo.md) | | [optional] -**items** | [**List[GetInvoiceResponseDataItemsInner]**](GetInvoiceResponseDataItemsInner.md) | Invoice items | [optional] -**taxes** | [**List[GetInvoiceResponseDataItemsInnerTaxesInner]**](GetInvoiceResponseDataItemsInnerTaxesInner.md) | | [optional] -**fees** | [**List[GetInvoiceResponseDataItemsInnerFeesInner]**](GetInvoiceResponseDataItemsInnerFeesInner.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of GetInvoiceResponseData from a JSON string -get_invoice_response_data_instance = GetInvoiceResponseData.from_json(json) -# print the JSON string representation of the object -print(GetInvoiceResponseData.to_json()) - -# convert the object into a dict -get_invoice_response_data_dict = get_invoice_response_data_instance.to_dict() -# create an instance of GetInvoiceResponseData from a dict -get_invoice_response_data_from_dict = GetInvoiceResponseData.from_dict(get_invoice_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md deleted file mode 100644 index 6b36fcf..0000000 --- a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataBilledTo.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetInvoiceResponseDataBilledTo - -Information about who being billed - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | Unique identifier of who being billed Additional information about who being billed could be retrieved via corresponding API e.g.: for a guest it could be [getGuest](#tag/Guest/paths/~1getGuest/get) | [optional] -**type** | **str** | Type of who being billed | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo - -# TODO update the JSON string below -json = "{}" -# create an instance of GetInvoiceResponseDataBilledTo from a JSON string -get_invoice_response_data_billed_to_instance = GetInvoiceResponseDataBilledTo.from_json(json) -# print the JSON string representation of the object -print(GetInvoiceResponseDataBilledTo.to_json()) - -# convert the object into a dict -get_invoice_response_data_billed_to_dict = get_invoice_response_data_billed_to_instance.to_dict() -# create an instance of GetInvoiceResponseDataBilledTo from a dict -get_invoice_response_data_billed_to_from_dict = GetInvoiceResponseDataBilledTo.from_dict(get_invoice_response_data_billed_to_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md deleted file mode 100644 index 5688bf0..0000000 --- a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInner.md +++ /dev/null @@ -1,36 +0,0 @@ -# GetInvoiceResponseDataItemsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] -**type** | **str** | | [optional] -**quantity** | **int** | | [optional] -**total_amount** | **str** | | [optional] -**net_amount** | **str** | | [optional] -**currency** | **str** | | [optional] -**taxes** | [**List[GetInvoiceResponseDataItemsInnerTaxesInner]**](GetInvoiceResponseDataItemsInnerTaxesInner.md) | | [optional] -**fees** | [**List[GetInvoiceResponseDataItemsInnerFeesInner]**](GetInvoiceResponseDataItemsInnerFeesInner.md) | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetInvoiceResponseDataItemsInner from a JSON string -get_invoice_response_data_items_inner_instance = GetInvoiceResponseDataItemsInner.from_json(json) -# print the JSON string representation of the object -print(GetInvoiceResponseDataItemsInner.to_json()) - -# convert the object into a dict -get_invoice_response_data_items_inner_dict = get_invoice_response_data_items_inner_instance.to_dict() -# create an instance of GetInvoiceResponseDataItemsInner from a dict -get_invoice_response_data_items_inner_from_dict = GetInvoiceResponseDataItemsInner.from_dict(get_invoice_response_data_items_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md deleted file mode 100644 index 9d870ac..0000000 --- a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerFeesInner.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetInvoiceResponseDataItemsInnerFeesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**amount** | **str** | | [optional] -**code** | **str** | | [optional] -**fee_id** | **str** | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a JSON string -get_invoice_response_data_items_inner_fees_inner_instance = GetInvoiceResponseDataItemsInnerFeesInner.from_json(json) -# print the JSON string representation of the object -print(GetInvoiceResponseDataItemsInnerFeesInner.to_json()) - -# convert the object into a dict -get_invoice_response_data_items_inner_fees_inner_dict = get_invoice_response_data_items_inner_fees_inner_instance.to_dict() -# create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a dict -get_invoice_response_data_items_inner_fees_inner_from_dict = GetInvoiceResponseDataItemsInnerFeesInner.from_dict(get_invoice_response_data_items_inner_fees_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md b/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md deleted file mode 100644 index 3f08d4b..0000000 --- a/cloudbeds_pms_v1_3/docs/GetInvoiceResponseDataItemsInnerTaxesInner.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetInvoiceResponseDataItemsInnerTaxesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**amount** | **str** | | [optional] -**code** | **str** | | [optional] -**tax_id** | **str** | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a JSON string -get_invoice_response_data_items_inner_taxes_inner_instance = GetInvoiceResponseDataItemsInnerTaxesInner.from_json(json) -# print the JSON string representation of the object -print(GetInvoiceResponseDataItemsInnerTaxesInner.to_json()) - -# convert the object into a dict -get_invoice_response_data_items_inner_taxes_inner_dict = get_invoice_response_data_items_inner_taxes_inner_instance.to_dict() -# create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a dict -get_invoice_response_data_items_inner_taxes_inner_from_dict = GetInvoiceResponseDataItemsInnerTaxesInner.from_dict(get_invoice_response_data_items_inner_taxes_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md b/cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md deleted file mode 100644 index fa48bb6..0000000 --- a/cloudbeds_pms_v1_3/docs/GetPaymentsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetPaymentsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetPaymentsResponseDataInner]**](GetPaymentsResponseDataInner.md) | Transaction list | [optional] -**count** | **int** | Number of results returned, based on pagination | [optional] -**total** | **int** | Total number of results | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPaymentsResponse from a JSON string -get_payments_response_instance = GetPaymentsResponse.from_json(json) -# print the JSON string representation of the object -print(GetPaymentsResponse.to_json()) - -# convert the object into a dict -get_payments_response_dict = get_payments_response_instance.to_dict() -# create an instance of GetPaymentsResponse from a dict -get_payments_response_from_dict = GetPaymentsResponse.from_dict(get_payments_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md deleted file mode 100644 index 6f66d8c..0000000 --- a/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInner.md +++ /dev/null @@ -1,59 +0,0 @@ -# GetPaymentsResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **str** | Transaction identifier | [optional] -**payment_id** | **str** | Payment ID | [optional] -**property_id** | **str** | Property ID | [optional] -**transaction_date_time** | **datetime** | Transaction DateTime | [optional] -**transaction_date_time_utc** | **datetime** | Transaction DateTime on UTC timezone | [optional] -**user_id** | **str** | User ID that generated payment | [optional] -**user_name** | **str** | User name that generated payment | [optional] -**room_id** | **str** | ID of room. Only available when reservationID is sent. | [optional] -**room_name** | **str** | Name/Number of room. Only available when reservationID is sent. | [optional] -**guest_id** | **str** | Guest ID. Only available when reservationID or guestID is sent. | [optional] -**guest_name** | **str** | Guest Name. Only available when reservationID or guestID is sent. | [optional] -**guest_check_in** | **date** | Guest Check-In date. Only available when reservationID is sent. | [optional] -**guest_check_out** | **date** | Guest Check-Out date. Only available when reservationID is sent. | [optional] -**reservation_id** | **str** | Reservation ID. Only available when reservationID is sent. | [optional] -**sub_reservation_id** | **str** | Sub reservation ID. Only available when reservationID is sent. | [optional] -**reservation_status** | **str** | Current reservation status. Only available when reservationID is sent. | [optional] -**house_account_id** | **str** | House Account ID, Only available when houseAccountID is sent. | [optional] -**house_account_name** | **str** | House Account Name, Only available when houseAccountID is sent. | [optional] -**description** | **str** | Description of the transaction | [optional] -**payment_method** | **str** | Payment Method of the transaction | [optional] -**quantity** | **int** | | [optional] -**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] -**currency** | **str** | Currency of the transaction | [optional] -**is_posted** | **bool** | | [optional] -**is_voided** | **bool** | | [optional] -**is_deleted** | **bool** | | [optional] -**state** | **str** | | [optional] -**is_allocated** | **bool** | only if includePaymentAllocation=true | [optional] -**total_allocated** | **float** | ² Amount of allocated payment | [optional] -**total_unallocated** | **float** | ² Amount of unallocated payment | [optional] -**payment_allocation** | [**List[GetPaymentsResponseDataInnerPaymentAllocationInner]**](GetPaymentsResponseDataInnerPaymentAllocationInner.md) | ² | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPaymentsResponseDataInner from a JSON string -get_payments_response_data_inner_instance = GetPaymentsResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetPaymentsResponseDataInner.to_json()) - -# convert the object into a dict -get_payments_response_data_inner_dict = get_payments_response_data_inner_instance.to_dict() -# create an instance of GetPaymentsResponseDataInner from a dict -get_payments_response_data_inner_from_dict = GetPaymentsResponseDataInner.from_dict(get_payments_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md deleted file mode 100644 index c9aba96..0000000 --- a/cloudbeds_pms_v1_3/docs/GetPaymentsResponseDataInnerPaymentAllocationInner.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetPaymentsResponseDataInnerPaymentAllocationInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | ² Type of item described in allocation | [optional] -**reference** | **str** | ² Reference of item described in allocation | [optional] -**name** | **str** | ² Name of item described in allocation | [optional] -**amount** | **float** | ² Amount of allocated of payment total | [optional] -**taxes** | **List[str]** | ² Taxes of allocated payment. Values are an array numeric of taxes IDs | [optional] -**fees** | **List[str]** | ² Fees of allocated payment. Values are an array numeric of fees IDs | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string -get_payments_response_data_inner_payment_allocation_inner_instance = GetPaymentsResponseDataInnerPaymentAllocationInner.from_json(json) -# print the JSON string representation of the object -print(GetPaymentsResponseDataInnerPaymentAllocationInner.to_json()) - -# convert the object into a dict -get_payments_response_data_inner_payment_allocation_inner_dict = get_payments_response_data_inner_payment_allocation_inner_instance.to_dict() -# create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict -get_payments_response_data_inner_payment_allocation_inner_from_dict = GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(get_payments_response_data_inner_payment_allocation_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md b/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md deleted file mode 100644 index 9577f0a..0000000 --- a/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetPendingTransactionsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetPendingTransactionsResponseDataInner]**](GetPendingTransactionsResponseDataInner.md) | Transaction list covering the date range specified | [optional] -**count** | **int** | Number of results returned, based on pagination and filter parameters | [optional] -**total** | **int** | Total count of results, based on filter parameters | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPendingTransactionsResponse from a JSON string -get_pending_transactions_response_instance = GetPendingTransactionsResponse.from_json(json) -# print the JSON string representation of the object -print(GetPendingTransactionsResponse.to_json()) - -# convert the object into a dict -get_pending_transactions_response_dict = get_pending_transactions_response_instance.to_dict() -# create an instance of GetPendingTransactionsResponse from a dict -get_pending_transactions_response_from_dict = GetPendingTransactionsResponse.from_dict(get_pending_transactions_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md deleted file mode 100644 index 5e3b6c1..0000000 --- a/cloudbeds_pms_v1_3/docs/GetPendingTransactionsResponseDataInner.md +++ /dev/null @@ -1,60 +0,0 @@ -# GetPendingTransactionsResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**property_id** | **str** | Property ID | [optional] -**reservation_id** | **str** | Reservation ID | [optional] -**sub_reservation_id** | **str** | Sub Reservation ID | [optional] -**house_account_id** | **str** | House Account ID | [optional] -**house_account_name** | **str** | House Account Name | [optional] -**guest_id** | **str** | Guest ID | [optional] -**property_name** | **str** | Property Name | [optional] -**transaction_date_time** | **datetime** | DateTime that the transaction was stored | [optional] -**transaction_date_time_utc** | **datetime** | DateTime that the transaction was stored, in UTC timezone | [optional] -**transaction_modified_date_time** | **datetime** | DateTime that the transaction was last modified | [optional] -**transaction_modified_date_time_utc** | **datetime** | DateTime that the transaction was last modified, in UTC timezone | [optional] -**guest_check_in** | **date** | Reservation Check-in date | [optional] -**guest_check_out** | **date** | Reservation Check-out date | [optional] -**room_type_id** | **str** | ID of the room type | [optional] -**room_type_name** | **str** | Name of the room type | [optional] -**room_name** | **str** | Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room. | [optional] -**guest_name** | **str** | Name of the first guest of the reservation | [optional] -**description** | **str** | Description of the transaction | [optional] -**category** | **str** | Category of the transaction | [optional] -**transaction_code** | **str** | Transaction identifier that can be used, or left blank | [optional] -**notes** | **str** | If any special information needs to be added to the transaction, it will be in this field | [optional] -**quantity** | **int** | | [optional] -**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] -**currency** | **str** | Currency of the transaction | [optional] -**user_name** | **str** | User responsible for creating the transaction | [optional] -**transaction_type** | **str** | Consolidated transaction type | [optional] -**transaction_category** | **str** | Transaction category | [optional] -**item_category_name** | **str** | Item category name | [optional] -**transaction_id** | **str** | Transaction identifier | [optional] -**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] -**card_type** | **str** | Abbreviated name of credit card type | [optional] -**is_deleted** | **bool** | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPendingTransactionsResponseDataInner from a JSON string -get_pending_transactions_response_data_inner_instance = GetPendingTransactionsResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetPendingTransactionsResponseDataInner.to_json()) - -# convert the object into a dict -get_pending_transactions_response_data_inner_dict = get_pending_transactions_response_data_inner_instance.to_dict() -# create an instance of GetPendingTransactionsResponseDataInner from a dict -get_pending_transactions_response_data_inner_from_dict = GetPendingTransactionsResponseDataInner.from_dict(get_pending_transactions_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md deleted file mode 100644 index 20008d5..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetReservationArrivalsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetReservationArrivalsResponseDataInner]**](GetReservationArrivalsResponseDataInner.md) | Details for the arrivals scheduled for today | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationArrivalsResponse from a JSON string -get_reservation_arrivals_response_instance = GetReservationArrivalsResponse.from_json(json) -# print the JSON string representation of the object -print(GetReservationArrivalsResponse.to_json()) - -# convert the object into a dict -get_reservation_arrivals_response_dict = get_reservation_arrivals_response_instance.to_dict() -# create an instance of GetReservationArrivalsResponse from a dict -get_reservation_arrivals_response_from_dict = GetReservationArrivalsResponse.from_dict(get_reservation_arrivals_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md deleted file mode 100644 index 7c1149b..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationArrivalsResponseDataInner.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetReservationArrivalsResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**guest_id** | **str** | Guest ID | [optional] -**guest_name** | **str** | Guest Name | [optional] -**room_id** | **str** | Room ID where the guest is assigned | [optional] -**balance** | **float** | Balance owed at the time | [optional] -**reservation_id** | **str** | Reservation identifier, used for all query operations | [optional] -**sub_reservation_id** | **str** | Unique Room-Reservation identifier | [optional] -**estimated_arrival_time** | **str** | Estimated arrival time, 24-hour format. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationArrivalsResponseDataInner from a JSON string -get_reservation_arrivals_response_data_inner_instance = GetReservationArrivalsResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationArrivalsResponseDataInner.to_json()) - -# convert the object into a dict -get_reservation_arrivals_response_data_inner_dict = get_reservation_arrivals_response_data_inner_instance.to_dict() -# create an instance of GetReservationArrivalsResponseDataInner from a dict -get_reservation_arrivals_response_data_inner_from_dict = GetReservationArrivalsResponseDataInner.from_dict(get_reservation_arrivals_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md deleted file mode 100644 index bc83111..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetReservationDeparturesResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetReservationDeparturesResponseDataInner]**](GetReservationDeparturesResponseDataInner.md) | Details for the arrivals scheduled for today | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationDeparturesResponse from a JSON string -get_reservation_departures_response_instance = GetReservationDeparturesResponse.from_json(json) -# print the JSON string representation of the object -print(GetReservationDeparturesResponse.to_json()) - -# convert the object into a dict -get_reservation_departures_response_dict = get_reservation_departures_response_instance.to_dict() -# create an instance of GetReservationDeparturesResponse from a dict -get_reservation_departures_response_from_dict = GetReservationDeparturesResponse.from_dict(get_reservation_departures_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md deleted file mode 100644 index 9e42256..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationDeparturesResponseDataInner.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetReservationDeparturesResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**guest_name** | **str** | Main Guest Name | [optional] -**guest_id** | **str** | Guest ID, can be used to get the corresponding guest details from \"reservationDetails\". | [optional] -**balance** | **float** | Balance owed at the time | [optional] -**reservation_id** | **str** | Reservation identifier, used for all query operations | [optional] -**reservation_details** | **List[object]** | Reservation details, please check response from \"getReservation\" method | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationDeparturesResponseDataInner from a JSON string -get_reservation_departures_response_data_inner_instance = GetReservationDeparturesResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationDeparturesResponseDataInner.to_json()) - -# convert the object into a dict -get_reservation_departures_response_data_inner_dict = get_reservation_departures_response_data_inner_instance.to_dict() -# create an instance of GetReservationDeparturesResponseDataInner from a dict -get_reservation_departures_response_data_inner_from_dict = GetReservationDeparturesResponseDataInner.from_dict(get_reservation_departures_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md deleted file mode 100644 index 0a3efdf..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetReservationInHouseResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetReservationInHouseResponseDataInner]**](GetReservationInHouseResponseDataInner.md) | Details for the arrivals scheduled for today | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInHouseResponse from a JSON string -get_reservation_in_house_response_instance = GetReservationInHouseResponse.from_json(json) -# print the JSON string representation of the object -print(GetReservationInHouseResponse.to_json()) - -# convert the object into a dict -get_reservation_in_house_response_dict = get_reservation_in_house_response_instance.to_dict() -# create an instance of GetReservationInHouseResponse from a dict -get_reservation_in_house_response_from_dict = GetReservationInHouseResponse.from_dict(get_reservation_in_house_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md deleted file mode 100644 index 5d8d095..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInHouseResponseDataInner.md +++ /dev/null @@ -1,54 +0,0 @@ -# GetReservationInHouseResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**guest_id** | **str** | Guest identifier | [optional] -**guest_name** | **str** | Guest Name | [optional] -**main_guest_id** | **str** | Guest identifier who made reservation | [optional] -**main_guest_name** | **str** | Guest Name who made reservation | [optional] -**balance** | **float** | Balance owed at the time | [optional] -**reservation_id** | **str** | Reservation identifier, used for all query operations | [optional] -**room_check_out** | **date** | Check-out date for the room | [optional] -**reservation_custom_fields** | **List[object]** | Reservation Custom Fields, if existent | [optional] -**room_id** | **str** | ¹ Room identifier | [optional] -**room_name** | **str** | ¹ Room name | [optional] -**guest_first_name** | **str** | Guest's First Name | [optional] -**guest_last_name** | **str** | Guest's Last Name | [optional] -**guest_phone** | **str** | Guest's Phone | [optional] -**guest_address1** | **str** | Guest's Address (line 1) | [optional] -**guest_address2** | **str** | Guest's Address (line 2) | [optional] -**guest_city** | **str** | Guest's Address City | [optional] -**guest_state** | **str** | Guest's Address State | [optional] -**guest_country** | **str** | Guest's Address Country | [optional] -**guest_zip** | **str** | Guest's Address Zip code | [optional] -**guest_birth_date** | **date** | Guest's BirthDate | [optional] -**guest_document_type** | **str** | Guest's Document Type | [optional] -**guest_document_number** | **str** | Guest's Document Number | [optional] -**guest_document_issue_date** | **date** | Guest's Document Issue Date | [optional] -**guest_document_issuing_country** | **str** | Guest's Document Issuing Country | [optional] -**guest_document_expiration_date** | **date** | Guest's Document Expiration Date | [optional] -**guest_custom_fields** | **List[object]** | Guest's Custom Fields, if any | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInHouseResponseDataInner from a JSON string -get_reservation_in_house_response_data_inner_instance = GetReservationInHouseResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInHouseResponseDataInner.to_json()) - -# convert the object into a dict -get_reservation_in_house_response_data_inner_dict = get_reservation_in_house_response_data_inner_instance.to_dict() -# create an instance of GetReservationInHouseResponseDataInner from a dict -get_reservation_in_house_response_data_inner_from_dict = GetReservationInHouseResponseDataInner.from_dict(get_reservation_in_house_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md deleted file mode 100644 index 56663e7..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetReservationInvoiceInformationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetReservationInvoiceInformationResponseDataInner]**](GetReservationInvoiceInformationResponseDataInner.md) | Details for the rooms assigned on the selected date | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponse from a JSON string -get_reservation_invoice_information_response_instance = GetReservationInvoiceInformationResponse.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponse.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_dict = get_reservation_invoice_information_response_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponse from a dict -get_reservation_invoice_information_response_from_dict = GetReservationInvoiceInformationResponse.from_dict(get_reservation_invoice_information_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md deleted file mode 100644 index 92426c4..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInner.md +++ /dev/null @@ -1,48 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **str** | Reservation status<br /> 'not_confirmed' - Reservation is pending confirmation<br /> 'confirmed' - Reservation is confirmed<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] -**custom_fields** | [**List[GetReservationResponseDataGuestListValueCustomFieldsInner]**](GetReservationResponseDataGuestListValueCustomFieldsInner.md) | Custom Fields related to the reservation | [optional] -**main_guest_details** | [**List[GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner]**](GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md) | Details for the main guest of the reservation | [optional] -**reservation_rooms** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md) | Booked rooms information | [optional] -**reservation_rooms_total** | **float** | Total rates for all rooms | [optional] -**reservation_adjustments** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md) | Adjustments applied to the reservation | [optional] -**reservation_adjustments_total** | **float** | Total sum of adjustments | [optional] -**reservation_payments** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md) | Payments made for this reservation | [optional] -**reservation_additional_products** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md) | Additional items (products or services) | [optional] -**reservation_additional_products_total** | **float** | Total sum for additional items | [optional] -**reservation_add_on_products** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner]**](GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md) | Addons | [optional] -**reservation_add_on_products_total** | **float** | Total sum for addons | [optional] -**reservation_taxes** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]**](GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) | Taxes | [optional] -**reservation_taxes_total** | **float** | Total sum for taxes | [optional] -**reservation_fees** | [**List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]**](GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md) | Fees | [optional] -**reservation_fees_total** | **float** | Total sum for fees | [optional] -**balance** | **float** | Balance currently owed | [optional] -**balance_detailed** | [**List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]**](GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md) | Reservation balance detailed with the information available on PC app, describing the financial items calculated | [optional] -**reservation_origin** | **str** | Reservation Origin | [optional] -**reservation_meal_plans** | **str** | Reservation Meal Plans | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInner from a JSON string -get_reservation_invoice_information_response_data_inner_instance = GetReservationInvoiceInformationResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_dict = get_reservation_invoice_information_response_data_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInner from a dict -get_reservation_invoice_information_response_data_inner_from_dict = GetReservationInvoiceInformationResponseDataInner.from_dict(get_reservation_invoice_information_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md deleted file mode 100644 index 50c417b..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.md +++ /dev/null @@ -1,36 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**suggested_deposit** | **str** | Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid | [optional] -**sub_total** | **float** | Sum of the room prices on the reservation | [optional] -**additional_items** | **float** | Sum of the additional items recorded on the reservation | [optional] -**taxes_fees** | **float** | Sum of taxes and fees on the reservation | [optional] -**grand_total** | **float** | Sum of sub.Total + additionalItems + taxesFees | [optional] -**paid** | **float** | Amount paid (reservation deposit + any other extra payment) | [optional] -**original_currency_code** | **str** | The currency the booking was originally made in. Included only if different from property currency | [optional] -**original_currency_rate** | **float** | The currency conversion rate used at the time of booking. Included only if originalCurrencyCode is different from property currency. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a JSON string -get_reservation_invoice_information_response_data_inner_balance_detailed_inner_instance = GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_balance_detailed_inner_dict = get_reservation_invoice_information_response_data_inner_balance_detailed_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a dict -get_reservation_invoice_information_response_data_inner_balance_detailed_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_dict(get_reservation_invoice_information_response_data_inner_balance_detailed_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md deleted file mode 100644 index 47bb9aa..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.md +++ /dev/null @@ -1,44 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**guest_first_name** | **str** | First Name | [optional] -**guest_last_name** | **str** | Last Name | [optional] -**guest_gender** | **str** | Gender | [optional] -**guest_email** | **str** | Email Address | [optional] -**guest_phone** | **str** | Phone Number | [optional] -**guest_cell_phone** | **str** | Cell Phone Number | [optional] -**guest_address** | **str** | Adress | [optional] -**guest_address2** | **str** | Address Line 2 (Complement) | [optional] -**guest_city** | **str** | City | [optional] -**guest_country** | **str** | Country | [optional] -**tax_id** | **str** | Guest Tax Identifier Number | [optional] -**company_tax_id** | **str** | Company Tax Identifier Number | [optional] -**company_name** | **str** | Company Name | [optional] -**guest_state** | **str** | State | [optional] -**guest_zip** | **str** | Zip code | [optional] -**is_anonymyzed** | **bool** | Flag indicating the guest data was removed upon request | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a JSON string -get_reservation_invoice_information_response_data_inner_main_guest_details_inner_instance = GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_main_guest_details_inner_dict = get_reservation_invoice_information_response_data_inner_main_guest_details_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a dict -get_reservation_invoice_information_response_data_inner_main_guest_details_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.from_dict(get_reservation_invoice_information_response_data_inner_main_guest_details_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md deleted file mode 100644 index 783ee5d..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sold_product_id** | **str** | ID of the sold product | [optional] -**product_name** | **str** | Name | [optional] -**product_price** | **float** | Price | [optional] -**product_quantity** | **int** | Quantity sold | [optional] -**product_sub_total** | **float** | Gross amount | [optional] -**product_fees** | **float** | Fees charged for this addon | [optional] -**product_taxes** | **float** | Taxes charged for this addon | [optional] -**product_total** | **float** | Net amount | [optional] -**transaction_date_time** | **datetime** | Date and time of the sale | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a JSON string -get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a dict -get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md deleted file mode 100644 index f3064cf..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.md +++ /dev/null @@ -1,40 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **str** | Internal product ID | [optional] -**sold_product_id** | **str** | ID of the sold product | [optional] -**item_code** | **str** | Code of the item | [optional] -**product_name** | **str** | Name | [optional] -**product_price** | **float** | Price | [optional] -**product_quantity** | **int** | Quantity sold | [optional] -**product_sub_total** | **float** | Gross amount | [optional] -**product_fees** | **float** | Fees charged for this item | [optional] -**product_taxes** | **float** | Taxes charged for this item | [optional] -**product_total** | **float** | Net amount | [optional] -**product_note** | **float** | Product note | [optional] -**transaction_date_time** | **datetime** | Date and time of the sale | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a JSON string -get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a dict -get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md deleted file mode 100644 index 3cbc335..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adjustment_description** | **str** | Description | [optional] -**adjustment_room_name** | **str** | Room name | [optional] -**adjustment_date_time** | **datetime** | Date and time of the adjustment | [optional] -**adjustment_date_time_utc** | **datetime** | Date and time of the adjustment (UTC) | [optional] -**adjustment_amount** | **float** | Amount | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a JSON string -get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a dict -get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md deleted file mode 100644 index f7d45a1..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_type** | **str** | Type | [optional] -**payment_description** | **str** | Description | [optional] -**payment_date_time** | **datetime** | Date and time of the payment | [optional] -**payment_date_time_utc** | **datetime** | Date and time of the payment (UTC) | [optional] -**payment_amount** | **float** | Amount | [optional] -**reservation_payments_total** | **float** | Total sum of payments | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a JSON string -get_reservation_invoice_information_response_data_inner_reservation_payments_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_reservation_payments_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_payments_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a dict -get_reservation_invoice_information_response_data_inner_reservation_payments_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_payments_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md deleted file mode 100644 index fa2c4eb..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.md +++ /dev/null @@ -1,41 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**room_type_name** | **str** | Room type name | [optional] -**guest_name** | **str** | Assigned guest name | [optional] -**start_date** | **date** | Check-in date | [optional] -**end_date** | **date** | Check-out date | [optional] -**adults** | **int** | Number of adults for the room | [optional] -**children** | **int** | Number of children for the room | [optional] -**nights** | **int** | Number of nights | [optional] -**room_total** | **float** | Total rate for the room | [optional] -**room_id** | **str** | Unique ID of the room | [optional] -**room_name** | **str** | Name of the room | [optional] -**room_type_id** | **str** | ID of the room type | [optional] -**market_name** | **str** | Market segmentation name | [optional] -**market_code** | **str** | Market segmentation code | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a JSON string -get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a dict -get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_rooms_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md b/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md deleted file mode 100644 index 86b4bba..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tax_name** | **str** | Name | [optional] -**tax_amount** | **float** | Amount | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a JSON string -get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_instance = GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.to_json()) - -# convert the object into a dict -get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_dict = get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_instance.to_dict() -# create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a dict -get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_from_dict = GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_dict(get_reservation_invoice_information_response_data_inner_reservation_taxes_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md deleted file mode 100644 index bed026f..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataBalanceDetailedInner.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetReservationResponseDataBalanceDetailedInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**suggested_deposit** | **str** | Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid | [optional] -**sub_total** | **float** | Sum of the room prices on the reservation | [optional] -**additional_items** | **float** | Sum of the additional items recorded on the reservation | [optional] -**taxes_fees** | **float** | Sum of the taxes and fees calculated on the reservation | [optional] -**grand_total** | **float** | Sum of sub.Total + additionalItems + taxesFees | [optional] -**paid** | **float** | Amount paid (reservation deposit + any other extra payment) | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationResponseDataBalanceDetailedInner from a JSON string -get_reservation_response_data_balance_detailed_inner_instance = GetReservationResponseDataBalanceDetailedInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationResponseDataBalanceDetailedInner.to_json()) - -# convert the object into a dict -get_reservation_response_data_balance_detailed_inner_dict = get_reservation_response_data_balance_detailed_inner_instance.to_dict() -# create an instance of GetReservationResponseDataBalanceDetailedInner from a dict -get_reservation_response_data_balance_detailed_inner_from_dict = GetReservationResponseDataBalanceDetailedInner.from_dict(get_reservation_response_data_balance_detailed_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md b/cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md deleted file mode 100644 index 5fc201f..0000000 --- a/cloudbeds_pms_v1_3/docs/GetTransactionsResponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetTransactionsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetTransactionsResponseDataInner]**](GetTransactionsResponseDataInner.md) | Transaction list covering the date range specified | [optional] -**cloudbeds_accounting** | **bool** | if true it means the data comes from the new accounting solution | [optional] -**count** | **int** | Number of results returned, based on pagination and filter parameters | [optional] -**total** | **int** | Total count of results, based on filter parameters | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTransactionsResponse from a JSON string -get_transactions_response_instance = GetTransactionsResponse.from_json(json) -# print the JSON string representation of the object -print(GetTransactionsResponse.to_json()) - -# convert the object into a dict -get_transactions_response_dict = get_transactions_response_instance.to_dict() -# create an instance of GetTransactionsResponse from a dict -get_transactions_response_from_dict = GetTransactionsResponse.from_dict(get_transactions_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md deleted file mode 100644 index f140457..0000000 --- a/cloudbeds_pms_v1_3/docs/GetTransactionsResponseDataInner.md +++ /dev/null @@ -1,61 +0,0 @@ -# GetTransactionsResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**property_id** | **str** | Property ID | [optional] -**reservation_id** | **str** | Reservation ID | [optional] -**sub_reservation_id** | **str** | Sub Reservation ID | [optional] -**house_account_id** | **str** | House Account ID | [optional] -**house_account_name** | **str** | House Account Name | [optional] -**guest_id** | **str** | Guest ID | [optional] -**property_name** | **str** | Property Name | [optional] -**transaction_date_time** | **datetime** | DateTime that the transaction was stored | [optional] -**transaction_date_time_utc** | **datetime** | DateTime that the transaction was stored, in UTC timezone | [optional] -**transaction_modified_date_time** | **datetime** | DateTime that the transaction was last modified | [optional] -**transaction_modified_date_time_utc** | **datetime** | DateTime that the transaction was last modified, in UTC timezone | [optional] -**guest_check_in** | **date** | Reservation Check-in date | [optional] -**guest_check_out** | **date** | Reservation Check-out date | [optional] -**room_type_id** | **str** | ID of the room type | [optional] -**room_type_name** | **str** | Name of the room type | [optional] -**room_name** | **str** | Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room. | [optional] -**guest_name** | **str** | Name of the first guest of the reservation | [optional] -**description** | **str** | Description of the transaction | [optional] -**category** | **str** | Category of the transaction | [optional] -**transaction_code** | **str** | Transaction identifier that can be used, or left blank | [optional] -**notes** | **str** | If any special information needs to be added to the transaction, it will be in this field | [optional] -**quantity** | **int** | | [optional] -**amount** | **float** | Consolidated amount on the transaction (Credit - Debit) | [optional] -**currency** | **str** | Currency of the transaction | [optional] -**user_name** | **str** | User responsible for creating the transaction | [optional] -**transaction_type** | **str** | Consolidated transaction type | [optional] -**transaction_category** | **str** | Transaction category | [optional] -**item_category_name** | **str** | Item category name | [optional] -**transaction_id** | **str** | Transaction identifier | [optional] -**parent_transaction_id** | **str** | Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.<br/> Example: Parent transaction to a room rate tax is a room rate.<br/> This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds. | [optional] -**card_type** | **str** | Abbreviated name of credit card type | [optional] -**is_deleted** | **bool** | | [optional] -**service_date** | **str** | will represent the date when a product or service is delivered | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTransactionsResponseDataInner from a JSON string -get_transactions_response_data_inner_instance = GetTransactionsResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetTransactionsResponseDataInner.to_json()) - -# convert the object into a dict -get_transactions_response_data_inner_dict = get_transactions_response_data_inner_instance.to_dict() -# create an instance of GetTransactionsResponseDataInner from a dict -get_transactions_response_data_inner_from_dict = GetTransactionsResponseDataInner.from_dict(get_transactions_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GuestApi.md b/cloudbeds_pms_v1_3/docs/GuestApi.md index bb0e200..225aa8e 100644 --- a/cloudbeds_pms_v1_3/docs/GuestApi.md +++ b/cloudbeds_pms_v1_3/docs/GuestApi.md @@ -11,7 +11,6 @@ Method | HTTP request | Description [**get_guests_by_filter_get**](GuestApi.md#get_guests_by_filter_get) | **GET** /getGuestsByFilter | getGuestsByFilter [**get_guests_by_status_get**](GuestApi.md#get_guests_by_status_get) | **GET** /getGuestsByStatus | getGuestsByStatus [**get_guests_modified_get**](GuestApi.md#get_guests_modified_get) | **GET** /getGuestsModified | getGuestsModified -[**post_guest_credit_card_post**](GuestApi.md#post_guest_credit_card_post) | **POST** /postGuestCreditCard | postGuestCreditCard [**post_guest_document_post**](GuestApi.md#post_guest_document_post) | **POST** /postGuestDocument | postGuestDocument [**post_guest_note_post**](GuestApi.md#post_guest_note_post) | **POST** /postGuestNote | postGuestNote [**post_guest_photo_post**](GuestApi.md#post_guest_photo_post) | **POST** /postGuestPhoto | postGuestPhoto @@ -689,100 +688,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **post_guest_credit_card_post** -> PostGuestCreditCardResponse post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv, validate=validate) - -postGuestCreditCard - -Add a new credit card to guest file - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) - card_name = 'card_name_example' # str | Cardholder Name, as written in card (optional) - card_number = 'card_number_example' # str | Credit Card number (optional) - card_expiry_month = 56 # int | Credit Card expiration month (optional) - card_expiry_year = 56 # int | Credit Card expiration year (2 or 4 digits) (optional) - card_cvv = 'card_cvv_example' # str | Credit Card CVV code (optional) - validate = True # bool | should the card be validated? If true, the card will be validated against the payment gateway. (optional) - - try: - # postGuestCreditCard - api_response = api_instance.post_guest_credit_card_post(reservation_id=reservation_id, card_name=card_name, card_number=card_number, card_expiry_month=card_expiry_month, card_expiry_year=card_expiry_year, card_cvv=card_cvv, validate=validate) - print("The response of GuestApi->post_guest_credit_card_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling GuestApi->post_guest_credit_card_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation Unique Identifier | [optional] - **card_name** | **str**| Cardholder Name, as written in card | [optional] - **card_number** | **str**| Credit Card number | [optional] - **card_expiry_month** | **int**| Credit Card expiration month | [optional] - **card_expiry_year** | **int**| Credit Card expiration year (2 or 4 digits) | [optional] - **card_cvv** | **str**| Credit Card CVV code | [optional] - **validate** | **bool**| should the card be validated? If true, the card will be validated against the payment gateway. | [optional] - -### Return type - -[**PostGuestCreditCardResponse**](PostGuestCreditCardResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_guest_document_post** > PostGuestDocumentResponse post_guest_document_post(property_id=property_id, guest_id=guest_id, file=file) diff --git a/cloudbeds_pms_v1_3/docs/ImportApi.md b/cloudbeds_pms_v1_3/docs/ImportApi.md deleted file mode 100644 index 6720da0..0000000 --- a/cloudbeds_pms_v1_3/docs/ImportApi.md +++ /dev/null @@ -1,166 +0,0 @@ -# cloudbeds_pms_v1_3.ImportApi - -All URIs are relative to *https://api.cloudbeds.com/api/v1.3* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**import_dummy_reservations_get**](ImportApi.md#import_dummy_reservations_get) | **GET** /import/dummyReservations | GetImportDummyReservations -[**import_tours_get**](ImportApi.md#import_tours_get) | **GET** /import/tours | GetImportTours - - -# **import_dummy_reservations_get** -> GetImportDummyReservationsResponse import_dummy_reservations_get() - -GetImportDummyReservations - - - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ImportApi(api_client) - - try: - # GetImportDummyReservations - api_response = api_instance.import_dummy_reservations_get() - print("The response of ImportApi->import_dummy_reservations_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ImportApi->import_dummy_reservations_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**GetImportDummyReservationsResponse**](GetImportDummyReservationsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **import_tours_get** -> GetImportToursResponse import_tours_get() - -GetImportTours - - - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ImportApi(api_client) - - try: - # GetImportTours - api_response = api_instance.import_tours_get() - print("The response of ImportApi->import_tours_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ImportApi->import_tours_get: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**GetImportToursResponse**](GetImportToursResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/cloudbeds_pms_v1_3/docs/IntegrationApi.md b/cloudbeds_pms_v1_3/docs/IntegrationApi.md index 577f171..63fc4b3 100644 --- a/cloudbeds_pms_v1_3/docs/IntegrationApi.md +++ b/cloudbeds_pms_v1_3/docs/IntegrationApi.md @@ -9,8 +9,6 @@ Method | HTTP request | Description [**get_app_state_get**](IntegrationApi.md#get_app_state_get) | **GET** /getAppState | getAppState [**get_webhooks_get**](IntegrationApi.md#get_webhooks_get) | **GET** /getWebhooks | getWebhooks [**post_app_error_post**](IntegrationApi.md#post_app_error_post) | **POST** /postAppError | postAppError -[**post_app_settings_post**](IntegrationApi.md#post_app_settings_post) | **POST** /postAppSettings | postAppSettings -[**post_app_state_internal_post**](IntegrationApi.md#post_app_state_internal_post) | **POST** /postAppStateInternal | postAppStateInternal [**post_app_state_post**](IntegrationApi.md#post_app_state_post) | **POST** /postAppState | postAppState [**post_government_receipt_post**](IntegrationApi.md#post_government_receipt_post) | **POST** /postGovernmentReceipt | postGovernmentReceipt [**post_webhook_post**](IntegrationApi.md#post_webhook_post) | **POST** /postWebhook | postWebhook @@ -25,6 +23,8 @@ Remove subscription for webhook. Read the [Webhooks guide](https://integrations. ### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -38,6 +38,18 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: @@ -71,7 +83,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers @@ -95,6 +107,8 @@ Get the current app settings for a property.
### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -108,6 +122,18 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: @@ -139,7 +165,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers @@ -155,14 +181,16 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_app_state_get** -> GetAppStateResponse get_app_state_get(property_id=property_id, client_id=client_id) +> GetAppStateResponse get_app_state_get(property_id=property_id) getAppState -Get the current app integration state for a property.
This call is only available for internal usage. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. +Get the current app integration state for a property.
This call is only available for third-party integration partners, and not for property client IDs. Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. ### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -176,17 +204,28 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) property_id = 'property_id_example' # str | Property identifier to be queried (optional) - client_id = 'client_id_example' # str | Client identifier (optional) try: # getAppState - api_response = api_instance.get_app_state_get(property_id=property_id, client_id=client_id) + api_response = api_instance.get_app_state_get(property_id=property_id) print("The response of IntegrationApi->get_app_state_get:\n") pprint(api_response) except Exception as e: @@ -201,7 +240,6 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property identifier to be queried | [optional] - **client_id** | **str**| Client identifier | [optional] ### Return type @@ -209,7 +247,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers @@ -233,6 +271,8 @@ List webhooks for which the API client is subscribed to. ### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -246,6 +286,18 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: @@ -277,7 +329,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers @@ -390,149 +442,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **post_app_settings_post** -> PostAppSettingsResponse post_app_settings_post(property_id=property_id, settings=settings) - -postAppSettings - -Update the current app settings for a property.
- -### Example - - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner -from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) - property_id = 'property_id_example' # str | Property identifier to be queried (optional) - settings = [cloudbeds_pms_v1_3.PostAppSettingsRequestSettingsInner()] # List[PostAppSettingsRequestSettingsInner] | An array of setings (optional) - - try: - # postAppSettings - api_response = api_instance.post_app_settings_post(property_id=property_id, settings=settings) - print("The response of IntegrationApi->post_app_settings_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling IntegrationApi->post_app_settings_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property identifier to be queried | [optional] - **settings** | [**List[PostAppSettingsRequestSettingsInner]**](PostAppSettingsRequestSettingsInner.md)| An array of setings | [optional] - -### Return type - -[**PostAppSettingsResponse**](PostAppSettingsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_app_state_internal_post** -> PostAppStateInternalResponse post_app_state_internal_post(property_id=property_id, client_id=client_id, app_state=app_state) - -postAppStateInternal - -Update app integration state for a property ID.
This call is only available for internal usage.
If an app is set to 'disabled', it will remove all active sessions Read the [Connecting/Disconnecting Apps guide](https://integrations.cloudbeds.com/hc/en-us/articles/360007613213-Connecting-Disconnecting-Apps) to further understand the use cases. - -### Example - - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.IntegrationApi(api_client) - property_id = 'property_id_example' # str | Property identifier to be updated (optional) - client_id = 'client_id_example' # str | Client identifier (optional) - app_state = 'app_state_example' # str | Current integration state between third-party and property. (optional) - - try: - # postAppStateInternal - api_response = api_instance.post_app_state_internal_post(property_id=property_id, client_id=client_id, app_state=app_state) - print("The response of IntegrationApi->post_app_state_internal_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling IntegrationApi->post_app_state_internal_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property identifier to be updated | [optional] - **client_id** | **str**| Client identifier | [optional] - **app_state** | **str**| Current integration state between third-party and property. | [optional] - -### Return type - -[**PostAppStateInternalResponse**](PostAppStateInternalResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_app_state_post** > PostAppStateResponse post_app_state_post(property_id=property_id, app_state=app_state) @@ -542,6 +451,8 @@ Update app integration state for a property ID.
This call is only availab ### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -555,6 +466,18 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: @@ -588,7 +511,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers @@ -612,6 +535,8 @@ Add a Government Receipt to a Reservation or House Account ### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -625,6 +550,18 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: @@ -670,7 +607,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers @@ -694,6 +631,8 @@ Subscribe a webhook for a specified event. Read the [Webhooks guide](https://int ### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -707,6 +646,18 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: @@ -744,7 +695,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers diff --git a/cloudbeds_pms_v1_3/docs/InvoicesApi.md b/cloudbeds_pms_v1_3/docs/InvoicesApi.md deleted file mode 100644 index 921ebfc..0000000 --- a/cloudbeds_pms_v1_3/docs/InvoicesApi.md +++ /dev/null @@ -1,267 +0,0 @@ -# cloudbeds_pms_v1_3.InvoicesApi - -All URIs are relative to *https://api.cloudbeds.com/api/v1.3* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_invoice_get**](InvoicesApi.md#get_invoice_get) | **GET** /getInvoice | getInvoice -[**invoice_get**](InvoicesApi.md#invoice_get) | **GET** /invoice | invoice -[**patch_invoice_post**](InvoicesApi.md#patch_invoice_post) | **POST** /patchInvoice | patchInvoice - - -# **get_invoice_get** -> GetInvoiceResponse get_invoice_get(invoice_id, property_id=property_id) - -getInvoice - -Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.InvoicesApi(api_client) - invoice_id = 'invoice_id_example' # str | Invoice ID - property_id = 'property_id_example' # str | Property ID (optional) - - try: - # getInvoice - api_response = api_instance.get_invoice_get(invoice_id, property_id=property_id) - print("The response of InvoicesApi->get_invoice_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling InvoicesApi->get_invoice_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **invoice_id** | **str**| Invoice ID | - **property_id** | **str**| Property ID | [optional] - -### Return type - -[**GetInvoiceResponse**](GetInvoiceResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **invoice_get** -> GetInvoiceResponse invoice_get(property_id=property_id, invoice_id=invoice_id) - -invoice - -Returns invoice data. This call is only available for third-party integration partners, and not for property client IDs. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.InvoicesApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - invoice_id = 'invoice_id_example' # str | Invoice ID (optional) - - try: - # invoice - api_response = api_instance.invoice_get(property_id=property_id, invoice_id=invoice_id) - print("The response of InvoicesApi->invoice_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling InvoicesApi->invoice_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **invoice_id** | **str**| Invoice ID | [optional] - -### Return type - -[**GetInvoiceResponse**](GetInvoiceResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **patch_invoice_post** -> PostPatchInvoiceResponse patch_invoice_post(property_id=property_id, invoice_id=invoice_id, status=status, file=file) - -patchInvoice - -Update invoice state. This call is only available for third-party integration partners, and not for property client IDs. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.InvoicesApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - invoice_id = 'invoice_id_example' # str | Invoice unique ID (optional) - status = 'status_example' # str | Desired new invoice status (optional) - file = None # bytearray | Form-based Credit Notes PDF File.
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 10MB
Not required for `failed` status (optional) - - try: - # patchInvoice - api_response = api_instance.patch_invoice_post(property_id=property_id, invoice_id=invoice_id, status=status, file=file) - print("The response of InvoicesApi->patch_invoice_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling InvoicesApi->patch_invoice_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **invoice_id** | **str**| Invoice unique ID | [optional] - **status** | **str**| Desired new invoice status | [optional] - **file** | **bytearray**| Form-based Credit Notes PDF File.<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 10MB<br/> <i>Not required for `failed` status</i> | [optional] - -### Return type - -[**PostPatchInvoiceResponse**](PostPatchInvoiceResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/cloudbeds_pms_v1_3/docs/ItemApi.md b/cloudbeds_pms_v1_3/docs/ItemApi.md index 52e86fd..3fd508c 100644 --- a/cloudbeds_pms_v1_3/docs/ItemApi.md +++ b/cloudbeds_pms_v1_3/docs/ItemApi.md @@ -5,14 +5,12 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- [**append_custom_item_post**](ItemApi.md#append_custom_item_post) | **POST** /appendCustomItem | appendCustomItem -[**delete_item_from_reservation_delete**](ItemApi.md#delete_item_from_reservation_delete) | **DELETE** /deleteItemFromReservation | deleteItemFromReservation [**get_item_categories_get**](ItemApi.md#get_item_categories_get) | **GET** /getItemCategories | getItemCategories [**get_item_get**](ItemApi.md#get_item_get) | **GET** /getItem | getItem [**get_items_get**](ItemApi.md#get_items_get) | **GET** /getItems | getItems [**post_custom_item_post**](ItemApi.md#post_custom_item_post) | **POST** /postCustomItem | postCustomItem [**post_item_category_post**](ItemApi.md#post_item_category_post) | **POST** /postItemCategory | postItemCategory [**post_item_post**](ItemApi.md#post_item_post) | **POST** /postItem | postItem -[**post_item_to_reservation_post**](ItemApi.md#post_item_to_reservation_post) | **POST** /postItemToReservation | postItemToReservation [**post_items_to_inventory_post**](ItemApi.md#post_items_to_inventory_post) | **POST** /postItemsToInventory | postItemsToInventory [**post_void_item_post**](ItemApi.md#post_void_item_post) | **POST** /postVoidItem | postVoidItem [**put_item_to_inventory_put**](ItemApi.md#put_item_to_inventory_put) | **PUT** /putItemToInventory | putItemToInventory @@ -122,90 +120,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_item_from_reservation_delete** -> DeleteItemFromReservationResponse delete_item_from_reservation_delete(reservation_id, sold_product_id) - -deleteItemFromReservation - -Deletes the itemID transaction from the specified reservationID. If payments were sent in calls [postItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postItem) or [postCustomItem](https://api.cloudbeds.com/api/v1.1/docs/#api-Item-postCustomItem), they will be deleted too. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation identifier - sold_product_id = 'sold_product_id_example' # str | Item identifier - - try: - # deleteItemFromReservation - api_response = api_instance.delete_item_from_reservation_delete(reservation_id, sold_product_id) - print("The response of ItemApi->delete_item_from_reservation_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ItemApi->delete_item_from_reservation_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation identifier | - **sold_product_id** | **str**| Item identifier | - -### Return type - -[**DeleteItemFromReservationResponse**](DeleteItemFromReservationResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_item_categories_get** > GetItemCategoriesResponse get_item_categories_get(property_id=property_id) @@ -668,8 +582,8 @@ Adds an item either to a reservation or to a house account. ```python import cloudbeds_pms_v1_3 +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse -from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint @@ -707,7 +621,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: item_note = 'item_note_example' # str | Item note (optional) item_paid = False # bool | If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. (optional) (default to False) sale_date = '2013-10-20T19:20:30+01:00' # datetime | posting date (optional) - payments = [cloudbeds_pms_v1_3.PostItemToReservationRequestPaymentsInner()] # List[PostItemToReservationRequestPaymentsInner] | list of payments If the item is already paid (optional) + payments = [cloudbeds_pms_v1_3.PostItemRequestPaymentsInner()] # List[PostItemRequestPaymentsInner] | list of payments If the item is already paid (optional) try: # postItem @@ -736,7 +650,7 @@ Name | Type | Description | Notes **item_note** | **str**| Item note | [optional] **item_paid** | **bool**| If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. | [optional] [default to False] **sale_date** | **datetime**| posting date | [optional] - **payments** | [**List[PostItemToReservationRequestPaymentsInner]**](PostItemToReservationRequestPaymentsInner.md)| list of payments If the item is already paid | [optional] + **payments** | [**List[PostItemRequestPaymentsInner]**](PostItemRequestPaymentsInner.md)| list of payments If the item is already paid | [optional] ### Return type @@ -759,105 +673,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **post_item_to_reservation_post** -> PostItemToReservationResponse post_item_to_reservation_post(property_id=property_id, reservation_id=reservation_id, item_id=item_id, item_quantity=item_quantity, item_price=item_price, item_note=item_note, item_paid=item_paid, sale_date=sale_date, payments=payments) - -postItemToReservation - -Adds an item to a reservation. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ItemApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) - item_id = 'item_id_example' # str | Item identifier (optional) - item_quantity = 56 # int | Items quantity (optional) - item_price = 'item_price_example' # str | Item price, if not sent, items registered price will be used (optional) - item_note = 'item_note_example' # str | Item note (optional) - item_paid = False # bool | If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. (optional) (default to False) - sale_date = '2013-10-20' # date | posting date (optional) - payments = [cloudbeds_pms_v1_3.PostItemToReservationRequestPaymentsInner()] # List[PostItemToReservationRequestPaymentsInner] | list of payments If the item is already paid (optional) - - try: - # postItemToReservation - api_response = api_instance.post_item_to_reservation_post(property_id=property_id, reservation_id=reservation_id, item_id=item_id, item_quantity=item_quantity, item_price=item_price, item_note=item_note, item_paid=item_paid, sale_date=sale_date, payments=payments) - print("The response of ItemApi->post_item_to_reservation_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ItemApi->post_item_to_reservation_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **reservation_id** | **str**| Reservation identifier | [optional] - **item_id** | **str**| Item identifier | [optional] - **item_quantity** | **int**| Items quantity | [optional] - **item_price** | **str**| Item price, if not sent, items registered price will be used | [optional] - **item_note** | **str**| Item note | [optional] - **item_paid** | **bool**| If the item is already paid. Note: If set to true, a payment in cash will be registered for the total value of the item, taxes and fees. If this is not the expected behavior, set to false, and register the operation manually. If payments is set, itemPaid is ignored. | [optional] [default to False] - **sale_date** | **date**| posting date | [optional] - **payments** | [**List[PostItemToReservationRequestPaymentsInner]**](PostItemToReservationRequestPaymentsInner.md)| list of payments If the item is already paid | [optional] - -### Return type - -[**PostItemToReservationResponse**](PostItemToReservationResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_items_to_inventory_post** > PostItemsToInventoryResponse post_items_to_inventory_post(item=item) diff --git a/cloudbeds_pms_v1_3/docs/PaymentApi.md b/cloudbeds_pms_v1_3/docs/PaymentApi.md index 9b40973..4752246 100644 --- a/cloudbeds_pms_v1_3/docs/PaymentApi.md +++ b/cloudbeds_pms_v1_3/docs/PaymentApi.md @@ -6,13 +6,9 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**get_payment_methods_get**](PaymentApi.md#get_payment_methods_get) | **GET** /getPaymentMethods | getPaymentMethods [**get_payments_capabilities_get**](PaymentApi.md#get_payments_capabilities_get) | **GET** /getPaymentsCapabilities | getPaymentsCapabilities -[**get_payments_get**](PaymentApi.md#get_payments_get) | **GET** /getPayments | getPayments -[**get_pending_transactions_get**](PaymentApi.md#get_pending_transactions_get) | **GET** /getPendingTransactions | getPendingTransactions [**post_charge_post**](PaymentApi.md#post_charge_post) | **POST** /postCharge | postCharge [**post_credit_card_post**](PaymentApi.md#post_credit_card_post) | **POST** /postCreditCard | postCreditCard [**post_custom_payment_method_post**](PaymentApi.md#post_custom_payment_method_post) | **POST** /postCustomPaymentMethod | postCustomPaymentMethod -[**post_payment_cash_post**](PaymentApi.md#post_payment_cash_post) | **POST** /postPaymentCash | postPaymentCash -[**post_payment_credit_card_post**](PaymentApi.md#post_payment_credit_card_post) | **POST** /postPaymentCreditCard | postPaymentCreditCard [**post_payment_post**](PaymentApi.md#post_payment_post) | **POST** /postPayment | postPayment [**post_void_payment_post**](PaymentApi.md#post_void_payment_post) | **POST** /postVoidPayment | postVoidPayment @@ -183,226 +179,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_payments_get** -> GetPaymentsResponse get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) - -getPayments - -Get a list of transactions for a reservation/house account/guest, with its respective payment allocation
¹ one of these fields are required ² only if data.isAllocated = true (and includePaymentAllocation = true) - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) - reservation_id = 'reservation_id_example' # str | ¹ ID for the reservation to be queried. - house_account_id = 'house_account_id_example' # str | ¹ ID for the house account to be queried. - guest_id = 'guest_id_example' # str | ¹ ID for the guest to be queried. - property_id = 'property_id_example' # str | Property ID (optional) - created_from = '2013-10-20T19:20:30+01:00' # datetime | Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. (optional) - created_to = '2013-10-20T19:20:30+01:00' # datetime | Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. (optional) - include_payment_allocation = False # bool | Adds payment allocation to response, when available. (optional) (default to False) - page_number = 1 # int | Page number (optional) (default to 1) - page_size = 100 # int | Page size (optional) (default to 100) - - try: - # getPayments - api_response = api_instance.get_payments_get(reservation_id, house_account_id, guest_id, property_id=property_id, created_from=created_from, created_to=created_to, include_payment_allocation=include_payment_allocation, page_number=page_number, page_size=page_size) - print("The response of PaymentApi->get_payments_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->get_payments_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| ¹ ID for the reservation to be queried. | - **house_account_id** | **str**| ¹ ID for the house account to be queried. | - **guest_id** | **str**| ¹ ID for the guest to be queried. | - **property_id** | **str**| Property ID | [optional] - **created_from** | **datetime**| Datetime (lower limit) to be queried. If not sent, and reservationID informed, will use reservation date. In other cases, current date -7 days is used. | [optional] - **created_to** | **datetime**| Datetime (upper limit) to be queried. If not sent, and reservationID informed, will use check-out date. In other cases, current date is used. | [optional] - **include_payment_allocation** | **bool**| Adds payment allocation to response, when available. | [optional] [default to False] - **page_number** | **int**| Page number | [optional] [default to 1] - **page_size** | **int**| Page size | [optional] [default to 100] - -### Return type - -[**GetPaymentsResponse**](GetPaymentsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_pending_transactions_get** -> GetPendingTransactionsResponse get_pending_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) - -getPendingTransactions - -Get a list of pending transactions for a property, or list of properties, for the date range specified. If no date range or reservation is specified, it will return the transactions for the last 7 days, unless stated otherwise.
Please note that some reservations modification may not be reflected in this timestamp. ### Group account support - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) - property_id = 'property_id_example' # str | ID for the properties to be queried (comma-separated, i.e. 37,345,89).
It can be omitted if the API key is single-property, or to get results from all properties on an association. (optional) - include_debit = True # bool | If the response should include debit transactions (optional) (default to True) - include_credit = True # bool | If the response should include credit transactions (optional) (default to True) - include_deleted = False # bool | If the response should include deleted transactions (optional) (default to False) - include_children = False # bool | If the response should include children transactions (requires the parameter transactionIDs) (optional) (default to False) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. (optional) - sub_reservation_id = 'sub_reservation_id_example' # str | Sub Reservation Identifier, used to filter transactions result (optional) - room_id = 'room_id_example' # str | Room ID, used to filter transactions result (optional) - guest_id = 'guest_id_example' # str | Guest ID, used to filter transactions result (optional) - house_account_id = 'house_account_id_example' # str | House Account ID, used to filter transactions result (optional) - transaction_ids = 'transaction_ids_example' # str | List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. (optional) - results_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (posted transaction date) (optional) - results_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (posted transaction date) (optional) - modified_from = '2013-10-20' # date | Inferior limit date, used to filter transactions result (optional) - modified_to = '2013-10-20' # date | Superior limit date, used to filter transactions result (optional) - created_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. (optional) - created_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. (optional) - page_number = 1 # int | Results page number (optional) (default to 1) - page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) - sort_by = 'sort_by_example' # str | Sort response results by field (optional) - order_by = desc # str | Order response in DESCending or ASCending order, used together with sortBy (optional) (default to desc) - - try: - # getPendingTransactions - api_response = api_instance.get_pending_transactions_get(property_id=property_id, include_debit=include_debit, include_credit=include_credit, include_deleted=include_deleted, include_children=include_children, reservation_id=reservation_id, sub_reservation_id=sub_reservation_id, room_id=room_id, guest_id=guest_id, house_account_id=house_account_id, transaction_ids=transaction_ids, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, created_from=created_from, created_to=created_to, page_number=page_number, page_size=page_size, sort_by=sort_by, order_by=order_by) - print("The response of PaymentApi->get_pending_transactions_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->get_pending_transactions_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| ID for the properties to be queried (comma-separated, i.e. 37,345,89).<br /> It can be omitted if the API key is single-property, or to get results from all properties on an association. | [optional] - **include_debit** | **bool**| If the response should include debit transactions | [optional] [default to True] - **include_credit** | **bool**| If the response should include credit transactions | [optional] [default to True] - **include_deleted** | **bool**| If the response should include deleted transactions | [optional] [default to False] - **include_children** | **bool**| If the response should include children transactions (requires the parameter transactionIDs) | [optional] [default to False] - **reservation_id** | **str**| Reservation Unique Identifier, used to filter transactions result If reservationID is informed, and dates are not, all transactions with the reservationID will be returned. | [optional] - **sub_reservation_id** | **str**| Sub Reservation Identifier, used to filter transactions result | [optional] - **room_id** | **str**| Room ID, used to filter transactions result | [optional] - **guest_id** | **str**| Guest ID, used to filter transactions result | [optional] - **house_account_id** | **str**| House Account ID, used to filter transactions result | [optional] - **transaction_ids** | **str**| List of transaction IDs to be returned, comma-separated, i.e. 37,345,89. | [optional] - **results_from** | **date**| Inferior limit date, used to filter transactions result (posted transaction date) | [optional] - **results_to** | **date**| Superior limit date, used to filter transactions result (posted transaction date) | [optional] - **modified_from** | **date**| Inferior limit date, used to filter transactions result | [optional] - **modified_to** | **date**| Superior limit date, used to filter transactions result | [optional] - **created_from** | **datetime**| Inferior limit datetime, used to filter transactions result (creation date of the transaction). If informed, all other dates are ignored (except createdTo). If createdFrom is informed, but createdTo is not, the call will return all results since this datetime. Necessary only if createdTo is sent. If time portion not given, assumes 00:00:00. | [optional] - **created_to** | **datetime**| Superior limit datetime, used to filter transactions result (creation date of the transaction). If informed (together with createdFrom), all other dates are ignored. If time portion not given, assumes 23:59:59. | [optional] - **page_number** | **int**| Results page number | [optional] [default to 1] - **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] - **sort_by** | **str**| Sort response results by field | [optional] - **order_by** | **str**| Order response in DESCending or ASCending order, used together with sortBy | [optional] [default to desc] - -### Return type - -[**GetPendingTransactionsResponse**](GetPendingTransactionsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_charge_post** > PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) @@ -681,176 +457,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **post_payment_cash_post** -> PostPaymentCashResponse post_payment_cash_post(reservation_id=reservation_id, amount=amount) - -postPaymentCash - -Add a payment done by cash to a specified reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) - amount = 3.4 # float | Amount paid on this payment (optional) - - try: - # postPaymentCash - api_response = api_instance.post_payment_cash_post(reservation_id=reservation_id, amount=amount) - print("The response of PaymentApi->post_payment_cash_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->post_payment_cash_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation identifier | [optional] - **amount** | **float**| Amount paid on this payment | [optional] - -### Return type - -[**PostPaymentCashResponse**](PostPaymentCashResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_payment_credit_card_post** -> PostPaymentCreditCardResponse post_payment_credit_card_post(reservation_id=reservation_id, amount=amount, card_id=card_id) - -postPaymentCreditCard - -Add a payment done by credit card to a specified reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.PaymentApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) - amount = 3.4 # float | Amount paid on this payment (optional) - card_id = 'card_id_example' # str | Credit Card ID used on payment. Can be retrieved with reservation information (optional) - - try: - # postPaymentCreditCard - api_response = api_instance.post_payment_credit_card_post(reservation_id=reservation_id, amount=amount, card_id=card_id) - print("The response of PaymentApi->post_payment_credit_card_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PaymentApi->post_payment_credit_card_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation identifier | [optional] - **amount** | **float**| Amount paid on this payment | [optional] - **card_id** | **str**| Credit Card ID used on payment. Can be retrieved with reservation information | [optional] - -### Return type - -[**PostPaymentCreditCardResponse**](PostPaymentCreditCardResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_payment_post** > PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) diff --git a/cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md b/cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md deleted file mode 100644 index 9f028ae..0000000 --- a/cloudbeds_pms_v1_3/docs/PostAccessTokenCheckResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# PostAccessTokenCheckResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **str** | True if the access_token is valid. False otherwise. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostAccessTokenCheckResponse from a JSON string -post_access_token_check_response_instance = PostAccessTokenCheckResponse.from_json(json) -# print the JSON string representation of the object -print(PostAccessTokenCheckResponse.to_json()) - -# convert the object into a dict -post_access_token_check_response_dict = post_access_token_check_response_instance.to_dict() -# create an instance of PostAccessTokenCheckResponse from a dict -post_access_token_check_response_from_dict = PostAccessTokenCheckResponse.from_dict(post_access_token_check_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md b/cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md deleted file mode 100644 index 147150b..0000000 --- a/cloudbeds_pms_v1_3/docs/PostAppSettingsRequestSettingsInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostAppSettingsRequestSettingsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | A name of a setting option | [optional] -**value** | **str** | A value of a setting option | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of PostAppSettingsRequestSettingsInner from a JSON string -post_app_settings_request_settings_inner_instance = PostAppSettingsRequestSettingsInner.from_json(json) -# print the JSON string representation of the object -print(PostAppSettingsRequestSettingsInner.to_json()) - -# convert the object into a dict -post_app_settings_request_settings_inner_dict = post_app_settings_request_settings_inner_instance.to_dict() -# create an instance of PostAppSettingsRequestSettingsInner from a dict -post_app_settings_request_settings_inner_from_dict = PostAppSettingsRequestSettingsInner.from_dict(post_app_settings_request_settings_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md b/cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md deleted file mode 100644 index 5473364..0000000 --- a/cloudbeds_pms_v1_3/docs/PostAppSettingsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostAppSettingsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | **object** | Application settings details | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostAppSettingsResponse from a JSON string -post_app_settings_response_instance = PostAppSettingsResponse.from_json(json) -# print the JSON string representation of the object -print(PostAppSettingsResponse.to_json()) - -# convert the object into a dict -post_app_settings_response_dict = post_app_settings_response_instance.to_dict() -# create an instance of PostAppSettingsResponse from a dict -post_app_settings_response_from_dict = PostAppSettingsResponse.from_dict(post_app_settings_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md b/cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md deleted file mode 100644 index 6e8a8df..0000000 --- a/cloudbeds_pms_v1_3/docs/PostAppStateInternalResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# PostAppStateInternalResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostAppStateInternalResponse from a JSON string -post_app_state_internal_response_instance = PostAppStateInternalResponse.from_json(json) -# print the JSON string representation of the object -print(PostAppStateInternalResponse.to_json()) - -# convert the object into a dict -post_app_state_internal_response_dict = post_app_state_internal_response_instance.to_dict() -# create an instance of PostAppStateInternalResponse from a dict -post_app_state_internal_response_from_dict = PostAppStateInternalResponse.from_dict(post_app_state_internal_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md b/cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md deleted file mode 100644 index 33ac0f7..0000000 --- a/cloudbeds_pms_v1_3/docs/PostBulkAppPropertySettingsResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# PostBulkAppPropertySettingsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Success | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostBulkAppPropertySettingsResponse from a JSON string -post_bulk_app_property_settings_response_instance = PostBulkAppPropertySettingsResponse.from_json(json) -# print the JSON string representation of the object -print(PostBulkAppPropertySettingsResponse.to_json()) - -# convert the object into a dict -post_bulk_app_property_settings_response_dict = post_bulk_app_property_settings_response_instance.to_dict() -# create an instance of PostBulkAppPropertySettingsResponse from a dict -post_bulk_app_property_settings_response_from_dict = PostBulkAppPropertySettingsResponse.from_dict(post_bulk_app_property_settings_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md b/cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md deleted file mode 100644 index 14a2baf..0000000 --- a/cloudbeds_pms_v1_3/docs/PostCRMCacheRemoveResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# PostCRMCacheRemoveResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostCRMCacheRemoveResponse from a JSON string -post_crm_cache_remove_response_instance = PostCRMCacheRemoveResponse.from_json(json) -# print the JSON string representation of the object -print(PostCRMCacheRemoveResponse.to_json()) - -# convert the object into a dict -post_crm_cache_remove_response_dict = post_crm_cache_remove_response_instance.to_dict() -# create an instance of PostCRMCacheRemoveResponse from a dict -post_crm_cache_remove_response_from_dict = PostCRMCacheRemoveResponse.from_dict(post_crm_cache_remove_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md b/cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md deleted file mode 100644 index 0ce8bd7..0000000 --- a/cloudbeds_pms_v1_3/docs/PostCRMCacheUpdateResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# PostCRMCacheUpdateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostCRMCacheUpdateResponse from a JSON string -post_crm_cache_update_response_instance = PostCRMCacheUpdateResponse.from_json(json) -# print the JSON string representation of the object -print(PostCRMCacheUpdateResponse.to_json()) - -# convert the object into a dict -post_crm_cache_update_response_dict = post_crm_cache_update_response_instance.to_dict() -# create an instance of PostCRMCacheUpdateResponse from a dict -post_crm_cache_update_response_from_dict = PostCRMCacheUpdateResponse.from_dict(post_crm_cache_update_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md b/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md index a46fa71..4d2fa69 100644 --- a/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostCustomItemResponseData.md @@ -7,7 +7,7 @@ Sold product details Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] -**external_relation_id** | **str** | Same as sold product ID in case of this endpoint. Together with external relation kind ITEM_POS it can be used to get transaction from Accounting API | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] **notice** | **str** | In case that a referenceID was sent, for second time, this field will alert that nothing was created or updated. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md b/cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md deleted file mode 100644 index 18f7529..0000000 --- a/cloudbeds_pms_v1_3/docs/PostGuestCreditCardResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# PostGuestCreditCardResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostGuestCreditCardResponse from a JSON string -post_guest_credit_card_response_instance = PostGuestCreditCardResponse.from_json(json) -# print the JSON string representation of the object -print(PostGuestCreditCardResponse.to_json()) - -# convert the object into a dict -post_guest_credit_card_response_dict = post_guest_credit_card_response_instance.to_dict() -# create an instance of PostGuestCreditCardResponse from a dict -post_guest_credit_card_response_from_dict = PostGuestCreditCardResponse.from_dict(post_guest_credit_card_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostItemRequestPaymentsInner.md b/cloudbeds_pms_v1_3/docs/PostItemRequestPaymentsInner.md new file mode 100644 index 0000000..72a9e0a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/PostItemRequestPaymentsInner.md @@ -0,0 +1,31 @@ +# PostItemRequestPaymentsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_type** | **str** | Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] +**amount** | **float** | payment amount | [optional] +**notes** | **str** | payment note | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PostItemRequestPaymentsInner from a JSON string +post_item_request_payments_inner_instance = PostItemRequestPaymentsInner.from_json(json) +# print the JSON string representation of the object +print(PostItemRequestPaymentsInner.to_json()) + +# convert the object into a dict +post_item_request_payments_inner_dict = post_item_request_payments_inner_instance.to_dict() +# create an instance of PostItemRequestPaymentsInner from a dict +post_item_request_payments_inner_from_dict = PostItemRequestPaymentsInner.from_dict(post_item_request_payments_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostItemResponseData.md b/cloudbeds_pms_v1_3/docs/PostItemResponseData.md index 6dbe622..a840fd2 100644 --- a/cloudbeds_pms_v1_3/docs/PostItemResponseData.md +++ b/cloudbeds_pms_v1_3/docs/PostItemResponseData.md @@ -7,7 +7,7 @@ Sold product details Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] -**external_relation_id** | **str** | Same as sold product ID in case of this endpoint. Together with external relation kind (ITEM) it can be used to get transaction from Accounting API | [optional] +**transaction_id** | **str** | Transaction identifier | [optional] **transaction_status** | **str** | Transaction Status is returned \"Pending\" when sale date is in the future. | [optional] **remaining_item_quantity** | **int** | Remaining number of items in stock (if applicable) | [optional] **reorder_needed** | **bool** | true - Whether item is at or below value set for reorder threshold. | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md b/cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md deleted file mode 100644 index 992938d..0000000 --- a/cloudbeds_pms_v1_3/docs/PostItemToReservationRequestPaymentsInner.md +++ /dev/null @@ -1,31 +0,0 @@ -# PostItemToReservationRequestPaymentsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_type** | **str** | Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] -**amount** | **float** | payment amount | [optional] -**notes** | **str** | payment note | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of PostItemToReservationRequestPaymentsInner from a JSON string -post_item_to_reservation_request_payments_inner_instance = PostItemToReservationRequestPaymentsInner.from_json(json) -# print the JSON string representation of the object -print(PostItemToReservationRequestPaymentsInner.to_json()) - -# convert the object into a dict -post_item_to_reservation_request_payments_inner_dict = post_item_to_reservation_request_payments_inner_instance.to_dict() -# create an instance of PostItemToReservationRequestPaymentsInner from a dict -post_item_to_reservation_request_payments_inner_from_dict = PostItemToReservationRequestPaymentsInner.from_dict(post_item_to_reservation_request_payments_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md b/cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md deleted file mode 100644 index adfdb87..0000000 --- a/cloudbeds_pms_v1_3/docs/PostItemToReservationResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# PostItemToReservationResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**PostItemToReservationResponseData**](PostItemToReservationResponseData.md) | | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostItemToReservationResponse from a JSON string -post_item_to_reservation_response_instance = PostItemToReservationResponse.from_json(json) -# print the JSON string representation of the object -print(PostItemToReservationResponse.to_json()) - -# convert the object into a dict -post_item_to_reservation_response_dict = post_item_to_reservation_response_instance.to_dict() -# create an instance of PostItemToReservationResponse from a dict -post_item_to_reservation_response_from_dict = PostItemToReservationResponse.from_dict(post_item_to_reservation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md b/cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md deleted file mode 100644 index 45f4ed9..0000000 --- a/cloudbeds_pms_v1_3/docs/PostItemToReservationResponseData.md +++ /dev/null @@ -1,35 +0,0 @@ -# PostItemToReservationResponseData - -Sold product details - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sold_product_id** | **str** | Sold product identifier (Usable to void this product in future). | [optional] -**transaction_id** | **str** | Transaction identifier | [optional] -**transaction_status** | **str** | Transaction Status is returned \"Pending\" when sale date is in the future. | [optional] -**remaining_item_quantity** | **int** | Remaining number of items in stock (if applicable) | [optional] -**reorder_needed** | **bool** | true - Whether item is at or below value set for reorder threshold. | [optional] -**stop_sell_met** | **bool** | true - Whether item is at or below value set for stop-sell threshold. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of PostItemToReservationResponseData from a JSON string -post_item_to_reservation_response_data_instance = PostItemToReservationResponseData.from_json(json) -# print the JSON string representation of the object -print(PostItemToReservationResponseData.to_json()) - -# convert the object into a dict -post_item_to_reservation_response_data_dict = post_item_to_reservation_response_data_instance.to_dict() -# create an instance of PostItemToReservationResponseData from a dict -post_item_to_reservation_response_data_from_dict = PostItemToReservationResponseData.from_dict(post_item_to_reservation_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md b/cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md deleted file mode 100644 index 05a0e28..0000000 --- a/cloudbeds_pms_v1_3/docs/PostPatchInvoiceResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostPatchInvoiceResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostPatchInvoiceResponse from a JSON string -post_patch_invoice_response_instance = PostPatchInvoiceResponse.from_json(json) -# print the JSON string representation of the object -print(PostPatchInvoiceResponse.to_json()) - -# convert the object into a dict -post_patch_invoice_response_dict = post_patch_invoice_response_instance.to_dict() -# create an instance of PostPatchInvoiceResponse from a dict -post_patch_invoice_response_from_dict = PostPatchInvoiceResponse.from_dict(post_patch_invoice_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md b/cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md deleted file mode 100644 index 30e675b..0000000 --- a/cloudbeds_pms_v1_3/docs/PostPaymentCashResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostPaymentCashResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostPaymentCashResponse from a JSON string -post_payment_cash_response_instance = PostPaymentCashResponse.from_json(json) -# print the JSON string representation of the object -print(PostPaymentCashResponse.to_json()) - -# convert the object into a dict -post_payment_cash_response_dict = post_payment_cash_response_instance.to_dict() -# create an instance of PostPaymentCashResponse from a dict -post_payment_cash_response_from_dict = PostPaymentCashResponse.from_dict(post_payment_cash_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md b/cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md deleted file mode 100644 index e09632a..0000000 --- a/cloudbeds_pms_v1_3/docs/PostPaymentCreditCardResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostPaymentCreditCardResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostPaymentCreditCardResponse from a JSON string -post_payment_credit_card_response_instance = PostPaymentCreditCardResponse.from_json(json) -# print the JSON string representation of the object -print(PostPaymentCreditCardResponse.to_json()) - -# convert the object into a dict -post_payment_credit_card_response_dict = post_payment_credit_card_response_instance.to_dict() -# create an instance of PostPaymentCreditCardResponse from a dict -post_payment_credit_card_response_from_dict = PostPaymentCreditCardResponse.from_dict(post_payment_credit_card_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostPutRateRequest.md b/cloudbeds_pms_v1_3/docs/PostPutRateRequest.md deleted file mode 100644 index 88a60a8..0000000 --- a/cloudbeds_pms_v1_3/docs/PostPutRateRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# PostPutRateRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rates** | [**List[PostPutRateRequestRatesInner]**](PostPutRateRequestRatesInner.md) | Array of rates to update | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of PostPutRateRequest from a JSON string -post_put_rate_request_instance = PostPutRateRequest.from_json(json) -# print the JSON string representation of the object -print(PostPutRateRequest.to_json()) - -# convert the object into a dict -post_put_rate_request_dict = post_put_rate_request_instance.to_dict() -# create an instance of PostPutRateRequest from a dict -post_put_rate_request_from_dict = PostPutRateRequest.from_dict(post_put_rate_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md b/cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md deleted file mode 100644 index 79290c4..0000000 --- a/cloudbeds_pms_v1_3/docs/PostReservationCheckInResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostReservationCheckInResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostReservationCheckInResponse from a JSON string -post_reservation_check_in_response_instance = PostReservationCheckInResponse.from_json(json) -# print the JSON string representation of the object -print(PostReservationCheckInResponse.to_json()) - -# convert the object into a dict -post_reservation_check_in_response_dict = post_reservation_check_in_response_instance.to_dict() -# create an instance of PostReservationCheckInResponse from a dict -post_reservation_check_in_response_from_dict = PostReservationCheckInResponse.from_dict(post_reservation_check_in_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md b/cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md deleted file mode 100644 index c757e8f..0000000 --- a/cloudbeds_pms_v1_3/docs/PostReservationCheckOutResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostReservationCheckOutResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostReservationCheckOutResponse from a JSON string -post_reservation_check_out_response_instance = PostReservationCheckOutResponse.from_json(json) -# print the JSON string representation of the object -print(PostReservationCheckOutResponse.to_json()) - -# convert the object into a dict -post_reservation_check_out_response_dict = post_reservation_check_out_response_instance.to_dict() -# create an instance of PostReservationCheckOutResponse from a dict -post_reservation_check_out_response_from_dict = PostReservationCheckOutResponse.from_dict(post_reservation_check_out_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md deleted file mode 100644 index 46f42c8..0000000 --- a/cloudbeds_pms_v1_3/docs/PostRoomTypeResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# PostRoomTypeResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns true if the request could be completed | [optional] -**data** | [**PostRoomTypeResponseData**](PostRoomTypeResponseData.md) | | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PostRoomTypeResponse from a JSON string -post_room_type_response_instance = PostRoomTypeResponse.from_json(json) -# print the JSON string representation of the object -print(PostRoomTypeResponse.to_json()) - -# convert the object into a dict -post_room_type_response_dict = post_room_type_response_instance.to_dict() -# create an instance of PostRoomTypeResponse from a dict -post_room_type_response_from_dict = PostRoomTypeResponse.from_dict(post_room_type_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md b/cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md deleted file mode 100644 index 304354c..0000000 --- a/cloudbeds_pms_v1_3/docs/PostRoomTypeResponseData.md +++ /dev/null @@ -1,30 +0,0 @@ -# PostRoomTypeResponseData - -Details for the new accommodation type - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**room_type_id** | **str** | ID for the newly-created accommodation type | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData - -# TODO update the JSON string below -json = "{}" -# create an instance of PostRoomTypeResponseData from a JSON string -post_room_type_response_data_instance = PostRoomTypeResponseData.from_json(json) -# print the JSON string representation of the object -print(PostRoomTypeResponseData.to_json()) - -# convert the object into a dict -post_room_type_response_data_dict = post_room_type_response_data_instance.to_dict() -# create an instance of PostRoomTypeResponseData from a dict -post_room_type_response_data_from_dict = PostRoomTypeResponseData.from_dict(post_room_type_response_data_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md b/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md deleted file mode 100644 index c007c52..0000000 --- a/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# PutRateRequestRatesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rate_id** | **str** | Rate ID | [optional] -**interval** | [**List[PutRateRequestRatesInnerIntervalInner]**](PutRateRequestRatesInnerIntervalInner.md) | Rate update details | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of PutRateRequestRatesInner from a JSON string -put_rate_request_rates_inner_instance = PutRateRequestRatesInner.from_json(json) -# print the JSON string representation of the object -print(PutRateRequestRatesInner.to_json()) - -# convert the object into a dict -put_rate_request_rates_inner_dict = put_rate_request_rates_inner_instance.to_dict() -# create an instance of PutRateRequestRatesInner from a dict -put_rate_request_rates_inner_from_dict = PutRateRequestRatesInner.from_dict(put_rate_request_rates_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md b/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md deleted file mode 100644 index e07cad7..0000000 --- a/cloudbeds_pms_v1_3/docs/PutRateRequestRatesInnerIntervalInner.md +++ /dev/null @@ -1,31 +0,0 @@ -# PutRateRequestRatesInnerIntervalInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start_date** | **date** | Interval Start date. Format: YYYY-MM-DD | [optional] -**end_date** | **date** | Interval End date. Format: YYYY-MM-DD | [optional] -**rate** | **float** | Base rate for the selected date | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner - -# TODO update the JSON string below -json = "{}" -# create an instance of PutRateRequestRatesInnerIntervalInner from a JSON string -put_rate_request_rates_inner_interval_inner_instance = PutRateRequestRatesInnerIntervalInner.from_json(json) -# print the JSON string representation of the object -print(PutRateRequestRatesInnerIntervalInner.to_json()) - -# convert the object into a dict -put_rate_request_rates_inner_interval_inner_dict = put_rate_request_rates_inner_interval_inner_instance.to_dict() -# create an instance of PutRateRequestRatesInnerIntervalInner from a dict -put_rate_request_rates_inner_interval_inner_from_dict = PutRateRequestRatesInnerIntervalInner.from_dict(put_rate_request_rates_inner_interval_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PutRateResponse.md b/cloudbeds_pms_v1_3/docs/PutRateResponse.md deleted file mode 100644 index 0ddefe1..0000000 --- a/cloudbeds_pms_v1_3/docs/PutRateResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# PutRateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns true if the request could be completed | [optional] -**job_reference_id** | **str** | ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook | [optional] -**message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PutRateResponse from a JSON string -put_rate_response_instance = PutRateResponse.from_json(json) -# print the JSON string representation of the object -print(PutRateResponse.to_json()) - -# convert the object into a dict -put_rate_response_dict = put_rate_response_instance.to_dict() -# create an instance of PutRateResponse from a dict -put_rate_response_from_dict = PutRateResponse.from_dict(put_rate_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md b/cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md deleted file mode 100644 index 0ee830e..0000000 --- a/cloudbeds_pms_v1_3/docs/PutReservationDetailsRequestCustomFieldsInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# PutReservationDetailsRequestCustomFieldsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**custom_field_name** | **str** | Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention | [optional] -**custom_field_value** | **str** | | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of PutReservationDetailsRequestCustomFieldsInner from a JSON string -put_reservation_details_request_custom_fields_inner_instance = PutReservationDetailsRequestCustomFieldsInner.from_json(json) -# print the JSON string representation of the object -print(PutReservationDetailsRequestCustomFieldsInner.to_json()) - -# convert the object into a dict -put_reservation_details_request_custom_fields_inner_dict = put_reservation_details_request_custom_fields_inner_instance.to_dict() -# create an instance of PutReservationDetailsRequestCustomFieldsInner from a dict -put_reservation_details_request_custom_fields_inner_from_dict = PutReservationDetailsRequestCustomFieldsInner.from_dict(put_reservation_details_request_custom_fields_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md b/cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md deleted file mode 100644 index a3fd924..0000000 --- a/cloudbeds_pms_v1_3/docs/PutReservationDetailsResponse.md +++ /dev/null @@ -1,31 +0,0 @@ -# PutReservationDetailsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | Returns if the request could be completed | [optional] -**message** | **str** | To be used in case any error occurs. | [optional] -**data** | **object** | Returns the reservation data as defined by getReservation call. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PutReservationDetailsResponse from a JSON string -put_reservation_details_response_instance = PutReservationDetailsResponse.from_json(json) -# print the JSON string representation of the object -print(PutReservationDetailsResponse.to_json()) - -# convert the object into a dict -put_reservation_details_response_dict = put_reservation_details_response_instance.to_dict() -# create an instance of PutReservationDetailsResponse from a dict -put_reservation_details_response_from_dict = PutReservationDetailsResponse.from_dict(put_reservation_details_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/RateApi.md b/cloudbeds_pms_v1_3/docs/RateApi.md index 9c9e155..8cf7fb7 100644 --- a/cloudbeds_pms_v1_3/docs/RateApi.md +++ b/cloudbeds_pms_v1_3/docs/RateApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**get_rate_jobs_get**](RateApi.md#get_rate_jobs_get) | **GET** /getRateJobs | getRateJobs [**get_rate_plans_get**](RateApi.md#get_rate_plans_get) | **GET** /getRatePlans | getRatePlans [**patch_rate_post**](RateApi.md#patch_rate_post) | **POST** /patchRate | patchRate -[**put_rate_put**](RateApi.md#put_rate_put) | **PUT** /putRate | putRate +[**put_rate_post**](RateApi.md#put_rate_post) | **POST** /putRate | putRate # **get_rate_get** @@ -372,8 +372,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **put_rate_put** -> PutRateResponse put_rate_put(rates=rates) +# **put_rate_post** +> PostPutRateResponse put_rate_post(rates=rates) putRate @@ -386,8 +386,8 @@ Update the rate of the room based on rateID selected, based on the provided para ```python import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner -from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse from cloudbeds_pms_v1_3.rest import ApiException from pprint import pprint @@ -414,15 +414,15 @@ configuration.api_key['api_key'] = os.environ["API_KEY"] with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_3.RateApi(api_client) - rates = [cloudbeds_pms_v1_3.PutRateRequestRatesInner()] # List[PutRateRequestRatesInner] | Array of rates to update (optional) + rates = [cloudbeds_pms_v1_3.PostPutRateRequestRatesInner()] # List[PostPutRateRequestRatesInner] | Array of rates to update (optional) try: # putRate - api_response = api_instance.put_rate_put(rates=rates) - print("The response of RateApi->put_rate_put:\n") + api_response = api_instance.put_rate_post(rates=rates) + print("The response of RateApi->put_rate_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling RateApi->put_rate_put: %s\n" % e) + print("Exception when calling RateApi->put_rate_post: %s\n" % e) ``` @@ -432,11 +432,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rates** | [**List[PutRateRequestRatesInner]**](PutRateRequestRatesInner.md)| Array of rates to update | [optional] + **rates** | [**List[PostPutRateRequestRatesInner]**](PostPutRateRequestRatesInner.md)| Array of rates to update | [optional] ### Return type -[**PutRateResponse**](PutRateResponse.md) +[**PostPutRateResponse**](PostPutRateResponse.md) ### Authorization diff --git a/cloudbeds_pms_v1_3/docs/ReservationApi.md b/cloudbeds_pms_v1_3/docs/ReservationApi.md index c1f9625..fc4db2d 100644 --- a/cloudbeds_pms_v1_3/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_3/docs/ReservationApi.md @@ -5,22 +5,15 @@ All URIs are relative to *https://api.cloudbeds.com/api/v1.3* Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_reservation_note_delete**](ReservationApi.md#delete_reservation_note_delete) | **DELETE** /deleteReservationNote | deleteReservationNote -[**get_reservation_arrivals_get**](ReservationApi.md#get_reservation_arrivals_get) | **GET** /getReservationArrivals | getReservationArrivals [**get_reservation_assignments_get**](ReservationApi.md#get_reservation_assignments_get) | **GET** /getReservationAssignments | getReservationAssignments -[**get_reservation_departures_get**](ReservationApi.md#get_reservation_departures_get) | **GET** /getReservationDepartures | getReservationDepartures [**get_reservation_get**](ReservationApi.md#get_reservation_get) | **GET** /getReservation | getReservation -[**get_reservation_in_house_get**](ReservationApi.md#get_reservation_in_house_get) | **GET** /getReservationInHouse | getReservationInHouse -[**get_reservation_invoice_information_get**](ReservationApi.md#get_reservation_invoice_information_get) | **GET** /getReservationInvoiceInformation | getReservationInvoiceInformation [**get_reservation_notes_get**](ReservationApi.md#get_reservation_notes_get) | **GET** /getReservationNotes | getReservationNotes [**get_reservations_get**](ReservationApi.md#get_reservations_get) | **GET** /getReservations | getReservations [**get_reservations_with_rate_details_get**](ReservationApi.md#get_reservations_with_rate_details_get) | **GET** /getReservationsWithRateDetails | getReservationsWithRateDetails [**get_sources_get**](ReservationApi.md#get_sources_get) | **GET** /getSources | getSources -[**post_reservation_check_in_post**](ReservationApi.md#post_reservation_check_in_post) | **POST** /postReservationCheckIn | postReservationCheckIn -[**post_reservation_check_out_post**](ReservationApi.md#post_reservation_check_out_post) | **POST** /postReservationCheckOut | postReservationCheckOut [**post_reservation_document_post**](ReservationApi.md#post_reservation_document_post) | **POST** /postReservationDocument | postReservationDocument [**post_reservation_note_post**](ReservationApi.md#post_reservation_note_post) | **POST** /postReservationNote | postReservationNote [**post_reservation_post**](ReservationApi.md#post_reservation_post) | **POST** /postReservation | postReservation -[**put_reservation_details_put**](ReservationApi.md#put_reservation_details_put) | **PUT** /putReservationDetails | putReservationDetails [**put_reservation_note_put**](ReservationApi.md#put_reservation_note_put) | **PUT** /putReservationNote | putReservationNote [**put_reservation_put**](ReservationApi.md#put_reservation_put) | **PUT** /putReservation | putReservation @@ -111,90 +104,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_reservation_arrivals_get** -> GetReservationArrivalsResponse get_reservation_arrivals_get(results_from=results_from, results_to=results_to) - -getReservationArrivals - -Returns a list of reservations with check-in planned for the specified date range. If no date range is specified, the results for the current day are returned. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) - results_from = '2013-10-20' # date | Inferior limit date, used to filter reservations result (optional) - results_to = '2013-10-20' # date | Superior limit date, used to filter reservations result (optional) - - try: - # getReservationArrivals - api_response = api_instance.get_reservation_arrivals_get(results_from=results_from, results_to=results_to) - print("The response of ReservationApi->get_reservation_arrivals_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReservationApi->get_reservation_arrivals_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **results_from** | **date**| Inferior limit date, used to filter reservations result | [optional] - **results_to** | **date**| Superior limit date, used to filter reservations result | [optional] - -### Return type - -[**GetReservationArrivalsResponse**](GetReservationArrivalsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_reservation_assignments_get** > GetReservationAssignmentsResponse get_reservation_assignments_get(property_id=property_id, var_date=var_date) @@ -279,90 +188,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_reservation_departures_get** -> GetReservationDeparturesResponse get_reservation_departures_get(results_from=results_from, results_to=results_to) - -getReservationDepartures - -Returns a list of reservations with guests set to check-out on the specified date range. If no date range is specified, the results for the current day are returned. - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) - results_from = '2013-10-20' # date | Inferior limit date, used to filter reservations result (optional) - results_to = '2013-10-20' # date | Superior limit date, used to filter reservations result (optional) - - try: - # getReservationDepartures - api_response = api_instance.get_reservation_departures_get(results_from=results_from, results_to=results_to) - print("The response of ReservationApi->get_reservation_departures_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReservationApi->get_reservation_departures_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **results_from** | **date**| Inferior limit date, used to filter reservations result | [optional] - **results_to** | **date**| Superior limit date, used to filter reservations result | [optional] - -### Return type - -[**GetReservationDeparturesResponse**](GetReservationDeparturesResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_reservation_get** > GetReservationResponse get_reservation_get(reservation_id, property_id=property_id, include_guest_requirements=include_guest_requirements) @@ -449,174 +274,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_reservation_in_house_get** -> GetReservationInHouseResponse get_reservation_in_house_get(with_room_details=with_room_details, include_guest_info=include_guest_info) - -getReservationInHouse - -Returns a list of reservations with guests in-house (checked-in).
¹ only if withRoomDetails=true
- -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) - with_room_details = False # bool | Include rooms details (optional) (default to False) - include_guest_info = False # bool | Include guest details (optional) (default to False) - - try: - # getReservationInHouse - api_response = api_instance.get_reservation_in_house_get(with_room_details=with_room_details, include_guest_info=include_guest_info) - print("The response of ReservationApi->get_reservation_in_house_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReservationApi->get_reservation_in_house_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **with_room_details** | **bool**| Include rooms details | [optional] [default to False] - **include_guest_info** | **bool**| Include guest details | [optional] [default to False] - -### Return type - -[**GetReservationInHouseResponse**](GetReservationInHouseResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_reservation_invoice_information_get** -> GetReservationInvoiceInformationResponse get_reservation_invoice_information_get(reservation_id, property_id=property_id) - -getReservationInvoiceInformation - -Returns information that can be used to create an invoice for the selected reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier - property_id = 'property_id_example' # str | Property ID (optional) - - try: - # getReservationInvoiceInformation - api_response = api_instance.get_reservation_invoice_information_get(reservation_id, property_id=property_id) - print("The response of ReservationApi->get_reservation_invoice_information_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReservationApi->get_reservation_invoice_information_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation Unique Identifier | - **property_id** | **str**| Property ID | [optional] - -### Return type - -[**GetReservationInvoiceInformationResponse**](GetReservationInvoiceInformationResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_reservation_notes_get** > GetReservationNotesResponse get_reservation_notes_get(reservation_id, property_id=property_id) @@ -1027,170 +684,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **post_reservation_check_in_post** -> PostReservationCheckInResponse post_reservation_check_in_post(reservation_id=reservation_id) - -postReservationCheckIn - -Confirm a guest checkin to a reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. (optional) - - try: - # postReservationCheckIn - api_response = api_instance.post_reservation_check_in_post(reservation_id=reservation_id) - print("The response of ReservationApi->post_reservation_check_in_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReservationApi->post_reservation_check_in_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation Unique Identifier. | [optional] - -### Return type - -[**PostReservationCheckInResponse**](PostReservationCheckInResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **post_reservation_check_out_post** -> PostReservationCheckOutResponse post_reservation_check_out_post(reservation_id=reservation_id) - -postReservationCheckOut - -CheckOut guest from a reservation - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier. (optional) - - try: - # postReservationCheckOut - api_response = api_instance.post_reservation_check_out_post(reservation_id=reservation_id) - print("The response of ReservationApi->post_reservation_check_out_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReservationApi->post_reservation_check_out_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **reservation_id** | **str**| Reservation Unique Identifier. | [optional] - -### Return type - -[**PostReservationCheckOutResponse**](PostReservationCheckOutResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_reservation_document_post** > PostReservationDocumentResponse post_reservation_document_post(property_id=property_id, reservation_id=reservation_id, file=file) @@ -1503,97 +996,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **put_reservation_details_put** -> PutReservationDetailsResponse put_reservation_details_put(property_id=property_id, reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, status=status, custom_fields=custom_fields) - -putReservationDetails - -Updates a reservation details - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier, one reservation ID per call. (optional) - estimated_arrival_time = 'estimated_arrival_time_example' # str | Estimated Arrival Time, 24-hour format. (optional) - status = 'status_example' # str | Reservation status
'confirmed' - Reservation is confirmed
'not_confirmed' - Reservation not passed confirmation
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date (optional) - custom_fields = [cloudbeds_pms_v1_3.PutReservationDetailsRequestCustomFieldsInner()] # List[PutReservationDetailsRequestCustomFieldsInner] | Array with custom fields information (optional) - - try: - # putReservationDetails - api_response = api_instance.put_reservation_details_put(property_id=property_id, reservation_id=reservation_id, estimated_arrival_time=estimated_arrival_time, status=status, custom_fields=custom_fields) - print("The response of ReservationApi->put_reservation_details_put:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReservationApi->put_reservation_details_put: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **reservation_id** | **str**| Reservation Unique Identifier, one reservation ID per call. | [optional] - **estimated_arrival_time** | **str**| Estimated Arrival Time, 24-hour format. | [optional] - **status** | **str**| Reservation status<br /> 'confirmed' - Reservation is confirmed<br /> 'not_confirmed' - Reservation not passed confirmation<br /> 'canceled' - Reservation is canceled<br /> 'checked_in' - Guest is in hotel<br /> 'checked_out' - Guest already left hotel<br /> 'no_show' - Guest didn't showed up on check-in date | [optional] - **custom_fields** | [**List[PutReservationDetailsRequestCustomFieldsInner]**](PutReservationDetailsRequestCustomFieldsInner.md)| Array with custom fields information | [optional] - -### Return type - -[**PutReservationDetailsResponse**](PutReservationDetailsResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **put_reservation_note_put** > PutReservationNoteResponse put_reservation_note_put(property_id=property_id, reservation_id=reservation_id, reservation_note_id=reservation_note_id, reservation_note=reservation_note) diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index 0a00708..af9b8c6 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -16,7 +16,6 @@ Method | HTTP request | Description [**post_room_block_post**](RoomApi.md#post_room_block_post) | **POST** /postRoomBlock | postRoomBlock [**post_room_check_in_post**](RoomApi.md#post_room_check_in_post) | **POST** /postRoomCheckIn | postRoomCheckIn [**post_room_check_out_post**](RoomApi.md#post_room_check_out_post) | **POST** /postRoomCheckOut | postRoomCheckOut -[**post_room_type_post**](RoomApi.md#post_room_type_post) | **POST** /postRoomType | postRoomType [**put_room_block_put**](RoomApi.md#put_room_block_put) | **PUT** /putRoomBlock | putRoomBlock @@ -1133,104 +1132,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **post_room_type_post** -> PostRoomTypeResponse post_room_type_post(property_id=property_id, room_type_name=room_type_name, room_type_name_short=room_type_name_short, room_type_description=room_type_description, max_guests=max_guests, adults_included=adults_included, children_included=children_included, rooms_available=rooms_available, is_private=is_private) - -postRoomType - -Create a new accommodation type - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) - property_id = 'property_id_example' # str | Property ID (optional) - room_type_name = 'room_type_name_example' # str | Room Type Name (optional) - room_type_name_short = 'room_type_name_short_example' # str | Room Type Short Name (optional) - room_type_description = 'room_type_description_example' # str | Room Type Description (optional) - max_guests = 56 # int | Max number of guests allowed in the room type (optional) - adults_included = 56 # int | Number of adults included on the basic room rate (optional) - children_included = 56 # int | Number of children included on the basic room rate (optional) - rooms_available = 56 # int | Number of rooms available, based on the parameters provided (optional) - is_private = True # bool | If room is private (true) or shared (false) (optional) - - try: - # postRoomType - api_response = api_instance.post_room_type_post(property_id=property_id, room_type_name=room_type_name, room_type_name_short=room_type_name_short, room_type_description=room_type_description, max_guests=max_guests, adults_included=adults_included, children_included=children_included, rooms_available=rooms_available, is_private=is_private) - print("The response of RoomApi->post_room_type_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RoomApi->post_room_type_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_id** | **str**| Property ID | [optional] - **room_type_name** | **str**| Room Type Name | [optional] - **room_type_name_short** | **str**| Room Type Short Name | [optional] - **room_type_description** | **str**| Room Type Description | [optional] - **max_guests** | **int**| Max number of guests allowed in the room type | [optional] - **adults_included** | **int**| Number of adults included on the basic room rate | [optional] - **children_included** | **int**| Number of children included on the basic room rate | [optional] - **rooms_available** | **int**| Number of rooms available, based on the parameters provided | [optional] - **is_private** | **bool**| If room is private (true) or shared (false) | [optional] - -### Return type - -[**PostRoomTypeResponse**](PostRoomTypeResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **put_room_block_put** > PutRoomBlockResponse put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) diff --git a/cloudbeds_pms_v1_3/docs/RoomsApi.md b/cloudbeds_pms_v1_3/docs/RoomsApi.md deleted file mode 100644 index 30f5959..0000000 --- a/cloudbeds_pms_v1_3/docs/RoomsApi.md +++ /dev/null @@ -1,105 +0,0 @@ -# cloudbeds_pms_v1_3.RoomsApi - -All URIs are relative to *https://api.cloudbeds.com/api/v1.3* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_hotel_room_types_get**](RoomsApi.md#get_hotel_room_types_get) | **GET** /getHotelRoomTypes | getHotelRoomTypes - - -# **get_hotel_room_types_get** -> GetHotelRoomTypesResponse get_hotel_room_types_get(property_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, page_number=page_number, page_size=page_size) - -getHotelRoomTypes - -Returns a list of room types of a specific property, or a list of properties - -### Example - -* OAuth Authentication (OAuth2): -* Api Key Authentication (api_key): - -```python -import cloudbeds_pms_v1_3 -from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse -from cloudbeds_pms_v1_3.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.cloudbeds.com/api/v1.3 -# See configuration.py for a list of all supported configuration parameters. -configuration = cloudbeds_pms_v1_3.Configuration( - host = "https://api.cloudbeds.com/api/v1.3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Configure API key authorization: api_key -configuration.api_key['api_key'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['api_key'] = 'Bearer' - -# Enter a context with an instance of the API client -with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cloudbeds_pms_v1_3.RoomsApi(api_client) - property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 - start_date = '2013-10-20' # date | Check-In date. Required for rates to be returned. (optional) - end_date = '2013-10-20' # date | Check-Out date. Required for rates to be returned. (optional) - adults = 56 # int | Number of adults. Required for rates to be returned. (optional) - children = 56 # int | Number of children. Required for rates to be returned. (optional) - detailed_rates = False # bool | If detailed rates are expected (optional) (default to False) - page_number = 1 # int | Page number (optional) (default to 1) - page_size = 20 # int | Page size (optional) (default to 20) - - try: - # getHotelRoomTypes - api_response = api_instance.get_hotel_room_types_get(property_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, page_number=page_number, page_size=page_size) - print("The response of RoomsApi->get_hotel_room_types_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RoomsApi->get_hotel_room_types_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **property_ids** | **str**| Property ID list, comma-separated, i.e. 37,345,89 | - **start_date** | **date**| Check-In date. Required for rates to be returned. | [optional] - **end_date** | **date**| Check-Out date. Required for rates to be returned. | [optional] - **adults** | **int**| Number of adults. Required for rates to be returned. | [optional] - **children** | **int**| Number of children. Required for rates to be returned. | [optional] - **detailed_rates** | **bool**| If detailed rates are expected | [optional] [default to False] - **page_number** | **int**| Page number | [optional] [default to 1] - **page_size** | **int**| Page size | [optional] [default to 20] - -### Return type - -[**GetHotelRoomTypesResponse**](GetHotelRoomTypesResponse.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | 200 Response | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index a1cb91b..c006414 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -16,7 +16,6 @@ # import models into model package from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse -from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse @@ -33,14 +32,6 @@ from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData -from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner @@ -90,7 +81,6 @@ from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy -from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner @@ -100,14 +90,6 @@ from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner -from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse -from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse -from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse -from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData -from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse @@ -130,11 +112,6 @@ from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner -from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse -from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner @@ -145,25 +122,9 @@ from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner -from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse -from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse @@ -233,7 +194,6 @@ from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData -from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse @@ -242,15 +202,9 @@ from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData -from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner -from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse -from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData -from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse -from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse @@ -293,7 +247,6 @@ from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner -from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse @@ -306,11 +259,9 @@ from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData -from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner @@ -318,21 +269,15 @@ from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner -from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse -from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse -from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse -from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse -from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner @@ -347,8 +292,6 @@ from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse -from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner @@ -370,11 +313,6 @@ from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner -from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse -from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner diff --git a/cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py b/cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py deleted file mode 100644 index 585b972..0000000 --- a/cloudbeds_pms_v1_3/models/delete_item_from_reservation_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DeleteItemFromReservationResponse(BaseModel): - """ - DeleteItemFromReservationResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeleteItemFromReservationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeleteItemFromReservationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_adjustment_response.py b/cloudbeds_pms_v1_3/models/get_adjustment_response.py deleted file mode 100644 index 04d8b56..0000000 --- a/cloudbeds_pms_v1_3/models/get_adjustment_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData -from typing import Optional, Set -from typing_extensions import Self - -class GetAdjustmentResponse(BaseModel): - """ - GetAdjustmentResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[GetAdjustmentResponseData] = None - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": GetAdjustmentResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_adjustment_response_data.py b/cloudbeds_pms_v1_3/models/get_adjustment_response_data.py deleted file mode 100644 index ed5c1f3..0000000 --- a/cloudbeds_pms_v1_3/models/get_adjustment_response_data.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetAdjustmentResponseData(BaseModel): - """ - Adjustment - """ # noqa: E501 - adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") - property_id: Optional[StrictStr] = Field(default=None, description="unique hotel identifier", alias="propertyID") - created: Optional[datetime] = Field(default=None, description="Adjustment created time") - room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") - reservation_identifier: Optional[StrictStr] = Field(default=None, description="Reservation Unique Identifier", alias="reservationIdentifier") - description: Optional[StrictStr] = Field(default=None, description="Adjustment description") - notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") - currency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment currency") - posted: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment posted transaction") - type: Optional[StrictStr] = Field(default=None, description="Adjustment type") - void_id: Optional[StrictStr] = Field(default=None, description="Voided adjustment transaction unique identifier. Null if adjustment not voided", alias="voidID") - __properties: ClassVar[List[str]] = ["adjustmentID", "propertyID", "created", "roomID", "roomName", "reservationIdentifier", "description", "notes", "amount", "currency", "posted", "type", "voidID"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adjustmentID": obj.get("adjustmentID"), - "propertyID": obj.get("propertyID"), - "created": obj.get("created"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "reservationIdentifier": obj.get("reservationIdentifier"), - "description": obj.get("description"), - "notes": obj.get("notes"), - "amount": obj.get("amount"), - "currency": obj.get("currency"), - "posted": obj.get("posted"), - "type": obj.get("type"), - "voidID": obj.get("voidID") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_adjustments_response.py b/cloudbeds_pms_v1_3/models/get_adjustments_response.py deleted file mode 100644 index 41feea2..0000000 --- a/cloudbeds_pms_v1_3/models/get_adjustments_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData -from typing import Optional, Set -from typing_extensions import Self - -class GetAdjustmentsResponse(BaseModel): - """ - GetAdjustmentsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[GetAdjustmentsResponseData] = None - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": GetAdjustmentsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_adjustments_response_data.py b/cloudbeds_pms_v1_3/models/get_adjustments_response_data.py deleted file mode 100644 index 476be80..0000000 --- a/cloudbeds_pms_v1_3/models/get_adjustments_response_data.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetAdjustmentsResponseData(BaseModel): - """ - Adjustments - """ # noqa: E501 - adjustment_id: Optional[StrictStr] = Field(default=None, description="Adjustment unique identifier", alias="adjustmentID") - created: Optional[datetime] = Field(default=None, description="Adjustment created time") - room_id: Optional[StrictStr] = Field(default=None, description="Adjustment room id", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Room name of Adjustment", alias="roomName") - description: Optional[StrictStr] = Field(default=None, description="Adjustment description") - notes: Optional[StrictStr] = Field(default=None, description="Adjustment notes") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Adjustment amount") - type: Optional[StrictStr] = Field(default=None, description="Adjustment type") - __properties: ClassVar[List[str]] = ["adjustmentID", "created", "roomID", "roomName", "description", "notes", "amount", "type"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAdjustmentsResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adjustmentID": obj.get("adjustmentID"), - "created": obj.get("created"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "description": obj.get("description"), - "notes": obj.get("notes"), - "amount": obj.get("amount"), - "type": obj.get("type") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response.py deleted file mode 100644 index 84542ad..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponse(BaseModel): - """ - GetAsyncApiJobResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - has_next_page: Optional[StrictBool] = Field(default=None, description="Returns true if there is another page of results after this one", alias="hasNextPage") - next_page: Optional[StrictStr] = Field(default=None, description="The URL of the next page of results if there is one", alias="nextPage") - data: Optional[List[GetAsyncApiJobResponseDataInner]] = Field(default=None, description="Job details") - __properties: ClassVar[List[str]] = ["success", "hasNextPage", "nextPage", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if next_page (nullable) is None - # and model_fields_set contains the field - if self.next_page is None and "next_page" in self.model_fields_set: - _dict['nextPage'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "hasNextPage": obj.get("hasNextPage"), - "nextPage": obj.get("nextPage"), - "data": [GetAsyncApiJobResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py deleted file mode 100644 index 75147f6..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponseDataInner(BaseModel): - """ - GetAsyncApiJobResponseDataInner - """ # noqa: E501 - job_reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the rate:batch_job", alias="jobReferenceID") - date_created: Optional[date] = Field(default=None, description="Rate Job creation datetime", alias="dateCreated") - status: Optional[StrictStr] = Field(default=None, description="Status of the Rate Job. in_progress - job is processing. completed - job has completed successfully. error - there was an error with 1 or more updates requested in this job. Allowed values: in_progressgu, completed, error") - updates: Optional[List[GetAsyncApiJobResponseDataInnerUpdatesInner]] = Field(default=None, description="Array of actions produced from this job") - __properties: ClassVar[List[str]] = ["jobReferenceID", "dateCreated", "status", "updates"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in updates (list) - _items = [] - if self.updates: - for _item_updates in self.updates: - if _item_updates: - _items.append(_item_updates.to_dict()) - _dict['updates'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "jobReferenceID": obj.get("jobReferenceID"), - "dateCreated": obj.get("dateCreated"), - "status": obj.get("status"), - "updates": [GetAsyncApiJobResponseDataInnerUpdatesInner.from_dict(_item) for _item in obj["updates"]] if obj.get("updates") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py deleted file mode 100644 index 3794ffc..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner.py +++ /dev/null @@ -1,248 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponseDataInnerUpdatesInner(BaseModel): - """ - GetAsyncApiJobResponseDataInnerUpdatesInner - """ # noqa: E501 - rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID for which action was taken", alias="rateID") - action: Optional[StrictStr] = Field(default=None, description="Action taken for this interval as part of this job. in_progress - interval wait for it turn. updated - interval was updated. created - new interval was created with the new date range. error - there was an error when attempting this update. Allowed values: in_progress, updated, created, error") - start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") - end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") - rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Value of rate which was updated") - max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay for this rate", alias="maxLos") - min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay for this rate", alias="minLos") - closed_to_arrival: Optional[StrictBool] = Field(default=None, description="If this rate is closed to arrival", alias="closedToArrival") - closed_to_departure: Optional[StrictBool] = Field(default=None, description="If this rate is closed to departure", alias="closedToDeparture") - cut_off: Optional[StrictInt] = Field(default=None, description="Cutoff for this rate", alias="cutOff") - last_minute_booking: Optional[StrictInt] = Field(default=None, description="Last minute booking for this rate", alias="lastMinuteBooking") - property_id: Optional[StrictStr] = Field(default=None, description="Property ID associated to the allotment block", alias="propertyID") - allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") - allotment_block_status: Optional[StrictStr] = Field(default=None, description="Allotment block status", alias="allotmentBlockStatus") - allotment_block_name: Optional[StrictStr] = Field(default=None, description="Allotment block name", alias="allotmentBlockName") - allotment_block_id: Optional[StrictStr] = Field(default=None, description="Allotment block ID", alias="allotmentBlockId") - rate_type: Optional[StrictStr] = Field(default=None, description="Rate type for the allotment block", alias="rateType") - rate_plan_id: Optional[StrictStr] = Field(default=None, description="Rate plan ID if applicable", alias="ratePlanId") - allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") - group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") - groupcode: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block") - is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") - auto_release: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease] = Field(default=None, alias="autoRelease") - allotment_intervals: Optional[List[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") - message: Optional[StrictStr] = Field(default=None, description="Error message") - __properties: ClassVar[List[str]] = ["rateID", "action", "startDate", "endDate", "rate", "maxLos", "minLos", "closedToArrival", "closedToDeparture", "cutOff", "lastMinuteBooking", "propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupcode", "isAutoRelease", "autoRelease", "allotmentIntervals", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of auto_release - if self.auto_release: - _dict['autoRelease'] = self.auto_release.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in allotment_intervals (list) - _items = [] - if self.allotment_intervals: - for _item_allotment_intervals in self.allotment_intervals: - if _item_allotment_intervals: - _items.append(_item_allotment_intervals.to_dict()) - _dict['allotmentIntervals'] = _items - # set to None if max_los (nullable) is None - # and model_fields_set contains the field - if self.max_los is None and "max_los" in self.model_fields_set: - _dict['maxLos'] = None - - # set to None if min_los (nullable) is None - # and model_fields_set contains the field - if self.min_los is None and "min_los" in self.model_fields_set: - _dict['minLos'] = None - - # set to None if closed_to_arrival (nullable) is None - # and model_fields_set contains the field - if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: - _dict['closedToArrival'] = None - - # set to None if closed_to_departure (nullable) is None - # and model_fields_set contains the field - if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: - _dict['closedToDeparture'] = None - - # set to None if cut_off (nullable) is None - # and model_fields_set contains the field - if self.cut_off is None and "cut_off" in self.model_fields_set: - _dict['cutOff'] = None - - # set to None if last_minute_booking (nullable) is None - # and model_fields_set contains the field - if self.last_minute_booking is None and "last_minute_booking" in self.model_fields_set: - _dict['lastMinuteBooking'] = None - - # set to None if property_id (nullable) is None - # and model_fields_set contains the field - if self.property_id is None and "property_id" in self.model_fields_set: - _dict['propertyID'] = None - - # set to None if allotment_block_code (nullable) is None - # and model_fields_set contains the field - if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: - _dict['allotmentBlockCode'] = None - - # set to None if allotment_block_status (nullable) is None - # and model_fields_set contains the field - if self.allotment_block_status is None and "allotment_block_status" in self.model_fields_set: - _dict['allotmentBlockStatus'] = None - - # set to None if allotment_block_name (nullable) is None - # and model_fields_set contains the field - if self.allotment_block_name is None and "allotment_block_name" in self.model_fields_set: - _dict['allotmentBlockName'] = None - - # set to None if allotment_block_id (nullable) is None - # and model_fields_set contains the field - if self.allotment_block_id is None and "allotment_block_id" in self.model_fields_set: - _dict['allotmentBlockId'] = None - - # set to None if rate_type (nullable) is None - # and model_fields_set contains the field - if self.rate_type is None and "rate_type" in self.model_fields_set: - _dict['rateType'] = None - - # set to None if rate_plan_id (nullable) is None - # and model_fields_set contains the field - if self.rate_plan_id is None and "rate_plan_id" in self.model_fields_set: - _dict['ratePlanId'] = None - - # set to None if allotment_type (nullable) is None - # and model_fields_set contains the field - if self.allotment_type is None and "allotment_type" in self.model_fields_set: - _dict['allotmentType'] = None - - # set to None if group_id (nullable) is None - # and model_fields_set contains the field - if self.group_id is None and "group_id" in self.model_fields_set: - _dict['groupId'] = None - - # set to None if groupcode (nullable) is None - # and model_fields_set contains the field - if self.groupcode is None and "groupcode" in self.model_fields_set: - _dict['groupcode'] = None - - # set to None if is_auto_release (nullable) is None - # and model_fields_set contains the field - if self.is_auto_release is None and "is_auto_release" in self.model_fields_set: - _dict['isAutoRelease'] = None - - # set to None if auto_release (nullable) is None - # and model_fields_set contains the field - if self.auto_release is None and "auto_release" in self.model_fields_set: - _dict['autoRelease'] = None - - # set to None if allotment_intervals (nullable) is None - # and model_fields_set contains the field - if self.allotment_intervals is None and "allotment_intervals" in self.model_fields_set: - _dict['allotmentIntervals'] = None - - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "rateID": obj.get("rateID"), - "action": obj.get("action"), - "startDate": obj.get("startDate"), - "endDate": obj.get("endDate"), - "rate": obj.get("rate"), - "maxLos": obj.get("maxLos"), - "minLos": obj.get("minLos"), - "closedToArrival": obj.get("closedToArrival"), - "closedToDeparture": obj.get("closedToDeparture"), - "cutOff": obj.get("cutOff"), - "lastMinuteBooking": obj.get("lastMinuteBooking"), - "propertyID": obj.get("propertyID"), - "allotmentBlockCode": obj.get("allotmentBlockCode"), - "allotmentBlockStatus": obj.get("allotmentBlockStatus"), - "allotmentBlockName": obj.get("allotmentBlockName"), - "allotmentBlockId": obj.get("allotmentBlockId"), - "rateType": obj.get("rateType"), - "ratePlanId": obj.get("ratePlanId"), - "allotmentType": obj.get("allotmentType"), - "groupId": obj.get("groupId"), - "groupcode": obj.get("groupcode"), - "isAutoRelease": obj.get("isAutoRelease"), - "autoRelease": GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease.from_dict(obj["autoRelease"]) if obj.get("autoRelease") is not None else None, - "allotmentIntervals": [GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None, - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py deleted file mode 100644 index f3eee5d..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner(BaseModel): - """ - GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner - """ # noqa: E501 - room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") - start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") - end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") - availability: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability] = None - restrictions: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions] = None - __properties: ClassVar[List[str]] = ["roomTypeId", "startDate", "endDate", "availability", "restrictions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of availability - if self.availability: - _dict['availability'] = self.availability.to_dict() - # override the default output from pydantic by calling `to_dict()` of restrictions - if self.restrictions: - _dict['restrictions'] = self.restrictions.to_dict() - # set to None if room_type_id (nullable) is None - # and model_fields_set contains the field - if self.room_type_id is None and "room_type_id" in self.model_fields_set: - _dict['roomTypeId'] = None - - # set to None if start_date (nullable) is None - # and model_fields_set contains the field - if self.start_date is None and "start_date" in self.model_fields_set: - _dict['startDate'] = None - - # set to None if end_date (nullable) is None - # and model_fields_set contains the field - if self.end_date is None and "end_date" in self.model_fields_set: - _dict['endDate'] = None - - # set to None if availability (nullable) is None - # and model_fields_set contains the field - if self.availability is None and "availability" in self.model_fields_set: - _dict['availability'] = None - - # set to None if restrictions (nullable) is None - # and model_fields_set contains the field - if self.restrictions is None and "restrictions" in self.model_fields_set: - _dict['restrictions'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "roomTypeId": obj.get("roomTypeId"), - "startDate": obj.get("startDate"), - "endDate": obj.get("endDate"), - "availability": GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability.from_dict(obj["availability"]) if obj.get("availability") is not None else None, - "restrictions": GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py deleted file mode 100644 index be6af7c..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability(BaseModel): - """ - Interval availability data by day in interval - """ # noqa: E501 - var_date: Optional[date] = Field(default=None, description="Day within interval", alias="date") - block_remaining: Optional[StrictInt] = Field(default=None, description="Number of units remaining for the room type for this day", alias="blockRemaining") - block_allotted: Optional[StrictInt] = Field(default=None, description="Total number of units available for the room type for this day", alias="blockAllotted") - block_confirmed: Optional[StrictInt] = Field(default=None, description="Number of units booked for the room type for this day", alias="blockConfirmed") - rate: Optional[StrictStr] = Field(default=None, description="the price") - guest_pricing: Optional[GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing] = Field(default=None, alias="guestPricing") - __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of guest_pricing - if self.guest_pricing: - _dict['guestPricing'] = self.guest_pricing.to_dict() - # set to None if var_date (nullable) is None - # and model_fields_set contains the field - if self.var_date is None and "var_date" in self.model_fields_set: - _dict['date'] = None - - # set to None if block_remaining (nullable) is None - # and model_fields_set contains the field - if self.block_remaining is None and "block_remaining" in self.model_fields_set: - _dict['blockRemaining'] = None - - # set to None if block_allotted (nullable) is None - # and model_fields_set contains the field - if self.block_allotted is None and "block_allotted" in self.model_fields_set: - _dict['blockAllotted'] = None - - # set to None if block_confirmed (nullable) is None - # and model_fields_set contains the field - if self.block_confirmed is None and "block_confirmed" in self.model_fields_set: - _dict['blockConfirmed'] = None - - # set to None if rate (nullable) is None - # and model_fields_set contains the field - if self.rate is None and "rate" in self.model_fields_set: - _dict['rate'] = None - - # set to None if guest_pricing (nullable) is None - # and model_fields_set contains the field - if self.guest_pricing is None and "guest_pricing" in self.model_fields_set: - _dict['guestPricing'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "date": obj.get("date"), - "blockRemaining": obj.get("blockRemaining"), - "blockAllotted": obj.get("blockAllotted"), - "blockConfirmed": obj.get("blockConfirmed"), - "rate": obj.get("rate"), - "guestPricing": GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py deleted file mode 100644 index d510cfc..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing(BaseModel): - """ - Guest pricing data if applicable. Note: the number of results varies here based on the occupancy settings and custom guest pricing for the room type. - """ # noqa: E501 - adult1: Optional[StrictStr] = Field(default=None, description="Price for adult 1") - adult2: Optional[StrictStr] = Field(default=None, description="Price for adult 2") - adult3: Optional[StrictStr] = Field(default=None, description="Price for adult 3") - child1: Optional[StrictStr] = Field(default=None, description="Price for child 1") - child2: Optional[StrictStr] = Field(default=None, description="Price for child 2") - child3: Optional[StrictStr] = Field(default=None, description="Price for child 3") - __properties: ClassVar[List[str]] = ["adult1", "adult2", "adult3", "child1", "child2", "child3"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if adult1 (nullable) is None - # and model_fields_set contains the field - if self.adult1 is None and "adult1" in self.model_fields_set: - _dict['adult1'] = None - - # set to None if adult2 (nullable) is None - # and model_fields_set contains the field - if self.adult2 is None and "adult2" in self.model_fields_set: - _dict['adult2'] = None - - # set to None if adult3 (nullable) is None - # and model_fields_set contains the field - if self.adult3 is None and "adult3" in self.model_fields_set: - _dict['adult3'] = None - - # set to None if child1 (nullable) is None - # and model_fields_set contains the field - if self.child1 is None and "child1" in self.model_fields_set: - _dict['child1'] = None - - # set to None if child2 (nullable) is None - # and model_fields_set contains the field - if self.child2 is None and "child2" in self.model_fields_set: - _dict['child2'] = None - - # set to None if child3 (nullable) is None - # and model_fields_set contains the field - if self.child3 is None and "child3" in self.model_fields_set: - _dict['child3'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adult1": obj.get("adult1"), - "adult2": obj.get("adult2"), - "adult3": obj.get("adult3"), - "child1": obj.get("child1"), - "child2": obj.get("child2"), - "child3": obj.get("child3") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py deleted file mode 100644 index 8a6a449..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions(BaseModel): - """ - Interval restrictions if applicable - """ # noqa: E501 - min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") - max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") - cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should the guests be required to book", alias="cutOffDays") - last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="Hoe many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") - closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") - closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure", alias="closedToDeparture") - __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if min_los (nullable) is None - # and model_fields_set contains the field - if self.min_los is None and "min_los" in self.model_fields_set: - _dict['minLos'] = None - - # set to None if max_los (nullable) is None - # and model_fields_set contains the field - if self.max_los is None and "max_los" in self.model_fields_set: - _dict['maxLos'] = None - - # set to None if cut_off_days (nullable) is None - # and model_fields_set contains the field - if self.cut_off_days is None and "cut_off_days" in self.model_fields_set: - _dict['cutOffDays'] = None - - # set to None if last_minute_booking_days (nullable) is None - # and model_fields_set contains the field - if self.last_minute_booking_days is None and "last_minute_booking_days" in self.model_fields_set: - _dict['lastMinuteBookingDays'] = None - - # set to None if closed_to_arrival (nullable) is None - # and model_fields_set contains the field - if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: - _dict['closedToArrival'] = None - - # set to None if closed_to_departure (nullable) is None - # and model_fields_set contains the field - if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: - _dict['closedToDeparture'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "minLos": obj.get("minLos"), - "maxLos": obj.get("maxLos"), - "cutOffDays": obj.get("cutOffDays"), - "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), - "closedToArrival": obj.get("closedToArrival"), - "closedToDeparture": obj.get("closedToDeparture") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py b/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py deleted file mode 100644 index 274bd9a..0000000 --- a/cloudbeds_pms_v1_3/models/get_async_api_job_response_data_inner_updates_inner_auto_release.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease(BaseModel): - """ - auto-release data if applicable - """ # noqa: E501 - release_type: Optional[StrictStr] = Field(default=None, description="The type of auto-release", alias="releaseType") - days: Optional[StrictInt] = Field(default=None, description="The number of days prior to the end of the allotment block to begin releasing dates from the allotment block") - release_time: Optional[StrictStr] = Field(default=None, description="The hour to being the auto-release in HH:00 format, e.g. '00:00', '01:00'...", alias="releaseTime") - __properties: ClassVar[List[str]] = ["releaseType", "days", "releaseTime"] - - @field_validator('release_type') - def release_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['all_dates', 'by_day', 'by_interval']): - raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if release_type (nullable) is None - # and model_fields_set contains the field - if self.release_type is None and "release_type" in self.model_fields_set: - _dict['releaseType'] = None - - # set to None if days (nullable) is None - # and model_fields_set contains the field - if self.days is None and "days" in self.model_fields_set: - _dict['days'] = None - - # set to None if release_time (nullable) is None - # and model_fields_set contains the field - if self.release_time is None and "release_time" in self.model_fields_set: - _dict['releaseTime'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "releaseType": obj.get("releaseType"), - "days": obj.get("days"), - "releaseTime": obj.get("releaseTime") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py b/cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py deleted file mode 100644 index 3d5617f..0000000 --- a/cloudbeds_pms_v1_3/models/get_hotel_room_types_response.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetHotelRoomTypesResponse(BaseModel): - """ - GetHotelRoomTypesResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - count: Optional[StrictInt] = Field(default=None, description="Number of results returned") - data: Optional[List[StrictStr]] = Field(default=None, description="Room Types details") - total: Optional[StrictInt] = Field(default=None, description="Total number of results") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "count", "data", "total", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHotelRoomTypesResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHotelRoomTypesResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "count": obj.get("count"), - "data": obj.get("data"), - "total": obj.get("total"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response.py deleted file mode 100644 index 8afdb34..0000000 --- a/cloudbeds_pms_v1_3/models/get_house_account_details_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponse(BaseModel): - """ - GetHouseAccountDetailsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[GetHouseAccountDetailsResponseData] = None - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": GetHouseAccountDetailsResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py deleted file mode 100644 index 3fa19e0..0000000 --- a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponseData(BaseModel): - """ - Includes records list for House Account and summary info covering the date range specified - """ # noqa: E501 - total: Optional[List[GetHouseAccountDetailsResponseDataTotalInner]] = Field(default=None, description="Section with summary records info") - records: Optional[List[GetHouseAccountDetailsResponseDataRecordsInner]] = Field(default=None, description="Section with records list") - __properties: ClassVar[List[str]] = ["total", "records"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in total (list) - _items = [] - if self.total: - for _item_total in self.total: - if _item_total: - _items.append(_item_total.to_dict()) - _dict['total'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in records (list) - _items = [] - if self.records: - for _item_records in self.records: - if _item_records: - _items.append(_item_records.to_dict()) - _dict['records'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": [GetHouseAccountDetailsResponseDataTotalInner.from_dict(_item) for _item in obj["total"]] if obj.get("total") is not None else None, - "records": [GetHouseAccountDetailsResponseDataRecordsInner.from_dict(_item) for _item in obj["records"]] if obj.get("records") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py deleted file mode 100644 index dc8ece4..0000000 --- a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_records_inner.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date, datetime -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponseDataRecordsInner(BaseModel): - """ - GetHouseAccountDetailsResponseDataRecordsInner - """ # noqa: E501 - property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction ID", alias="transactionID") - user_name: Optional[StrictStr] = Field(default=None, description="User name", alias="userName") - description: Optional[StrictStr] = Field(default=None, description="Record description") - notes: Optional[StrictStr] = Field(default=None, description="Record notes") - quantity: Optional[StrictStr] = Field(default=None, description="Quantity of items (for product type record)") - debit: Optional[StrictStr] = Field(default=None, description="Debit amount (non formatted)") - credit: Optional[StrictStr] = Field(default=None, description="Credit amount (non formatted)") - debit_formatter: Optional[StrictStr] = Field(default=None, description="Debit amount (formatted)", alias="debitFormatter") - credit_formatted: Optional[StrictStr] = Field(default=None, description="Credit amount (formatted)", alias="creditFormatted") - currency: Optional[StrictStr] = Field(default=None, description="Currency string") - transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction code", alias="transactionCode") - parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") - transaction_date: Optional[date] = Field(default=None, description="Transaction date", alias="transactionDate") - transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction date and time", alias="transactionDateTime") - __properties: ClassVar[List[str]] = ["propertyID", "transactionID", "userName", "description", "notes", "quantity", "debit", "credit", "debitFormatter", "creditFormatted", "currency", "transactionCode", "parentTransactionID", "transactionDate", "transactionDateTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataRecordsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "propertyID": obj.get("propertyID"), - "transactionID": obj.get("transactionID"), - "userName": obj.get("userName"), - "description": obj.get("description"), - "notes": obj.get("notes"), - "quantity": obj.get("quantity"), - "debit": obj.get("debit"), - "credit": obj.get("credit"), - "debitFormatter": obj.get("debitFormatter"), - "creditFormatted": obj.get("creditFormatted"), - "currency": obj.get("currency"), - "transactionCode": obj.get("transactionCode"), - "parentTransactionID": obj.get("parentTransactionID"), - "transactionDate": obj.get("transactionDate"), - "transactionDateTime": obj.get("transactionDateTime") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py deleted file mode 100644 index ecf5f22..0000000 --- a/cloudbeds_pms_v1_3/models/get_house_account_details_response_data_total_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetHouseAccountDetailsResponseDataTotalInner(BaseModel): - """ - GetHouseAccountDetailsResponseDataTotalInner - """ # noqa: E501 - count: Optional[StrictInt] = Field(default=None, description="Total number of House Account records") - quantity: Optional[StrictStr] = Field(default=None, description="Total items quantity of product type records") - debit: Optional[StrictStr] = Field(default=None, description="Total debit (formatted)") - credit: Optional[StrictStr] = Field(default=None, description="Total credit (formatted)") - __properties: ClassVar[List[str]] = ["count", "quantity", "debit", "credit"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHouseAccountDetailsResponseDataTotalInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "count": obj.get("count"), - "quantity": obj.get("quantity"), - "debit": obj.get("debit"), - "credit": obj.get("credit") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py b/cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py deleted file mode 100644 index 05f062b..0000000 --- a/cloudbeds_pms_v1_3/models/get_import_dummy_reservations_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetImportDummyReservationsResponse(BaseModel): - """ - GetImportDummyReservationsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[StrictStr]] = Field(default=None, description="Reservations details") - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetImportDummyReservationsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetImportDummyReservationsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": obj.get("data") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_import_tours_response.py b/cloudbeds_pms_v1_3/models/get_import_tours_response.py deleted file mode 100644 index 67d2c47..0000000 --- a/cloudbeds_pms_v1_3/models/get_import_tours_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetImportToursResponse(BaseModel): - """ - GetImportToursResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[StrictStr]] = Field(default=None, description="Tours details") - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetImportToursResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetImportToursResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": obj.get("data") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_invoice_response.py b/cloudbeds_pms_v1_3/models/get_invoice_response.py deleted file mode 100644 index b1c3786..0000000 --- a/cloudbeds_pms_v1_3/models/get_invoice_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData -from typing import Optional, Set -from typing_extensions import Self - -class GetInvoiceResponse(BaseModel): - """ - GetInvoiceResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[GetInvoiceResponseData] = None - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInvoiceResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetInvoiceResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": GetInvoiceResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_invoice_response_data.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data.py deleted file mode 100644 index 50a9c42..0000000 --- a/cloudbeds_pms_v1_3/models/get_invoice_response_data.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner -from typing import Optional, Set -from typing_extensions import Self - -class GetInvoiceResponseData(BaseModel): - """ - Invoice details - """ # noqa: E501 - invoice_id: Optional[StrictStr] = Field(default=None, description="Unique invoice ID", alias="invoiceID") - user_id: Optional[StrictStr] = Field(default=None, description="Unique ID of User who generated invoice", alias="userID") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier", alias="reservationID") - prefix: Optional[StrictStr] = Field(default=None, description="Invoice ID prefix") - number: Optional[StrictInt] = Field(default=None, description="Invoice ID number") - suffix: Optional[StrictStr] = Field(default=None, description="Invoice ID suffix") - document_issue_date: Optional[StrictStr] = Field(default=None, description="Date and time when invoice was issued", alias="documentIssueDate") - status: Optional[StrictStr] = Field(default=None, description="Invoice status") - billed_to: Optional[GetInvoiceResponseDataBilledTo] = Field(default=None, alias="billedTo") - items: Optional[List[GetInvoiceResponseDataItemsInner]] = Field(default=None, description="Invoice items") - taxes: Optional[List[GetInvoiceResponseDataItemsInnerTaxesInner]] = None - fees: Optional[List[GetInvoiceResponseDataItemsInnerFeesInner]] = None - __properties: ClassVar[List[str]] = ["invoiceID", "userID", "reservationID", "prefix", "number", "suffix", "documentIssueDate", "status", "billedTo", "items", "taxes", "fees"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInvoiceResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of billed_to - if self.billed_to: - _dict['billedTo'] = self.billed_to.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in items (list) - _items = [] - if self.items: - for _item_items in self.items: - if _item_items: - _items.append(_item_items.to_dict()) - _dict['items'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) - _items = [] - if self.taxes: - for _item_taxes in self.taxes: - if _item_taxes: - _items.append(_item_taxes.to_dict()) - _dict['taxes'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in fees (list) - _items = [] - if self.fees: - for _item_fees in self.fees: - if _item_fees: - _items.append(_item_fees.to_dict()) - _dict['fees'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetInvoiceResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "invoiceID": obj.get("invoiceID"), - "userID": obj.get("userID"), - "reservationID": obj.get("reservationID"), - "prefix": obj.get("prefix"), - "number": obj.get("number"), - "suffix": obj.get("suffix"), - "documentIssueDate": obj.get("documentIssueDate"), - "status": obj.get("status"), - "billedTo": GetInvoiceResponseDataBilledTo.from_dict(obj["billedTo"]) if obj.get("billedTo") is not None else None, - "items": [GetInvoiceResponseDataItemsInner.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "taxes": [GetInvoiceResponseDataItemsInnerTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, - "fees": [GetInvoiceResponseDataItemsInnerFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py deleted file mode 100644 index 970ab7a..0000000 --- a/cloudbeds_pms_v1_3/models/get_invoice_response_data_billed_to.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetInvoiceResponseDataBilledTo(BaseModel): - """ - Information about who being billed - """ # noqa: E501 - id: Optional[StrictStr] = Field(default=None, description="Unique identifier of who being billed Additional information about who being billed could be retrieved via corresponding API e.g.: for a guest it could be [getGuest](#tag/Guest/paths/~1getGuest/get)") - type: Optional[StrictStr] = Field(default=None, description="Type of who being billed") - __properties: ClassVar[List[str]] = ["id", "type"] - - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['guest']): - raise ValueError("must be one of enum values ('guest')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataBilledTo from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataBilledTo from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "type": obj.get("type") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py deleted file mode 100644 index a08deac..0000000 --- a/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner -from typing import Optional, Set -from typing_extensions import Self - -class GetInvoiceResponseDataItemsInner(BaseModel): - """ - GetInvoiceResponseDataItemsInner - """ # noqa: E501 - description: Optional[StrictStr] = None - type: Optional[StrictStr] = None - quantity: Optional[StrictInt] = None - total_amount: Optional[StrictStr] = Field(default=None, alias="totalAmount") - net_amount: Optional[StrictStr] = Field(default=None, alias="netAmount") - currency: Optional[StrictStr] = None - taxes: Optional[List[GetInvoiceResponseDataItemsInnerTaxesInner]] = None - fees: Optional[List[GetInvoiceResponseDataItemsInnerFeesInner]] = None - __properties: ClassVar[List[str]] = ["description", "type", "quantity", "totalAmount", "netAmount", "currency", "taxes", "fees"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataItemsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in taxes (list) - _items = [] - if self.taxes: - for _item_taxes in self.taxes: - if _item_taxes: - _items.append(_item_taxes.to_dict()) - _dict['taxes'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in fees (list) - _items = [] - if self.fees: - for _item_fees in self.fees: - if _item_fees: - _items.append(_item_fees.to_dict()) - _dict['fees'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataItemsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "type": obj.get("type"), - "quantity": obj.get("quantity"), - "totalAmount": obj.get("totalAmount"), - "netAmount": obj.get("netAmount"), - "currency": obj.get("currency"), - "taxes": [GetInvoiceResponseDataItemsInnerTaxesInner.from_dict(_item) for _item in obj["taxes"]] if obj.get("taxes") is not None else None, - "fees": [GetInvoiceResponseDataItemsInnerFeesInner.from_dict(_item) for _item in obj["fees"]] if obj.get("fees") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py deleted file mode 100644 index a8abc2f..0000000 --- a/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_fees_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetInvoiceResponseDataItemsInnerFeesInner(BaseModel): - """ - GetInvoiceResponseDataItemsInnerFeesInner - """ # noqa: E501 - name: Optional[StrictStr] = None - amount: Optional[StrictStr] = None - code: Optional[StrictStr] = None - fee_id: Optional[StrictStr] = Field(default=None, alias="feeID") - __properties: ClassVar[List[str]] = ["name", "amount", "code", "feeID"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataItemsInnerFeesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "amount": obj.get("amount"), - "code": obj.get("code"), - "feeID": obj.get("feeID") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py deleted file mode 100644 index 0c5fe56..0000000 --- a/cloudbeds_pms_v1_3/models/get_invoice_response_data_items_inner_taxes_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetInvoiceResponseDataItemsInnerTaxesInner(BaseModel): - """ - GetInvoiceResponseDataItemsInnerTaxesInner - """ # noqa: E501 - name: Optional[StrictStr] = None - amount: Optional[StrictStr] = None - code: Optional[StrictStr] = None - tax_id: Optional[StrictStr] = Field(default=None, alias="taxID") - __properties: ClassVar[List[str]] = ["name", "amount", "code", "taxID"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetInvoiceResponseDataItemsInnerTaxesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "amount": obj.get("amount"), - "code": obj.get("code"), - "taxID": obj.get("taxID") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_payments_response.py b/cloudbeds_pms_v1_3/models/get_payments_response.py deleted file mode 100644 index d67b04e..0000000 --- a/cloudbeds_pms_v1_3/models/get_payments_response.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetPaymentsResponse(BaseModel): - """ - GetPaymentsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetPaymentsResponseDataInner]] = Field(default=None, description="Transaction list") - count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination") - total: Optional[StrictInt] = Field(default=None, description="Total number of results") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPaymentsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPaymentsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetPaymentsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "count": obj.get("count"), - "total": obj.get("total"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py deleted file mode 100644 index f619d3d..0000000 --- a/cloudbeds_pms_v1_3/models/get_payments_response_data_inner.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date, datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner -from typing import Optional, Set -from typing_extensions import Self - -class GetPaymentsResponseDataInner(BaseModel): - """ - GetPaymentsResponseDataInner - """ # noqa: E501 - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") - payment_id: Optional[StrictStr] = Field(default=None, description="Payment ID", alias="paymentID") - property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") - transaction_date_time: Optional[datetime] = Field(default=None, description="Transaction DateTime", alias="transactionDateTime") - transaction_date_time_utc: Optional[datetime] = Field(default=None, description="Transaction DateTime on UTC timezone", alias="transactionDateTimeUTC") - user_id: Optional[StrictStr] = Field(default=None, description="User ID that generated payment", alias="userID") - user_name: Optional[StrictStr] = Field(default=None, description="User name that generated payment", alias="userName") - room_id: Optional[StrictStr] = Field(default=None, description="ID of room. Only available when reservationID is sent.", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Name/Number of room. Only available when reservationID is sent.", alias="roomName") - guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID. Only available when reservationID or guestID is sent.", alias="guestID") - guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name. Only available when reservationID or guestID is sent.", alias="guestName") - guest_check_in: Optional[date] = Field(default=None, description="Guest Check-In date. Only available when reservationID is sent.", alias="guestCheckIn") - guest_check_out: Optional[date] = Field(default=None, description="Guest Check-Out date. Only available when reservationID is sent.", alias="guestCheckOut") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID. Only available when reservationID is sent.", alias="reservationID") - sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub reservation ID. Only available when reservationID is sent.", alias="subReservationID") - reservation_status: Optional[StrictStr] = Field(default=None, description="Current reservation status. Only available when reservationID is sent.", alias="reservationStatus") - house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID, Only available when houseAccountID is sent.", alias="houseAccountID") - house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name, Only available when houseAccountID is sent.", alias="houseAccountName") - description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") - payment_method: Optional[StrictStr] = Field(default=None, description="Payment Method of the transaction", alias="paymentMethod") - quantity: Optional[StrictInt] = None - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") - currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") - is_posted: Optional[StrictBool] = Field(default=None, alias="isPosted") - is_voided: Optional[StrictBool] = Field(default=None, alias="isVoided") - is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") - state: Optional[StrictStr] = None - is_allocated: Optional[StrictBool] = Field(default=None, description="only if includePaymentAllocation=true", alias="isAllocated") - total_allocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated payment", alias="totalAllocated") - total_unallocated: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of unallocated payment", alias="totalUnallocated") - payment_allocation: Optional[List[GetPaymentsResponseDataInnerPaymentAllocationInner]] = Field(default=None, description="²", alias="paymentAllocation") - __properties: ClassVar[List[str]] = ["transactionID", "paymentID", "propertyID", "transactionDateTime", "transactionDateTimeUTC", "userID", "userName", "roomID", "roomName", "guestID", "guestName", "guestCheckIn", "guestCheckOut", "reservationID", "subReservationID", "reservationStatus", "houseAccountID", "houseAccountName", "description", "paymentMethod", "quantity", "amount", "currency", "isPosted", "isVoided", "isDeleted", "state", "isAllocated", "totalAllocated", "totalUnallocated", "paymentAllocation"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in payment_allocation (list) - _items = [] - if self.payment_allocation: - for _item_payment_allocation in self.payment_allocation: - if _item_payment_allocation: - _items.append(_item_payment_allocation.to_dict()) - _dict['paymentAllocation'] = _items - # set to None if room_id (nullable) is None - # and model_fields_set contains the field - if self.room_id is None and "room_id" in self.model_fields_set: - _dict['roomID'] = None - - # set to None if room_name (nullable) is None - # and model_fields_set contains the field - if self.room_name is None and "room_name" in self.model_fields_set: - _dict['roomName'] = None - - # set to None if guest_id (nullable) is None - # and model_fields_set contains the field - if self.guest_id is None and "guest_id" in self.model_fields_set: - _dict['guestID'] = None - - # set to None if guest_name (nullable) is None - # and model_fields_set contains the field - if self.guest_name is None and "guest_name" in self.model_fields_set: - _dict['guestName'] = None - - # set to None if guest_check_in (nullable) is None - # and model_fields_set contains the field - if self.guest_check_in is None and "guest_check_in" in self.model_fields_set: - _dict['guestCheckIn'] = None - - # set to None if guest_check_out (nullable) is None - # and model_fields_set contains the field - if self.guest_check_out is None and "guest_check_out" in self.model_fields_set: - _dict['guestCheckOut'] = None - - # set to None if reservation_id (nullable) is None - # and model_fields_set contains the field - if self.reservation_id is None and "reservation_id" in self.model_fields_set: - _dict['reservationID'] = None - - # set to None if sub_reservation_id (nullable) is None - # and model_fields_set contains the field - if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: - _dict['subReservationID'] = None - - # set to None if reservation_status (nullable) is None - # and model_fields_set contains the field - if self.reservation_status is None and "reservation_status" in self.model_fields_set: - _dict['reservationStatus'] = None - - # set to None if house_account_id (nullable) is None - # and model_fields_set contains the field - if self.house_account_id is None and "house_account_id" in self.model_fields_set: - _dict['houseAccountID'] = None - - # set to None if house_account_name (nullable) is None - # and model_fields_set contains the field - if self.house_account_name is None and "house_account_name" in self.model_fields_set: - _dict['houseAccountName'] = None - - # set to None if is_allocated (nullable) is None - # and model_fields_set contains the field - if self.is_allocated is None and "is_allocated" in self.model_fields_set: - _dict['isAllocated'] = None - - # set to None if total_allocated (nullable) is None - # and model_fields_set contains the field - if self.total_allocated is None and "total_allocated" in self.model_fields_set: - _dict['totalAllocated'] = None - - # set to None if total_unallocated (nullable) is None - # and model_fields_set contains the field - if self.total_unallocated is None and "total_unallocated" in self.model_fields_set: - _dict['totalUnallocated'] = None - - # set to None if payment_allocation (nullable) is None - # and model_fields_set contains the field - if self.payment_allocation is None and "payment_allocation" in self.model_fields_set: - _dict['paymentAllocation'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "transactionID": obj.get("transactionID"), - "paymentID": obj.get("paymentID"), - "propertyID": obj.get("propertyID"), - "transactionDateTime": obj.get("transactionDateTime"), - "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), - "userID": obj.get("userID"), - "userName": obj.get("userName"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "guestID": obj.get("guestID"), - "guestName": obj.get("guestName"), - "guestCheckIn": obj.get("guestCheckIn"), - "guestCheckOut": obj.get("guestCheckOut"), - "reservationID": obj.get("reservationID"), - "subReservationID": obj.get("subReservationID"), - "reservationStatus": obj.get("reservationStatus"), - "houseAccountID": obj.get("houseAccountID"), - "houseAccountName": obj.get("houseAccountName"), - "description": obj.get("description"), - "paymentMethod": obj.get("paymentMethod"), - "quantity": obj.get("quantity"), - "amount": obj.get("amount"), - "currency": obj.get("currency"), - "isPosted": obj.get("isPosted"), - "isVoided": obj.get("isVoided"), - "isDeleted": obj.get("isDeleted"), - "state": obj.get("state"), - "isAllocated": obj.get("isAllocated"), - "totalAllocated": obj.get("totalAllocated"), - "totalUnallocated": obj.get("totalUnallocated"), - "paymentAllocation": [GetPaymentsResponseDataInnerPaymentAllocationInner.from_dict(_item) for _item in obj["paymentAllocation"]] if obj.get("paymentAllocation") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py deleted file mode 100644 index d452f91..0000000 --- a/cloudbeds_pms_v1_3/models/get_payments_response_data_inner_payment_allocation_inner.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetPaymentsResponseDataInnerPaymentAllocationInner(BaseModel): - """ - GetPaymentsResponseDataInnerPaymentAllocationInner - """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, description="² Type of item described in allocation") - reference: Optional[StrictStr] = Field(default=None, description="² Reference of item described in allocation") - name: Optional[StrictStr] = Field(default=None, description="² Name of item described in allocation") - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="² Amount of allocated of payment total") - taxes: Optional[List[StrictStr]] = Field(default=None, description="² Taxes of allocated payment. Values are an array numeric of taxes IDs") - fees: Optional[List[StrictStr]] = Field(default=None, description="² Fees of allocated payment. Values are an array numeric of fees IDs") - __properties: ClassVar[List[str]] = ["type", "reference", "name", "amount", "taxes", "fees"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if type (nullable) is None - # and model_fields_set contains the field - if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None - - # set to None if reference (nullable) is None - # and model_fields_set contains the field - if self.reference is None and "reference" in self.model_fields_set: - _dict['reference'] = None - - # set to None if name (nullable) is None - # and model_fields_set contains the field - if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None - - # set to None if amount (nullable) is None - # and model_fields_set contains the field - if self.amount is None and "amount" in self.model_fields_set: - _dict['amount'] = None - - # set to None if taxes (nullable) is None - # and model_fields_set contains the field - if self.taxes is None and "taxes" in self.model_fields_set: - _dict['taxes'] = None - - # set to None if fees (nullable) is None - # and model_fields_set contains the field - if self.fees is None and "fees" in self.model_fields_set: - _dict['fees'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPaymentsResponseDataInnerPaymentAllocationInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "reference": obj.get("reference"), - "name": obj.get("name"), - "amount": obj.get("amount"), - "taxes": obj.get("taxes"), - "fees": obj.get("fees") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_pending_transactions_response.py b/cloudbeds_pms_v1_3/models/get_pending_transactions_response.py deleted file mode 100644 index 4e454ab..0000000 --- a/cloudbeds_pms_v1_3/models/get_pending_transactions_response.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetPendingTransactionsResponse(BaseModel): - """ - GetPendingTransactionsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetPendingTransactionsResponseDataInner]] = Field(default=None, description="Transaction list covering the date range specified") - count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination and filter parameters") - total: Optional[StrictInt] = Field(default=None, description="Total count of results, based on filter parameters") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "count", "total", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPendingTransactionsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPendingTransactionsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetPendingTransactionsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "count": obj.get("count"), - "total": obj.get("total"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py deleted file mode 100644 index f71a044..0000000 --- a/cloudbeds_pms_v1_3/models/get_pending_transactions_response_data_inner.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date, datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetPendingTransactionsResponseDataInner(BaseModel): - """ - GetPendingTransactionsResponseDataInner - """ # noqa: E501 - property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID", alias="reservationID") - sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID", alias="subReservationID") - house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID", alias="houseAccountID") - house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name", alias="houseAccountName") - guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") - property_name: Optional[StrictStr] = Field(default=None, description="Property Name", alias="propertyName") - transaction_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored", alias="transactionDateTime") - transaction_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored, in UTC timezone", alias="transactionDateTimeUTC") - transaction_modified_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified", alias="transactionModifiedDateTime") - transaction_modified_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified, in UTC timezone", alias="transactionModifiedDateTimeUTC") - guest_check_in: Optional[date] = Field(default=None, description="Reservation Check-in date", alias="guestCheckIn") - guest_check_out: Optional[date] = Field(default=None, description="Reservation Check-out date", alias="guestCheckOut") - room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") - room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type", alias="roomTypeName") - room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room.", alias="roomName") - guest_name: Optional[StrictStr] = Field(default=None, description="Name of the first guest of the reservation", alias="guestName") - description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") - category: Optional[StrictStr] = Field(default=None, description="Category of the transaction") - transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction identifier that can be used, or left blank", alias="transactionCode") - notes: Optional[StrictStr] = Field(default=None, description="If any special information needs to be added to the transaction, it will be in this field") - quantity: Optional[StrictInt] = None - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") - currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") - user_name: Optional[StrictStr] = Field(default=None, description="User responsible for creating the transaction", alias="userName") - transaction_type: Optional[StrictStr] = Field(default=None, description="Consolidated transaction type", alias="transactionType") - transaction_category: Optional[StrictStr] = Field(default=None, description="Transaction category", alias="transactionCategory") - item_category_name: Optional[StrictStr] = Field(default=None, description="Item category name", alias="itemCategoryName") - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") - parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") - card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") - is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted"] - - @field_validator('transaction_type') - def transaction_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['debit', 'credit']): - raise ValueError("must be one of enum values ('debit', 'credit')") - return value - - @field_validator('transaction_category') - def transaction_category_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void']): - raise ValueError("must be one of enum values ('adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPendingTransactionsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if house_account_id (nullable) is None - # and model_fields_set contains the field - if self.house_account_id is None and "house_account_id" in self.model_fields_set: - _dict['houseAccountID'] = None - - # set to None if house_account_name (nullable) is None - # and model_fields_set contains the field - if self.house_account_name is None and "house_account_name" in self.model_fields_set: - _dict['houseAccountName'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPendingTransactionsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "propertyID": obj.get("propertyID"), - "reservationID": obj.get("reservationID"), - "subReservationID": obj.get("subReservationID"), - "houseAccountID": obj.get("houseAccountID"), - "houseAccountName": obj.get("houseAccountName"), - "guestID": obj.get("guestID"), - "propertyName": obj.get("propertyName"), - "transactionDateTime": obj.get("transactionDateTime"), - "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), - "transactionModifiedDateTime": obj.get("transactionModifiedDateTime"), - "transactionModifiedDateTimeUTC": obj.get("transactionModifiedDateTimeUTC"), - "guestCheckIn": obj.get("guestCheckIn"), - "guestCheckOut": obj.get("guestCheckOut"), - "roomTypeID": obj.get("roomTypeID"), - "roomTypeName": obj.get("roomTypeName"), - "roomName": obj.get("roomName"), - "guestName": obj.get("guestName"), - "description": obj.get("description"), - "category": obj.get("category"), - "transactionCode": obj.get("transactionCode"), - "notes": obj.get("notes"), - "quantity": obj.get("quantity"), - "amount": obj.get("amount"), - "currency": obj.get("currency"), - "userName": obj.get("userName"), - "transactionType": obj.get("transactionType"), - "transactionCategory": obj.get("transactionCategory"), - "itemCategoryName": obj.get("itemCategoryName"), - "transactionID": obj.get("transactionID"), - "parentTransactionID": obj.get("parentTransactionID"), - "cardType": obj.get("cardType"), - "isDeleted": obj.get("isDeleted") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py b/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py deleted file mode 100644 index 5421e8f..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationArrivalsResponse(BaseModel): - """ - GetReservationArrivalsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetReservationArrivalsResponseDataInner]] = Field(default=None, description="Details for the arrivals scheduled for today") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationArrivalsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationArrivalsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetReservationArrivalsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py deleted file mode 100644 index f9c5434..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_arrivals_response_data_inner.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationArrivalsResponseDataInner(BaseModel): - """ - GetReservationArrivalsResponseDataInner - """ # noqa: E501 - guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") - guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name", alias="guestName") - room_id: Optional[StrictStr] = Field(default=None, description="Room ID where the guest is assigned", alias="roomID") - balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance owed at the time") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier, used for all query operations", alias="reservationID") - sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Unique Room-Reservation identifier", alias="subReservationID") - estimated_arrival_time: Optional[StrictStr] = Field(default=None, description="Estimated arrival time, 24-hour format.", alias="estimatedArrivalTime") - __properties: ClassVar[List[str]] = ["guestID", "guestName", "roomID", "balance", "reservationID", "subReservationID", "estimatedArrivalTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationArrivalsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if estimated_arrival_time (nullable) is None - # and model_fields_set contains the field - if self.estimated_arrival_time is None and "estimated_arrival_time" in self.model_fields_set: - _dict['estimatedArrivalTime'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationArrivalsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "guestID": obj.get("guestID"), - "guestName": obj.get("guestName"), - "roomID": obj.get("roomID"), - "balance": obj.get("balance"), - "reservationID": obj.get("reservationID"), - "subReservationID": obj.get("subReservationID"), - "estimatedArrivalTime": obj.get("estimatedArrivalTime") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_departures_response.py b/cloudbeds_pms_v1_3/models/get_reservation_departures_response.py deleted file mode 100644 index 1ca5977..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_departures_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationDeparturesResponse(BaseModel): - """ - GetReservationDeparturesResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetReservationDeparturesResponseDataInner]] = Field(default=None, description="Details for the arrivals scheduled for today") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationDeparturesResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationDeparturesResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetReservationDeparturesResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py deleted file mode 100644 index c86c8d4..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_departures_response_data_inner.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationDeparturesResponseDataInner(BaseModel): - """ - GetReservationDeparturesResponseDataInner - """ # noqa: E501 - guest_name: Optional[StrictStr] = Field(default=None, description="Main Guest Name", alias="guestName") - guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID, can be used to get the corresponding guest details from \"reservationDetails\".", alias="guestID") - balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance owed at the time") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier, used for all query operations", alias="reservationID") - reservation_details: Optional[List[Dict[str, Any]]] = Field(default=None, description="Reservation details, please check response from \"getReservation\" method", alias="reservationDetails") - __properties: ClassVar[List[str]] = ["guestName", "guestID", "balance", "reservationID", "reservationDetails"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationDeparturesResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationDeparturesResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "guestName": obj.get("guestName"), - "guestID": obj.get("guestID"), - "balance": obj.get("balance"), - "reservationID": obj.get("reservationID"), - "reservationDetails": obj.get("reservationDetails") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py b/cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py deleted file mode 100644 index 49f5736..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_in_house_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInHouseResponse(BaseModel): - """ - GetReservationInHouseResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetReservationInHouseResponseDataInner]] = Field(default=None, description="Details for the arrivals scheduled for today") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInHouseResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInHouseResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetReservationInHouseResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py deleted file mode 100644 index a653b0a..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_in_house_response_data_inner.py +++ /dev/null @@ -1,228 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInHouseResponseDataInner(BaseModel): - """ - GetReservationInHouseResponseDataInner - """ # noqa: E501 - guest_id: Optional[StrictStr] = Field(default=None, description="Guest identifier", alias="guestID") - guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name", alias="guestName") - main_guest_id: Optional[StrictStr] = Field(default=None, description="Guest identifier who made reservation", alias="mainGuestID") - main_guest_name: Optional[StrictStr] = Field(default=None, description="Guest Name who made reservation", alias="mainGuestName") - balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance owed at the time") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation identifier, used for all query operations", alias="reservationID") - room_check_out: Optional[date] = Field(default=None, description="Check-out date for the room", alias="roomCheckOut") - reservation_custom_fields: Optional[List[Dict[str, Any]]] = Field(default=None, description="Reservation Custom Fields, if existent", alias="reservationCustomFields") - room_id: Optional[StrictStr] = Field(default=None, description="¹ Room identifier", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="¹ Room name", alias="roomName") - guest_first_name: Optional[StrictStr] = Field(default=None, description="Guest's First Name", alias="guestFirstName") - guest_last_name: Optional[StrictStr] = Field(default=None, description="Guest's Last Name", alias="guestLastName") - guest_phone: Optional[StrictStr] = Field(default=None, description="Guest's Phone", alias="guestPhone") - guest_address1: Optional[StrictStr] = Field(default=None, description="Guest's Address (line 1)", alias="guestAddress1") - guest_address2: Optional[StrictStr] = Field(default=None, description="Guest's Address (line 2)", alias="guestAddress2") - guest_city: Optional[StrictStr] = Field(default=None, description="Guest's Address City", alias="guestCity") - guest_state: Optional[StrictStr] = Field(default=None, description="Guest's Address State", alias="guestState") - guest_country: Optional[StrictStr] = Field(default=None, description="Guest's Address Country", alias="guestCountry") - guest_zip: Optional[StrictStr] = Field(default=None, description="Guest's Address Zip code", alias="guestZip") - guest_birth_date: Optional[date] = Field(default=None, description="Guest's BirthDate", alias="guestBirthDate") - guest_document_type: Optional[StrictStr] = Field(default=None, description="Guest's Document Type", alias="guestDocumentType") - guest_document_number: Optional[StrictStr] = Field(default=None, description="Guest's Document Number", alias="guestDocumentNumber") - guest_document_issue_date: Optional[date] = Field(default=None, description="Guest's Document Issue Date", alias="guestDocumentIssueDate") - guest_document_issuing_country: Optional[StrictStr] = Field(default=None, description="Guest's Document Issuing Country", alias="guestDocumentIssuingCountry") - guest_document_expiration_date: Optional[date] = Field(default=None, description="Guest's Document Expiration Date", alias="guestDocumentExpirationDate") - guest_custom_fields: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest's Custom Fields, if any", alias="guestCustomFields") - __properties: ClassVar[List[str]] = ["guestID", "guestName", "mainGuestID", "mainGuestName", "balance", "reservationID", "roomCheckOut", "reservationCustomFields", "roomID", "roomName", "guestFirstName", "guestLastName", "guestPhone", "guestAddress1", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthDate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "guestCustomFields"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInHouseResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if room_id (nullable) is None - # and model_fields_set contains the field - if self.room_id is None and "room_id" in self.model_fields_set: - _dict['roomID'] = None - - # set to None if room_name (nullable) is None - # and model_fields_set contains the field - if self.room_name is None and "room_name" in self.model_fields_set: - _dict['roomName'] = None - - # set to None if guest_first_name (nullable) is None - # and model_fields_set contains the field - if self.guest_first_name is None and "guest_first_name" in self.model_fields_set: - _dict['guestFirstName'] = None - - # set to None if guest_last_name (nullable) is None - # and model_fields_set contains the field - if self.guest_last_name is None and "guest_last_name" in self.model_fields_set: - _dict['guestLastName'] = None - - # set to None if guest_phone (nullable) is None - # and model_fields_set contains the field - if self.guest_phone is None and "guest_phone" in self.model_fields_set: - _dict['guestPhone'] = None - - # set to None if guest_address1 (nullable) is None - # and model_fields_set contains the field - if self.guest_address1 is None and "guest_address1" in self.model_fields_set: - _dict['guestAddress1'] = None - - # set to None if guest_address2 (nullable) is None - # and model_fields_set contains the field - if self.guest_address2 is None and "guest_address2" in self.model_fields_set: - _dict['guestAddress2'] = None - - # set to None if guest_city (nullable) is None - # and model_fields_set contains the field - if self.guest_city is None and "guest_city" in self.model_fields_set: - _dict['guestCity'] = None - - # set to None if guest_state (nullable) is None - # and model_fields_set contains the field - if self.guest_state is None and "guest_state" in self.model_fields_set: - _dict['guestState'] = None - - # set to None if guest_country (nullable) is None - # and model_fields_set contains the field - if self.guest_country is None and "guest_country" in self.model_fields_set: - _dict['guestCountry'] = None - - # set to None if guest_zip (nullable) is None - # and model_fields_set contains the field - if self.guest_zip is None and "guest_zip" in self.model_fields_set: - _dict['guestZip'] = None - - # set to None if guest_birth_date (nullable) is None - # and model_fields_set contains the field - if self.guest_birth_date is None and "guest_birth_date" in self.model_fields_set: - _dict['guestBirthDate'] = None - - # set to None if guest_document_type (nullable) is None - # and model_fields_set contains the field - if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: - _dict['guestDocumentType'] = None - - # set to None if guest_document_number (nullable) is None - # and model_fields_set contains the field - if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: - _dict['guestDocumentNumber'] = None - - # set to None if guest_document_issue_date (nullable) is None - # and model_fields_set contains the field - if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: - _dict['guestDocumentIssueDate'] = None - - # set to None if guest_document_issuing_country (nullable) is None - # and model_fields_set contains the field - if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: - _dict['guestDocumentIssuingCountry'] = None - - # set to None if guest_document_expiration_date (nullable) is None - # and model_fields_set contains the field - if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: - _dict['guestDocumentExpirationDate'] = None - - # set to None if guest_custom_fields (nullable) is None - # and model_fields_set contains the field - if self.guest_custom_fields is None and "guest_custom_fields" in self.model_fields_set: - _dict['guestCustomFields'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInHouseResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "guestID": obj.get("guestID"), - "guestName": obj.get("guestName"), - "mainGuestID": obj.get("mainGuestID"), - "mainGuestName": obj.get("mainGuestName"), - "balance": obj.get("balance"), - "reservationID": obj.get("reservationID"), - "roomCheckOut": obj.get("roomCheckOut"), - "reservationCustomFields": obj.get("reservationCustomFields"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "guestFirstName": obj.get("guestFirstName"), - "guestLastName": obj.get("guestLastName"), - "guestPhone": obj.get("guestPhone"), - "guestAddress1": obj.get("guestAddress1"), - "guestAddress2": obj.get("guestAddress2"), - "guestCity": obj.get("guestCity"), - "guestState": obj.get("guestState"), - "guestCountry": obj.get("guestCountry"), - "guestZip": obj.get("guestZip"), - "guestBirthDate": obj.get("guestBirthDate"), - "guestDocumentType": obj.get("guestDocumentType"), - "guestDocumentNumber": obj.get("guestDocumentNumber"), - "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), - "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), - "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), - "guestCustomFields": obj.get("guestCustomFields") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py deleted file mode 100644 index 7ebb36f..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponse(BaseModel): - """ - GetReservationInvoiceInformationResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetReservationInvoiceInformationResponseDataInner]] = Field(default=None, description="Details for the rooms assigned on the selected date") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetReservationInvoiceInformationResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py deleted file mode 100644 index 95082fe..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInner - """ # noqa: E501 - status: Optional[StrictStr] = Field(default=None, description="Reservation status
'not_confirmed' - Reservation is pending confirmation
'confirmed' - Reservation is confirmed
'canceled' - Reservation is canceled
'checked_in' - Guest is in hotel
'checked_out' - Guest already left hotel
'no_show' - Guest didn't showed up on check-in date") - custom_fields: Optional[List[GetReservationResponseDataGuestListValueCustomFieldsInner]] = Field(default=None, description="Custom Fields related to the reservation", alias="customFields") - main_guest_details: Optional[List[GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner]] = Field(default=None, description="Details for the main guest of the reservation", alias="mainGuestDetails") - reservation_rooms: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner]] = Field(default=None, description="Booked rooms information", alias="reservationRooms") - reservation_rooms_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rates for all rooms", alias="reservationRoomsTotal") - reservation_adjustments: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner]] = Field(default=None, description="Adjustments applied to the reservation", alias="reservationAdjustments") - reservation_adjustments_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum of adjustments", alias="reservationAdjustmentsTotal") - reservation_payments: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner]] = Field(default=None, description="Payments made for this reservation", alias="reservationPayments") - reservation_additional_products: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner]] = Field(default=None, description="Additional items (products or services)", alias="reservationAdditionalProducts") - reservation_additional_products_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for additional items", alias="reservationAdditionalProductsTotal") - reservation_add_on_products: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner]] = Field(default=None, description="Addons", alias="reservationAddOnProducts") - reservation_add_on_products_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for addons", alias="reservationAddOnProductsTotal") - reservation_taxes: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]] = Field(default=None, description="Taxes", alias="reservationTaxes") - reservation_taxes_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for taxes", alias="reservationTaxesTotal") - reservation_fees: Optional[List[GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner]] = Field(default=None, description="Fees", alias="reservationFees") - reservation_fees_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum for fees", alias="reservationFeesTotal") - balance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Balance currently owed") - balance_detailed: Optional[List[GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner]] = Field(default=None, description="Reservation balance detailed with the information available on PC app, describing the financial items calculated", alias="balanceDetailed") - reservation_origin: Optional[StrictStr] = Field(default=None, description="Reservation Origin", alias="reservationOrigin") - reservation_meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation Meal Plans", alias="reservationMealPlans") - __properties: ClassVar[List[str]] = ["status", "customFields", "mainGuestDetails", "reservationRooms", "reservationRoomsTotal", "reservationAdjustments", "reservationAdjustmentsTotal", "reservationPayments", "reservationAdditionalProducts", "reservationAdditionalProductsTotal", "reservationAddOnProducts", "reservationAddOnProductsTotal", "reservationTaxes", "reservationTaxesTotal", "reservationFees", "reservationFeesTotal", "balance", "balanceDetailed", "reservationOrigin", "reservationMealPlans"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): - raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item_custom_fields in self.custom_fields: - if _item_custom_fields: - _items.append(_item_custom_fields.to_dict()) - _dict['customFields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in main_guest_details (list) - _items = [] - if self.main_guest_details: - for _item_main_guest_details in self.main_guest_details: - if _item_main_guest_details: - _items.append(_item_main_guest_details.to_dict()) - _dict['mainGuestDetails'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reservation_rooms (list) - _items = [] - if self.reservation_rooms: - for _item_reservation_rooms in self.reservation_rooms: - if _item_reservation_rooms: - _items.append(_item_reservation_rooms.to_dict()) - _dict['reservationRooms'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reservation_adjustments (list) - _items = [] - if self.reservation_adjustments: - for _item_reservation_adjustments in self.reservation_adjustments: - if _item_reservation_adjustments: - _items.append(_item_reservation_adjustments.to_dict()) - _dict['reservationAdjustments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reservation_payments (list) - _items = [] - if self.reservation_payments: - for _item_reservation_payments in self.reservation_payments: - if _item_reservation_payments: - _items.append(_item_reservation_payments.to_dict()) - _dict['reservationPayments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reservation_additional_products (list) - _items = [] - if self.reservation_additional_products: - for _item_reservation_additional_products in self.reservation_additional_products: - if _item_reservation_additional_products: - _items.append(_item_reservation_additional_products.to_dict()) - _dict['reservationAdditionalProducts'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reservation_add_on_products (list) - _items = [] - if self.reservation_add_on_products: - for _item_reservation_add_on_products in self.reservation_add_on_products: - if _item_reservation_add_on_products: - _items.append(_item_reservation_add_on_products.to_dict()) - _dict['reservationAddOnProducts'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reservation_taxes (list) - _items = [] - if self.reservation_taxes: - for _item_reservation_taxes in self.reservation_taxes: - if _item_reservation_taxes: - _items.append(_item_reservation_taxes.to_dict()) - _dict['reservationTaxes'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in reservation_fees (list) - _items = [] - if self.reservation_fees: - for _item_reservation_fees in self.reservation_fees: - if _item_reservation_fees: - _items.append(_item_reservation_fees.to_dict()) - _dict['reservationFees'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in balance_detailed (list) - _items = [] - if self.balance_detailed: - for _item_balance_detailed in self.balance_detailed: - if _item_balance_detailed: - _items.append(_item_balance_detailed.to_dict()) - _dict['balanceDetailed'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "customFields": [GetReservationResponseDataGuestListValueCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, - "mainGuestDetails": [GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner.from_dict(_item) for _item in obj["mainGuestDetails"]] if obj.get("mainGuestDetails") is not None else None, - "reservationRooms": [GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner.from_dict(_item) for _item in obj["reservationRooms"]] if obj.get("reservationRooms") is not None else None, - "reservationRoomsTotal": obj.get("reservationRoomsTotal"), - "reservationAdjustments": [GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner.from_dict(_item) for _item in obj["reservationAdjustments"]] if obj.get("reservationAdjustments") is not None else None, - "reservationAdjustmentsTotal": obj.get("reservationAdjustmentsTotal"), - "reservationPayments": [GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner.from_dict(_item) for _item in obj["reservationPayments"]] if obj.get("reservationPayments") is not None else None, - "reservationAdditionalProducts": [GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner.from_dict(_item) for _item in obj["reservationAdditionalProducts"]] if obj.get("reservationAdditionalProducts") is not None else None, - "reservationAdditionalProductsTotal": obj.get("reservationAdditionalProductsTotal"), - "reservationAddOnProducts": [GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner.from_dict(_item) for _item in obj["reservationAddOnProducts"]] if obj.get("reservationAddOnProducts") is not None else None, - "reservationAddOnProductsTotal": obj.get("reservationAddOnProductsTotal"), - "reservationTaxes": [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_dict(_item) for _item in obj["reservationTaxes"]] if obj.get("reservationTaxes") is not None else None, - "reservationTaxesTotal": obj.get("reservationTaxesTotal"), - "reservationFees": [GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner.from_dict(_item) for _item in obj["reservationFees"]] if obj.get("reservationFees") is not None else None, - "reservationFeesTotal": obj.get("reservationFeesTotal"), - "balance": obj.get("balance"), - "balanceDetailed": [GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, - "reservationOrigin": obj.get("reservationOrigin"), - "reservationMealPlans": obj.get("reservationMealPlans") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py deleted file mode 100644 index fc8198f..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner - """ # noqa: E501 - suggested_deposit: Optional[StrictStr] = Field(default=None, description="Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid", alias="suggestedDeposit") - sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the room prices on the reservation", alias="subTotal") - additional_items: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the additional items recorded on the reservation", alias="additionalItems") - taxes_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of taxes and fees on the reservation", alias="taxesFees") - grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of sub.Total + additionalItems + taxesFees", alias="grandTotal") - paid: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount paid (reservation deposit + any other extra payment)") - original_currency_code: Optional[StrictStr] = Field(default=None, description="The currency the booking was originally made in. Included only if different from property currency", alias="originalCurrencyCode") - original_currency_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The currency conversion rate used at the time of booking. Included only if originalCurrencyCode is different from property currency.", alias="originalCurrencyRate") - __properties: ClassVar[List[str]] = ["suggestedDeposit", "subTotal", "additionalItems", "taxesFees", "grandTotal", "paid", "originalCurrencyCode", "originalCurrencyRate"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "suggestedDeposit": obj.get("suggestedDeposit"), - "subTotal": obj.get("subTotal"), - "additionalItems": obj.get("additionalItems"), - "taxesFees": obj.get("taxesFees"), - "grandTotal": obj.get("grandTotal"), - "paid": obj.get("paid"), - "originalCurrencyCode": obj.get("originalCurrencyCode"), - "originalCurrencyRate": obj.get("originalCurrencyRate") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py deleted file mode 100644 index 1fd3806..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner - """ # noqa: E501 - guest_first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="guestFirstName") - guest_last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="guestLastName") - guest_gender: Optional[StrictStr] = Field(default=None, description="Gender", alias="guestGender") - guest_email: Optional[StrictStr] = Field(default=None, description="Email Address", alias="guestEmail") - guest_phone: Optional[StrictStr] = Field(default=None, description="Phone Number", alias="guestPhone") - guest_cell_phone: Optional[StrictStr] = Field(default=None, description="Cell Phone Number", alias="guestCellPhone") - guest_address: Optional[StrictStr] = Field(default=None, description="Adress", alias="guestAddress") - guest_address2: Optional[StrictStr] = Field(default=None, description="Address Line 2 (Complement)", alias="guestAddress2") - guest_city: Optional[StrictStr] = Field(default=None, description="City", alias="guestCity") - guest_country: Optional[StrictStr] = Field(default=None, description="Country", alias="guestCountry") - tax_id: Optional[StrictStr] = Field(default=None, description="Guest Tax Identifier Number", alias="taxID") - company_tax_id: Optional[StrictStr] = Field(default=None, description="Company Tax Identifier Number", alias="companyTaxID") - company_name: Optional[StrictStr] = Field(default=None, description="Company Name", alias="companyName") - guest_state: Optional[StrictStr] = Field(default=None, description="State", alias="guestState") - guest_zip: Optional[StrictStr] = Field(default=None, description="Zip code", alias="guestZip") - is_anonymyzed: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymyzed") - __properties: ClassVar[List[str]] = ["guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestCountry", "taxID", "companyTaxID", "companyName", "guestState", "guestZip", "isAnonymyzed"] - - @field_validator('guest_gender') - def guest_gender_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "guestFirstName": obj.get("guestFirstName"), - "guestLastName": obj.get("guestLastName"), - "guestGender": obj.get("guestGender"), - "guestEmail": obj.get("guestEmail"), - "guestPhone": obj.get("guestPhone"), - "guestCellPhone": obj.get("guestCellPhone"), - "guestAddress": obj.get("guestAddress"), - "guestAddress2": obj.get("guestAddress2"), - "guestCity": obj.get("guestCity"), - "guestCountry": obj.get("guestCountry"), - "taxID": obj.get("taxID"), - "companyTaxID": obj.get("companyTaxID"), - "companyName": obj.get("companyName"), - "guestState": obj.get("guestState"), - "guestZip": obj.get("guestZip"), - "isAnonymyzed": obj.get("isAnonymyzed") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py deleted file mode 100644 index 0a83678..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner - """ # noqa: E501 - sold_product_id: Optional[StrictStr] = Field(default=None, description="ID of the sold product", alias="soldProductID") - product_name: Optional[StrictStr] = Field(default=None, description="Name", alias="productName") - product_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Price", alias="productPrice") - product_quantity: Optional[StrictInt] = Field(default=None, description="Quantity sold", alias="productQuantity") - product_sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross amount", alias="productSubTotal") - product_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fees charged for this addon", alias="productFees") - product_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Taxes charged for this addon", alias="productTaxes") - product_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Net amount", alias="productTotal") - transaction_date_time: Optional[datetime] = Field(default=None, description="Date and time of the sale", alias="transactionDateTime") - __properties: ClassVar[List[str]] = ["soldProductID", "productName", "productPrice", "productQuantity", "productSubTotal", "productFees", "productTaxes", "productTotal", "transactionDateTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "soldProductID": obj.get("soldProductID"), - "productName": obj.get("productName"), - "productPrice": obj.get("productPrice"), - "productQuantity": obj.get("productQuantity"), - "productSubTotal": obj.get("productSubTotal"), - "productFees": obj.get("productFees"), - "productTaxes": obj.get("productTaxes"), - "productTotal": obj.get("productTotal"), - "transactionDateTime": obj.get("transactionDateTime") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py deleted file mode 100644 index 7e7bc4a..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner - """ # noqa: E501 - product_id: Optional[StrictStr] = Field(default=None, description="Internal product ID", alias="productID") - sold_product_id: Optional[StrictStr] = Field(default=None, description="ID of the sold product", alias="soldProductID") - item_code: Optional[StrictStr] = Field(default=None, description="Code of the item", alias="itemCode") - product_name: Optional[StrictStr] = Field(default=None, description="Name", alias="productName") - product_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Price", alias="productPrice") - product_quantity: Optional[StrictInt] = Field(default=None, description="Quantity sold", alias="productQuantity") - product_sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross amount", alias="productSubTotal") - product_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fees charged for this item", alias="productFees") - product_taxes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Taxes charged for this item", alias="productTaxes") - product_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Net amount", alias="productTotal") - product_note: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Product note", alias="productNote") - transaction_date_time: Optional[datetime] = Field(default=None, description="Date and time of the sale", alias="transactionDateTime") - __properties: ClassVar[List[str]] = ["productID", "soldProductID", "itemCode", "productName", "productPrice", "productQuantity", "productSubTotal", "productFees", "productTaxes", "productTotal", "productNote", "transactionDateTime"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "productID": obj.get("productID"), - "soldProductID": obj.get("soldProductID"), - "itemCode": obj.get("itemCode"), - "productName": obj.get("productName"), - "productPrice": obj.get("productPrice"), - "productQuantity": obj.get("productQuantity"), - "productSubTotal": obj.get("productSubTotal"), - "productFees": obj.get("productFees"), - "productTaxes": obj.get("productTaxes"), - "productTotal": obj.get("productTotal"), - "productNote": obj.get("productNote"), - "transactionDateTime": obj.get("transactionDateTime") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py deleted file mode 100644 index 7be2458..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner - """ # noqa: E501 - adjustment_description: Optional[StrictStr] = Field(default=None, description="Description", alias="adjustmentDescription") - adjustment_room_name: Optional[StrictStr] = Field(default=None, description="Room name", alias="adjustmentRoomName") - adjustment_date_time: Optional[datetime] = Field(default=None, description="Date and time of the adjustment", alias="adjustmentDateTime") - adjustment_date_time_utc: Optional[datetime] = Field(default=None, description="Date and time of the adjustment (UTC)", alias="adjustmentDateTimeUTC") - adjustment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount", alias="adjustmentAmount") - __properties: ClassVar[List[str]] = ["adjustmentDescription", "adjustmentRoomName", "adjustmentDateTime", "adjustmentDateTimeUTC", "adjustmentAmount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "adjustmentDescription": obj.get("adjustmentDescription"), - "adjustmentRoomName": obj.get("adjustmentRoomName"), - "adjustmentDateTime": obj.get("adjustmentDateTime"), - "adjustmentDateTimeUTC": obj.get("adjustmentDateTimeUTC"), - "adjustmentAmount": obj.get("adjustmentAmount") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py deleted file mode 100644 index ea3e770..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner - """ # noqa: E501 - payment_type: Optional[StrictStr] = Field(default=None, description="Type", alias="paymentType") - payment_description: Optional[StrictStr] = Field(default=None, description="Description", alias="paymentDescription") - payment_date_time: Optional[datetime] = Field(default=None, description="Date and time of the payment", alias="paymentDateTime") - payment_date_time_utc: Optional[datetime] = Field(default=None, description="Date and time of the payment (UTC)", alias="paymentDateTimeUTC") - payment_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount", alias="paymentAmount") - reservation_payments_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total sum of payments", alias="reservationPaymentsTotal") - __properties: ClassVar[List[str]] = ["paymentType", "paymentDescription", "paymentDateTime", "paymentDateTimeUTC", "paymentAmount", "reservationPaymentsTotal"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "paymentType": obj.get("paymentType"), - "paymentDescription": obj.get("paymentDescription"), - "paymentDateTime": obj.get("paymentDateTime"), - "paymentDateTimeUTC": obj.get("paymentDateTimeUTC"), - "paymentAmount": obj.get("paymentAmount"), - "reservationPaymentsTotal": obj.get("reservationPaymentsTotal") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py deleted file mode 100644 index eb1f638..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner - """ # noqa: E501 - room_type_name: Optional[StrictStr] = Field(default=None, description="Room type name", alias="roomTypeName") - guest_name: Optional[StrictStr] = Field(default=None, description="Assigned guest name", alias="guestName") - start_date: Optional[date] = Field(default=None, description="Check-in date", alias="startDate") - end_date: Optional[date] = Field(default=None, description="Check-out date", alias="endDate") - adults: Optional[StrictInt] = Field(default=None, description="Number of adults for the room") - children: Optional[StrictInt] = Field(default=None, description="Number of children for the room") - nights: Optional[StrictInt] = Field(default=None, description="Number of nights") - room_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total rate for the room", alias="roomTotal") - room_id: Optional[StrictStr] = Field(default=None, description="Unique ID of the room", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Name of the room", alias="roomName") - room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") - market_name: Optional[StrictStr] = Field(default=None, description="Market segmentation name", alias="marketName") - market_code: Optional[StrictStr] = Field(default=None, description="Market segmentation code", alias="marketCode") - __properties: ClassVar[List[str]] = ["roomTypeName", "guestName", "startDate", "endDate", "adults", "children", "nights", "roomTotal", "roomID", "roomName", "roomTypeID", "marketName", "marketCode"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "roomTypeName": obj.get("roomTypeName"), - "guestName": obj.get("guestName"), - "startDate": obj.get("startDate"), - "endDate": obj.get("endDate"), - "adults": obj.get("adults"), - "children": obj.get("children"), - "nights": obj.get("nights"), - "roomTotal": obj.get("roomTotal"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "roomTypeID": obj.get("roomTypeID"), - "marketName": obj.get("marketName"), - "marketCode": obj.get("marketCode") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py deleted file mode 100644 index adbb935..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner(BaseModel): - """ - GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner - """ # noqa: E501 - tax_name: Optional[StrictStr] = Field(default=None, description="Name", alias="taxName") - tax_amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount", alias="taxAmount") - __properties: ClassVar[List[str]] = ["taxName", "taxAmount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "taxName": obj.get("taxName"), - "taxAmount": obj.get("taxAmount") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py deleted file mode 100644 index 310f9aa..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_balance_detailed_inner.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationResponseDataBalanceDetailedInner(BaseModel): - """ - GetReservationResponseDataBalanceDetailedInner - """ # noqa: E501 - suggested_deposit: Optional[StrictStr] = Field(default=None, description="Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid", alias="suggestedDeposit") - sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the room prices on the reservation", alias="subTotal") - additional_items: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the additional items recorded on the reservation", alias="additionalItems") - taxes_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the taxes and fees calculated on the reservation", alias="taxesFees") - grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of sub.Total + additionalItems + taxesFees", alias="grandTotal") - paid: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount paid (reservation deposit + any other extra payment)") - __properties: ClassVar[List[str]] = ["suggestedDeposit", "subTotal", "additionalItems", "taxesFees", "grandTotal", "paid"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationResponseDataBalanceDetailedInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationResponseDataBalanceDetailedInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "suggestedDeposit": obj.get("suggestedDeposit"), - "subTotal": obj.get("subTotal"), - "additionalItems": obj.get("additionalItems"), - "taxesFees": obj.get("taxesFees"), - "grandTotal": obj.get("grandTotal"), - "paid": obj.get("paid") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_transactions_response.py b/cloudbeds_pms_v1_3/models/get_transactions_response.py deleted file mode 100644 index 5b85070..0000000 --- a/cloudbeds_pms_v1_3/models/get_transactions_response.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner -from typing import Optional, Set -from typing_extensions import Self - -class GetTransactionsResponse(BaseModel): - """ - GetTransactionsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetTransactionsResponseDataInner]] = Field(default=None, description="Transaction list covering the date range specified") - cloudbeds_accounting: Optional[StrictBool] = Field(default=None, description="if true it means the data comes from the new accounting solution", alias="cloudbedsAccounting") - count: Optional[StrictInt] = Field(default=None, description="Number of results returned, based on pagination and filter parameters") - total: Optional[StrictInt] = Field(default=None, description="Total count of results, based on filter parameters") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "cloudbedsAccounting", "count", "total", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTransactionsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTransactionsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": [GetTransactionsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "cloudbedsAccounting": obj.get("cloudbedsAccounting"), - "count": obj.get("count"), - "total": obj.get("total"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py deleted file mode 100644 index 868c9de..0000000 --- a/cloudbeds_pms_v1_3/models/get_transactions_response_data_inner.py +++ /dev/null @@ -1,182 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date, datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetTransactionsResponseDataInner(BaseModel): - """ - GetTransactionsResponseDataInner - """ # noqa: E501 - property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") - reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID", alias="reservationID") - sub_reservation_id: Optional[StrictStr] = Field(default=None, description="Sub Reservation ID", alias="subReservationID") - house_account_id: Optional[StrictStr] = Field(default=None, description="House Account ID", alias="houseAccountID") - house_account_name: Optional[StrictStr] = Field(default=None, description="House Account Name", alias="houseAccountName") - guest_id: Optional[StrictStr] = Field(default=None, description="Guest ID", alias="guestID") - property_name: Optional[StrictStr] = Field(default=None, description="Property Name", alias="propertyName") - transaction_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored", alias="transactionDateTime") - transaction_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was stored, in UTC timezone", alias="transactionDateTimeUTC") - transaction_modified_date_time: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified", alias="transactionModifiedDateTime") - transaction_modified_date_time_utc: Optional[datetime] = Field(default=None, description="DateTime that the transaction was last modified, in UTC timezone", alias="transactionModifiedDateTimeUTC") - guest_check_in: Optional[date] = Field(default=None, description="Reservation Check-in date", alias="guestCheckIn") - guest_check_out: Optional[date] = Field(default=None, description="Reservation Check-out date", alias="guestCheckOut") - room_type_id: Optional[StrictStr] = Field(default=None, description="ID of the room type", alias="roomTypeID") - room_type_name: Optional[StrictStr] = Field(default=None, description="Name of the room type", alias="roomTypeName") - room_name: Optional[StrictStr] = Field(default=None, description="Name of the specific room. N/A means not applicable, and it is used if the transaction is not linked to a room.", alias="roomName") - guest_name: Optional[StrictStr] = Field(default=None, description="Name of the first guest of the reservation", alias="guestName") - description: Optional[StrictStr] = Field(default=None, description="Description of the transaction") - category: Optional[StrictStr] = Field(default=None, description="Category of the transaction") - transaction_code: Optional[StrictStr] = Field(default=None, description="Transaction identifier that can be used, or left blank", alias="transactionCode") - notes: Optional[StrictStr] = Field(default=None, description="If any special information needs to be added to the transaction, it will be in this field") - quantity: Optional[StrictInt] = None - amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Consolidated amount on the transaction (Credit - Debit)") - currency: Optional[StrictStr] = Field(default=None, description="Currency of the transaction") - user_name: Optional[StrictStr] = Field(default=None, description="User responsible for creating the transaction", alias="userName") - transaction_type: Optional[StrictStr] = Field(default=None, description="Consolidated transaction type", alias="transactionType") - transaction_category: Optional[StrictStr] = Field(default=None, description="Transaction category", alias="transactionCategory") - item_category_name: Optional[StrictStr] = Field(default=None, description="Item category name", alias="itemCategoryName") - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") - parent_transaction_id: Optional[StrictStr] = Field(default=None, description="Parent transaction identifier. Parent transaction is a transaction to which this current transaction is strongly related to or derived from.
Example: Parent transaction to a room rate tax is a room rate.
This parent transaction ID will mostly be present on transactions that are taxes, fees and voids. It will not be present on room rates, items, payments and refunds.", alias="parentTransactionID") - card_type: Optional[StrictStr] = Field(default=None, description="Abbreviated name of credit card type", alias="cardType") - is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") - service_date: Optional[StrictStr] = Field(default=None, description="will represent the date when a product or service is delivered", alias="serviceDate") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "subReservationID", "houseAccountID", "houseAccountName", "guestID", "propertyName", "transactionDateTime", "transactionDateTimeUTC", "transactionModifiedDateTime", "transactionModifiedDateTimeUTC", "guestCheckIn", "guestCheckOut", "roomTypeID", "roomTypeName", "roomName", "guestName", "description", "category", "transactionCode", "notes", "quantity", "amount", "currency", "userName", "transactionType", "transactionCategory", "itemCategoryName", "transactionID", "parentTransactionID", "cardType", "isDeleted", "serviceDate"] - - @field_validator('transaction_type') - def transaction_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['debit', 'credit']): - raise ValueError("must be one of enum values ('debit', 'credit')") - return value - - @field_validator('transaction_category') - def transaction_category_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void']): - raise ValueError("must be one of enum values ('adjustment', 'addon', 'custom_item', 'fee', 'payment', 'product', 'rate', 'room_revenue', 'refund', 'tax', 'void')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTransactionsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if house_account_id (nullable) is None - # and model_fields_set contains the field - if self.house_account_id is None and "house_account_id" in self.model_fields_set: - _dict['houseAccountID'] = None - - # set to None if house_account_name (nullable) is None - # and model_fields_set contains the field - if self.house_account_name is None and "house_account_name" in self.model_fields_set: - _dict['houseAccountName'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTransactionsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "propertyID": obj.get("propertyID"), - "reservationID": obj.get("reservationID"), - "subReservationID": obj.get("subReservationID"), - "houseAccountID": obj.get("houseAccountID"), - "houseAccountName": obj.get("houseAccountName"), - "guestID": obj.get("guestID"), - "propertyName": obj.get("propertyName"), - "transactionDateTime": obj.get("transactionDateTime"), - "transactionDateTimeUTC": obj.get("transactionDateTimeUTC"), - "transactionModifiedDateTime": obj.get("transactionModifiedDateTime"), - "transactionModifiedDateTimeUTC": obj.get("transactionModifiedDateTimeUTC"), - "guestCheckIn": obj.get("guestCheckIn"), - "guestCheckOut": obj.get("guestCheckOut"), - "roomTypeID": obj.get("roomTypeID"), - "roomTypeName": obj.get("roomTypeName"), - "roomName": obj.get("roomName"), - "guestName": obj.get("guestName"), - "description": obj.get("description"), - "category": obj.get("category"), - "transactionCode": obj.get("transactionCode"), - "notes": obj.get("notes"), - "quantity": obj.get("quantity"), - "amount": obj.get("amount"), - "currency": obj.get("currency"), - "userName": obj.get("userName"), - "transactionType": obj.get("transactionType"), - "transactionCategory": obj.get("transactionCategory"), - "itemCategoryName": obj.get("itemCategoryName"), - "transactionID": obj.get("transactionID"), - "parentTransactionID": obj.get("parentTransactionID"), - "cardType": obj.get("cardType"), - "isDeleted": obj.get("isDeleted"), - "serviceDate": obj.get("serviceDate") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_access_token_check_response.py b/cloudbeds_pms_v1_3/models/post_access_token_check_response.py deleted file mode 100644 index c4c36db..0000000 --- a/cloudbeds_pms_v1_3/models/post_access_token_check_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostAccessTokenCheckResponse(BaseModel): - """ - PostAccessTokenCheckResponse - """ # noqa: E501 - success: Optional[StrictStr] = Field(default=None, description="True if the access_token is valid. False otherwise.") - __properties: ClassVar[List[str]] = ["success"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostAccessTokenCheckResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostAccessTokenCheckResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py b/cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py deleted file mode 100644 index 8edbf46..0000000 --- a/cloudbeds_pms_v1_3/models/post_app_settings_request_settings_inner.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostAppSettingsRequestSettingsInner(BaseModel): - """ - PostAppSettingsRequestSettingsInner - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="A name of a setting option") - value: Optional[StrictStr] = Field(default=None, description="A value of a setting option") - __properties: ClassVar[List[str]] = ["name", "value"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostAppSettingsRequestSettingsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostAppSettingsRequestSettingsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "value": obj.get("value") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_app_settings_response.py b/cloudbeds_pms_v1_3/models/post_app_settings_response.py deleted file mode 100644 index 10bc669..0000000 --- a/cloudbeds_pms_v1_3/models/post_app_settings_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostAppSettingsResponse(BaseModel): - """ - PostAppSettingsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[Dict[str, Any]] = Field(default=None, description="Application settings details") - __properties: ClassVar[List[str]] = ["success", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostAppSettingsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostAppSettingsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": obj.get("data") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_app_state_internal_response.py b/cloudbeds_pms_v1_3/models/post_app_state_internal_response.py deleted file mode 100644 index 6396b15..0000000 --- a/cloudbeds_pms_v1_3/models/post_app_state_internal_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostAppStateInternalResponse(BaseModel): - """ - PostAppStateInternalResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - __properties: ClassVar[List[str]] = ["success"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostAppStateInternalResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostAppStateInternalResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py b/cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py deleted file mode 100644 index de080a0..0000000 --- a/cloudbeds_pms_v1_3/models/post_bulk_app_property_settings_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostBulkAppPropertySettingsResponse(BaseModel): - """ - PostBulkAppPropertySettingsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Success") - __properties: ClassVar[List[str]] = ["success"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostBulkAppPropertySettingsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostBulkAppPropertySettingsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py b/cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py deleted file mode 100644 index c397126..0000000 --- a/cloudbeds_pms_v1_3/models/post_crm_cache_remove_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostCRMCacheRemoveResponse(BaseModel): - """ - PostCRMCacheRemoveResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - __properties: ClassVar[List[str]] = ["success"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostCRMCacheRemoveResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostCRMCacheRemoveResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py b/cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py deleted file mode 100644 index 32bd22c..0000000 --- a/cloudbeds_pms_v1_3/models/post_crm_cache_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostCRMCacheUpdateResponse(BaseModel): - """ - PostCRMCacheUpdateResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - __properties: ClassVar[List[str]] = ["success"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostCRMCacheUpdateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostCRMCacheUpdateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py b/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py index a3d8d7a..c19383f 100644 --- a/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_custom_item_response_data.py @@ -27,9 +27,9 @@ class PostCustomItemResponseData(BaseModel): Sold product details """ # noqa: E501 sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") - external_relation_id: Optional[StrictStr] = Field(default=None, description="Same as sold product ID in case of this endpoint. Together with external relation kind ITEM_POS it can be used to get transaction from Accounting API", alias="externalRelationID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") notice: Optional[StrictStr] = Field(default=None, description="In case that a referenceID was sent, for second time, this field will alert that nothing was created or updated.") - __properties: ClassVar[List[str]] = ["soldProductID", "externalRelationID", "notice"] + __properties: ClassVar[List[str]] = ["soldProductID", "transactionID", "notice"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +83,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "soldProductID": obj.get("soldProductID"), - "externalRelationID": obj.get("externalRelationID"), + "transactionID": obj.get("transactionID"), "notice": obj.get("notice") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py b/cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py deleted file mode 100644 index bb8bfd0..0000000 --- a/cloudbeds_pms_v1_3/models/post_guest_credit_card_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostGuestCreditCardResponse(BaseModel): - """ - PostGuestCreditCardResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - __properties: ClassVar[List[str]] = ["success"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostGuestCreditCardResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostGuestCreditCardResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py b/cloudbeds_pms_v1_3/models/post_item_request_payments_inner.py similarity index 94% rename from cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py rename to cloudbeds_pms_v1_3/models/post_item_request_payments_inner.py index b848d74..ac0e4e4 100644 --- a/cloudbeds_pms_v1_3/models/post_item_to_reservation_request_payments_inner.py +++ b/cloudbeds_pms_v1_3/models/post_item_request_payments_inner.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class PostItemToReservationRequestPaymentsInner(BaseModel): +class PostItemRequestPaymentsInner(BaseModel): """ - PostItemToReservationRequestPaymentsInner + PostItemRequestPaymentsInner """ # noqa: E501 payment_type: Optional[StrictStr] = Field(default=None, description="Payment method. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.", alias="paymentType") amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="payment amount") @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostItemToReservationRequestPaymentsInner from a JSON string""" + """Create an instance of PostItemRequestPaymentsInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostItemToReservationRequestPaymentsInner from a dict""" + """Create an instance of PostItemRequestPaymentsInner from a dict""" if obj is None: return None diff --git a/cloudbeds_pms_v1_3/models/post_item_response_data.py b/cloudbeds_pms_v1_3/models/post_item_response_data.py index 16057cc..b1d0ee6 100644 --- a/cloudbeds_pms_v1_3/models/post_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_item_response_data.py @@ -27,12 +27,12 @@ class PostItemResponseData(BaseModel): Sold product details """ # noqa: E501 sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") - external_relation_id: Optional[StrictStr] = Field(default=None, description="Same as sold product ID in case of this endpoint. Together with external relation kind (ITEM) it can be used to get transaction from Accounting API", alias="externalRelationID") + transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") transaction_status: Optional[StrictStr] = Field(default=None, description="Transaction Status is returned \"Pending\" when sale date is in the future.", alias="transactionStatus") remaining_item_quantity: Optional[StrictInt] = Field(default=None, description="Remaining number of items in stock (if applicable)", alias="remainingItemQuantity") reorder_needed: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for reorder threshold.", alias="reorderNeeded") stop_sell_met: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for stop-sell threshold.", alias="stopSellMet") - __properties: ClassVar[List[str]] = ["soldProductID", "externalRelationID", "transactionStatus", "remainingItemQuantity", "reorderNeeded", "stopSellMet"] + __properties: ClassVar[List[str]] = ["soldProductID", "transactionID", "transactionStatus", "remainingItemQuantity", "reorderNeeded", "stopSellMet"] model_config = ConfigDict( populate_by_name=True, @@ -106,7 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "soldProductID": obj.get("soldProductID"), - "externalRelationID": obj.get("externalRelationID"), + "transactionID": obj.get("transactionID"), "transactionStatus": obj.get("transactionStatus"), "remainingItemQuantity": obj.get("remainingItemQuantity"), "reorderNeeded": obj.get("reorderNeeded"), diff --git a/cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py b/cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py deleted file mode 100644 index 4f0fa34..0000000 --- a/cloudbeds_pms_v1_3/models/post_item_to_reservation_response.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData -from typing import Optional, Set -from typing_extensions import Self - -class PostItemToReservationResponse(BaseModel): - """ - PostItemToReservationResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[PostItemToReservationResponseData] = None - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostItemToReservationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostItemToReservationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": PostItemToReservationResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py b/cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py deleted file mode 100644 index 43b3bef..0000000 --- a/cloudbeds_pms_v1_3/models/post_item_to_reservation_response_data.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostItemToReservationResponseData(BaseModel): - """ - Sold product details - """ # noqa: E501 - sold_product_id: Optional[StrictStr] = Field(default=None, description="Sold product identifier (Usable to void this product in future).", alias="soldProductID") - transaction_id: Optional[StrictStr] = Field(default=None, description="Transaction identifier", alias="transactionID") - transaction_status: Optional[StrictStr] = Field(default=None, description="Transaction Status is returned \"Pending\" when sale date is in the future.", alias="transactionStatus") - remaining_item_quantity: Optional[StrictInt] = Field(default=None, description="Remaining number of items in stock (if applicable)", alias="remainingItemQuantity") - reorder_needed: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for reorder threshold.", alias="reorderNeeded") - stop_sell_met: Optional[StrictBool] = Field(default=None, description="true - Whether item is at or below value set for stop-sell threshold.", alias="stopSellMet") - __properties: ClassVar[List[str]] = ["soldProductID", "transactionID", "transactionStatus", "remainingItemQuantity", "reorderNeeded", "stopSellMet"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostItemToReservationResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if transaction_status (nullable) is None - # and model_fields_set contains the field - if self.transaction_status is None and "transaction_status" in self.model_fields_set: - _dict['transactionStatus'] = None - - # set to None if remaining_item_quantity (nullable) is None - # and model_fields_set contains the field - if self.remaining_item_quantity is None and "remaining_item_quantity" in self.model_fields_set: - _dict['remainingItemQuantity'] = None - - # set to None if reorder_needed (nullable) is None - # and model_fields_set contains the field - if self.reorder_needed is None and "reorder_needed" in self.model_fields_set: - _dict['reorderNeeded'] = None - - # set to None if stop_sell_met (nullable) is None - # and model_fields_set contains the field - if self.stop_sell_met is None and "stop_sell_met" in self.model_fields_set: - _dict['stopSellMet'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostItemToReservationResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "soldProductID": obj.get("soldProductID"), - "transactionID": obj.get("transactionID"), - "transactionStatus": obj.get("transactionStatus"), - "remainingItemQuantity": obj.get("remainingItemQuantity"), - "reorderNeeded": obj.get("reorderNeeded"), - "stopSellMet": obj.get("stopSellMet") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_patch_invoice_response.py b/cloudbeds_pms_v1_3/models/post_patch_invoice_response.py deleted file mode 100644 index 556968d..0000000 --- a/cloudbeds_pms_v1_3/models/post_patch_invoice_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostPatchInvoiceResponse(BaseModel): - """ - PostPatchInvoiceResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostPatchInvoiceResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostPatchInvoiceResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_payment_cash_response.py b/cloudbeds_pms_v1_3/models/post_payment_cash_response.py deleted file mode 100644 index 569e689..0000000 --- a/cloudbeds_pms_v1_3/models/post_payment_cash_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostPaymentCashResponse(BaseModel): - """ - PostPaymentCashResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostPaymentCashResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostPaymentCashResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py b/cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py deleted file mode 100644 index 33d128a..0000000 --- a/cloudbeds_pms_v1_3/models/post_payment_credit_card_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostPaymentCreditCardResponse(BaseModel): - """ - PostPaymentCreditCardResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostPaymentCreditCardResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostPaymentCreditCardResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_put_rate_request.py b/cloudbeds_pms_v1_3/models/post_put_rate_request.py deleted file mode 100644 index fe797cb..0000000 --- a/cloudbeds_pms_v1_3/models/post_put_rate_request.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner -from typing import Optional, Set -from typing_extensions import Self - -class PostPutRateRequest(BaseModel): - """ - PostPutRateRequest - """ # noqa: E501 - rates: Optional[List[PostPutRateRequestRatesInner]] = Field(default=None, description="Array of rates to update") - __properties: ClassVar[List[str]] = ["rates"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostPutRateRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in rates (list) - _items = [] - if self.rates: - for _item_rates in self.rates: - if _item_rates: - _items.append(_item_rates.to_dict()) - _dict['rates'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostPutRateRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "rates": [PostPutRateRequestRatesInner.from_dict(_item) for _item in obj["rates"]] if obj.get("rates") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py b/cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py deleted file mode 100644 index 389ef38..0000000 --- a/cloudbeds_pms_v1_3/models/post_reservation_check_in_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostReservationCheckInResponse(BaseModel): - """ - PostReservationCheckInResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostReservationCheckInResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostReservationCheckInResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py b/cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py deleted file mode 100644 index 0373dc2..0000000 --- a/cloudbeds_pms_v1_3/models/post_reservation_check_out_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostReservationCheckOutResponse(BaseModel): - """ - PostReservationCheckOutResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostReservationCheckOutResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostReservationCheckOutResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_room_type_response.py b/cloudbeds_pms_v1_3/models/post_room_type_response.py deleted file mode 100644 index 78bf208..0000000 --- a/cloudbeds_pms_v1_3/models/post_room_type_response.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData -from typing import Optional, Set -from typing_extensions import Self - -class PostRoomTypeResponse(BaseModel): - """ - PostRoomTypeResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns true if the request could be completed") - data: Optional[PostRoomTypeResponseData] = None - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostRoomTypeResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostRoomTypeResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "data": PostRoomTypeResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None, - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/post_room_type_response_data.py b/cloudbeds_pms_v1_3/models/post_room_type_response_data.py deleted file mode 100644 index 93d7226..0000000 --- a/cloudbeds_pms_v1_3/models/post_room_type_response_data.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PostRoomTypeResponseData(BaseModel): - """ - Details for the new accommodation type - """ # noqa: E501 - room_type_id: Optional[StrictStr] = Field(default=None, description="ID for the newly-created accommodation type", alias="roomTypeId") - __properties: ClassVar[List[str]] = ["roomTypeId"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostRoomTypeResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostRoomTypeResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "roomTypeId": obj.get("roomTypeId") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py deleted file mode 100644 index 08a6875..0000000 --- a/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner -from typing import Optional, Set -from typing_extensions import Self - -class PutRateRequestRatesInner(BaseModel): - """ - PutRateRequestRatesInner - """ # noqa: E501 - rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID", alias="rateID") - interval: Optional[List[PutRateRequestRatesInnerIntervalInner]] = Field(default=None, description="Rate update details") - __properties: ClassVar[List[str]] = ["rateID", "interval"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PutRateRequestRatesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in interval (list) - _items = [] - if self.interval: - for _item_interval in self.interval: - if _item_interval: - _items.append(_item_interval.to_dict()) - _dict['interval'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PutRateRequestRatesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "rateID": obj.get("rateID"), - "interval": [PutRateRequestRatesInnerIntervalInner.from_dict(_item) for _item in obj["interval"]] if obj.get("interval") is not None else None - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py deleted file mode 100644 index eeaf330..0000000 --- a/cloudbeds_pms_v1_3/models/put_rate_request_rates_inner_interval_inner.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class PutRateRequestRatesInnerIntervalInner(BaseModel): - """ - PutRateRequestRatesInnerIntervalInner - """ # noqa: E501 - start_date: Optional[date] = Field(default=None, description="Interval Start date. Format: YYYY-MM-DD", alias="startDate") - end_date: Optional[date] = Field(default=None, description="Interval End date. Format: YYYY-MM-DD", alias="endDate") - rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Base rate for the selected date") - __properties: ClassVar[List[str]] = ["startDate", "endDate", "rate"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PutRateRequestRatesInnerIntervalInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if start_date (nullable) is None - # and model_fields_set contains the field - if self.start_date is None and "start_date" in self.model_fields_set: - _dict['startDate'] = None - - # set to None if end_date (nullable) is None - # and model_fields_set contains the field - if self.end_date is None and "end_date" in self.model_fields_set: - _dict['endDate'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PutRateRequestRatesInnerIntervalInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "startDate": obj.get("startDate"), - "endDate": obj.get("endDate"), - "rate": obj.get("rate") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/put_rate_response.py b/cloudbeds_pms_v1_3/models/put_rate_response.py deleted file mode 100644 index 6cecfcc..0000000 --- a/cloudbeds_pms_v1_3/models/put_rate_response.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PutRateResponse(BaseModel): - """ - PutRateResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns true if the request could be completed") - job_reference_id: Optional[StrictStr] = Field(default=None, description="ReferenceId ID for the job created for this update. This can be used to track success of the batch for this rate update. See getRateJobs or the Rate Batch Job Webhook", alias="jobReferenceID") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "jobReferenceID", "message"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PutRateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PutRateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "jobReferenceID": obj.get("jobReferenceID"), - "message": obj.get("message") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py deleted file mode 100644 index d6a9850..0000000 --- a/cloudbeds_pms_v1_3/models/put_reservation_details_request_custom_fields_inner.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PutReservationDetailsRequestCustomFieldsInner(BaseModel): - """ - PutReservationDetailsRequestCustomFieldsInner - """ # noqa: E501 - custom_field_name: Optional[StrictStr] = Field(default=None, description="Internal custom field reference. Must match the registered name (shortcode) in backend. Pay Attention", alias="customFieldName") - custom_field_value: Optional[StrictStr] = Field(default=None, alias="customFieldValue") - __properties: ClassVar[List[str]] = ["customFieldName", "customFieldValue"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PutReservationDetailsRequestCustomFieldsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if custom_field_name (nullable) is None - # and model_fields_set contains the field - if self.custom_field_name is None and "custom_field_name" in self.model_fields_set: - _dict['customFieldName'] = None - - # set to None if custom_field_value (nullable) is None - # and model_fields_set contains the field - if self.custom_field_value is None and "custom_field_value" in self.model_fields_set: - _dict['customFieldValue'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PutReservationDetailsRequestCustomFieldsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "customFieldName": obj.get("customFieldName"), - "customFieldValue": obj.get("customFieldValue") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/put_reservation_details_response.py b/cloudbeds_pms_v1_3/models/put_reservation_details_response.py deleted file mode 100644 index 41c90bc..0000000 --- a/cloudbeds_pms_v1_3/models/put_reservation_details_response.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class PutReservationDetailsResponse(BaseModel): - """ - PutReservationDetailsResponse - """ # noqa: E501 - success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs.") - data: Optional[Dict[str, Any]] = Field(default=None, description="Returns the reservation data as defined by getReservation call.") - __properties: ClassVar[List[str]] = ["success", "message", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PutReservationDetailsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if message (nullable) is None - # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None - - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PutReservationDetailsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message"), - "data": obj.get("data") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/test/test_adjustment_api.py b/cloudbeds_pms_v1_3/test/test_adjustment_api.py index c8f2dc1..ec91247 100644 --- a/cloudbeds_pms_v1_3/test/test_adjustment_api.py +++ b/cloudbeds_pms_v1_3/test/test_adjustment_api.py @@ -33,20 +33,6 @@ def test_delete_adjustment_delete(self) -> None: """ pass - def test_get_adjustment_get(self) -> None: - """Test case for get_adjustment_get - - getAdjustment - """ - pass - - def test_get_adjustments_get(self) -> None: - """Test case for get_adjustments_get - - getAdjustments - """ - pass - def test_post_adjustment_post(self) -> None: """Test case for post_adjustment_post diff --git a/cloudbeds_pms_v1_3/test/test_app_settings_api.py b/cloudbeds_pms_v1_3/test/test_app_settings_api.py index 9fe9356..11d8d6e 100644 --- a/cloudbeds_pms_v1_3/test/test_app_settings_api.py +++ b/cloudbeds_pms_v1_3/test/test_app_settings_api.py @@ -47,13 +47,6 @@ def test_post_app_property_settings_post(self) -> None: """ pass - def test_post_bulk_app_property_settings_post(self) -> None: - """Test case for post_bulk_app_property_settings_post - - postBulkAppPropertySettings - """ - pass - def test_put_app_property_settings_post(self) -> None: """Test case for put_app_property_settings_post diff --git a/cloudbeds_pms_v1_3/test/test_authentication_api.py b/cloudbeds_pms_v1_3/test/test_authentication_api.py index d830d81..b42fd68 100644 --- a/cloudbeds_pms_v1_3/test/test_authentication_api.py +++ b/cloudbeds_pms_v1_3/test/test_authentication_api.py @@ -26,13 +26,6 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_access_token_check_post(self) -> None: - """Test case for access_token_check_post - - access_token_check - """ - pass - def test_access_token_post(self) -> None: """Test case for access_token_post diff --git a/cloudbeds_pms_v1_3/test/test_beta_api.py b/cloudbeds_pms_v1_3/test/test_beta_api.py deleted file mode 100644 index fb179b6..0000000 --- a/cloudbeds_pms_v1_3/test/test_beta_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.api.beta_api import BetaApi - - -class TestBetaApi(unittest.TestCase): - """BetaApi unit test stubs""" - - def setUp(self) -> None: - self.api = BetaApi() - - def tearDown(self) -> None: - pass - - def test_get_async_api_job_get(self) -> None: - """Test case for get_async_api_job_get - - getAsyncApiJob - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_crm_api.py b/cloudbeds_pms_v1_3/test/test_crm_api.py deleted file mode 100644 index 7924e4f..0000000 --- a/cloudbeds_pms_v1_3/test/test_crm_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.api.crm_api import CRMApi - - -class TestCRMApi(unittest.TestCase): - """CRMApi unit test stubs""" - - def setUp(self) -> None: - self.api = CRMApi() - - def tearDown(self) -> None: - pass - - def test_crm_cache_remove_post(self) -> None: - """Test case for crm_cache_remove_post - - PostCRMCacheRemove - """ - pass - - def test_crm_cache_update_post(self) -> None: - """Test case for crm_cache_update_post - - PostCRMCacheUpdate - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py b/cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py deleted file mode 100644 index 9f0b70e..0000000 --- a/cloudbeds_pms_v1_3/test/test_delete_item_from_reservation_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.delete_item_from_reservation_response import DeleteItemFromReservationResponse - -class TestDeleteItemFromReservationResponse(unittest.TestCase): - """DeleteItemFromReservationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteItemFromReservationResponse: - """Test DeleteItemFromReservationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteItemFromReservationResponse` - """ - model = DeleteItemFromReservationResponse() - if include_optional: - return DeleteItemFromReservationResponse( - success = True, - message = '' - ) - else: - return DeleteItemFromReservationResponse( - ) - """ - - def testDeleteItemFromReservationResponse(self): - """Test DeleteItemFromReservationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustment_response.py b/cloudbeds_pms_v1_3/test/test_get_adjustment_response.py deleted file mode 100644 index b8682b0..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_adjustment_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_adjustment_response import GetAdjustmentResponse - -class TestGetAdjustmentResponse(unittest.TestCase): - """GetAdjustmentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAdjustmentResponse: - """Test GetAdjustmentResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAdjustmentResponse` - """ - model = GetAdjustmentResponse() - if include_optional: - return GetAdjustmentResponse( - success = True, - data = cloudbeds_pms_v1_3.models.get_adjustment_response_data.GetAdjustmentResponse_data( - adjustment_id = '', - property_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - reservation_identifier = '', - description = '', - notes = '', - amount = 1.337, - currency = 1.337, - posted = 1.337, - type = '', - void_id = '', ) - ) - else: - return GetAdjustmentResponse( - ) - """ - - def testGetAdjustmentResponse(self): - """Test GetAdjustmentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py b/cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py deleted file mode 100644 index c921818..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_adjustment_response_data.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_adjustment_response_data import GetAdjustmentResponseData - -class TestGetAdjustmentResponseData(unittest.TestCase): - """GetAdjustmentResponseData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAdjustmentResponseData: - """Test GetAdjustmentResponseData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAdjustmentResponseData` - """ - model = GetAdjustmentResponseData() - if include_optional: - return GetAdjustmentResponseData( - adjustment_id = '', - property_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - reservation_identifier = '', - description = '', - notes = '', - amount = 1.337, - currency = 1.337, - posted = 1.337, - type = '', - void_id = '' - ) - else: - return GetAdjustmentResponseData( - ) - """ - - def testGetAdjustmentResponseData(self): - """Test GetAdjustmentResponseData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustments_response.py b/cloudbeds_pms_v1_3/test/test_get_adjustments_response.py deleted file mode 100644 index 41adb50..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_adjustments_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_adjustments_response import GetAdjustmentsResponse - -class TestGetAdjustmentsResponse(unittest.TestCase): - """GetAdjustmentsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAdjustmentsResponse: - """Test GetAdjustmentsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAdjustmentsResponse` - """ - model = GetAdjustmentsResponse() - if include_optional: - return GetAdjustmentsResponse( - success = True, - data = cloudbeds_pms_v1_3.models.get_adjustments_response_data.GetAdjustmentsResponse_data( - adjustment_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - description = '', - notes = '', - amount = 1.337, - type = '', ) - ) - else: - return GetAdjustmentsResponse( - ) - """ - - def testGetAdjustmentsResponse(self): - """Test GetAdjustmentsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py b/cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py deleted file mode 100644 index 451db82..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_adjustments_response_data.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_adjustments_response_data import GetAdjustmentsResponseData - -class TestGetAdjustmentsResponseData(unittest.TestCase): - """GetAdjustmentsResponseData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAdjustmentsResponseData: - """Test GetAdjustmentsResponseData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAdjustmentsResponseData` - """ - model = GetAdjustmentsResponseData() - if include_optional: - return GetAdjustmentsResponseData( - adjustment_id = '', - created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - room_id = '', - room_name = '', - description = '', - notes = '', - amount = 1.337, - type = '' - ) - else: - return GetAdjustmentsResponseData( - ) - """ - - def testGetAdjustmentsResponseData(self): - """Test GetAdjustmentsResponseData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py deleted file mode 100644 index fc459f9..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response import GetAsyncApiJobResponse - -class TestGetAsyncApiJobResponse(unittest.TestCase): - """GetAsyncApiJobResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponse: - """Test GetAsyncApiJobResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponse` - """ - model = GetAsyncApiJobResponse() - if include_optional: - return GetAsyncApiJobResponse( - success = True, - has_next_page = True, - next_page = '', - data = [ - cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner.GetAsyncApiJobResponse_data_inner( - job_reference_id = '', - date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - status = '', - updates = [ - cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner.GetAsyncApiJobResponse_data_inner_updates_inner( - rate_id = '', - action = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - rate = 1.337, - max_los = 56, - min_los = 56, - closed_to_arrival = True, - closed_to_departure = True, - cut_off = 56, - last_minute_booking = 56, - property_id = '', - allotment_block_code = '', - allotment_block_status = '', - allotment_block_name = '', - allotment_block_id = '', - rate_type = '', - rate_plan_id = '', - allotment_type = '', - group_id = '', - groupcode = '', - is_auto_release = True, - auto_release = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release.GetAsyncApiJobResponse_data_inner_updates_inner_autoRelease( - release_type = 'all_dates', - days = 56, - release_time = '', ), - allotment_intervals = [ - cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner( - room_type_id = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - block_remaining = 56, - block_allotted = 56, - block_confirmed = 56, - rate = '', - guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( - adult1 = '', - adult2 = '', - adult3 = '', - child1 = '', - child2 = '', - child3 = '', ), ), - restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( - min_los = 56, - max_los = 56, - cut_off_days = 56, - last_minute_booking_days = 56, - closed_to_arrival = 56, - closed_to_departure = 56, ), ) - ], - message = '', ) - ], ) - ] - ) - else: - return GetAsyncApiJobResponse( - ) - """ - - def testGetAsyncApiJobResponse(self): - """Test GetAsyncApiJobResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py deleted file mode 100644 index 0343a63..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner import GetAsyncApiJobResponseDataInner - -class TestGetAsyncApiJobResponseDataInner(unittest.TestCase): - """GetAsyncApiJobResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInner: - """Test GetAsyncApiJobResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponseDataInner` - """ - model = GetAsyncApiJobResponseDataInner() - if include_optional: - return GetAsyncApiJobResponseDataInner( - job_reference_id = '', - date_created = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - status = '', - updates = [ - cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner.GetAsyncApiJobResponse_data_inner_updates_inner( - rate_id = '', - action = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - rate = 1.337, - max_los = 56, - min_los = 56, - closed_to_arrival = True, - closed_to_departure = True, - cut_off = 56, - last_minute_booking = 56, - property_id = '', - allotment_block_code = '', - allotment_block_status = '', - allotment_block_name = '', - allotment_block_id = '', - rate_type = '', - rate_plan_id = '', - allotment_type = '', - group_id = '', - groupcode = '', - is_auto_release = True, - auto_release = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release.GetAsyncApiJobResponse_data_inner_updates_inner_autoRelease( - release_type = 'all_dates', - days = 56, - release_time = '', ), - allotment_intervals = [ - cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner( - room_type_id = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - block_remaining = 56, - block_allotted = 56, - block_confirmed = 56, - rate = '', - guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( - adult1 = '', - adult2 = '', - adult3 = '', - child1 = '', - child2 = '', - child3 = '', ), ), - restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( - min_los = 56, - max_los = 56, - cut_off_days = 56, - last_minute_booking_days = 56, - closed_to_arrival = 56, - closed_to_departure = 56, ), ) - ], - message = '', ) - ] - ) - else: - return GetAsyncApiJobResponseDataInner( - ) - """ - - def testGetAsyncApiJobResponseDataInner(self): - """Test GetAsyncApiJobResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py deleted file mode 100644 index 297c21e..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner import GetAsyncApiJobResponseDataInnerUpdatesInner - -class TestGetAsyncApiJobResponseDataInnerUpdatesInner(unittest.TestCase): - """GetAsyncApiJobResponseDataInnerUpdatesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInner: - """Test GetAsyncApiJobResponseDataInnerUpdatesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInner` - """ - model = GetAsyncApiJobResponseDataInnerUpdatesInner() - if include_optional: - return GetAsyncApiJobResponseDataInnerUpdatesInner( - rate_id = '', - action = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - rate = 1.337, - max_los = 56, - min_los = 56, - closed_to_arrival = True, - closed_to_departure = True, - cut_off = 56, - last_minute_booking = 56, - property_id = '', - allotment_block_code = '', - allotment_block_status = '', - allotment_block_name = '', - allotment_block_id = '', - rate_type = '', - rate_plan_id = '', - allotment_type = '', - group_id = '', - groupcode = '', - is_auto_release = True, - auto_release = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release.GetAsyncApiJobResponse_data_inner_updates_inner_autoRelease( - release_type = 'all_dates', - days = 56, - release_time = '', ), - allotment_intervals = [ - cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner( - room_type_id = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - block_remaining = 56, - block_allotted = 56, - block_confirmed = 56, - rate = '', - guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( - adult1 = '', - adult2 = '', - adult3 = '', - child1 = '', - child2 = '', - child3 = '', ), ), - restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( - min_los = 56, - max_los = 56, - cut_off_days = 56, - last_minute_booking_days = 56, - closed_to_arrival = 56, - closed_to_departure = 56, ), ) - ], - message = '' - ) - else: - return GetAsyncApiJobResponseDataInnerUpdatesInner( - ) - """ - - def testGetAsyncApiJobResponseDataInnerUpdatesInner(self): - """Test GetAsyncApiJobResponseDataInnerUpdatesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py deleted file mode 100644 index 81f4a91..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner - -class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner(unittest.TestCase): - """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner: - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner` - """ - model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner() - if include_optional: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner( - room_type_id = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - availability = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability( - date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - block_remaining = 56, - block_allotted = 56, - block_confirmed = 56, - rate = '', - guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( - adult1 = '', - adult2 = '', - adult3 = '', - child1 = '', - child2 = '', - child3 = '', ), ), - restrictions = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_restrictions( - min_los = 56, - max_los = 56, - cut_off_days = 56, - last_minute_booking_days = 56, - closed_to_arrival = 56, - closed_to_departure = 56, ) - ) - else: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner( - ) - """ - - def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner(self): - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py deleted file mode 100644 index 9a3fe18..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability - -class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability(unittest.TestCase): - """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability: - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability` - """ - model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability() - if include_optional: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability( - var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - block_remaining = 56, - block_allotted = 56, - block_confirmed = 56, - rate = '', - guest_pricing = cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.GetAsyncApiJobResponse_data_inner_updates_inner_allotmentIntervals_inner_availability_guestPricing( - adult1 = '', - adult2 = '', - adult3 = '', - child1 = '', - child2 = '', - child3 = '', ) - ) - else: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability( - ) - """ - - def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability(self): - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailability""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py deleted file mode 100644 index 427f823..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_availability_guest_pricing import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing - -class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing(unittest.TestCase): - """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing: - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing` - """ - model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing() - if include_optional: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing( - adult1 = '', - adult2 = '', - adult3 = '', - child1 = '', - child2 = '', - child3 = '' - ) - else: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing( - ) - """ - - def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing(self): - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerAvailabilityGuestPricing""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py deleted file mode 100644 index 4bb8498..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_allotment_intervals_inner_restrictions import GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions - -class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions(unittest.TestCase): - """GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions: - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions` - """ - model = GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions() - if include_optional: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions( - min_los = 56, - max_los = 56, - cut_off_days = 56, - last_minute_booking_days = 56, - closed_to_arrival = 56, - closed_to_departure = 56 - ) - else: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions( - ) - """ - - def testGetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions(self): - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAllotmentIntervalsInnerRestrictions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py b/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py deleted file mode 100644 index b288851..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_async_api_job_response_data_inner_updates_inner_auto_release.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_async_api_job_response_data_inner_updates_inner_auto_release import GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease - -class TestGetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease(unittest.TestCase): - """GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease: - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease` - """ - model = GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease() - if include_optional: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease( - release_type = 'all_dates', - days = 56, - release_time = '' - ) - else: - return GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease( - ) - """ - - def testGetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease(self): - """Test GetAsyncApiJobResponseDataInnerUpdatesInnerAutoRelease""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py index bef0206..d85c89b 100644 --- a/cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py @@ -46,7 +46,9 @@ def make_instance(self, include_optional) -> GetCustomFieldsResponse: is_personal = True, max_characters = 56, type = 'input', - displayed = reservation, ) + displayed = [ + 'reservation' + ], ) ], message = '' ) diff --git a/cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py index 782e8e5..f053815 100644 --- a/cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py @@ -43,7 +43,9 @@ def make_instance(self, include_optional) -> GetCustomFieldsResponseDataInner: is_personal = True, max_characters = 56, type = 'input', - displayed = reservation + displayed = [ + 'reservation' + ] ) else: return GetCustomFieldsResponseDataInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py b/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py index 747e3b3..c634372 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py @@ -67,6 +67,9 @@ def make_instance(self, include_optional) -> GetGuestListResponse: company_tax_id = '', company_name = '', guest_opt_in = True, + guest_requirements = [ + None + ], guest_notes = [ cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py index 5cfe6a7..d9498d6 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py @@ -64,6 +64,9 @@ def make_instance(self, include_optional) -> GetGuestListResponseDataValue: company_tax_id = '', company_name = '', guest_opt_in = True, + guest_requirements = [ + None + ], guest_notes = [ cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_response.py b/cloudbeds_pms_v1_3/test/test_get_guest_response.py index 9627c0c..8b8a7e6 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response.py @@ -60,6 +60,9 @@ def make_instance(self, include_optional) -> GetGuestResponse: custom_field_name = '', custom_field_value = '', ) ], + guest_requirements = [ + None + ], special_requests = '', tax_id = '', company_tax_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py b/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py index 051da16..dcdb0f6 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py @@ -58,6 +58,9 @@ def make_instance(self, include_optional) -> GetGuestResponseData: custom_field_name = '', custom_field_value = '', ) ], + guest_requirements = [ + None + ], special_requests = '', tax_id = '', company_tax_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py index 987a486..adfb0b7 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py @@ -63,6 +63,9 @@ def make_instance(self, include_optional) -> GetGuestsModifiedResponse: guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_requirements = [ + None + ], custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py index 416c269..0b81ae9 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py @@ -60,6 +60,9 @@ def make_instance(self, include_optional) -> GetGuestsModifiedResponseDataInner: guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + guest_requirements = [ + None + ], custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py index 8858f6f..2cbb994 100644 --- a/cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py @@ -50,7 +50,9 @@ def make_instance(self, include_optional) -> GetHotelDetailsResponse: property_currency = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( currency_code = '', currency_symbol = '', - currency_position = 'before', ), + currency_position = 'before', + currency_decimal_separator = '', + currency_thousands_separator = '', ), property_primary_language = '', property_additional_photos = [ cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( diff --git a/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py index 958a9b2..a85ebef 100644 --- a/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py @@ -48,7 +48,9 @@ def make_instance(self, include_optional) -> GetHotelDetailsResponseData: property_currency = cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency.GetHotelDetailsResponse_data_propertyCurrency( currency_code = '', currency_symbol = '', - currency_position = 'before', ), + currency_position = 'before', + currency_decimal_separator = '', + currency_thousands_separator = '', ), property_primary_language = '', property_additional_photos = [ cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner.GetHotelDetailsResponse_data_propertyImage_inner( diff --git a/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py index 636f74b..c5de06f 100644 --- a/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py +++ b/cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py @@ -37,7 +37,9 @@ def make_instance(self, include_optional) -> GetHotelDetailsResponseDataProperty return GetHotelDetailsResponseDataPropertyCurrency( currency_code = '', currency_symbol = '', - currency_position = 'before' + currency_position = 'before', + currency_decimal_separator = '', + currency_thousands_separator = '' ) else: return GetHotelDetailsResponseDataPropertyCurrency( diff --git a/cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py b/cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py deleted file mode 100644 index bef7ef9..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_hotel_room_types_response.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_hotel_room_types_response import GetHotelRoomTypesResponse - -class TestGetHotelRoomTypesResponse(unittest.TestCase): - """GetHotelRoomTypesResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHotelRoomTypesResponse: - """Test GetHotelRoomTypesResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHotelRoomTypesResponse` - """ - model = GetHotelRoomTypesResponse() - if include_optional: - return GetHotelRoomTypesResponse( - success = True, - count = 56, - data = [ - '' - ], - total = 56, - message = '' - ) - else: - return GetHotelRoomTypesResponse( - ) - """ - - def testGetHotelRoomTypesResponse(self): - """Test GetHotelRoomTypesResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py deleted file mode 100644 index c471592..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_house_account_details_response import GetHouseAccountDetailsResponse - -class TestGetHouseAccountDetailsResponse(unittest.TestCase): - """GetHouseAccountDetailsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponse: - """Test GetHouseAccountDetailsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponse` - """ - model = GetHouseAccountDetailsResponse() - if include_optional: - return GetHouseAccountDetailsResponse( - success = True, - data = cloudbeds_pms_v1_3.models.get_house_account_details_response_data.GetHouseAccountDetailsResponse_data( - total = [ - cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( - count = 56, - quantity = '', - debit = '', - credit = '', ) - ], - records = [ - cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( - property_id = '', - transaction_id = '', - user_name = '', - description = '', - notes = '', - quantity = '', - debit = '', - credit = '', - debit_formatter = '', - credit_formatted = '', - currency = '', - transaction_code = '', - parent_transaction_id = '', - transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], ) - ) - else: - return GetHouseAccountDetailsResponse( - ) - """ - - def testGetHouseAccountDetailsResponse(self): - """Test GetHouseAccountDetailsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py deleted file mode 100644 index 290a566..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data import GetHouseAccountDetailsResponseData - -class TestGetHouseAccountDetailsResponseData(unittest.TestCase): - """GetHouseAccountDetailsResponseData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseData: - """Test GetHouseAccountDetailsResponseData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponseData` - """ - model = GetHouseAccountDetailsResponseData() - if include_optional: - return GetHouseAccountDetailsResponseData( - total = [ - cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner.GetHouseAccountDetailsResponse_data_total_inner( - count = 56, - quantity = '', - debit = '', - credit = '', ) - ], - records = [ - cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner.GetHouseAccountDetailsResponse_data_records_inner( - property_id = '', - transaction_id = '', - user_name = '', - description = '', - notes = '', - quantity = '', - debit = '', - credit = '', - debit_formatter = '', - credit_formatted = '', - currency = '', - transaction_code = '', - parent_transaction_id = '', - transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ] - ) - else: - return GetHouseAccountDetailsResponseData( - ) - """ - - def testGetHouseAccountDetailsResponseData(self): - """Test GetHouseAccountDetailsResponseData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py deleted file mode 100644 index 8651151..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_records_inner.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_records_inner import GetHouseAccountDetailsResponseDataRecordsInner - -class TestGetHouseAccountDetailsResponseDataRecordsInner(unittest.TestCase): - """GetHouseAccountDetailsResponseDataRecordsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataRecordsInner: - """Test GetHouseAccountDetailsResponseDataRecordsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataRecordsInner` - """ - model = GetHouseAccountDetailsResponseDataRecordsInner() - if include_optional: - return GetHouseAccountDetailsResponseDataRecordsInner( - property_id = '', - transaction_id = '', - user_name = '', - description = '', - notes = '', - quantity = '', - debit = '', - credit = '', - debit_formatter = '', - credit_formatted = '', - currency = '', - transaction_code = '', - parent_transaction_id = '', - transaction_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return GetHouseAccountDetailsResponseDataRecordsInner( - ) - """ - - def testGetHouseAccountDetailsResponseDataRecordsInner(self): - """Test GetHouseAccountDetailsResponseDataRecordsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py b/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py deleted file mode 100644 index fcea6fe..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_house_account_details_response_data_total_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_house_account_details_response_data_total_inner import GetHouseAccountDetailsResponseDataTotalInner - -class TestGetHouseAccountDetailsResponseDataTotalInner(unittest.TestCase): - """GetHouseAccountDetailsResponseDataTotalInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHouseAccountDetailsResponseDataTotalInner: - """Test GetHouseAccountDetailsResponseDataTotalInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHouseAccountDetailsResponseDataTotalInner` - """ - model = GetHouseAccountDetailsResponseDataTotalInner() - if include_optional: - return GetHouseAccountDetailsResponseDataTotalInner( - count = 56, - quantity = '', - debit = '', - credit = '' - ) - else: - return GetHouseAccountDetailsResponseDataTotalInner( - ) - """ - - def testGetHouseAccountDetailsResponseDataTotalInner(self): - """Test GetHouseAccountDetailsResponseDataTotalInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py deleted file mode 100644 index a1762f7..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_import_dummy_reservations_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_import_dummy_reservations_response import GetImportDummyReservationsResponse - -class TestGetImportDummyReservationsResponse(unittest.TestCase): - """GetImportDummyReservationsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetImportDummyReservationsResponse: - """Test GetImportDummyReservationsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetImportDummyReservationsResponse` - """ - model = GetImportDummyReservationsResponse() - if include_optional: - return GetImportDummyReservationsResponse( - success = True, - data = [ - '' - ] - ) - else: - return GetImportDummyReservationsResponse( - ) - """ - - def testGetImportDummyReservationsResponse(self): - """Test GetImportDummyReservationsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_import_tours_response.py b/cloudbeds_pms_v1_3/test/test_get_import_tours_response.py deleted file mode 100644 index c8683a1..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_import_tours_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_import_tours_response import GetImportToursResponse - -class TestGetImportToursResponse(unittest.TestCase): - """GetImportToursResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetImportToursResponse: - """Test GetImportToursResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetImportToursResponse` - """ - model = GetImportToursResponse() - if include_optional: - return GetImportToursResponse( - success = True, - data = [ - '' - ] - ) - else: - return GetImportToursResponse( - ) - """ - - def testGetImportToursResponse(self): - """Test GetImportToursResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_invoice_response.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response.py deleted file mode 100644 index 648860b..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_invoice_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_invoice_response import GetInvoiceResponse - -class TestGetInvoiceResponse(unittest.TestCase): - """GetInvoiceResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetInvoiceResponse: - """Test GetInvoiceResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetInvoiceResponse` - """ - model = GetInvoiceResponse() - if include_optional: - return GetInvoiceResponse( - success = True, - data = cloudbeds_pms_v1_3.models.get_invoice_response_data.GetInvoiceResponse_data( - invoice_id = '', - reservation_id = '', - prefix = '', - number = 56, - suffix = '', - document_issue_date = '', - status = '', - billed_to = cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( - id = '', - type = 'guest', ), - items = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( - description = '', - type = '', - quantity = 56, - total_amount = '', - net_amount = '', - currency = '', - taxes = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( - name = '', - amount = '', - code = '', - tax_id = '', ) - ], - fees = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( - name = '', - amount = '', - code = '', - fee_id = '', ) - ], ) - ], - taxes = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( - name = '', - amount = '', - code = '', - tax_id = '', ) - ], - fees = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( - name = '', - amount = '', - code = '', - fee_id = '', ) - ], ) - ) - else: - return GetInvoiceResponse( - ) - """ - - def testGetInvoiceResponse(self): - """Test GetInvoiceResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py deleted file mode 100644 index 4487052..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_invoice_response_data import GetInvoiceResponseData - -class TestGetInvoiceResponseData(unittest.TestCase): - """GetInvoiceResponseData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetInvoiceResponseData: - """Test GetInvoiceResponseData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetInvoiceResponseData` - """ - model = GetInvoiceResponseData() - if include_optional: - return GetInvoiceResponseData( - invoice_id = '', - reservation_id = '', - prefix = '', - number = 56, - suffix = '', - document_issue_date = '', - status = '', - billed_to = cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to.GetInvoiceResponse_data_billedTo( - id = '', - type = 'guest', ), - items = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner.GetInvoiceResponse_data_items_inner( - description = '', - type = '', - quantity = 56, - total_amount = '', - net_amount = '', - currency = '', - taxes = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( - name = '', - amount = '', - code = '', - tax_id = '', ) - ], - fees = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( - name = '', - amount = '', - code = '', - fee_id = '', ) - ], ) - ], - taxes = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( - name = '', - amount = '', - code = '', - tax_id = '', ) - ], - fees = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( - name = '', - amount = '', - code = '', - fee_id = '', ) - ] - ) - else: - return GetInvoiceResponseData( - ) - """ - - def testGetInvoiceResponseData(self): - """Test GetInvoiceResponseData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py deleted file mode 100644 index fdd46c8..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_billed_to.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_invoice_response_data_billed_to import GetInvoiceResponseDataBilledTo - -class TestGetInvoiceResponseDataBilledTo(unittest.TestCase): - """GetInvoiceResponseDataBilledTo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetInvoiceResponseDataBilledTo: - """Test GetInvoiceResponseDataBilledTo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetInvoiceResponseDataBilledTo` - """ - model = GetInvoiceResponseDataBilledTo() - if include_optional: - return GetInvoiceResponseDataBilledTo( - id = '', - type = 'guest' - ) - else: - return GetInvoiceResponseDataBilledTo( - ) - """ - - def testGetInvoiceResponseDataBilledTo(self): - """Test GetInvoiceResponseDataBilledTo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py deleted file mode 100644 index 1d96bb2..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner import GetInvoiceResponseDataItemsInner - -class TestGetInvoiceResponseDataItemsInner(unittest.TestCase): - """GetInvoiceResponseDataItemsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetInvoiceResponseDataItemsInner: - """Test GetInvoiceResponseDataItemsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetInvoiceResponseDataItemsInner` - """ - model = GetInvoiceResponseDataItemsInner() - if include_optional: - return GetInvoiceResponseDataItemsInner( - description = '', - type = '', - quantity = 56, - total_amount = '', - net_amount = '', - currency = '', - taxes = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner.GetInvoiceResponse_data_items_inner_taxes_inner( - name = '', - amount = '', - code = '', - tax_id = '', ) - ], - fees = [ - cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner.GetInvoiceResponse_data_items_inner_fees_inner( - name = '', - amount = '', - code = '', - fee_id = '', ) - ] - ) - else: - return GetInvoiceResponseDataItemsInner( - ) - """ - - def testGetInvoiceResponseDataItemsInner(self): - """Test GetInvoiceResponseDataItemsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py deleted file mode 100644 index 2a0406b..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_fees_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_fees_inner import GetInvoiceResponseDataItemsInnerFeesInner - -class TestGetInvoiceResponseDataItemsInnerFeesInner(unittest.TestCase): - """GetInvoiceResponseDataItemsInnerFeesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetInvoiceResponseDataItemsInnerFeesInner: - """Test GetInvoiceResponseDataItemsInnerFeesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetInvoiceResponseDataItemsInnerFeesInner` - """ - model = GetInvoiceResponseDataItemsInnerFeesInner() - if include_optional: - return GetInvoiceResponseDataItemsInnerFeesInner( - name = '', - amount = '', - code = '', - fee_id = '' - ) - else: - return GetInvoiceResponseDataItemsInnerFeesInner( - ) - """ - - def testGetInvoiceResponseDataItemsInnerFeesInner(self): - """Test GetInvoiceResponseDataItemsInnerFeesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py deleted file mode 100644 index 79d1116..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_invoice_response_data_items_inner_taxes_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_invoice_response_data_items_inner_taxes_inner import GetInvoiceResponseDataItemsInnerTaxesInner - -class TestGetInvoiceResponseDataItemsInnerTaxesInner(unittest.TestCase): - """GetInvoiceResponseDataItemsInnerTaxesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetInvoiceResponseDataItemsInnerTaxesInner: - """Test GetInvoiceResponseDataItemsInnerTaxesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetInvoiceResponseDataItemsInnerTaxesInner` - """ - model = GetInvoiceResponseDataItemsInnerTaxesInner() - if include_optional: - return GetInvoiceResponseDataItemsInnerTaxesInner( - name = '', - amount = '', - code = '', - tax_id = '' - ) - else: - return GetInvoiceResponseDataItemsInnerTaxesInner( - ) - """ - - def testGetInvoiceResponseDataItemsInnerTaxesInner(self): - """Test GetInvoiceResponseDataItemsInnerTaxesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_payments_response.py b/cloudbeds_pms_v1_3/test/test_get_payments_response.py deleted file mode 100644 index 44f8c79..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_payments_response.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_payments_response import GetPaymentsResponse - -class TestGetPaymentsResponse(unittest.TestCase): - """GetPaymentsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPaymentsResponse: - """Test GetPaymentsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPaymentsResponse` - """ - model = GetPaymentsResponse() - if include_optional: - return GetPaymentsResponse( - success = True, - data = [ - cloudbeds_pms_v1_3.models.get_payments_response_data_inner.GetPaymentsResponse_data_inner( - transaction_id = '', - payment_id = '', - property_id = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - user_id = '', - user_name = '', - room_id = '', - room_name = '', - guest_id = '', - guest_name = '', - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - reservation_id = '', - sub_reservation_id = '', - reservation_status = '', - house_account_id = '', - house_account_name = '', - description = '', - payment_method = '', - quantity = 56, - amount = 1.337, - currency = '', - is_posted = True, - is_voided = True, - is_deleted = True, - state = '', - is_allocated = True, - total_allocated = 1.337, - total_unallocated = 1.337, - payment_allocation = [ - cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( - type = '', - reference = '', - name = '', - amount = 1.337, - taxes = [ - '' - ], - fees = [ - '' - ], ) - ], ) - ], - count = 56, - total = 56, - message = '' - ) - else: - return GetPaymentsResponse( - ) - """ - - def testGetPaymentsResponse(self): - """Test GetPaymentsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py deleted file mode 100644 index 0eef20d..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner import GetPaymentsResponseDataInner - -class TestGetPaymentsResponseDataInner(unittest.TestCase): - """GetPaymentsResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPaymentsResponseDataInner: - """Test GetPaymentsResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPaymentsResponseDataInner` - """ - model = GetPaymentsResponseDataInner() - if include_optional: - return GetPaymentsResponseDataInner( - transaction_id = '', - payment_id = '', - property_id = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - user_id = '', - user_name = '', - room_id = '', - room_name = '', - guest_id = '', - guest_name = '', - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - reservation_id = '', - sub_reservation_id = '', - reservation_status = '', - house_account_id = '', - house_account_name = '', - description = '', - payment_method = '', - quantity = 56, - amount = 1.337, - currency = '', - is_posted = True, - is_voided = True, - is_deleted = True, - state = '', - is_allocated = True, - total_allocated = 1.337, - total_unallocated = 1.337, - payment_allocation = [ - cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner.GetPaymentsResponse_data_inner_paymentAllocation_inner( - type = '', - reference = '', - name = '', - amount = 1.337, - taxes = [ - '' - ], - fees = [ - '' - ], ) - ] - ) - else: - return GetPaymentsResponseDataInner( - ) - """ - - def testGetPaymentsResponseDataInner(self): - """Test GetPaymentsResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py b/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py deleted file mode 100644 index 9b2e599..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_payments_response_data_inner_payment_allocation_inner.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_payments_response_data_inner_payment_allocation_inner import GetPaymentsResponseDataInnerPaymentAllocationInner - -class TestGetPaymentsResponseDataInnerPaymentAllocationInner(unittest.TestCase): - """GetPaymentsResponseDataInnerPaymentAllocationInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPaymentsResponseDataInnerPaymentAllocationInner: - """Test GetPaymentsResponseDataInnerPaymentAllocationInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPaymentsResponseDataInnerPaymentAllocationInner` - """ - model = GetPaymentsResponseDataInnerPaymentAllocationInner() - if include_optional: - return GetPaymentsResponseDataInnerPaymentAllocationInner( - type = '', - reference = '', - name = '', - amount = 1.337, - taxes = [ - '' - ], - fees = [ - '' - ] - ) - else: - return GetPaymentsResponseDataInnerPaymentAllocationInner( - ) - """ - - def testGetPaymentsResponseDataInnerPaymentAllocationInner(self): - """Test GetPaymentsResponseDataInnerPaymentAllocationInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py b/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py deleted file mode 100644 index 1362672..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_pending_transactions_response import GetPendingTransactionsResponse - -class TestGetPendingTransactionsResponse(unittest.TestCase): - """GetPendingTransactionsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPendingTransactionsResponse: - """Test GetPendingTransactionsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPendingTransactionsResponse` - """ - model = GetPendingTransactionsResponse() - if include_optional: - return GetPendingTransactionsResponse( - success = True, - data = [ - cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner.GetPendingTransactionsResponse_data_inner( - property_id = '', - reservation_id = '', - sub_reservation_id = '', - house_account_id = '', - house_account_name = '', - guest_id = '', - property_name = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - room_type_id = '', - room_type_name = '', - room_name = '', - guest_name = '', - description = '', - category = '', - transaction_code = '', - notes = '', - quantity = 56, - amount = 1.337, - currency = '', - user_name = '', - transaction_type = 'debit', - transaction_category = 'adjustment', - item_category_name = '', - transaction_id = '', - parent_transaction_id = '', - card_type = '', - is_deleted = True, ) - ], - count = 56, - total = 56, - message = '' - ) - else: - return GetPendingTransactionsResponse( - ) - """ - - def testGetPendingTransactionsResponse(self): - """Test GetPendingTransactionsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py deleted file mode 100644 index 7de17f9..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_pending_transactions_response_data_inner.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_pending_transactions_response_data_inner import GetPendingTransactionsResponseDataInner - -class TestGetPendingTransactionsResponseDataInner(unittest.TestCase): - """GetPendingTransactionsResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPendingTransactionsResponseDataInner: - """Test GetPendingTransactionsResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPendingTransactionsResponseDataInner` - """ - model = GetPendingTransactionsResponseDataInner() - if include_optional: - return GetPendingTransactionsResponseDataInner( - property_id = '', - reservation_id = '', - sub_reservation_id = '', - house_account_id = '', - house_account_name = '', - guest_id = '', - property_name = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - room_type_id = '', - room_type_name = '', - room_name = '', - guest_name = '', - description = '', - category = '', - transaction_code = '', - notes = '', - quantity = 56, - amount = 1.337, - currency = '', - user_name = '', - transaction_type = 'debit', - transaction_category = 'adjustment', - item_category_name = '', - transaction_id = '', - parent_transaction_id = '', - card_type = '', - is_deleted = True - ) - else: - return GetPendingTransactionsResponseDataInner( - ) - """ - - def testGetPendingTransactionsResponseDataInner(self): - """Test GetPendingTransactionsResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py index 6e95da0..20fd117 100644 --- a/cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py @@ -53,7 +53,9 @@ def make_instance(self, include_optional) -> GetRatePlansResponse: derived_type = 'fixed', derived_value = 1.337, base_rate = 1.337, - days_of_week = Sun, + days_of_week = [ + 'Sun' + ], add_ons = [ cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( add_on_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py index 62b23fe..9db04a9 100644 --- a/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py @@ -50,7 +50,9 @@ def make_instance(self, include_optional) -> GetRatePlansResponseDataInner: derived_type = 'fixed', derived_value = 1.337, base_rate = 1.337, - days_of_week = Sun, + days_of_week = [ + 'Sun' + ], add_ons = [ cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner.GetRatePlansResponse_data_inner_addOns_inner( add_on_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py deleted file mode 100644 index 6d89531..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response import GetReservationArrivalsResponse - -class TestGetReservationArrivalsResponse(unittest.TestCase): - """GetReservationArrivalsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationArrivalsResponse: - """Test GetReservationArrivalsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationArrivalsResponse` - """ - model = GetReservationArrivalsResponse() - if include_optional: - return GetReservationArrivalsResponse( - success = True, - data = [ - cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner.GetReservationArrivalsResponse_data_inner( - guest_id = '', - guest_name = '', - room_id = '', - balance = 1.337, - reservation_id = '', - sub_reservation_id = '', - estimated_arrival_time = '', ) - ], - message = '' - ) - else: - return GetReservationArrivalsResponse( - ) - """ - - def testGetReservationArrivalsResponse(self): - """Test GetReservationArrivalsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py deleted file mode 100644 index f430887..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_arrivals_response_data_inner.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_arrivals_response_data_inner import GetReservationArrivalsResponseDataInner - -class TestGetReservationArrivalsResponseDataInner(unittest.TestCase): - """GetReservationArrivalsResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationArrivalsResponseDataInner: - """Test GetReservationArrivalsResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationArrivalsResponseDataInner` - """ - model = GetReservationArrivalsResponseDataInner() - if include_optional: - return GetReservationArrivalsResponseDataInner( - guest_id = '', - guest_name = '', - room_id = '', - balance = 1.337, - reservation_id = '', - sub_reservation_id = '', - estimated_arrival_time = '' - ) - else: - return GetReservationArrivalsResponseDataInner( - ) - """ - - def testGetReservationArrivalsResponseDataInner(self): - """Test GetReservationArrivalsResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py deleted file mode 100644 index 803de25..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_departures_response import GetReservationDeparturesResponse - -class TestGetReservationDeparturesResponse(unittest.TestCase): - """GetReservationDeparturesResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationDeparturesResponse: - """Test GetReservationDeparturesResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationDeparturesResponse` - """ - model = GetReservationDeparturesResponse() - if include_optional: - return GetReservationDeparturesResponse( - success = True, - data = [ - cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner.GetReservationDeparturesResponse_data_inner( - guest_name = '', - guest_id = '', - balance = 1.337, - reservation_id = '', - reservation_details = [ - None - ], ) - ], - message = '' - ) - else: - return GetReservationDeparturesResponse( - ) - """ - - def testGetReservationDeparturesResponse(self): - """Test GetReservationDeparturesResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py deleted file mode 100644 index 29521e0..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_departures_response_data_inner.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_departures_response_data_inner import GetReservationDeparturesResponseDataInner - -class TestGetReservationDeparturesResponseDataInner(unittest.TestCase): - """GetReservationDeparturesResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationDeparturesResponseDataInner: - """Test GetReservationDeparturesResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationDeparturesResponseDataInner` - """ - model = GetReservationDeparturesResponseDataInner() - if include_optional: - return GetReservationDeparturesResponseDataInner( - guest_name = '', - guest_id = '', - balance = 1.337, - reservation_id = '', - reservation_details = [ - None - ] - ) - else: - return GetReservationDeparturesResponseDataInner( - ) - """ - - def testGetReservationDeparturesResponseDataInner(self): - """Test GetReservationDeparturesResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py deleted file mode 100644 index 0bef47c..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response import GetReservationInHouseResponse - -class TestGetReservationInHouseResponse(unittest.TestCase): - """GetReservationInHouseResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInHouseResponse: - """Test GetReservationInHouseResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInHouseResponse` - """ - model = GetReservationInHouseResponse() - if include_optional: - return GetReservationInHouseResponse( - success = True, - data = [ - cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner.GetReservationInHouseResponse_data_inner( - guest_id = '', - guest_name = '', - main_guest_id = '', - main_guest_name = '', - balance = 1.337, - reservation_id = '', - room_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - reservation_custom_fields = [ - None - ], - room_id = '', - room_name = '', - guest_first_name = '', - guest_last_name = '', - guest_phone = '', - guest_address1 = '', - guest_address2 = '', - guest_city = '', - guest_state = '', - guest_country = '', - guest_zip = '', - guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_document_type = '', - guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_custom_fields = [ - None - ], ) - ], - message = '' - ) - else: - return GetReservationInHouseResponse( - ) - """ - - def testGetReservationInHouseResponse(self): - """Test GetReservationInHouseResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py deleted file mode 100644 index 85095e0..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_in_house_response_data_inner.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_in_house_response_data_inner import GetReservationInHouseResponseDataInner - -class TestGetReservationInHouseResponseDataInner(unittest.TestCase): - """GetReservationInHouseResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInHouseResponseDataInner: - """Test GetReservationInHouseResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInHouseResponseDataInner` - """ - model = GetReservationInHouseResponseDataInner() - if include_optional: - return GetReservationInHouseResponseDataInner( - guest_id = '', - guest_name = '', - main_guest_id = '', - main_guest_name = '', - balance = 1.337, - reservation_id = '', - room_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - reservation_custom_fields = [ - None - ], - room_id = '', - room_name = '', - guest_first_name = '', - guest_last_name = '', - guest_phone = '', - guest_address1 = '', - guest_address2 = '', - guest_city = '', - guest_state = '', - guest_country = '', - guest_zip = '', - guest_birth_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_document_type = '', - guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_custom_fields = [ - None - ] - ) - else: - return GetReservationInHouseResponseDataInner( - ) - """ - - def testGetReservationInHouseResponseDataInner(self): - """Test GetReservationInHouseResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py deleted file mode 100644 index ae166cc..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response import GetReservationInvoiceInformationResponse - -class TestGetReservationInvoiceInformationResponse(unittest.TestCase): - """GetReservationInvoiceInformationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponse: - """Test GetReservationInvoiceInformationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponse` - """ - model = GetReservationInvoiceInformationResponse() - if include_optional: - return GetReservationInvoiceInformationResponse( - success = True, - data = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner.GetReservationInvoiceInformationResponse_data_inner( - status = 'confirmed', - custom_fields = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( - custom_field_name = '', - custom_field_value = '', ) - ], - main_guest_details = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( - guest_first_name = '', - guest_last_name = '', - guest_gender = 'M', - guest_email = '', - guest_phone = '', - guest_cell_phone = '', - guest_address = '', - guest_address2 = '', - guest_city = '', - guest_country = '', - tax_id = '', - company_tax_id = '', - company_name = '', - guest_state = '', - guest_zip = '', - is_anonymyzed = True, ) - ], - reservation_rooms = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( - room_type_name = '', - guest_name = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - adults = 56, - children = 56, - nights = 56, - room_total = 1.337, - room_id = '', - room_name = '', - room_type_id = '', ) - ], - reservation_rooms_total = 1.337, - reservation_adjustments = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( - adjustment_description = '', - adjustment_room_name = '', - adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - adjustment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - adjustment_amount = 1.337, ) - ], - reservation_adjustments_total = 1.337, - reservation_payments = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( - payment_type = '', - payment_description = '', - payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - payment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - payment_amount = 1.337, - reservation_payments_total = 1.337, ) - ], - reservation_additional_products = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( - product_id = '', - sold_product_id = '', - item_code = '', - product_name = '', - product_price = 1.337, - product_quantity = 56, - product_sub_total = 1.337, - product_fees = 1.337, - product_taxes = 1.337, - product_total = 1.337, - product_note = 1.337, - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reservation_additional_products_total = 1.337, - reservation_add_on_products = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( - sold_product_id = '', - product_name = '', - product_price = 1.337, - product_quantity = 56, - product_sub_total = 1.337, - product_fees = 1.337, - product_taxes = 1.337, - product_total = 1.337, - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reservation_add_on_products_total = 1.337, - reservation_taxes = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( - tax_name = '', - tax_amount = 1.337, ) - ], - reservation_taxes_total = 1.337, - reservation_fees = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( - tax_name = '', - tax_amount = 1.337, ) - ], - reservation_fees_total = 1.337, - balance = 1.337, - balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337, - original_currency_code = '', - original_currency_rate = 1.337, ) - ], - reservation_origin = '', ) - ], - message = '' - ) - else: - return GetReservationInvoiceInformationResponse( - ) - """ - - def testGetReservationInvoiceInformationResponse(self): - """Test GetReservationInvoiceInformationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py deleted file mode 100644 index 3f577db..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner import GetReservationInvoiceInformationResponseDataInner - -class TestGetReservationInvoiceInformationResponseDataInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInner: - """Test GetReservationInvoiceInformationResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInner` - """ - model = GetReservationInvoiceInformationResponseDataInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInner( - status = 'confirmed', - custom_fields = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( - custom_field_name = '', - custom_field_value = '', ) - ], - main_guest_details = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner.GetReservationInvoiceInformationResponse_data_inner_mainGuestDetails_inner( - guest_first_name = '', - guest_last_name = '', - guest_gender = 'M', - guest_email = '', - guest_phone = '', - guest_cell_phone = '', - guest_address = '', - guest_address2 = '', - guest_city = '', - guest_country = '', - tax_id = '', - company_tax_id = '', - company_name = '', - guest_state = '', - guest_zip = '', - is_anonymyzed = True, ) - ], - reservation_rooms = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.GetReservationInvoiceInformationResponse_data_inner_reservationRooms_inner( - room_type_name = '', - guest_name = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - adults = 56, - children = 56, - nights = 56, - room_total = 1.337, - room_id = '', - room_name = '', - room_type_id = '', ) - ], - reservation_rooms_total = 1.337, - reservation_adjustments = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdjustments_inner( - adjustment_description = '', - adjustment_room_name = '', - adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - adjustment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - adjustment_amount = 1.337, ) - ], - reservation_adjustments_total = 1.337, - reservation_payments = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner.GetReservationInvoiceInformationResponse_data_inner_reservationPayments_inner( - payment_type = '', - payment_description = '', - payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - payment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - payment_amount = 1.337, - reservation_payments_total = 1.337, ) - ], - reservation_additional_products = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAdditionalProducts_inner( - product_id = '', - sold_product_id = '', - item_code = '', - product_name = '', - product_price = 1.337, - product_quantity = 56, - product_sub_total = 1.337, - product_fees = 1.337, - product_taxes = 1.337, - product_total = 1.337, - product_note = 1.337, - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reservation_additional_products_total = 1.337, - reservation_add_on_products = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.GetReservationInvoiceInformationResponse_data_inner_reservationAddOnProducts_inner( - sold_product_id = '', - product_name = '', - product_price = 1.337, - product_quantity = 56, - product_sub_total = 1.337, - product_fees = 1.337, - product_taxes = 1.337, - product_total = 1.337, - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reservation_add_on_products_total = 1.337, - reservation_taxes = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( - tax_name = '', - tax_amount = 1.337, ) - ], - reservation_taxes_total = 1.337, - reservation_fees = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.GetReservationInvoiceInformationResponse_data_inner_reservationTaxes_inner( - tax_name = '', - tax_amount = 1.337, ) - ], - reservation_fees_total = 1.337, - balance = 1.337, - balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner.GetReservationInvoiceInformationResponse_data_inner_balanceDetailed_inner( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337, - original_currency_code = '', - original_currency_rate = 1.337, ) - ], - reservation_origin = '' - ) - else: - return GetReservationInvoiceInformationResponseDataInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInner(self): - """Test GetReservationInvoiceInformationResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py deleted file mode 100644 index c480535..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_balance_detailed_inner.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_balance_detailed_inner import GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner - -class TestGetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner: - """Test GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337, - original_currency_code = '', - original_currency_rate = 1.337 - ) - else: - return GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerBalanceDetailedInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py deleted file mode 100644 index b3756bb..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_main_guest_details_inner.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_main_guest_details_inner import GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner - -class TestGetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner: - """Test GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner( - guest_first_name = '', - guest_last_name = '', - guest_gender = 'M', - guest_email = '', - guest_phone = '', - guest_cell_phone = '', - guest_address = '', - guest_address2 = '', - guest_city = '', - guest_country = '', - tax_id = '', - company_tax_id = '', - company_name = '', - guest_state = '', - guest_zip = '', - is_anonymyzed = True - ) - else: - return GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerMainGuestDetailsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py deleted file mode 100644 index 6a25317..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_add_on_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner - -class TestGetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner: - """Test GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner( - sold_product_id = '', - product_name = '', - product_price = 1.337, - product_quantity = 56, - product_sub_total = 1.337, - product_fees = 1.337, - product_taxes = 1.337, - product_total = 1.337, - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerReservationAddOnProductsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py deleted file mode 100644 index a3138d3..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_additional_products_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner - -class TestGetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner: - """Test GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner( - product_id = '', - sold_product_id = '', - item_code = '', - product_name = '', - product_price = 1.337, - product_quantity = 56, - product_sub_total = 1.337, - product_fees = 1.337, - product_taxes = 1.337, - product_total = 1.337, - product_note = 1.337, - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerReservationAdditionalProductsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py deleted file mode 100644 index 0fa3575..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_adjustments_inner import GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner - -class TestGetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner: - """Test GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner( - adjustment_description = '', - adjustment_room_name = '', - adjustment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - adjustment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - adjustment_amount = 1.337 - ) - else: - return GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerReservationAdjustmentsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py deleted file mode 100644 index 69a3810..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_payments_inner.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_payments_inner import GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner - -class TestGetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner: - """Test GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner( - payment_type = '', - payment_description = '', - payment_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - payment_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - payment_amount = 1.337, - reservation_payments_total = 1.337 - ) - else: - return GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerReservationPaymentsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py deleted file mode 100644 index fa612a0..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_rooms_inner.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_rooms_inner import GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner - -class TestGetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner: - """Test GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner( - room_type_name = '', - guest_name = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - adults = 56, - children = 56, - nights = 56, - room_total = 1.337, - room_id = '', - room_name = '', - room_type_id = '' - ) - else: - return GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerReservationRoomsInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerReservationRoomsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py deleted file mode 100644 index ceb578c..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_invoice_information_response_data_inner_reservation_taxes_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_invoice_information_response_data_inner_reservation_taxes_inner import GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner - -class TestGetReservationInvoiceInformationResponseDataInnerReservationTaxesInner(unittest.TestCase): - """GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner: - """Test GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner` - """ - model = GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner() - if include_optional: - return GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner( - tax_name = '', - tax_amount = 1.337 - ) - else: - return GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner( - ) - """ - - def testGetReservationInvoiceInformationResponseDataInnerReservationTaxesInner(self): - """Test GetReservationInvoiceInformationResponseDataInnerReservationTaxesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response.py index 92ce0d5..ac81c4e 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response.py @@ -57,22 +57,25 @@ def make_instance(self, include_optional) -> GetReservationResponse: guest_country = '', guest_zip = '', guest_status = 'in_progress', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = null, guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = null, guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = null, tax_id = '', company_tax_id = '', company_name = '', - assigned_room = '', + assigned_room = True, is_anonymized = True, room_id = '', room_name = '', room_type_name = '', room_type_is_virtual = True, is_main_guest = True, + guest_requirements = [ + None + ], custom_fields = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', @@ -80,6 +83,7 @@ def make_instance(self, include_optional) -> GetReservationResponse: ], rooms = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + reservation_room_id = '', room_id = '', room_name = '', room_type_name = '', @@ -88,6 +92,7 @@ def make_instance(self, include_optional) -> GetReservationResponse: ], unassigned_rooms = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -104,17 +109,10 @@ def make_instance(self, include_optional) -> GetReservationResponse: status = 'confirmed', total = 1.337, balance = 1.337, - balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337, ) - ], + balance_detailed = null, assigned = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( + reservation_room_id = '', room_type_name = '', room_type_name_short = '', room_type_is_virtual = True, @@ -132,10 +130,13 @@ def make_instance(self, include_optional) -> GetReservationResponse: date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], - room_total = 1.337, ) + room_total = '', + market_name = '', + market_code = '', ) ], unassigned = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( + reservation_room_id = '', room_type_name = '', room_type_is_virtual = True, room_type_id = '', @@ -144,7 +145,7 @@ def make_instance(self, include_optional) -> GetReservationResponse: end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), adults = '', children = '', - room_total = 1.337, ) + room_total = '', ) ], cards_on_file = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( @@ -168,7 +169,8 @@ def make_instance(self, include_optional) -> GetReservationResponse: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) ], - origin = '', ), + origin = '', + meal_plans = '', ), message = '' ) else: diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py index 24119fd..632860e 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py @@ -55,22 +55,25 @@ def make_instance(self, include_optional) -> GetReservationResponseData: guest_country = '', guest_zip = '', guest_status = 'in_progress', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = null, guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = null, guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = null, tax_id = '', company_tax_id = '', company_name = '', - assigned_room = '', + assigned_room = True, is_anonymized = True, room_id = '', room_name = '', room_type_name = '', room_type_is_virtual = True, is_main_guest = True, + guest_requirements = [ + None + ], custom_fields = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', @@ -78,6 +81,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: ], rooms = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + reservation_room_id = '', room_id = '', room_name = '', room_type_name = '', @@ -86,6 +90,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: ], unassigned_rooms = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -102,17 +107,10 @@ def make_instance(self, include_optional) -> GetReservationResponseData: status = 'confirmed', total = 1.337, balance = 1.337, - balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337, ) - ], + balance_detailed = None, assigned = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner.GetReservationResponse_data_assigned_inner( + reservation_room_id = '', room_type_name = '', room_type_name_short = '', room_type_is_virtual = True, @@ -130,10 +128,13 @@ def make_instance(self, include_optional) -> GetReservationResponseData: date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], - room_total = 1.337, ) + room_total = '', + market_name = '', + market_code = '', ) ], unassigned = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner.GetReservationResponse_data_unassigned_inner( + reservation_room_id = '', room_type_name = '', room_type_is_virtual = True, room_type_id = '', @@ -147,7 +148,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], - room_total = 1.337, ) + room_total = '', ) ], cards_on_file = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner.GetReservationResponse_data_cardsOnFile_inner( @@ -171,7 +172,8 @@ def make_instance(self, include_optional) -> GetReservationResponseData: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), ) ], - origin = '' + origin = '', + meal_plans = '' ) else: return GetReservationResponseData( diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py index b69a351..bbcdbb2 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataAssignedI model = GetReservationResponseDataAssignedInner() if include_optional: return GetReservationResponseDataAssignedInner( + reservation_room_id = '', room_type_name = '', room_type_name_short = '', room_type_is_virtual = True, @@ -52,7 +53,9 @@ def make_instance(self, include_optional) -> GetReservationResponseDataAssignedI date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], - room_total = 1.337 + room_total = '', + market_name = '', + market_code = '' ) else: return GetReservationResponseDataAssignedInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py deleted file mode 100644 index 8d932d1..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_inner.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner import GetReservationResponseDataBalanceDetailedInner - -class TestGetReservationResponseDataBalanceDetailedInner(unittest.TestCase): - """GetReservationResponseDataBalanceDetailedInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationResponseDataBalanceDetailedInner: - """Test GetReservationResponseDataBalanceDetailedInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationResponseDataBalanceDetailedInner` - """ - model = GetReservationResponseDataBalanceDetailedInner() - if include_optional: - return GetReservationResponseDataBalanceDetailedInner( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337 - ) - else: - return GetReservationResponseDataBalanceDetailedInner( - ) - """ - - def testGetReservationResponseDataBalanceDetailedInner(self): - """Test GetReservationResponseDataBalanceDetailedInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py index fa3b591..d336f6b 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py @@ -49,22 +49,25 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList guest_country = '', guest_zip = '', guest_status = 'in_progress', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = None, guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = None, guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = None, tax_id = '', company_tax_id = '', company_name = '', - assigned_room = '', + assigned_room = True, is_anonymized = True, room_id = '', room_name = '', room_type_name = '', room_type_is_virtual = True, is_main_guest = True, + guest_requirements = [ + None + ], custom_fields = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', @@ -72,6 +75,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList ], rooms = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner.GetReservationResponse_data_guestList_value_rooms_inner( + reservation_room_id = '', room_id = '', room_name = '', room_type_name = '', @@ -80,6 +84,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList ], unassigned_rooms = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner.GetReservationResponse_data_guestList_value_unassignedRooms_inner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py index cf72f35..fedfb28 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList model = GetReservationResponseDataGuestListValueRoomsInner() if include_optional: return GetReservationResponseDataGuestListValueRoomsInner( + reservation_room_id = '', room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py index a6aa888..ae92d2c 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList model = GetReservationResponseDataGuestListValueUnassignedRoomsInner() if include_optional: return GetReservationResponseDataGuestListValueUnassignedRoomsInner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py index 00f49da..b3319f7 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataUnassigne model = GetReservationResponseDataUnassignedInner() if include_optional: return GetReservationResponseDataUnassignedInner( + reservation_room_id = '', room_type_name = '', room_type_is_virtual = True, room_type_id = '', @@ -48,7 +49,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataUnassigne date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rate = 1.337, ) ], - room_total = 1.337 + room_total = '' ) else: return GetReservationResponseDataUnassignedInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py index f12ad63..42c6222 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py @@ -78,11 +78,14 @@ def make_instance(self, include_optional) -> GetReservationsResponse: guest_name = '', adults = '', children = '', + reservation_room_id = '', room_id = '', room_name = '', room_check_in = '', room_check_out = '', - room_status = 'cancelled', ) + room_status = 'cancelled', + market_name = '', + market_code = '', ) ], guest_list = { 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( @@ -119,6 +122,7 @@ def make_instance(self, include_optional) -> GetReservationsResponse: room_type_is_virtual = True, unassigned_rooms = [ cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -127,10 +131,14 @@ def make_instance(self, include_optional) -> GetReservationsResponse: rate_plan_name = '', sub_reservation_id = '', ) ], + guest_requirements = [ + None + ], is_anonymized = True, is_main_guest = True, ) }, - origin = '', ) + origin = '', + meal_plans = '', ) ], count = 56, total = 56 diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py index e141e58..2d1de51 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py @@ -75,11 +75,14 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: guest_name = '', adults = '', children = '', + reservation_room_id = '', room_id = '', room_name = '', room_check_in = '', room_check_out = '', - room_status = 'cancelled', ) + room_status = 'cancelled', + market_name = '', + market_code = '', ) ], guest_list = { 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( @@ -116,6 +119,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: room_type_is_virtual = True, rooms = [ cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + reservation_room_id = '', room_id = '', room_name = '', room_type_name = '', @@ -129,6 +133,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: ], unassigned_rooms = [ cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -137,6 +142,9 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: rate_plan_name = '', sub_reservation_id = '', ) ], + guest_requirements = [ + None + ], custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', @@ -145,7 +153,8 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: is_anonymized = True, is_main_guest = True, ) }, - origin = '' + origin = '', + meal_plans = '' ) else: return GetReservationsResponseDataInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py index f08177e..2454548 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py @@ -68,6 +68,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue room_type_is_virtual = True, rooms = [ cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + reservation_room_id = '', room_id = '', room_name = '', room_type_name = '', @@ -81,6 +82,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue ], unassigned_rooms = [ cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, @@ -89,6 +91,9 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue rate_plan_name = '', sub_reservation_id = '', ) ], + guest_requirements = [ + None + ], custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py index 9a20e1f..9f3e95e 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue model = GetReservationsResponseDataInnerGuestListValueRoomsInner() if include_optional: return GetReservationsResponseDataInnerGuestListValueRoomsInner( + reservation_room_id = '', room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py index 93a28fc..46cb5aa 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue model = GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner() if include_optional: return GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner( + reservation_room_id = '', room_type_id = '', room_type_name = '', room_type_is_virtual = True, diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py index 9d1d952..82c9191 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py @@ -43,11 +43,14 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerRoo guest_name = '', adults = '', children = '', + reservation_room_id = '', room_id = '', room_name = '', room_check_in = '', room_check_out = '', - room_status = 'cancelled' + room_status = 'cancelled', + market_name = '', + market_code = '' ) else: return GetReservationsResponseDataInnerRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py index 74d0610..e40eeb4 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo success = True, data = [ cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner.GetReservationsWithRateDetailsResponse_data_inner( + property_id = '', reservation_id = '', is_deleted = True, date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -64,7 +65,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo source_reservation_id = 56, property_currency = 56, balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of.GetReservationResponse_data_balanceDetailed_oneOf( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -87,6 +88,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo rate_name = '', adults = '', children = '', + reservation_room_id = '', room_id = '', room_name = '', room_check_in = '', @@ -94,9 +96,77 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo room_status = 'cancelled', detailed_room_rates = [ None - ], ) + ], + market_name = '', + market_code = '', ) ], - origin = '', ) + origin = '', + meal_plans = '', + guest_list = { + 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + guest_id = '', + guest_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + assigned_room = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + unassigned_rooms = [ + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + reservation_room_id = '', + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '', ) + ], + guest_requirements = [ + None + ], + custom_fields = [ + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + is_anonymized = True, + is_main_guest = True, ) + }, + third_party_identifier = '', + custom_fields = [ + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + estimated_arrival_time = '', + total = 1.337, + balance = 1.337, + date_imported = '', ) ], count = 56, total = 56 diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py index 14e9a17..5e9222b 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo model = GetReservationsWithRateDetailsResponseDataInner() if include_optional: return GetReservationsWithRateDetailsResponseDataInner( + property_id = '', reservation_id = '', is_deleted = True, date_created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -61,7 +62,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo source_reservation_id = 56, property_currency = 56, balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_inner.GetReservationResponse_data_balanceDetailed_inner( + cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of.GetReservationResponse_data_balanceDetailed_oneOf( suggested_deposit = '', sub_total = 1.337, additional_items = 1.337, @@ -84,6 +85,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo rate_name = '', adults = '', children = '', + reservation_room_id = '', room_id = '', room_name = '', room_check_in = '', @@ -91,9 +93,91 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo room_status = 'cancelled', detailed_room_rates = [ None - ], ) + ], + market_name = '', + market_code = '', ) ], - origin = '' + origin = '', + meal_plans = '', + guest_list = { + 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + guest_id = '', + guest_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issuing_country = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + tax_id = '', + company_tax_id = '', + company_name = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + assigned_room = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + rooms = [ + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + reservation_room_id = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + room_status = 'in_house', + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + reservation_room_id = '', + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '', ) + ], + guest_requirements = [ + None + ], + custom_fields = [ + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + is_anonymized = True, + is_main_guest = True, ) + }, + third_party_identifier = '', + custom_fields = [ + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + estimated_arrival_time = '', + total = 1.337, + balance = 1.337, + date_imported = '' ) else: return GetReservationsWithRateDetailsResponseDataInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py index 82451c5..a08bff5 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo rate_name = '', adults = '', children = '', + reservation_room_id = '', room_id = '', room_name = '', room_check_in = '', @@ -52,7 +53,9 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo room_status = 'cancelled', detailed_room_rates = [ None - ] + ], + market_name = '', + market_code = '' ) else: return GetReservationsWithRateDetailsResponseDataInnerRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py index 4f6dcbf..26493bc 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py @@ -40,22 +40,24 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: data = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner.GetTaxesAndFeesResponse_data_inner( type = 'fee', - fee_id = 56, - tax_id = 56, + fee_id = '', + tax_id = '', name = '', code = '', - amount = 1.337, - amount_adult = 1.337, - amount_child = 1.337, + amount = '', + amount_adult = '', + amount_child = '', amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( - rate = 1.337, - percentage = 1.337, ) + rate = null, + percentage = null, ) ], amount_type = 'percentage', - available_for = product, + available_for = [ + 'product' + ], fees_charged = [ - 56 + '' ], inclusive_or_exclusive = 'inclusive', is_deleted = True, @@ -70,9 +72,9 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: date_ranges = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( range = cloudbeds_pms_v1_3.models.range.range(), - amount = 1.337, - amount_adult = 1.337, - amount_child = 1.337, ) + amount = null, + amount_adult = null, + amount_child = null, ) ], ) ], total = 56 diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py index 7b4f612..a464690 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py @@ -36,22 +36,24 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: if include_optional: return GetTaxesAndFeesResponseDataInner( type = 'fee', - fee_id = 56, - tax_id = 56, + fee_id = '', + tax_id = '', name = '', code = '', - amount = 1.337, - amount_adult = 1.337, - amount_child = 1.337, + amount = '', + amount_adult = '', + amount_child = '', amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( - rate = 1.337, - percentage = 1.337, ) + rate = null, + percentage = null, ) ], amount_type = 'percentage', - available_for = product, + available_for = [ + 'product' + ], fees_charged = [ - 56 + '' ], inclusive_or_exclusive = 'inclusive', is_deleted = True, @@ -66,13 +68,13 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: date_ranges = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( range = cloudbeds_pms_v1_3.models.range.range(), - amount = 1.337, - amount_adult = 1.337, - amount_child = 1.337, + amount = null, + amount_adult = null, + amount_child = null, amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( - rate = 1.337, - percentage = 1.337, ) + rate = null, + percentage = null, ) ], ) ] ) diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py index 641fcf4..6065aa0 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py @@ -35,8 +35,8 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerAmo model = GetTaxesAndFeesResponseDataInnerAmountRateBasedInner() if include_optional: return GetTaxesAndFeesResponseDataInnerAmountRateBasedInner( - rate = 1.337, - percentage = 1.337 + rate = None, + percentage = None ) else: return GetTaxesAndFeesResponseDataInnerAmountRateBasedInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py index 4626b31..dfef952 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDat if include_optional: return GetTaxesAndFeesResponseDataInnerDateRangesInner( range = cloudbeds_pms_v1_3.models.range.range(), - amount = 1.337, - amount_adult = 1.337, - amount_child = 1.337, + amount = None, + amount_adult = None, + amount_child = None, amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( - rate = 1.337, - percentage = 1.337, ) + rate = null, + percentage = null, ) ] ) else: diff --git a/cloudbeds_pms_v1_3/test/test_get_transactions_response.py b/cloudbeds_pms_v1_3/test/test_get_transactions_response.py deleted file mode 100644 index 9407a80..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_transactions_response.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_transactions_response import GetTransactionsResponse - -class TestGetTransactionsResponse(unittest.TestCase): - """GetTransactionsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTransactionsResponse: - """Test GetTransactionsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTransactionsResponse` - """ - model = GetTransactionsResponse() - if include_optional: - return GetTransactionsResponse( - success = True, - data = [ - cloudbeds_pms_v1_3.models.get_transactions_response_data_inner.GetTransactionsResponse_data_inner( - property_id = '', - reservation_id = '', - sub_reservation_id = '', - house_account_id = '', - house_account_name = '', - guest_id = '', - property_name = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - room_type_id = '', - room_type_name = '', - room_name = '', - guest_name = '', - description = '', - category = '', - transaction_code = '', - notes = '', - quantity = 56, - amount = 1.337, - currency = '', - user_name = '', - transaction_type = 'debit', - transaction_category = 'adjustment', - item_category_name = '', - transaction_id = '', - parent_transaction_id = '', - card_type = '', - is_deleted = True, - service_date = '', ) - ], - cloudbeds_accounting = True, - count = 56, - total = 56, - message = '' - ) - else: - return GetTransactionsResponse( - ) - """ - - def testGetTransactionsResponse(self): - """Test GetTransactionsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py deleted file mode 100644 index 4ef0458..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_transactions_response_data_inner.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_transactions_response_data_inner import GetTransactionsResponseDataInner - -class TestGetTransactionsResponseDataInner(unittest.TestCase): - """GetTransactionsResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTransactionsResponseDataInner: - """Test GetTransactionsResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTransactionsResponseDataInner` - """ - model = GetTransactionsResponseDataInner() - if include_optional: - return GetTransactionsResponseDataInner( - property_id = '', - reservation_id = '', - sub_reservation_id = '', - house_account_id = '', - house_account_name = '', - guest_id = '', - property_name = '', - transaction_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - transaction_modified_date_time_utc = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_check_in = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_check_out = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - room_type_id = '', - room_type_name = '', - room_name = '', - guest_name = '', - description = '', - category = '', - transaction_code = '', - notes = '', - quantity = 56, - amount = 1.337, - currency = '', - user_name = '', - transaction_type = 'debit', - transaction_category = 'adjustment', - item_category_name = '', - transaction_id = '', - parent_transaction_id = '', - card_type = '', - is_deleted = True, - service_date = '' - ) - else: - return GetTransactionsResponseDataInner( - ) - """ - - def testGetTransactionsResponseDataInner(self): - """Test GetTransactionsResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_guest_api.py b/cloudbeds_pms_v1_3/test/test_guest_api.py index 92b5717..1b5321d 100644 --- a/cloudbeds_pms_v1_3/test/test_guest_api.py +++ b/cloudbeds_pms_v1_3/test/test_guest_api.py @@ -75,13 +75,6 @@ def test_get_guests_modified_get(self) -> None: """ pass - def test_post_guest_credit_card_post(self) -> None: - """Test case for post_guest_credit_card_post - - postGuestCreditCard - """ - pass - def test_post_guest_document_post(self) -> None: """Test case for post_guest_document_post diff --git a/cloudbeds_pms_v1_3/test/test_house_account_api.py b/cloudbeds_pms_v1_3/test/test_house_account_api.py index d026252..9c3a35d 100644 --- a/cloudbeds_pms_v1_3/test/test_house_account_api.py +++ b/cloudbeds_pms_v1_3/test/test_house_account_api.py @@ -26,13 +26,6 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_get_house_account_details_get(self) -> None: - """Test case for get_house_account_details_get - - getHouseAccountDetails - """ - pass - def test_get_house_account_list_get(self) -> None: """Test case for get_house_account_list_get diff --git a/cloudbeds_pms_v1_3/test/test_import_api.py b/cloudbeds_pms_v1_3/test/test_import_api.py deleted file mode 100644 index 2bfd929..0000000 --- a/cloudbeds_pms_v1_3/test/test_import_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.api.import_api import ImportApi - - -class TestImportApi(unittest.TestCase): - """ImportApi unit test stubs""" - - def setUp(self) -> None: - self.api = ImportApi() - - def tearDown(self) -> None: - pass - - def test_import_dummy_reservations_get(self) -> None: - """Test case for import_dummy_reservations_get - - GetImportDummyReservations - """ - pass - - def test_import_tours_get(self) -> None: - """Test case for import_tours_get - - GetImportTours - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_integration_api.py b/cloudbeds_pms_v1_3/test/test_integration_api.py index 8b00d37..17e7d3e 100644 --- a/cloudbeds_pms_v1_3/test/test_integration_api.py +++ b/cloudbeds_pms_v1_3/test/test_integration_api.py @@ -61,20 +61,6 @@ def test_post_app_error_post(self) -> None: """ pass - def test_post_app_settings_post(self) -> None: - """Test case for post_app_settings_post - - postAppSettings - """ - pass - - def test_post_app_state_internal_post(self) -> None: - """Test case for post_app_state_internal_post - - postAppStateInternal - """ - pass - def test_post_app_state_post(self) -> None: """Test case for post_app_state_post diff --git a/cloudbeds_pms_v1_3/test/test_invoices_api.py b/cloudbeds_pms_v1_3/test/test_invoices_api.py deleted file mode 100644 index 5d04694..0000000 --- a/cloudbeds_pms_v1_3/test/test_invoices_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.api.invoices_api import InvoicesApi - - -class TestInvoicesApi(unittest.TestCase): - """InvoicesApi unit test stubs""" - - def setUp(self) -> None: - self.api = InvoicesApi() - - def tearDown(self) -> None: - pass - - def test_get_invoice_get(self) -> None: - """Test case for get_invoice_get - - getInvoice - """ - pass - - def test_invoice_get(self) -> None: - """Test case for invoice_get - - invoice - """ - pass - - def test_patch_invoice_post(self) -> None: - """Test case for patch_invoice_post - - patchInvoice - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_item_api.py b/cloudbeds_pms_v1_3/test/test_item_api.py index 710489d..6a5a20e 100644 --- a/cloudbeds_pms_v1_3/test/test_item_api.py +++ b/cloudbeds_pms_v1_3/test/test_item_api.py @@ -33,13 +33,6 @@ def test_append_custom_item_post(self) -> None: """ pass - def test_delete_item_from_reservation_delete(self) -> None: - """Test case for delete_item_from_reservation_delete - - deleteItemFromReservation - """ - pass - def test_get_item_categories_get(self) -> None: """Test case for get_item_categories_get @@ -82,13 +75,6 @@ def test_post_item_post(self) -> None: """ pass - def test_post_item_to_reservation_post(self) -> None: - """Test case for post_item_to_reservation_post - - postItemToReservation - """ - pass - def test_post_items_to_inventory_post(self) -> None: """Test case for post_items_to_inventory_post diff --git a/cloudbeds_pms_v1_3/test/test_payment_api.py b/cloudbeds_pms_v1_3/test/test_payment_api.py index 39930c6..7f5208a 100644 --- a/cloudbeds_pms_v1_3/test/test_payment_api.py +++ b/cloudbeds_pms_v1_3/test/test_payment_api.py @@ -40,27 +40,6 @@ def test_get_payments_capabilities_get(self) -> None: """ pass - def test_get_payments_get(self) -> None: - """Test case for get_payments_get - - getPayments - """ - pass - - def test_get_pending_transactions_get(self) -> None: - """Test case for get_pending_transactions_get - - getPendingTransactions - """ - pass - - def test_get_transactions_get(self) -> None: - """Test case for get_transactions_get - - getTransactions - """ - pass - def test_post_charge_post(self) -> None: """Test case for post_charge_post @@ -82,20 +61,6 @@ def test_post_custom_payment_method_post(self) -> None: """ pass - def test_post_payment_cash_post(self) -> None: - """Test case for post_payment_cash_post - - postPaymentCash - """ - pass - - def test_post_payment_credit_card_post(self) -> None: - """Test case for post_payment_credit_card_post - - postPaymentCreditCard - """ - pass - def test_post_payment_post(self) -> None: """Test case for post_payment_post diff --git a/cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py b/cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py deleted file mode 100644 index da0d009..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_app_settings_request_settings_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_app_settings_request_settings_inner import PostAppSettingsRequestSettingsInner - -class TestPostAppSettingsRequestSettingsInner(unittest.TestCase): - """PostAppSettingsRequestSettingsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostAppSettingsRequestSettingsInner: - """Test PostAppSettingsRequestSettingsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostAppSettingsRequestSettingsInner` - """ - model = PostAppSettingsRequestSettingsInner() - if include_optional: - return PostAppSettingsRequestSettingsInner( - name = '', - value = '' - ) - else: - return PostAppSettingsRequestSettingsInner( - ) - """ - - def testPostAppSettingsRequestSettingsInner(self): - """Test PostAppSettingsRequestSettingsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_app_settings_response.py b/cloudbeds_pms_v1_3/test/test_post_app_settings_response.py deleted file mode 100644 index 8fc647c..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_app_settings_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_app_settings_response import PostAppSettingsResponse - -class TestPostAppSettingsResponse(unittest.TestCase): - """PostAppSettingsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostAppSettingsResponse: - """Test PostAppSettingsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostAppSettingsResponse` - """ - model = PostAppSettingsResponse() - if include_optional: - return PostAppSettingsResponse( - success = True, - data = None - ) - else: - return PostAppSettingsResponse( - ) - """ - - def testPostAppSettingsResponse(self): - """Test PostAppSettingsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py b/cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py deleted file mode 100644 index bebcbd8..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_app_state_internal_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_app_state_internal_response import PostAppStateInternalResponse - -class TestPostAppStateInternalResponse(unittest.TestCase): - """PostAppStateInternalResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostAppStateInternalResponse: - """Test PostAppStateInternalResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostAppStateInternalResponse` - """ - model = PostAppStateInternalResponse() - if include_optional: - return PostAppStateInternalResponse( - success = True - ) - else: - return PostAppStateInternalResponse( - ) - """ - - def testPostAppStateInternalResponse(self): - """Test PostAppStateInternalResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py b/cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py deleted file mode 100644 index 7e27761..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_bulk_app_property_settings_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_bulk_app_property_settings_response import PostBulkAppPropertySettingsResponse - -class TestPostBulkAppPropertySettingsResponse(unittest.TestCase): - """PostBulkAppPropertySettingsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostBulkAppPropertySettingsResponse: - """Test PostBulkAppPropertySettingsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostBulkAppPropertySettingsResponse` - """ - model = PostBulkAppPropertySettingsResponse() - if include_optional: - return PostBulkAppPropertySettingsResponse( - success = True - ) - else: - return PostBulkAppPropertySettingsResponse( - ) - """ - - def testPostBulkAppPropertySettingsResponse(self): - """Test PostBulkAppPropertySettingsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py b/cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py deleted file mode 100644 index 627350d..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_crm_cache_remove_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_crm_cache_remove_response import PostCRMCacheRemoveResponse - -class TestPostCRMCacheRemoveResponse(unittest.TestCase): - """PostCRMCacheRemoveResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostCRMCacheRemoveResponse: - """Test PostCRMCacheRemoveResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostCRMCacheRemoveResponse` - """ - model = PostCRMCacheRemoveResponse() - if include_optional: - return PostCRMCacheRemoveResponse( - success = True - ) - else: - return PostCRMCacheRemoveResponse( - ) - """ - - def testPostCRMCacheRemoveResponse(self): - """Test PostCRMCacheRemoveResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py b/cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py deleted file mode 100644 index 3d1bc26..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_crm_cache_update_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_crm_cache_update_response import PostCRMCacheUpdateResponse - -class TestPostCRMCacheUpdateResponse(unittest.TestCase): - """PostCRMCacheUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostCRMCacheUpdateResponse: - """Test PostCRMCacheUpdateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostCRMCacheUpdateResponse` - """ - model = PostCRMCacheUpdateResponse() - if include_optional: - return PostCRMCacheUpdateResponse( - success = True - ) - else: - return PostCRMCacheUpdateResponse( - ) - """ - - def testPostCRMCacheUpdateResponse(self): - """Test PostCRMCacheUpdateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py b/cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py deleted file mode 100644 index 0692bd6..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_guest_credit_card_response.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_guest_credit_card_response import PostGuestCreditCardResponse - -class TestPostGuestCreditCardResponse(unittest.TestCase): - """PostGuestCreditCardResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostGuestCreditCardResponse: - """Test PostGuestCreditCardResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostGuestCreditCardResponse` - """ - model = PostGuestCreditCardResponse() - if include_optional: - return PostGuestCreditCardResponse( - success = True - ) - else: - return PostGuestCreditCardResponse( - ) - """ - - def testPostGuestCreditCardResponse(self): - """Test PostGuestCreditCardResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py b/cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py similarity index 76% rename from cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py rename to cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py index 5b30934..fb69ddd 100644 --- a/cloudbeds_pms_v1_3/test/test_post_access_token_check_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.post_access_token_check_response import PostAccessTokenCheckResponse +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner -class TestPostAccessTokenCheckResponse(unittest.TestCase): - """PostAccessTokenCheckResponse unit test stubs""" +class TestPostItemRequestPaymentsInner(unittest.TestCase): + """PostItemRequestPaymentsInner unit test stubs""" def setUp(self): pass @@ -25,25 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PostAccessTokenCheckResponse: - """Test PostAccessTokenCheckResponse + def make_instance(self, include_optional) -> PostItemRequestPaymentsInner: + """Test PostItemRequestPaymentsInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `PostAccessTokenCheckResponse` + # uncomment below to create an instance of `PostItemRequestPaymentsInner` """ - model = PostAccessTokenCheckResponse() + model = PostItemRequestPaymentsInner() if include_optional: - return PostAccessTokenCheckResponse( - success = '' + return PostItemRequestPaymentsInner( + payment_type = '', + amount = 1.337, + notes = '' ) else: - return PostAccessTokenCheckResponse( + return PostItemRequestPaymentsInner( ) """ - def testPostAccessTokenCheckResponse(self): - """Test PostAccessTokenCheckResponse""" + def testPostItemRequestPaymentsInner(self): + """Test PostItemRequestPaymentsInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_3/test/test_post_item_response.py b/cloudbeds_pms_v1_3/test/test_post_item_response.py index 7a20a1e..71dfab2 100644 --- a/cloudbeds_pms_v1_3/test/test_post_item_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_item_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostItemResponse: if include_optional: return PostItemResponse( success = True, - data = cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data.PostItemToReservationResponse_data( + data = cloudbeds_pms_v1_3.models.post_item_response_data.PostItemResponse_data( sold_product_id = '', transaction_id = '', transaction_status = '', diff --git a/cloudbeds_pms_v1_3/test/test_post_item_response_data.py b/cloudbeds_pms_v1_3/test/test_post_item_response_data.py index b545777..83ab3c5 100644 --- a/cloudbeds_pms_v1_3/test/test_post_item_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_post_item_response_data.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> PostItemResponseData: if include_optional: return PostItemResponseData( sold_product_id = '', - external_relation_id = '', + transaction_id = '', transaction_status = '', remaining_item_quantity = 56, reorder_needed = True, diff --git a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py deleted file mode 100644 index 8f9eb66..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_request_payments_inner.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_item_to_reservation_request_payments_inner import PostItemToReservationRequestPaymentsInner - -class TestPostItemToReservationRequestPaymentsInner(unittest.TestCase): - """PostItemToReservationRequestPaymentsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostItemToReservationRequestPaymentsInner: - """Test PostItemToReservationRequestPaymentsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostItemToReservationRequestPaymentsInner` - """ - model = PostItemToReservationRequestPaymentsInner() - if include_optional: - return PostItemToReservationRequestPaymentsInner( - payment_type = '', - amount = 1.337, - notes = '' - ) - else: - return PostItemToReservationRequestPaymentsInner( - ) - """ - - def testPostItemToReservationRequestPaymentsInner(self): - """Test PostItemToReservationRequestPaymentsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py deleted file mode 100644 index 489e886..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response import PostItemToReservationResponse - -class TestPostItemToReservationResponse(unittest.TestCase): - """PostItemToReservationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostItemToReservationResponse: - """Test PostItemToReservationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostItemToReservationResponse` - """ - model = PostItemToReservationResponse() - if include_optional: - return PostItemToReservationResponse( - success = True, - data = cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data.PostItemToReservationResponse_data( - sold_product_id = '', - transaction_id = '', - transaction_status = '', - remaining_item_quantity = 56, - reorder_needed = True, - stop_sell_met = True, ), - message = '' - ) - else: - return PostItemToReservationResponse( - ) - """ - - def testPostItemToReservationResponse(self): - """Test PostItemToReservationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py b/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py deleted file mode 100644 index 1e83288..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_item_to_reservation_response_data.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_item_to_reservation_response_data import PostItemToReservationResponseData - -class TestPostItemToReservationResponseData(unittest.TestCase): - """PostItemToReservationResponseData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostItemToReservationResponseData: - """Test PostItemToReservationResponseData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostItemToReservationResponseData` - """ - model = PostItemToReservationResponseData() - if include_optional: - return PostItemToReservationResponseData( - sold_product_id = '', - transaction_id = '', - transaction_status = '', - remaining_item_quantity = 56, - reorder_needed = True, - stop_sell_met = True - ) - else: - return PostItemToReservationResponseData( - ) - """ - - def testPostItemToReservationResponseData(self): - """Test PostItemToReservationResponseData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py b/cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py deleted file mode 100644 index 9a6b5c6..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_patch_invoice_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_patch_invoice_response import PostPatchInvoiceResponse - -class TestPostPatchInvoiceResponse(unittest.TestCase): - """PostPatchInvoiceResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostPatchInvoiceResponse: - """Test PostPatchInvoiceResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostPatchInvoiceResponse` - """ - model = PostPatchInvoiceResponse() - if include_optional: - return PostPatchInvoiceResponse( - success = True, - message = '' - ) - else: - return PostPatchInvoiceResponse( - ) - """ - - def testPostPatchInvoiceResponse(self): - """Test PostPatchInvoiceResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py b/cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py deleted file mode 100644 index 34514a0..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_payment_cash_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_payment_cash_response import PostPaymentCashResponse - -class TestPostPaymentCashResponse(unittest.TestCase): - """PostPaymentCashResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostPaymentCashResponse: - """Test PostPaymentCashResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostPaymentCashResponse` - """ - model = PostPaymentCashResponse() - if include_optional: - return PostPaymentCashResponse( - success = True, - message = '' - ) - else: - return PostPaymentCashResponse( - ) - """ - - def testPostPaymentCashResponse(self): - """Test PostPaymentCashResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py b/cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py deleted file mode 100644 index 501a33d..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_payment_credit_card_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_payment_credit_card_response import PostPaymentCreditCardResponse - -class TestPostPaymentCreditCardResponse(unittest.TestCase): - """PostPaymentCreditCardResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostPaymentCreditCardResponse: - """Test PostPaymentCreditCardResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostPaymentCreditCardResponse` - """ - model = PostPaymentCreditCardResponse() - if include_optional: - return PostPaymentCreditCardResponse( - success = True, - message = '' - ) - else: - return PostPaymentCreditCardResponse( - ) - """ - - def testPostPaymentCreditCardResponse(self): - """Test PostPaymentCreditCardResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_put_rate_request.py b/cloudbeds_pms_v1_3/test/test_post_put_rate_request.py deleted file mode 100644 index 83b4908..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_put_rate_request.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_put_rate_request import PostPutRateRequest - -class TestPostPutRateRequest(unittest.TestCase): - """PostPutRateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostPutRateRequest: - """Test PostPutRateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostPutRateRequest` - """ - model = PostPutRateRequest() - if include_optional: - return PostPutRateRequest( - rates = [ - cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner.PostPutRateRequest_rates_inner( - rate_id = '', - interval = [ - cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner.PostPutRateRequest_rates_inner_interval_inner( - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - rate = 1.337, ) - ], ) - ] - ) - else: - return PostPutRateRequest( - ) - """ - - def testPostPutRateRequest(self): - """Test PostPutRateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py b/cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py deleted file mode 100644 index 51f30bc..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_reservation_check_in_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_reservation_check_in_response import PostReservationCheckInResponse - -class TestPostReservationCheckInResponse(unittest.TestCase): - """PostReservationCheckInResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostReservationCheckInResponse: - """Test PostReservationCheckInResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostReservationCheckInResponse` - """ - model = PostReservationCheckInResponse() - if include_optional: - return PostReservationCheckInResponse( - success = True, - message = '' - ) - else: - return PostReservationCheckInResponse( - ) - """ - - def testPostReservationCheckInResponse(self): - """Test PostReservationCheckInResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py b/cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py deleted file mode 100644 index 98fada9..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_reservation_check_out_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_reservation_check_out_response import PostReservationCheckOutResponse - -class TestPostReservationCheckOutResponse(unittest.TestCase): - """PostReservationCheckOutResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostReservationCheckOutResponse: - """Test PostReservationCheckOutResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostReservationCheckOutResponse` - """ - model = PostReservationCheckOutResponse() - if include_optional: - return PostReservationCheckOutResponse( - success = True, - message = '' - ) - else: - return PostReservationCheckOutResponse( - ) - """ - - def testPostReservationCheckOutResponse(self): - """Test PostReservationCheckOutResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_room_type_response.py b/cloudbeds_pms_v1_3/test/test_post_room_type_response.py deleted file mode 100644 index e011e6f..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_room_type_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_room_type_response import PostRoomTypeResponse - -class TestPostRoomTypeResponse(unittest.TestCase): - """PostRoomTypeResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostRoomTypeResponse: - """Test PostRoomTypeResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostRoomTypeResponse` - """ - model = PostRoomTypeResponse() - if include_optional: - return PostRoomTypeResponse( - success = True, - data = cloudbeds_pms_v1_3.models.post_room_type_response_data.PostRoomTypeResponse_data( - room_type_id = '', ), - message = '' - ) - else: - return PostRoomTypeResponse( - ) - """ - - def testPostRoomTypeResponse(self): - """Test PostRoomTypeResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py b/cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py deleted file mode 100644 index 54e3667..0000000 --- a/cloudbeds_pms_v1_3/test/test_post_room_type_response_data.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.post_room_type_response_data import PostRoomTypeResponseData - -class TestPostRoomTypeResponseData(unittest.TestCase): - """PostRoomTypeResponseData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PostRoomTypeResponseData: - """Test PostRoomTypeResponseData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PostRoomTypeResponseData` - """ - model = PostRoomTypeResponseData() - if include_optional: - return PostRoomTypeResponseData( - room_type_id = '' - ) - else: - return PostRoomTypeResponseData( - ) - """ - - def testPostRoomTypeResponseData(self): - """Test PostRoomTypeResponseData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py b/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py deleted file mode 100644 index 6052b8e..0000000 --- a/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner import PutRateRequestRatesInner - -class TestPutRateRequestRatesInner(unittest.TestCase): - """PutRateRequestRatesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PutRateRequestRatesInner: - """Test PutRateRequestRatesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PutRateRequestRatesInner` - """ - model = PutRateRequestRatesInner() - if include_optional: - return PutRateRequestRatesInner( - rate_id = '', - interval = [ - cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner.PutRateRequest_rates_inner_interval_inner( - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - rate = 1.337, ) - ] - ) - else: - return PutRateRequestRatesInner( - ) - """ - - def testPutRateRequestRatesInner(self): - """Test PutRateRequestRatesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py b/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py deleted file mode 100644 index 68866d5..0000000 --- a/cloudbeds_pms_v1_3/test/test_put_rate_request_rates_inner_interval_inner.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.put_rate_request_rates_inner_interval_inner import PutRateRequestRatesInnerIntervalInner - -class TestPutRateRequestRatesInnerIntervalInner(unittest.TestCase): - """PutRateRequestRatesInnerIntervalInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PutRateRequestRatesInnerIntervalInner: - """Test PutRateRequestRatesInnerIntervalInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PutRateRequestRatesInnerIntervalInner` - """ - model = PutRateRequestRatesInnerIntervalInner() - if include_optional: - return PutRateRequestRatesInnerIntervalInner( - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - rate = 1.337 - ) - else: - return PutRateRequestRatesInnerIntervalInner( - ) - """ - - def testPutRateRequestRatesInnerIntervalInner(self): - """Test PutRateRequestRatesInnerIntervalInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_rate_response.py b/cloudbeds_pms_v1_3/test/test_put_rate_response.py deleted file mode 100644 index ffdd949..0000000 --- a/cloudbeds_pms_v1_3/test/test_put_rate_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.put_rate_response import PutRateResponse - -class TestPutRateResponse(unittest.TestCase): - """PutRateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PutRateResponse: - """Test PutRateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PutRateResponse` - """ - model = PutRateResponse() - if include_optional: - return PutRateResponse( - success = True, - job_reference_id = '', - message = '' - ) - else: - return PutRateResponse( - ) - """ - - def testPutRateResponse(self): - """Test PutRateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py b/cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py deleted file mode 100644 index 8927f96..0000000 --- a/cloudbeds_pms_v1_3/test/test_put_reservation_details_request_custom_fields_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.put_reservation_details_request_custom_fields_inner import PutReservationDetailsRequestCustomFieldsInner - -class TestPutReservationDetailsRequestCustomFieldsInner(unittest.TestCase): - """PutReservationDetailsRequestCustomFieldsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PutReservationDetailsRequestCustomFieldsInner: - """Test PutReservationDetailsRequestCustomFieldsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PutReservationDetailsRequestCustomFieldsInner` - """ - model = PutReservationDetailsRequestCustomFieldsInner() - if include_optional: - return PutReservationDetailsRequestCustomFieldsInner( - custom_field_name = '', - custom_field_value = '' - ) - else: - return PutReservationDetailsRequestCustomFieldsInner( - ) - """ - - def testPutReservationDetailsRequestCustomFieldsInner(self): - """Test PutReservationDetailsRequestCustomFieldsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py b/cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py deleted file mode 100644 index 6b55205..0000000 --- a/cloudbeds_pms_v1_3/test/test_put_reservation_details_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.put_reservation_details_response import PutReservationDetailsResponse - -class TestPutReservationDetailsResponse(unittest.TestCase): - """PutReservationDetailsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PutReservationDetailsResponse: - """Test PutReservationDetailsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PutReservationDetailsResponse` - """ - model = PutReservationDetailsResponse() - if include_optional: - return PutReservationDetailsResponse( - success = True, - message = '', - data = None - ) - else: - return PutReservationDetailsResponse( - ) - """ - - def testPutReservationDetailsResponse(self): - """Test PutReservationDetailsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_rate_api.py b/cloudbeds_pms_v1_3/test/test_rate_api.py index df5f415..594fcdc 100644 --- a/cloudbeds_pms_v1_3/test/test_rate_api.py +++ b/cloudbeds_pms_v1_3/test/test_rate_api.py @@ -54,8 +54,8 @@ def test_patch_rate_post(self) -> None: """ pass - def test_put_rate_put(self) -> None: - """Test case for put_rate_put + def test_put_rate_post(self) -> None: + """Test case for put_rate_post putRate """ diff --git a/cloudbeds_pms_v1_3/test/test_reservation_api.py b/cloudbeds_pms_v1_3/test/test_reservation_api.py index 16d010c..3c00226 100644 --- a/cloudbeds_pms_v1_3/test/test_reservation_api.py +++ b/cloudbeds_pms_v1_3/test/test_reservation_api.py @@ -33,13 +33,6 @@ def test_delete_reservation_note_delete(self) -> None: """ pass - def test_get_reservation_arrivals_get(self) -> None: - """Test case for get_reservation_arrivals_get - - getReservationArrivals - """ - pass - def test_get_reservation_assignments_get(self) -> None: """Test case for get_reservation_assignments_get @@ -47,13 +40,6 @@ def test_get_reservation_assignments_get(self) -> None: """ pass - def test_get_reservation_departures_get(self) -> None: - """Test case for get_reservation_departures_get - - getReservationDepartures - """ - pass - def test_get_reservation_get(self) -> None: """Test case for get_reservation_get @@ -61,20 +47,6 @@ def test_get_reservation_get(self) -> None: """ pass - def test_get_reservation_in_house_get(self) -> None: - """Test case for get_reservation_in_house_get - - getReservationInHouse - """ - pass - - def test_get_reservation_invoice_information_get(self) -> None: - """Test case for get_reservation_invoice_information_get - - getReservationInvoiceInformation - """ - pass - def test_get_reservation_notes_get(self) -> None: """Test case for get_reservation_notes_get @@ -103,20 +75,6 @@ def test_get_sources_get(self) -> None: """ pass - def test_post_reservation_check_in_post(self) -> None: - """Test case for post_reservation_check_in_post - - postReservationCheckIn - """ - pass - - def test_post_reservation_check_out_post(self) -> None: - """Test case for post_reservation_check_out_post - - postReservationCheckOut - """ - pass - def test_post_reservation_document_post(self) -> None: """Test case for post_reservation_document_post @@ -138,13 +96,6 @@ def test_post_reservation_post(self) -> None: """ pass - def test_put_reservation_details_put(self) -> None: - """Test case for put_reservation_details_put - - putReservationDetails - """ - pass - def test_put_reservation_note_put(self) -> None: """Test case for put_reservation_note_put diff --git a/cloudbeds_pms_v1_3/test/test_room_api.py b/cloudbeds_pms_v1_3/test/test_room_api.py index 40ddfba..b14e6ca 100644 --- a/cloudbeds_pms_v1_3/test/test_room_api.py +++ b/cloudbeds_pms_v1_3/test/test_room_api.py @@ -110,13 +110,6 @@ def test_post_room_check_out_post(self) -> None: """ pass - def test_post_room_type_post(self) -> None: - """Test case for post_room_type_post - - postRoomType - """ - pass - def test_put_room_block_put(self) -> None: """Test case for put_room_block_put diff --git a/cloudbeds_pms_v1_3/test/test_rooms_api.py b/cloudbeds_pms_v1_3/test/test_rooms_api.py deleted file mode 100644 index 38d3424..0000000 --- a/cloudbeds_pms_v1_3/test/test_rooms_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.api.rooms_api import RoomsApi - - -class TestRoomsApi(unittest.TestCase): - """RoomsApi unit test stubs""" - - def setUp(self) -> None: - self.api = RoomsApi() - - def tearDown(self) -> None: - pass - - def test_get_hotel_room_types_get(self) -> None: - """Test case for get_hotel_room_types_get - - getHotelRoomTypes - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/openapitools.json b/openapitools.json index a0108fa..e5e0045 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.1.0", + "packageVersion": "1.2.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 2199d1a114c131d5c0bd2baf3ac3685d954c6f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Mon, 30 Jun 2025 17:59:48 +0200 Subject: [PATCH 23/46] feat: v1.3 --- .openapi-generator/FILES | 327 ------------------- README.md | 2 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 2 +- cloudbeds_pms_v1_3/api/authentication_api.py | 2 + cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/AuthenticationApi.md | 16 +- openapitools.json | 2 +- 9 files changed, 23 insertions(+), 334 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 419d2ee..bec9fbe 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -662,330 +662,3 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py -cloudbeds_pms_v1_3/test/test_adjustment_api.py -cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py -cloudbeds_pms_v1_3/test/test_app_settings_api.py -cloudbeds_pms_v1_3/test/test_authentication_api.py -cloudbeds_pms_v1_3/test/test_currency_api.py -cloudbeds_pms_v1_3/test/test_custom_fields_api.py -cloudbeds_pms_v1_3/test/test_dashboard_api.py -cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py -cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py -cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_delete_room_block_response.py -cloudbeds_pms_v1_3/test/test_delete_webhook_response.py -cloudbeds_pms_v1_3/test/test_emails_api.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_state_response.py -cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_files_response.py -cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py -cloudbeds_pms_v1_3/test/test_get_groups_response.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py -cloudbeds_pms_v1_3/test/test_get_hotels_response.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response.py -cloudbeds_pms_v1_3/test/test_get_item_response_data.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_items_response.py -cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_metadata_response.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py -cloudbeds_pms_v1_3/test/test_get_packages_response.py -cloudbeds_pms_v1_3/test/test_get_packages_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_response.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py -cloudbeds_pms_v1_3/test/test_get_users_response.py -cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py -cloudbeds_pms_v1_3/test/test_groups_api.py -cloudbeds_pms_v1_3/test/test_guest_api.py -cloudbeds_pms_v1_3/test/test_hotel_api.py -cloudbeds_pms_v1_3/test/test_house_account_api.py -cloudbeds_pms_v1_3/test/test_housekeeping_api.py -cloudbeds_pms_v1_3/test/test_integration_api.py -cloudbeds_pms_v1_3/test/test_item_api.py -cloudbeds_pms_v1_3/test/test_package_api.py -cloudbeds_pms_v1_3/test/test_payment_api.py -cloudbeds_pms_v1_3/test/test_post_access_token_response.py -cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_error_response.py -cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_state_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_card_response.py -cloudbeds_pms_v1_3/test/test_post_card_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py -cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py -cloudbeds_pms_v1_3/test/test_post_email_template_response.py -cloudbeds_pms_v1_3/test/test_post_file_response.py -cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py -cloudbeds_pms_v1_3/test/test_post_guest_note_response.py -cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py -cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_response.py -cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py -cloudbeds_pms_v1_3/test/test_post_item_category_response.py -cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_item_response.py -cloudbeds_pms_v1_3/test/test_post_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py -cloudbeds_pms_v1_3/test/test_post_payment_response.py -cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_put_group_response.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_post_room_assign_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_block_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py -cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_void_item_response.py -cloudbeds_pms_v1_3/test/test_post_void_payment_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py -cloudbeds_pms_v1_3/test/test_put_guest_note_response.py -cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_guest_response.py -cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py -cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_response.py -cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_room_block_response.py -cloudbeds_pms_v1_3/test/test_rate_api.py -cloudbeds_pms_v1_3/test/test_reservation_api.py -cloudbeds_pms_v1_3/test/test_room_api.py -cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py -cloudbeds_pms_v1_3/test/test_user_api.py diff --git a/README.md b/README.md index 7f0503e..ebb9454 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.2.0 +- Package version: 1.3.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/VERSION b/VERSION index 26aaba0..f0bb29e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0 +1.3.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 16358dd..f3e57a4 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.2.0" +__version__ = "1.3.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi diff --git a/cloudbeds_pms_v1_3/api/authentication_api.py b/cloudbeds_pms_v1_3/api/authentication_api.py index 25a5a9a..21df3b9 100644 --- a/cloudbeds_pms_v1_3/api/authentication_api.py +++ b/cloudbeds_pms_v1_3/api/authentication_api.py @@ -893,6 +893,8 @@ def _userinfo_get_serialize( # authentication setting _auth_settings: List[str] = [ + 'OAuth2', + 'api_key' ] return self.api_client.param_serialize( diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 86b21be..340b45b 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.2.0/python' + self.user_agent = 'OpenAPI-Generator/1.3.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 81dc9b8..2885968 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.2.0".\ + "SDK Package Version: 1.3.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/AuthenticationApi.md b/cloudbeds_pms_v1_3/docs/AuthenticationApi.md index 20dc41a..9e3e54e 100644 --- a/cloudbeds_pms_v1_3/docs/AuthenticationApi.md +++ b/cloudbeds_pms_v1_3/docs/AuthenticationApi.md @@ -160,6 +160,8 @@ Returns information on user who authorized connection ### Example +* OAuth Authentication (OAuth2): +* Api Key Authentication (api_key): ```python import cloudbeds_pms_v1_3 @@ -173,6 +175,18 @@ configuration = cloudbeds_pms_v1_3.Configuration( host = "https://api.cloudbeds.com/api/v1.3" ) +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Configure API key authorization: api_key +configuration.api_key['api_key'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key'] = 'Bearer' # Enter a context with an instance of the API client with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: @@ -206,7 +220,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[OAuth2](../README.md#OAuth2), [api_key](../README.md#api_key) ### HTTP request headers diff --git a/openapitools.json b/openapitools.json index e5e0045..4c215ba 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.2.0", + "packageVersion": "1.3.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 2f715b8d55f3c37bb0023ea92ea8cf298693415b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Wed, 9 Jul 2025 15:40:58 +0200 Subject: [PATCH 24/46] feat: v1.4 --- README.md | 2 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 2 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/models/get_item_response_data.py | 4 ++-- cloudbeds_pms_v1_3/models/get_items_response_data_inner.py | 4 ++-- openapitools.json | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ebb9454..caa5d2f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.3.0 +- Package version: 1.4.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/VERSION b/VERSION index f0bb29e..88c5fb8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.0 +1.4.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index f3e57a4..5a87cbc 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.3.0" +__version__ = "1.4.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 340b45b..30bbb29 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.3.0/python' + self.user_agent = 'OpenAPI-Generator/1.4.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 2885968..60845ac 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.3.0".\ + "SDK Package Version: 1.4.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/models/get_item_response_data.py b/cloudbeds_pms_v1_3/models/get_item_response_data.py index 36a4c99..fde9b47 100644 --- a/cloudbeds_pms_v1_3/models/get_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_item_response_data.py @@ -57,8 +57,8 @@ def item_type_validate_enum(cls, value): if value is None: return value - if value not in set(['product', 'service']): - raise ValueError("must be one of enum values ('product', 'service')") + if value not in set(['product', 'service', 'mealplan']): + raise ValueError("must be one of enum values ('product', 'service', 'mealplan')") return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py index 6c91ef5..82144a8 100644 --- a/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py @@ -57,8 +57,8 @@ def item_type_validate_enum(cls, value): if value is None: return value - if value not in set(['product', 'service']): - raise ValueError("must be one of enum values ('product', 'service')") + if value not in set(['product', 'service', 'mealplan']): + raise ValueError("must be one of enum values ('product', 'service', 'mealplan')") return value model_config = ConfigDict( diff --git a/openapitools.json b/openapitools.json index 4c215ba..1b06696 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.3.0", + "packageVersion": "1.4.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 216ea2c4baa62588caab42aba361061225c43333 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 23 Sep 2025 09:31:43 +0000 Subject: [PATCH 25/46] Bump version to 1.5.0 --- .openapi-generator/FILES | 336 ++++++++++++++++++ README.md | 5 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 5 +- .../api/allotment_blocks_api.py | 17 + cloudbeds_pms_v1_3/api/reservation_api.py | 68 ++++ cloudbeds_pms_v1_3/api/room_api.py | 196 +++++++++- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md | 6 +- cloudbeds_pms_v1_3/docs/GetGroupsResponse.md | 1 + .../docs/GetGroupsResponseDataInner.md | 8 +- ...GetGroupsResponseDataInnerContactsInner.md | 50 +++ ...sponseDataInnerContactsInnerEmailsInner.md | 30 ++ ...sponseDataInnerContactsInnerPhonesInner.md | 29 ++ .../docs/GetReservationsResponseDataInner.md | 1 + .../docs/GetRoomBlocksResponse.md | 1 + .../docs/GetRoomBlocksResponseDataInner.md | 1 - .../docs/GetTaxesAndFeesResponseDataInner.md | 1 + .../docs/PostRoomBlockResponse.md | 2 +- .../docs/PutReservationRequestRoomsInner.md | 1 + .../docs/PutRoomBlockResponse.md | 2 +- cloudbeds_pms_v1_3/docs/ReservationApi.md | 16 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 44 ++- cloudbeds_pms_v1_3/models/__init__.py | 3 + .../models/get_groups_response.py | 18 +- .../models/get_groups_response_data_inner.py | 81 ++++- ...oups_response_data_inner_contacts_inner.py | 211 +++++++++++ ..._data_inner_contacts_inner_emails_inner.py | 99 ++++++ ..._data_inner_contacts_inner_phones_inner.py | 87 +++++ .../get_reservations_response_data_inner.py | 9 +- .../models/get_room_blocks_response.py | 16 +- .../get_room_blocks_response_data_inner.py | 16 +- .../get_taxes_and_fees_response_data_inner.py | 9 +- .../models/post_room_block_response.py | 6 +- .../put_reservation_request_rooms_inner.py | 13 +- .../models/put_room_block_response.py | 10 +- .../test/test_get_groups_response.py | 42 ++- .../test_get_groups_response_data_inner.py | 39 +- ...oups_response_data_inner_contacts_inner.py | 79 ++++ ..._data_inner_contacts_inner_emails_inner.py | 52 +++ ..._data_inner_contacts_inner_phones_inner.py | 51 +++ .../test/test_get_reservations_response.py | 1 + ...st_get_reservations_response_data_inner.py | 1 + .../test/test_get_room_blocks_response.py | 2 +- ...est_get_room_blocks_response_data_inner.py | 1 - .../test/test_get_taxes_and_fees_response.py | 1 + ..._get_taxes_and_fees_response_data_inner.py | 1 + ...est_put_reservation_request_rooms_inner.py | 3 +- .../test/test_put_room_block_response.py | 2 +- openapitools.json | 2 +- 51 files changed, 1607 insertions(+), 74 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerEmailsInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md create mode 100644 cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index bec9fbe..2fdddc8 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -77,6 +77,9 @@ cloudbeds_pms_v1_3/docs/GetGroupNotesResponse.md cloudbeds_pms_v1_3/docs/GetGroupNotesResponseData.md cloudbeds_pms_v1_3/docs/GetGroupsResponse.md cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInner.md +cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerEmailsInner.md +cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md cloudbeds_pms_v1_3/docs/GetGuestListResponse.md cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValueGuestNotesInner.md @@ -398,6 +401,9 @@ cloudbeds_pms_v1_3/models/get_group_notes_response.py cloudbeds_pms_v1_3/models/get_group_notes_response_data.py cloudbeds_pms_v1_3/models/get_groups_response.py cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py +cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py +cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py +cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py cloudbeds_pms_v1_3/models/get_guest_list_response.py cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py cloudbeds_pms_v1_3/models/get_guest_list_response_data_value_guest_notes_inner.py @@ -662,3 +668,333 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py +cloudbeds_pms_v1_3/test/test_adjustment_api.py +cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py +cloudbeds_pms_v1_3/test/test_app_settings_api.py +cloudbeds_pms_v1_3/test/test_authentication_api.py +cloudbeds_pms_v1_3/test/test_currency_api.py +cloudbeds_pms_v1_3/test/test_custom_fields_api.py +cloudbeds_pms_v1_3/test/test_dashboard_api.py +cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py +cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py +cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_delete_room_block_response.py +cloudbeds_pms_v1_3/test/test_delete_webhook_response.py +cloudbeds_pms_v1_3/test/test_emails_api.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_state_response.py +cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_files_response.py +cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py +cloudbeds_pms_v1_3/test/test_get_groups_response.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_3/test/test_get_hotels_response.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response.py +cloudbeds_pms_v1_3/test/test_get_item_response_data.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_items_response.py +cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_metadata_response.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py +cloudbeds_pms_v1_3/test/test_get_packages_response.py +cloudbeds_pms_v1_3/test/test_get_packages_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_response.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response.py +cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_3/test/test_groups_api.py +cloudbeds_pms_v1_3/test/test_guest_api.py +cloudbeds_pms_v1_3/test/test_hotel_api.py +cloudbeds_pms_v1_3/test/test_house_account_api.py +cloudbeds_pms_v1_3/test/test_housekeeping_api.py +cloudbeds_pms_v1_3/test/test_integration_api.py +cloudbeds_pms_v1_3/test/test_item_api.py +cloudbeds_pms_v1_3/test/test_package_api.py +cloudbeds_pms_v1_3/test/test_payment_api.py +cloudbeds_pms_v1_3/test/test_post_access_token_response.py +cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_error_response.py +cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_state_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_card_response.py +cloudbeds_pms_v1_3/test/test_post_card_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py +cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py +cloudbeds_pms_v1_3/test/test_post_email_template_response.py +cloudbeds_pms_v1_3/test/test_post_file_response.py +cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py +cloudbeds_pms_v1_3/test/test_post_guest_note_response.py +cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py +cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_response.py +cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py +cloudbeds_pms_v1_3/test/test_post_item_category_response.py +cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_item_response.py +cloudbeds_pms_v1_3/test/test_post_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py +cloudbeds_pms_v1_3/test/test_post_payment_response.py +cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_put_group_response.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_post_room_assign_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_block_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py +cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_void_item_response.py +cloudbeds_pms_v1_3/test/test_post_void_payment_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py +cloudbeds_pms_v1_3/test/test_put_guest_note_response.py +cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_guest_response.py +cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py +cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_response.py +cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_room_block_response.py +cloudbeds_pms_v1_3/test/test_rate_api.py +cloudbeds_pms_v1_3/test/test_reservation_api.py +cloudbeds_pms_v1_3/test/test_room_api.py +cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py +cloudbeds_pms_v1_3/test/test_user_api.py diff --git a/README.md b/README.md index caa5d2f..8255c1b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.4.0 +- Package version: 1.5.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -240,6 +240,9 @@ Class | Method | HTTP request | Description - [GetGroupNotesResponseData](cloudbeds_pms_v1_3/docs/GetGroupNotesResponseData.md) - [GetGroupsResponse](cloudbeds_pms_v1_3/docs/GetGroupsResponse.md) - [GetGroupsResponseDataInner](cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md) + - [GetGroupsResponseDataInnerContactsInner](cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInner.md) + - [GetGroupsResponseDataInnerContactsInnerEmailsInner](cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerEmailsInner.md) + - [GetGroupsResponseDataInnerContactsInnerPhonesInner](cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md) - [GetGuestListResponse](cloudbeds_pms_v1_3/docs/GetGuestListResponse.md) - [GetGuestListResponseDataValue](cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md) - [GetGuestListResponseDataValueGuestNotesInner](cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValueGuestNotesInner.md) diff --git a/VERSION b/VERSION index 88c5fb8..bc80560 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.0 +1.5.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 5a87cbc..c5c5ee4 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.4.0" +__version__ = "1.5.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -95,6 +95,9 @@ from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner diff --git a/cloudbeds_pms_v1_3/api/allotment_blocks_api.py b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py index 6e4117e..1dc8bcb 100644 --- a/cloudbeds_pms_v1_3/api/allotment_blocks_api.py +++ b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py @@ -1035,6 +1035,7 @@ def get_allotment_blocks_get( group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Filters allotment blocks with the supplied Room Type ID.")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, @@ -1068,6 +1069,8 @@ def get_allotment_blocks_get( :type allotment_block_status: str :param allotment_block_type: The type of allotment block :type allotment_block_type: str + :param room_type_id: Filters allotment blocks with the supplied Room Type ID. + :type room_type_id: str :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) :type page_size: int :param page_number: Which page in the results to access @@ -1105,6 +1108,7 @@ def get_allotment_blocks_get( group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, + room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, @@ -1138,6 +1142,7 @@ def get_allotment_blocks_get_with_http_info( group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Filters allotment blocks with the supplied Room Type ID.")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, @@ -1171,6 +1176,8 @@ def get_allotment_blocks_get_with_http_info( :type allotment_block_status: str :param allotment_block_type: The type of allotment block :type allotment_block_type: str + :param room_type_id: Filters allotment blocks with the supplied Room Type ID. + :type room_type_id: str :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) :type page_size: int :param page_number: Which page in the results to access @@ -1208,6 +1215,7 @@ def get_allotment_blocks_get_with_http_info( group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, + room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, @@ -1241,6 +1249,7 @@ def get_allotment_blocks_get_without_preload_content( group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Filters allotment blocks with the supplied Room Type ID.")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, @@ -1274,6 +1283,8 @@ def get_allotment_blocks_get_without_preload_content( :type allotment_block_status: str :param allotment_block_type: The type of allotment block :type allotment_block_type: str + :param room_type_id: Filters allotment blocks with the supplied Room Type ID. + :type room_type_id: str :param page_size: Number of allotment blocks to return per page (min: 1, max: 100) :type page_size: int :param page_number: Which page in the results to access @@ -1311,6 +1322,7 @@ def get_allotment_blocks_get_without_preload_content( group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, + room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, @@ -1339,6 +1351,7 @@ def _get_allotment_blocks_get_serialize( group_code, allotment_block_status, allotment_block_type, + room_type_id, page_size, page_number, start_date, @@ -1389,6 +1402,10 @@ def _get_allotment_blocks_get_serialize( _query_params.append(('allotmentBlockType', allotment_block_type)) + if room_type_id is not None: + + _query_params.append(('roomTypeID', room_type_id)) + if page_size is not None: _query_params.append(('pageSize', page_size)) diff --git a/cloudbeds_pms_v1_3/api/reservation_api.py b/cloudbeds_pms_v1_3/api/reservation_api.py index 4fc3b7d..0e07a0a 100644 --- a/cloudbeds_pms_v1_3/api/reservation_api.py +++ b/cloudbeds_pms_v1_3/api/reservation_api.py @@ -1240,6 +1240,7 @@ def get_reservations_get( dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Room Type ID.")] = None, include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, @@ -1250,6 +1251,8 @@ def get_reservations_get( first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied allotment block code.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied group code.")] = None, sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, @@ -1296,6 +1299,8 @@ def get_reservations_get( :type room_id: str :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. :type room_name: str + :param room_type_id: Filters reservation with the supplied Room Type ID. + :type room_type_id: str :param include_guests_details: If guests details should be included or not :type include_guests_details: bool :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. @@ -1316,6 +1321,10 @@ def get_reservations_get( :type last_name: str :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). :type guest_id: str + :param allotment_block_code: Filters reservation with the supplied allotment block code. + :type allotment_block_code: str + :param group_code: Filters reservation with the supplied group code. + :type group_code: str :param sort_by_recent: Sort response results by most recent action :type sort_by_recent: bool :param page_number: Results page number @@ -1358,6 +1367,7 @@ def get_reservations_get( dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, + room_type_id=room_type_id, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, @@ -1368,6 +1378,8 @@ def get_reservations_get( first_name=first_name, last_name=last_name, guest_id=guest_id, + allotment_block_code=allotment_block_code, + group_code=group_code, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size, @@ -1407,6 +1419,7 @@ def get_reservations_get_with_http_info( dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Room Type ID.")] = None, include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, @@ -1417,6 +1430,8 @@ def get_reservations_get_with_http_info( first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied allotment block code.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied group code.")] = None, sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, @@ -1463,6 +1478,8 @@ def get_reservations_get_with_http_info( :type room_id: str :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. :type room_name: str + :param room_type_id: Filters reservation with the supplied Room Type ID. + :type room_type_id: str :param include_guests_details: If guests details should be included or not :type include_guests_details: bool :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. @@ -1483,6 +1500,10 @@ def get_reservations_get_with_http_info( :type last_name: str :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). :type guest_id: str + :param allotment_block_code: Filters reservation with the supplied allotment block code. + :type allotment_block_code: str + :param group_code: Filters reservation with the supplied group code. + :type group_code: str :param sort_by_recent: Sort response results by most recent action :type sort_by_recent: bool :param page_number: Results page number @@ -1525,6 +1546,7 @@ def get_reservations_get_with_http_info( dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, + room_type_id=room_type_id, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, @@ -1535,6 +1557,8 @@ def get_reservations_get_with_http_info( first_name=first_name, last_name=last_name, guest_id=guest_id, + allotment_block_code=allotment_block_code, + group_code=group_code, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size, @@ -1574,6 +1598,7 @@ def get_reservations_get_without_preload_content( dates_query_mode: Annotated[Optional[StrictStr], Field(description="If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms.")] = None, room_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored.")] = None, room_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned.")] = None, + room_type_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Room Type ID.")] = None, include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, @@ -1584,6 +1609,8 @@ def get_reservations_get_without_preload_content( first_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest first name.")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied primary guest last name.")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied Guest ID (Including additional guests).")] = None, + allotment_block_code: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied allotment block code.")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Filters reservation with the supplied group code.")] = None, sort_by_recent: Annotated[Optional[StrictBool], Field(description="Sort response results by most recent action")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, @@ -1630,6 +1657,8 @@ def get_reservations_get_without_preload_content( :type room_id: str :param room_name: Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. :type room_name: str + :param room_type_id: Filters reservation with the supplied Room Type ID. + :type room_type_id: str :param include_guests_details: If guests details should be included or not :type include_guests_details: bool :param include_guest_requirements: Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. @@ -1650,6 +1679,10 @@ def get_reservations_get_without_preload_content( :type last_name: str :param guest_id: Filters reservation with the supplied Guest ID (Including additional guests). :type guest_id: str + :param allotment_block_code: Filters reservation with the supplied allotment block code. + :type allotment_block_code: str + :param group_code: Filters reservation with the supplied group code. + :type group_code: str :param sort_by_recent: Sort response results by most recent action :type sort_by_recent: bool :param page_number: Results page number @@ -1692,6 +1725,7 @@ def get_reservations_get_without_preload_content( dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, + room_type_id=room_type_id, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, @@ -1702,6 +1736,8 @@ def get_reservations_get_without_preload_content( first_name=first_name, last_name=last_name, guest_id=guest_id, + allotment_block_code=allotment_block_code, + group_code=group_code, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size, @@ -1736,6 +1772,7 @@ def _get_reservations_get_serialize( dates_query_mode, room_id, room_name, + room_type_id, include_guests_details, include_guest_requirements, include_custom_fields, @@ -1746,6 +1783,8 @@ def _get_reservations_get_serialize( first_name, last_name, guest_id, + allotment_block_code, + group_code, sort_by_recent, page_number, page_size, @@ -1895,6 +1934,10 @@ def _get_reservations_get_serialize( _query_params.append(('roomName', room_name)) + if room_type_id is not None: + + _query_params.append(('roomTypeID', room_type_id)) + if include_guests_details is not None: _query_params.append(('includeGuestsDetails', include_guests_details)) @@ -1935,6 +1978,14 @@ def _get_reservations_get_serialize( _query_params.append(('guestID', guest_id)) + if allotment_block_code is not None: + + _query_params.append(('allotmentBlockCode', allotment_block_code)) + + if group_code is not None: + + _query_params.append(('groupCode', group_code)) + if sort_by_recent is not None: _query_params.append(('sortByRecent', sort_by_recent)) @@ -2002,6 +2053,7 @@ def get_reservations_with_rate_details_get( include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservations with the supplied Guest ID (Including additional guests).")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -2049,6 +2101,8 @@ def get_reservations_with_rate_details_get( :type include_guest_requirements: bool :param include_custom_fields: If reservation custom fields should be included or not :type include_custom_fields: bool + :param guest_id: Filters reservations with the supplied Guest ID (Including additional guests). + :type guest_id: str :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -2090,6 +2144,7 @@ def get_reservations_with_rate_details_get( include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, + guest_id=guest_id, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -2129,6 +2184,7 @@ def get_reservations_with_rate_details_get_with_http_info( include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservations with the supplied Guest ID (Including additional guests).")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -2176,6 +2232,8 @@ def get_reservations_with_rate_details_get_with_http_info( :type include_guest_requirements: bool :param include_custom_fields: If reservation custom fields should be included or not :type include_custom_fields: bool + :param guest_id: Filters reservations with the supplied Guest ID (Including additional guests). + :type guest_id: str :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -2217,6 +2275,7 @@ def get_reservations_with_rate_details_get_with_http_info( include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, + guest_id=guest_id, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -2256,6 +2315,7 @@ def get_reservations_with_rate_details_get_without_preload_content( include_guests_details: Annotated[Optional[StrictBool], Field(description="If guests details should be included or not")] = None, include_guest_requirements: Annotated[Optional[StrictBool], Field(description="Includes guest requirements data in the response. Requires `includeGuestsDetails=true`.")] = None, include_custom_fields: Annotated[Optional[StrictBool], Field(description="If reservation custom fields should be included or not")] = None, + guest_id: Annotated[Optional[StrictStr], Field(description="Filters reservations with the supplied Guest ID (Including additional guests).")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Results page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Results page size. Max = 100")] = None, _request_timeout: Union[ @@ -2303,6 +2363,8 @@ def get_reservations_with_rate_details_get_without_preload_content( :type include_guest_requirements: bool :param include_custom_fields: If reservation custom fields should be included or not :type include_custom_fields: bool + :param guest_id: Filters reservations with the supplied Guest ID (Including additional guests). + :type guest_id: str :param page_number: Results page number :type page_number: int :param page_size: Results page size. Max = 100 @@ -2344,6 +2406,7 @@ def get_reservations_with_rate_details_get_without_preload_content( include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, + guest_id=guest_id, page_number=page_number, page_size=page_size, _request_auth=_request_auth, @@ -2378,6 +2441,7 @@ def _get_reservations_with_rate_details_get_serialize( include_guests_details, include_guest_requirements, include_custom_fields, + guest_id, page_number, page_size, _request_auth, @@ -2512,6 +2576,10 @@ def _get_reservations_with_rate_details_get_serialize( _query_params.append(('includeCustomFields', include_custom_fields)) + if guest_id is not None: + + _query_params.append(('guestID', guest_id)) + if page_number is not None: _query_params.append(('pageNumber', page_number)) diff --git a/cloudbeds_pms_v1_3/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py index 03269c1..e785d70 100644 --- a/cloudbeds_pms_v1_3/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -1536,6 +1536,7 @@ def get_room_types_get( max_guests: Annotated[Optional[StrictStr], Field(description="Max number of guests, used to filter")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc`")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1579,6 +1580,8 @@ def get_room_types_get( :type page_number: int :param page_size: Page size :type page_size: int + :param sort: Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc` + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1615,6 +1618,7 @@ def get_room_types_get( max_guests=max_guests, page_number=page_number, page_size=page_size, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1651,6 +1655,7 @@ def get_room_types_get_with_http_info( max_guests: Annotated[Optional[StrictStr], Field(description="Max number of guests, used to filter")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc`")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1694,6 +1699,8 @@ def get_room_types_get_with_http_info( :type page_number: int :param page_size: Page size :type page_size: int + :param sort: Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc` + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1730,6 +1737,7 @@ def get_room_types_get_with_http_info( max_guests=max_guests, page_number=page_number, page_size=page_size, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1766,6 +1774,7 @@ def get_room_types_get_without_preload_content( max_guests: Annotated[Optional[StrictStr], Field(description="Max number of guests, used to filter")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc`")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1809,6 +1818,8 @@ def get_room_types_get_without_preload_content( :type page_number: int :param page_size: Page size :type page_size: int + :param sort: Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc` + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1845,6 +1856,7 @@ def get_room_types_get_without_preload_content( max_guests=max_guests, page_number=page_number, page_size=page_size, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1876,6 +1888,7 @@ def _get_room_types_get_serialize( max_guests, page_number, page_size, + sort, _request_auth, _content_type, _headers, @@ -1968,6 +1981,10 @@ def _get_room_types_get_serialize( _query_params.append(('pageSize', page_size)) + if sort is not None: + + _query_params.append(('sort', sort)) + # process the header parameters # process the form parameters # process the body parameter @@ -2367,6 +2384,7 @@ def get_rooms_get( include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc`")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2400,6 +2418,8 @@ def get_rooms_get( :type page_number: int :param page_size: Page size :type page_size: int + :param sort: Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc` + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2431,6 +2451,7 @@ def get_rooms_get( include_room_relations=include_room_relations, page_number=page_number, page_size=page_size, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2462,6 +2483,7 @@ def get_rooms_get_with_http_info( include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc`")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2495,6 +2517,8 @@ def get_rooms_get_with_http_info( :type page_number: int :param page_size: Page size :type page_size: int + :param sort: Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc` + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2526,6 +2550,7 @@ def get_rooms_get_with_http_info( include_room_relations=include_room_relations, page_number=page_number, page_size=page_size, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2557,6 +2582,7 @@ def get_rooms_get_without_preload_content( include_room_relations: Annotated[Optional[StrictInt], Field(description="Determines whether room relations info should be included in the response")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Page number")] = None, page_size: Annotated[Optional[StrictInt], Field(description="Page size")] = None, + sort: Annotated[Optional[StrictStr], Field(description="Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc`")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2590,6 +2616,8 @@ def get_rooms_get_without_preload_content( :type page_number: int :param page_size: Page size :type page_size: int + :param sort: Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc` + :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2621,6 +2649,7 @@ def get_rooms_get_without_preload_content( include_room_relations=include_room_relations, page_number=page_number, page_size=page_size, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2647,6 +2676,7 @@ def _get_rooms_get_serialize( include_room_relations, page_number, page_size, + sort, _request_auth, _content_type, _headers, @@ -2719,6 +2749,10 @@ def _get_rooms_get_serialize( _query_params.append(('pageSize', page_size)) + if sort is not None: + + _query_params.append(('sort', sort)) + # process the header parameters # process the form parameters # process the body parameter @@ -3420,11 +3454,16 @@ def _post_room_assign_post_serialize( def post_room_block_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block")] = None, + room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block.")] = None, room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, + length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, + email: Annotated[Optional[StrictStr], Field(description="Email address - for courtesy hold updates")] = None, + phone: Annotated[Optional[StrictStr], Field(description="Phone number - for courtesy hold updates")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3444,7 +3483,7 @@ def post_room_block_post( :param property_id: Property ID :type property_id: str - :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block + :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block. :type room_block_type: str :param room_block_reason: Room block reason :type room_block_reason: str @@ -3454,6 +3493,16 @@ def post_room_block_post( :type end_date: date :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PostRoomBlockRequestRoomsInner] + :param first_name: First name - for courtesy hold updates + :type first_name: str + :param last_name: Last name - for courtesy hold updates + :type last_name: str + :param length_of_hold_in_hours: Length of hold in hours - for courtesy hold updates + :type length_of_hold_in_hours: int + :param email: Email address - for courtesy hold updates + :type email: str + :param phone: Phone number - for courtesy hold updates + :type phone: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3483,6 +3532,11 @@ def post_room_block_post( start_date=start_date, end_date=end_date, rooms=rooms, + first_name=first_name, + last_name=last_name, + length_of_hold_in_hours=length_of_hold_in_hours, + email=email, + phone=phone, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3507,11 +3561,16 @@ def post_room_block_post( def post_room_block_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block")] = None, + room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block.")] = None, room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, + length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, + email: Annotated[Optional[StrictStr], Field(description="Email address - for courtesy hold updates")] = None, + phone: Annotated[Optional[StrictStr], Field(description="Phone number - for courtesy hold updates")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3531,7 +3590,7 @@ def post_room_block_post_with_http_info( :param property_id: Property ID :type property_id: str - :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block + :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block. :type room_block_type: str :param room_block_reason: Room block reason :type room_block_reason: str @@ -3541,6 +3600,16 @@ def post_room_block_post_with_http_info( :type end_date: date :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PostRoomBlockRequestRoomsInner] + :param first_name: First name - for courtesy hold updates + :type first_name: str + :param last_name: Last name - for courtesy hold updates + :type last_name: str + :param length_of_hold_in_hours: Length of hold in hours - for courtesy hold updates + :type length_of_hold_in_hours: int + :param email: Email address - for courtesy hold updates + :type email: str + :param phone: Phone number - for courtesy hold updates + :type phone: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3570,6 +3639,11 @@ def post_room_block_post_with_http_info( start_date=start_date, end_date=end_date, rooms=rooms, + first_name=first_name, + last_name=last_name, + length_of_hold_in_hours=length_of_hold_in_hours, + email=email, + phone=phone, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3594,11 +3668,16 @@ def post_room_block_post_with_http_info( def post_room_block_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block")] = None, + room_block_type: Annotated[Optional[StrictStr], Field(description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block.")] = None, room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, + length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, + email: Annotated[Optional[StrictStr], Field(description="Email address - for courtesy hold updates")] = None, + phone: Annotated[Optional[StrictStr], Field(description="Phone number - for courtesy hold updates")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3618,7 +3697,7 @@ def post_room_block_post_without_preload_content( :param property_id: Property ID :type property_id: str - :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block + :param room_block_type: Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block. :type room_block_type: str :param room_block_reason: Room block reason :type room_block_reason: str @@ -3628,6 +3707,16 @@ def post_room_block_post_without_preload_content( :type end_date: date :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PostRoomBlockRequestRoomsInner] + :param first_name: First name - for courtesy hold updates + :type first_name: str + :param last_name: Last name - for courtesy hold updates + :type last_name: str + :param length_of_hold_in_hours: Length of hold in hours - for courtesy hold updates + :type length_of_hold_in_hours: int + :param email: Email address - for courtesy hold updates + :type email: str + :param phone: Phone number - for courtesy hold updates + :type phone: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3657,6 +3746,11 @@ def post_room_block_post_without_preload_content( start_date=start_date, end_date=end_date, rooms=rooms, + first_name=first_name, + last_name=last_name, + length_of_hold_in_hours=length_of_hold_in_hours, + email=email, + phone=phone, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3681,6 +3775,11 @@ def _post_room_block_post_serialize( start_date, end_date, rooms, + first_name, + last_name, + length_of_hold_in_hours, + email, + phone, _request_auth, _content_type, _headers, @@ -3718,6 +3817,16 @@ def _post_room_block_post_serialize( _form_params.append(('endDate', end_date)) if rooms is not None: _form_params.append(('rooms', rooms)) + if first_name is not None: + _form_params.append(('firstName', first_name)) + if last_name is not None: + _form_params.append(('lastName', last_name)) + if length_of_hold_in_hours is not None: + _form_params.append(('lengthOfHoldInHours', length_of_hold_in_hours)) + if email is not None: + _form_params.append(('email', email)) + if phone is not None: + _form_params.append(('phone', phone)) # process the body parameter @@ -4416,6 +4525,11 @@ def put_room_block_put( start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, + length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, + email: Annotated[Optional[StrictStr], Field(description="Email address - for courtesy hold updates")] = None, + phone: Annotated[Optional[StrictStr], Field(description="Phone number - for courtesy hold updates")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4445,6 +4559,16 @@ def put_room_block_put( :type end_date: date :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PutRoomBlockRequestRoomsInner] + :param first_name: First name - for courtesy hold updates + :type first_name: str + :param last_name: Last name - for courtesy hold updates + :type last_name: str + :param length_of_hold_in_hours: Length of hold in hours - for courtesy hold updates + :type length_of_hold_in_hours: int + :param email: Email address - for courtesy hold updates + :type email: str + :param phone: Phone number - for courtesy hold updates + :type phone: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4474,6 +4598,11 @@ def put_room_block_put( start_date=start_date, end_date=end_date, rooms=rooms, + first_name=first_name, + last_name=last_name, + length_of_hold_in_hours=length_of_hold_in_hours, + email=email, + phone=phone, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4503,6 +4632,11 @@ def put_room_block_put_with_http_info( start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, + length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, + email: Annotated[Optional[StrictStr], Field(description="Email address - for courtesy hold updates")] = None, + phone: Annotated[Optional[StrictStr], Field(description="Phone number - for courtesy hold updates")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4532,6 +4666,16 @@ def put_room_block_put_with_http_info( :type end_date: date :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PutRoomBlockRequestRoomsInner] + :param first_name: First name - for courtesy hold updates + :type first_name: str + :param last_name: Last name - for courtesy hold updates + :type last_name: str + :param length_of_hold_in_hours: Length of hold in hours - for courtesy hold updates + :type length_of_hold_in_hours: int + :param email: Email address - for courtesy hold updates + :type email: str + :param phone: Phone number - for courtesy hold updates + :type phone: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4561,6 +4705,11 @@ def put_room_block_put_with_http_info( start_date=start_date, end_date=end_date, rooms=rooms, + first_name=first_name, + last_name=last_name, + length_of_hold_in_hours=length_of_hold_in_hours, + email=email, + phone=phone, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4590,6 +4739,11 @@ def put_room_block_put_without_preload_content( start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, + last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, + length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, + email: Annotated[Optional[StrictStr], Field(description="Email address - for courtesy hold updates")] = None, + phone: Annotated[Optional[StrictStr], Field(description="Phone number - for courtesy hold updates")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4619,6 +4773,16 @@ def put_room_block_put_without_preload_content( :type end_date: date :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PutRoomBlockRequestRoomsInner] + :param first_name: First name - for courtesy hold updates + :type first_name: str + :param last_name: Last name - for courtesy hold updates + :type last_name: str + :param length_of_hold_in_hours: Length of hold in hours - for courtesy hold updates + :type length_of_hold_in_hours: int + :param email: Email address - for courtesy hold updates + :type email: str + :param phone: Phone number - for courtesy hold updates + :type phone: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4648,6 +4812,11 @@ def put_room_block_put_without_preload_content( start_date=start_date, end_date=end_date, rooms=rooms, + first_name=first_name, + last_name=last_name, + length_of_hold_in_hours=length_of_hold_in_hours, + email=email, + phone=phone, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4672,6 +4841,11 @@ def _put_room_block_put_serialize( start_date, end_date, rooms, + first_name, + last_name, + length_of_hold_in_hours, + email, + phone, _request_auth, _content_type, _headers, @@ -4709,6 +4883,16 @@ def _put_room_block_put_serialize( _form_params.append(('endDate', end_date)) if rooms is not None: _form_params.append(('rooms', rooms)) + if first_name is not None: + _form_params.append(('firstName', first_name)) + if last_name is not None: + _form_params.append(('lastName', last_name)) + if length_of_hold_in_hours is not None: + _form_params.append(('lengthOfHoldInHours', length_of_hold_in_hours)) + if email is not None: + _form_params.append(('email', email)) + if phone is not None: + _form_params.append(('phone', phone)) # process the body parameter diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 30bbb29..e90dc07 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.4.0/python' + self.user_agent = 'OpenAPI-Generator/1.5.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 60845ac..8dcc6e8 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.4.0".\ + "SDK Package Version: 1.5.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md index 50990c6..5ff16c4 100644 --- a/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md +++ b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md @@ -282,7 +282,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_allotment_blocks_get** -> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) +> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) getAllotmentBlocks @@ -328,6 +328,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: group_code = 'group_code_example' # str | A group profile code (optional) allotment_block_status = 'allotment_block_status_example' # str | Allotment block status(es) (optional) allotment_block_type = 'allotment_block_type_example' # str | The type of allotment block (optional) + room_type_id = 'room_type_id_example' # str | Filters allotment blocks with the supplied Room Type ID. (optional) page_size = 56 # int | Number of allotment blocks to return per page (min: 1, max: 100) (optional) page_number = 56 # int | Which page in the results to access (optional) start_date = '2013-10-20' # date | Interval start date (optional) @@ -335,7 +336,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # getAllotmentBlocks - api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) + api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) print("The response of AllotmentBlocksApi->get_allotment_blocks_get:\n") pprint(api_response) except Exception as e: @@ -355,6 +356,7 @@ Name | Type | Description | Notes **group_code** | **str**| A group profile code | [optional] **allotment_block_status** | **str**| Allotment block status(es) | [optional] **allotment_block_type** | **str**| The type of allotment block | [optional] + **room_type_id** | **str**| Filters allotment blocks with the supplied Room Type ID. | [optional] **page_size** | **int**| Number of allotment blocks to return per page (min: 1, max: 100) | [optional] **page_number** | **int**| Which page in the results to access | [optional] **start_date** | **date**| Interval start date | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md index e54af0d..af84438 100644 --- a/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Success | [optional] **data** | [**List[GetGroupsResponseDataInner]**](GetGroupsResponseDataInner.md) | Data | [optional] +**cell_phone** | **str** | \"fax\"} data.contacts.phones.type Phone type | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md index ec72d3f..bc265b9 100644 --- a/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInner.md @@ -10,13 +10,19 @@ Name | Type | Description | Notes **type** | **str** | The type of the group | [optional] **status** | **str** | Group status | [optional] **created** | **datetime** | Group created time | [optional] -**source_id** | **str** | The third-party source ID for this group, can be null | [optional] +**source_id** | **str** | The third-party source ID for this group, can be empty | [optional] +**source_name** | **str** | The third-party source name for this group, can be empty | [optional] **address1** | **str** | Address | [optional] **address2** | **str** | Address2 | [optional] **city** | **str** | City | [optional] **zip** | **str** | Zip | [optional] **state** | **str** | State | [optional] +**country_code** | **str** | Country code | [optional] **commission_type** | **str** | Commission type | [optional] +**tax_document_type** | **str** | Tax document type | [optional] +**tax_id_number** | **str** | Tax ID number | [optional] +**legal_name** | **str** | Legal name | [optional] +**contacts** | [**List[GetGroupsResponseDataInnerContactsInner]**](GetGroupsResponseDataInnerContactsInner.md) | Group contacts | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInner.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInner.md new file mode 100644 index 0000000..d5fe0c8 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInner.md @@ -0,0 +1,50 @@ +# GetGroupsResponseDataInnerContactsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique ID for a contact | [optional] +**group_profile_id** | **str** | The group profile ID this contact belongs to | [optional] +**primary** | **bool** | Whether this is the primary contact | [optional] +**anonymized** | **bool** | Whether the contact is anonymized | [optional] +**first_name** | **str** | Contact first name | [optional] +**last_name** | **str** | Contact last name | [optional] +**role** | **str** | Contact role | [optional] +**status** | **str** | Contact status | [optional] +**created_at** | **datetime** | Contact creation time | [optional] +**updated_at** | **datetime** | Contact last update time | [optional] +**emails** | [**List[GetGroupsResponseDataInnerContactsInnerEmailsInner]**](GetGroupsResponseDataInnerContactsInnerEmailsInner.md) | Contact email addresses | [optional] +**phones** | [**List[GetGroupsResponseDataInnerContactsInnerPhonesInner]**](GetGroupsResponseDataInnerContactsInnerPhonesInner.md) | Contact phone numbers | [optional] +**is_billing_recipient** | **bool** | Whether this contact is a billing recipient | [optional] +**tax_id_number** | **str** | Contact tax ID number | [optional] +**tax_document_type** | **str** | Contact tax document type | [optional] +**legal_name** | **str** | Contact legal name | [optional] +**address_1** | **str** | Contact address line 1 | [optional] +**address_2** | **str** | Contact address line 2 | [optional] +**city** | **str** | Contact city | [optional] +**state** | **str** | Contact state | [optional] +**country_code** | **str** | Contact country code | [optional] +**zip** | **str** | Contact zip code | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGroupsResponseDataInnerContactsInner from a JSON string +get_groups_response_data_inner_contacts_inner_instance = GetGroupsResponseDataInnerContactsInner.from_json(json) +# print the JSON string representation of the object +print(GetGroupsResponseDataInnerContactsInner.to_json()) + +# convert the object into a dict +get_groups_response_data_inner_contacts_inner_dict = get_groups_response_data_inner_contacts_inner_instance.to_dict() +# create an instance of GetGroupsResponseDataInnerContactsInner from a dict +get_groups_response_data_inner_contacts_inner_from_dict = GetGroupsResponseDataInnerContactsInner.from_dict(get_groups_response_data_inner_contacts_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerEmailsInner.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerEmailsInner.md new file mode 100644 index 0000000..2e15999 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerEmailsInner.md @@ -0,0 +1,30 @@ +# GetGroupsResponseDataInnerContactsInnerEmailsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Email type | [optional] +**value** | **str** | Email address value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGroupsResponseDataInnerContactsInnerEmailsInner from a JSON string +get_groups_response_data_inner_contacts_inner_emails_inner_instance = GetGroupsResponseDataInnerContactsInnerEmailsInner.from_json(json) +# print the JSON string representation of the object +print(GetGroupsResponseDataInnerContactsInnerEmailsInner.to_json()) + +# convert the object into a dict +get_groups_response_data_inner_contacts_inner_emails_inner_dict = get_groups_response_data_inner_contacts_inner_emails_inner_instance.to_dict() +# create an instance of GetGroupsResponseDataInnerContactsInnerEmailsInner from a dict +get_groups_response_data_inner_contacts_inner_emails_inner_from_dict = GetGroupsResponseDataInnerContactsInnerEmailsInner.from_dict(get_groups_response_data_inner_contacts_inner_emails_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md new file mode 100644 index 0000000..b02d53a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md @@ -0,0 +1,29 @@ +# GetGroupsResponseDataInnerContactsInnerPhonesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | Phone number value | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGroupsResponseDataInnerContactsInnerPhonesInner from a JSON string +get_groups_response_data_inner_contacts_inner_phones_inner_instance = GetGroupsResponseDataInnerContactsInnerPhonesInner.from_json(json) +# print the JSON string representation of the object +print(GetGroupsResponseDataInnerContactsInnerPhonesInner.to_json()) + +# convert the object into a dict +get_groups_response_data_inner_contacts_inner_phones_inner_dict = get_groups_response_data_inner_contacts_inner_phones_inner_instance.to_dict() +# create an instance of GetGroupsResponseDataInnerContactsInnerPhonesInner from a dict +get_groups_response_data_inner_contacts_inner_phones_inner_from_dict = GetGroupsResponseDataInnerContactsInnerPhonesInner.from_dict(get_groups_response_data_inner_contacts_inner_phones_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md index ce856a5..1d95d17 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **start_date** | **date** | | [optional] **end_date** | **date** | | [optional] **allotment_block_code** | **str** | Allotment block code | [optional] +**group_code** | **str** | Group profile code | [optional] **adults** | **int** | | [optional] **children** | **int** | | [optional] **balance** | **float** | | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md index 236c63b..aa8fab4 100644 --- a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Returns if the request could be completed | [optional] **data** | [**List[GetRoomBlocksResponseDataInner]**](GetRoomBlocksResponseDataInner.md) | Room block details | [optional] +**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block. | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md index 0427df7..47d88e3 100644 --- a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **room_block_id** | **str** | Room block ID | [optional] -**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md index 3a1d0fe..d4b3c55 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **tax_id** | **str** | Tax's unique identifier. Only exists if type = tax. | [optional] **name** | **str** | Name | [optional] **code** | **str** | Code | [optional] +**kind** | **str** | Tax kind. Currently supports \"vat\" or null. Only exists if type = tax. | [optional] **amount** | **str** | Amount | [optional] **amount_adult** | **str** | Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] **amount_child** | **str** | Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md index 0870c4f..111fa86 100644 --- a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **success** | **bool** | Returns if the request could be completed | [optional] **property_id** | **str** | Property ID | [optional] **room_block_id** | **str** | Room block ID | [optional] -**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] +**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block. | [optional] **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md b/cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md index 3fc794e..e9716a7 100644 --- a/cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PutReservationRequestRoomsInner.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **adults** | **int** | Quantity of adults for the room. Mandatory if rooms are sent. | [optional] **children** | **int** | Number of children for the room. Mandatory if rooms are sent. | [optional] **rate_id** | **str** | Rate ID for the room. Optional. | [optional] +**adjust_price** | **bool** | Whether to adjust pricing when changing room types. If false, preserves existing rates. Default is true. | [optional] [default to True] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md index 8b25197..5b08c3e 100644 --- a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **success** | **bool** | Returns if the request could be completed | [optional] **property_id** | **str** | Property ID | [optional] **room_block_id** | **str** | Room block ID | [optional] -**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] +**courtesy_hold** | **str** | roomBlockType Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] diff --git a/cloudbeds_pms_v1_3/docs/ReservationApi.md b/cloudbeds_pms_v1_3/docs/ReservationApi.md index fc4db2d..8fb2a59 100644 --- a/cloudbeds_pms_v1_3/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_3/docs/ReservationApi.md @@ -359,7 +359,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_reservations_get** -> GetReservationsResponse get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) +> GetReservationsResponse get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, room_type_id=room_type_id, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, allotment_block_code=allotment_block_code, group_code=group_code, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) getReservations @@ -412,6 +412,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: dates_query_mode = booking # str | If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. (optional) (default to booking) room_id = 'room_id_example' # str | Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. (optional) room_name = 'room_name_example' # str | Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. (optional) + room_type_id = 'room_type_id_example' # str | Filters reservation with the supplied Room Type ID. (optional) include_guests_details = False # bool | If guests details should be included or not (optional) (default to False) include_guest_requirements = False # bool | Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. (optional) (default to False) include_custom_fields = False # bool | If reservation custom fields should be included or not (optional) (default to False) @@ -422,13 +423,15 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: first_name = 'first_name_example' # str | Filters reservation with the supplied primary guest first name. (optional) last_name = 'last_name_example' # str | Filters reservation with the supplied primary guest last name. (optional) guest_id = 'guest_id_example' # str | Filters reservation with the supplied Guest ID (Including additional guests). (optional) + allotment_block_code = 'allotment_block_code_example' # str | Filters reservation with the supplied allotment block code. (optional) + group_code = 'group_code_example' # str | Filters reservation with the supplied group code. (optional) sort_by_recent = True # bool | Sort response results by most recent action (optional) page_number = 1 # int | Results page number (optional) (default to 1) page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) try: # getReservations - api_response = api_instance.get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) + api_response = api_instance.get_reservations_get(property_id=property_id, status=status, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, check_in_from=check_in_from, check_in_to=check_in_to, check_out_from=check_out_from, check_out_to=check_out_to, dates_query_mode=dates_query_mode, room_id=room_id, room_name=room_name, room_type_id=room_type_id, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, include_all_rooms=include_all_rooms, source_id=source_id, source_reservation_id=source_reservation_id, rate_plan_id=rate_plan_id, first_name=first_name, last_name=last_name, guest_id=guest_id, allotment_block_code=allotment_block_code, group_code=group_code, sort_by_recent=sort_by_recent, page_number=page_number, page_size=page_size) print("The response of ReservationApi->get_reservations_get:\n") pprint(api_response) except Exception as e: @@ -455,6 +458,7 @@ Name | Type | Description | Notes **dates_query_mode** | **str**| If we should consider the booking's check-in/check-out dates or the start and end dates for the associated rooms. | [optional] [default to booking] **room_id** | **str**| Filters reservation with the supplied room ID. CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. If roomID supplied, roomName is ignored. | [optional] **room_name** | **str**| Filters reservation with the supplied room name (customizable by each property). CheckIn/checkOut dates OR status are required. If dates are provided and span more than one day, more than one reservation can be returned. | [optional] + **room_type_id** | **str**| Filters reservation with the supplied Room Type ID. | [optional] **include_guests_details** | **bool**| If guests details should be included or not | [optional] [default to False] **include_guest_requirements** | **bool**| Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. | [optional] [default to False] **include_custom_fields** | **bool**| If reservation custom fields should be included or not | [optional] [default to False] @@ -465,6 +469,8 @@ Name | Type | Description | Notes **first_name** | **str**| Filters reservation with the supplied primary guest first name. | [optional] **last_name** | **str**| Filters reservation with the supplied primary guest last name. | [optional] **guest_id** | **str**| Filters reservation with the supplied Guest ID (Including additional guests). | [optional] + **allotment_block_code** | **str**| Filters reservation with the supplied allotment block code. | [optional] + **group_code** | **str**| Filters reservation with the supplied group code. | [optional] **sort_by_recent** | **bool**| Sort response results by most recent action | [optional] **page_number** | **int**| Results page number | [optional] [default to 1] **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] @@ -491,7 +497,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_reservations_with_rate_details_get** -> GetReservationsWithRateDetailsResponse get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, page_number=page_number, page_size=page_size) +> GetReservationsWithRateDetailsResponse get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, guest_id=guest_id, page_number=page_number, page_size=page_size) getReservationsWithRateDetails @@ -545,12 +551,13 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: include_guests_details = False # bool | If guests details should be included or not (optional) (default to False) include_guest_requirements = False # bool | Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. (optional) (default to False) include_custom_fields = False # bool | If reservation custom fields should be included or not (optional) (default to False) + guest_id = 'guest_id_example' # str | Filters reservations with the supplied Guest ID (Including additional guests). (optional) page_number = 1 # int | Results page number (optional) (default to 1) page_size = 100 # int | Results page size. Max = 100 (optional) (default to 100) try: # getReservationsWithRateDetails - api_response = api_instance.get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, page_number=page_number, page_size=page_size) + api_response = api_instance.get_reservations_with_rate_details_get(property_id=property_id, results_from=results_from, results_to=results_to, modified_from=modified_from, modified_to=modified_to, sort_by_recent=sort_by_recent, reservation_id=reservation_id, reservation_check_out_from=reservation_check_out_from, reservation_check_out_to=reservation_check_out_to, include_deleted=include_deleted, exclude_statuses=exclude_statuses, include_guests_details=include_guests_details, include_guest_requirements=include_guest_requirements, include_custom_fields=include_custom_fields, guest_id=guest_id, page_number=page_number, page_size=page_size) print("The response of ReservationApi->get_reservations_with_rate_details_get:\n") pprint(api_response) except Exception as e: @@ -578,6 +585,7 @@ Name | Type | Description | Notes **include_guests_details** | **bool**| If guests details should be included or not | [optional] [default to False] **include_guest_requirements** | **bool**| Includes guest requirements data in the response. Requires `includeGuestsDetails=true`. | [optional] [default to False] **include_custom_fields** | **bool**| If reservation custom fields should be included or not | [optional] [default to False] + **guest_id** | **str**| Filters reservations with the supplied Guest ID (Including additional guests). | [optional] **page_number** | **int**| Results page number | [optional] [default to 1] **page_size** | **int**| Results page size. Max = 100 | [optional] [default to 100] diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index af9b8c6..5852c69 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -392,7 +392,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_room_types_get** -> GetRoomTypesResponse get_room_types_get(property_ids=property_ids, room_type_ids=room_type_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, room_type_name=room_type_name, property_city=property_city, property_name=property_name, max_guests=max_guests, page_number=page_number, page_size=page_size) +> GetRoomTypesResponse get_room_types_get(property_ids=property_ids, room_type_ids=room_type_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, room_type_name=room_type_name, property_city=property_city, property_name=property_name, max_guests=max_guests, page_number=page_number, page_size=page_size, sort=sort) getRoomTypes @@ -445,10 +445,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: max_guests = 'max_guests_example' # str | Max number of guests, used to filter (optional) page_number = 1 # int | Page number (optional) (default to 1) page_size = 20 # int | Page size (optional) (default to 20) + sort = 'sort_example' # str | Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc` (optional) try: # getRoomTypes - api_response = api_instance.get_room_types_get(property_ids=property_ids, room_type_ids=room_type_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, room_type_name=room_type_name, property_city=property_city, property_name=property_name, max_guests=max_guests, page_number=page_number, page_size=page_size) + api_response = api_instance.get_room_types_get(property_ids=property_ids, room_type_ids=room_type_ids, start_date=start_date, end_date=end_date, adults=adults, children=children, detailed_rates=detailed_rates, room_type_name=room_type_name, property_city=property_city, property_name=property_name, max_guests=max_guests, page_number=page_number, page_size=page_size, sort=sort) print("The response of RoomApi->get_room_types_get:\n") pprint(api_response) except Exception as e: @@ -475,6 +476,7 @@ Name | Type | Description | Notes **max_guests** | **str**| Max number of guests, used to filter | [optional] **page_number** | **int**| Page number | [optional] [default to 1] **page_size** | **int**| Page size | [optional] [default to 20] + **sort** | **str**| Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `sorting_position`. Examples: - `sort=sorting_position` - `sort=sorting_position:desc` | [optional] ### Return type @@ -588,7 +590,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_rooms_get** -> GetRoomsResponse get_rooms_get(property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) +> GetRoomsResponse get_rooms_get(property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size, sort=sort) getRooms @@ -636,10 +638,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: include_room_relations = 0 # int | Determines whether room relations info should be included in the response (optional) (default to 0) page_number = 1 # int | Page number (optional) (default to 1) page_size = 20 # int | Page size (optional) (default to 20) + sort = 'sort_example' # str | Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc` (optional) try: # getRooms - api_response = api_instance.get_rooms_get(property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size) + api_response = api_instance.get_rooms_get(property_ids=property_ids, room_type_id=room_type_id, room_type_name_short=room_type_name_short, start_date=start_date, end_date=end_date, include_room_relations=include_room_relations, page_number=page_number, page_size=page_size, sort=sort) print("The response of RoomApi->get_rooms_get:\n") pprint(api_response) except Exception as e: @@ -661,6 +664,7 @@ Name | Type | Description | Notes **include_room_relations** | **int**| Determines whether room relations info should be included in the response | [optional] [default to 0] **page_number** | **int**| Page number | [optional] [default to 1] **page_size** | **int**| Page size | [optional] [default to 20] + **sort** | **str**| Sorting rules, semicolon-separated. Format: `field[:direction]`, where `direction` is `asc` or `desc`, defaults to `asc` if not provided. Valid fields: `room_position`, `sorting_position`. Examples: - `sort=room_position;sorting_position` - `sort=room_position:asc;sorting_position:desc` | [optional] ### Return type @@ -864,7 +868,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_room_block_post** -> PostRoomBlockResponse post_room_block_post(property_id=property_id, room_block_type=room_block_type, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) +> PostRoomBlockResponse post_room_block_post(property_id=property_id, room_block_type=room_block_type, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms, first_name=first_name, last_name=last_name, length_of_hold_in_hours=length_of_hold_in_hours, email=email, phone=phone) postRoomBlock @@ -906,15 +910,20 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_3.RoomApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) - room_block_type = 'room_block_type_example' # str | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block (optional) + room_block_type = 'room_block_type_example' # str | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block. (optional) room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) + last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) + length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) + email = 'email_example' # str | Email address - for courtesy hold updates (optional) + phone = 'phone_example' # str | Phone number - for courtesy hold updates (optional) try: # postRoomBlock - api_response = api_instance.post_room_block_post(property_id=property_id, room_block_type=room_block_type, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) + api_response = api_instance.post_room_block_post(property_id=property_id, room_block_type=room_block_type, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms, first_name=first_name, last_name=last_name, length_of_hold_in_hours=length_of_hold_in_hours, email=email, phone=phone) print("The response of RoomApi->post_room_block_post:\n") pprint(api_response) except Exception as e: @@ -929,11 +938,16 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] - **room_block_type** | **str**| Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block | [optional] + **room_block_type** | **str**| Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block. | [optional] **room_block_reason** | **str**| Room block reason | [optional] **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + **first_name** | **str**| First name - for courtesy hold updates | [optional] + **last_name** | **str**| Last name - for courtesy hold updates | [optional] + **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] + **email** | **str**| Email address - for courtesy hold updates | [optional] + **phone** | **str**| Phone number - for courtesy hold updates | [optional] ### Return type @@ -1133,7 +1147,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **put_room_block_put** -> PutRoomBlockResponse put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) +> PutRoomBlockResponse put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms, first_name=first_name, last_name=last_name, length_of_hold_in_hours=length_of_hold_in_hours, email=email, phone=phone) putRoomBlock @@ -1180,10 +1194,15 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) + last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) + length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) + email = 'email_example' # str | Email address - for courtesy hold updates (optional) + phone = 'phone_example' # str | Phone number - for courtesy hold updates (optional) try: # putRoomBlock - api_response = api_instance.put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms) + api_response = api_instance.put_room_block_put(property_id=property_id, room_block_id=room_block_id, room_block_reason=room_block_reason, start_date=start_date, end_date=end_date, rooms=rooms, first_name=first_name, last_name=last_name, length_of_hold_in_hours=length_of_hold_in_hours, email=email, phone=phone) print("The response of RoomApi->put_room_block_put:\n") pprint(api_response) except Exception as e: @@ -1203,6 +1222,11 @@ Name | Type | Description | Notes **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + **first_name** | **str**| First name - for courtesy hold updates | [optional] + **last_name** | **str**| Last name - for courtesy hold updates | [optional] + **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] + **email** | **str**| Email address - for courtesy hold updates | [optional] + **phone** | **str**| Phone number - for courtesy hold updates | [optional] ### Return type diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index c006414..7a20b48 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -57,6 +57,9 @@ from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner diff --git a/cloudbeds_pms_v1_3/models/get_groups_response.py b/cloudbeds_pms_v1_3/models/get_groups_response.py index 2ea34ce..275276e 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner from typing import Optional, Set @@ -29,7 +29,18 @@ class GetGroupsResponse(BaseModel): """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Success") data: Optional[List[GetGroupsResponseDataInner]] = Field(default=None, description="Data") - __properties: ClassVar[List[str]] = ["success", "data"] + cell_phone: Optional[StrictStr] = Field(default=None, description="\"fax\"} data.contacts.phones.type Phone type", alias=""cell_phone",") + __properties: ClassVar[List[str]] = ["success", "data", ""cell_phone","] + + @field_validator('cell_phone') + def cell_phone_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['home', 'work']): + raise ValueError("must be one of enum values ('home', 'work')") + return value model_config = ConfigDict( populate_by_name=True, @@ -90,7 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), - "data": [GetGroupsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + "data": [GetGroupsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + ""cell_phone",": obj.get(""cell_phone",") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py index 3c61d90..d895815 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py @@ -20,6 +20,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner from typing import Optional, Set from typing_extensions import Self @@ -32,14 +33,20 @@ class GetGroupsResponseDataInner(BaseModel): type: Optional[StrictStr] = Field(default=None, description="The type of the group") status: Optional[StrictStr] = Field(default=None, description="Group status") created: Optional[datetime] = Field(default=None, description="Group created time") - source_id: Optional[StrictStr] = Field(default=None, description="The third-party source ID for this group, can be null", alias="sourceID") + source_id: Optional[StrictStr] = Field(default=None, description="The third-party source ID for this group, can be empty", alias="sourceID") + source_name: Optional[StrictStr] = Field(default=None, description="The third-party source name for this group, can be empty", alias="sourceName") address1: Optional[StrictStr] = Field(default=None, description="Address") address2: Optional[StrictStr] = Field(default=None, description="Address2") city: Optional[StrictStr] = Field(default=None, description="City") zip: Optional[StrictStr] = Field(default=None, description="Zip") state: Optional[StrictStr] = Field(default=None, description="State") + country_code: Optional[StrictStr] = Field(default=None, description="Country code", alias="countryCode") commission_type: Optional[StrictStr] = Field(default=None, description="Commission type", alias="commissionType") - __properties: ClassVar[List[str]] = ["groupCode", "name", "type", "status", "created", "sourceID", "address1", "address2", "city", "zip", "state", "commissionType"] + tax_document_type: Optional[StrictStr] = Field(default=None, description="Tax document type", alias="taxDocumentType") + tax_id_number: Optional[StrictStr] = Field(default=None, description="Tax ID number", alias="taxIdNumber") + legal_name: Optional[StrictStr] = Field(default=None, description="Legal name", alias="legalName") + contacts: Optional[List[GetGroupsResponseDataInnerContactsInner]] = Field(default=None, description="Group contacts") + __properties: ClassVar[List[str]] = ["groupCode", "name", "type", "status", "created", "sourceID", "sourceName", "address1", "address2", "city", "zip", "state", "countryCode", "commissionType", "taxDocumentType", "taxIdNumber", "legalName", "contacts"] @field_validator('type') def type_validate_enum(cls, value): @@ -110,6 +117,68 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in contacts (list) + _items = [] + if self.contacts: + for _item_contacts in self.contacts: + if _item_contacts: + _items.append(_item_contacts.to_dict()) + _dict['contacts'] = _items + # set to None if address1 (nullable) is None + # and model_fields_set contains the field + if self.address1 is None and "address1" in self.model_fields_set: + _dict['address1'] = None + + # set to None if address2 (nullable) is None + # and model_fields_set contains the field + if self.address2 is None and "address2" in self.model_fields_set: + _dict['address2'] = None + + # set to None if city (nullable) is None + # and model_fields_set contains the field + if self.city is None and "city" in self.model_fields_set: + _dict['city'] = None + + # set to None if zip (nullable) is None + # and model_fields_set contains the field + if self.zip is None and "zip" in self.model_fields_set: + _dict['zip'] = None + + # set to None if state (nullable) is None + # and model_fields_set contains the field + if self.state is None and "state" in self.model_fields_set: + _dict['state'] = None + + # set to None if country_code (nullable) is None + # and model_fields_set contains the field + if self.country_code is None and "country_code" in self.model_fields_set: + _dict['countryCode'] = None + + # set to None if commission_type (nullable) is None + # and model_fields_set contains the field + if self.commission_type is None and "commission_type" in self.model_fields_set: + _dict['commissionType'] = None + + # set to None if tax_document_type (nullable) is None + # and model_fields_set contains the field + if self.tax_document_type is None and "tax_document_type" in self.model_fields_set: + _dict['taxDocumentType'] = None + + # set to None if tax_id_number (nullable) is None + # and model_fields_set contains the field + if self.tax_id_number is None and "tax_id_number" in self.model_fields_set: + _dict['taxIdNumber'] = None + + # set to None if legal_name (nullable) is None + # and model_fields_set contains the field + if self.legal_name is None and "legal_name" in self.model_fields_set: + _dict['legalName'] = None + + # set to None if contacts (nullable) is None + # and model_fields_set contains the field + if self.contacts is None and "contacts" in self.model_fields_set: + _dict['contacts'] = None + return _dict @classmethod @@ -128,12 +197,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "status": obj.get("status"), "created": obj.get("created"), "sourceID": obj.get("sourceID"), + "sourceName": obj.get("sourceName"), "address1": obj.get("address1"), "address2": obj.get("address2"), "city": obj.get("city"), "zip": obj.get("zip"), "state": obj.get("state"), - "commissionType": obj.get("commissionType") + "countryCode": obj.get("countryCode"), + "commissionType": obj.get("commissionType"), + "taxDocumentType": obj.get("taxDocumentType"), + "taxIdNumber": obj.get("taxIdNumber"), + "legalName": obj.get("legalName"), + "contacts": [GetGroupsResponseDataInnerContactsInner.from_dict(_item) for _item in obj["contacts"]] if obj.get("contacts") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py new file mode 100644 index 0000000..6fdf7af --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetGroupsResponseDataInnerContactsInner(BaseModel): + """ + GetGroupsResponseDataInnerContactsInner + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="Unique ID for a contact") + group_profile_id: Optional[StrictStr] = Field(default=None, description="The group profile ID this contact belongs to") + primary: Optional[StrictBool] = Field(default=None, description="Whether this is the primary contact") + anonymized: Optional[StrictBool] = Field(default=None, description="Whether the contact is anonymized") + first_name: Optional[StrictStr] = Field(default=None, description="Contact first name") + last_name: Optional[StrictStr] = Field(default=None, description="Contact last name") + role: Optional[StrictStr] = Field(default=None, description="Contact role") + status: Optional[StrictStr] = Field(default=None, description="Contact status") + created_at: Optional[datetime] = Field(default=None, description="Contact creation time") + updated_at: Optional[datetime] = Field(default=None, description="Contact last update time") + emails: Optional[List[GetGroupsResponseDataInnerContactsInnerEmailsInner]] = Field(default=None, description="Contact email addresses") + phones: Optional[List[GetGroupsResponseDataInnerContactsInnerPhonesInner]] = Field(default=None, description="Contact phone numbers") + is_billing_recipient: Optional[StrictBool] = Field(default=None, description="Whether this contact is a billing recipient") + tax_id_number: Optional[StrictStr] = Field(default=None, description="Contact tax ID number") + tax_document_type: Optional[StrictStr] = Field(default=None, description="Contact tax document type") + legal_name: Optional[StrictStr] = Field(default=None, description="Contact legal name") + address_1: Optional[StrictStr] = Field(default=None, description="Contact address line 1") + address_2: Optional[StrictStr] = Field(default=None, description="Contact address line 2") + city: Optional[StrictStr] = Field(default=None, description="Contact city") + state: Optional[StrictStr] = Field(default=None, description="Contact state") + country_code: Optional[StrictStr] = Field(default=None, description="Contact country code") + zip: Optional[StrictStr] = Field(default=None, description="Contact zip code") + __properties: ClassVar[List[str]] = ["id", "group_profile_id", "primary", "anonymized", "first_name", "last_name", "role", "status", "created_at", "updated_at", "emails", "phones", "is_billing_recipient", "tax_id_number", "tax_document_type", "legal_name", "address_1", "address_2", "city", "state", "country_code", "zip"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['active']): + raise ValueError("must be one of enum values ('active')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInnerContactsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in emails (list) + _items = [] + if self.emails: + for _item_emails in self.emails: + if _item_emails: + _items.append(_item_emails.to_dict()) + _dict['emails'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in phones (list) + _items = [] + if self.phones: + for _item_phones in self.phones: + if _item_phones: + _items.append(_item_phones.to_dict()) + _dict['phones'] = _items + # set to None if role (nullable) is None + # and model_fields_set contains the field + if self.role is None and "role" in self.model_fields_set: + _dict['role'] = None + + # set to None if phones (nullable) is None + # and model_fields_set contains the field + if self.phones is None and "phones" in self.model_fields_set: + _dict['phones'] = None + + # set to None if tax_id_number (nullable) is None + # and model_fields_set contains the field + if self.tax_id_number is None and "tax_id_number" in self.model_fields_set: + _dict['tax_id_number'] = None + + # set to None if tax_document_type (nullable) is None + # and model_fields_set contains the field + if self.tax_document_type is None and "tax_document_type" in self.model_fields_set: + _dict['tax_document_type'] = None + + # set to None if legal_name (nullable) is None + # and model_fields_set contains the field + if self.legal_name is None and "legal_name" in self.model_fields_set: + _dict['legal_name'] = None + + # set to None if address_1 (nullable) is None + # and model_fields_set contains the field + if self.address_1 is None and "address_1" in self.model_fields_set: + _dict['address_1'] = None + + # set to None if address_2 (nullable) is None + # and model_fields_set contains the field + if self.address_2 is None and "address_2" in self.model_fields_set: + _dict['address_2'] = None + + # set to None if city (nullable) is None + # and model_fields_set contains the field + if self.city is None and "city" in self.model_fields_set: + _dict['city'] = None + + # set to None if state (nullable) is None + # and model_fields_set contains the field + if self.state is None and "state" in self.model_fields_set: + _dict['state'] = None + + # set to None if country_code (nullable) is None + # and model_fields_set contains the field + if self.country_code is None and "country_code" in self.model_fields_set: + _dict['country_code'] = None + + # set to None if zip (nullable) is None + # and model_fields_set contains the field + if self.zip is None and "zip" in self.model_fields_set: + _dict['zip'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInnerContactsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "group_profile_id": obj.get("group_profile_id"), + "primary": obj.get("primary"), + "anonymized": obj.get("anonymized"), + "first_name": obj.get("first_name"), + "last_name": obj.get("last_name"), + "role": obj.get("role"), + "status": obj.get("status"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "emails": [GetGroupsResponseDataInnerContactsInnerEmailsInner.from_dict(_item) for _item in obj["emails"]] if obj.get("emails") is not None else None, + "phones": [GetGroupsResponseDataInnerContactsInnerPhonesInner.from_dict(_item) for _item in obj["phones"]] if obj.get("phones") is not None else None, + "is_billing_recipient": obj.get("is_billing_recipient"), + "tax_id_number": obj.get("tax_id_number"), + "tax_document_type": obj.get("tax_document_type"), + "legal_name": obj.get("legal_name"), + "address_1": obj.get("address_1"), + "address_2": obj.get("address_2"), + "city": obj.get("city"), + "state": obj.get("state"), + "country_code": obj.get("country_code"), + "zip": obj.get("zip") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py new file mode 100644 index 0000000..77ccb31 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGroupsResponseDataInnerContactsInnerEmailsInner(BaseModel): + """ + GetGroupsResponseDataInnerContactsInnerEmailsInner + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Email type") + value: Optional[StrictStr] = Field(default=None, description="Email address value") + __properties: ClassVar[List[str]] = ["type", "value"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['personal', 'business']): + raise ValueError("must be one of enum values ('personal', 'business')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInnerContactsInnerEmailsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInnerContactsInnerEmailsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "value": obj.get("value") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py new file mode 100644 index 0000000..ada576b --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetGroupsResponseDataInnerContactsInnerPhonesInner(BaseModel): + """ + GetGroupsResponseDataInnerContactsInnerPhonesInner + """ # noqa: E501 + value: Optional[StrictStr] = Field(default=None, description="Phone number value") + __properties: ClassVar[List[str]] = ["value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInnerContactsInnerPhonesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetGroupsResponseDataInnerContactsInnerPhonesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "value": obj.get("value") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py index a1819fc..6e6bd7d 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py @@ -42,6 +42,7 @@ class GetReservationsResponseDataInner(BaseModel): start_date: Optional[date] = Field(default=None, alias="startDate") end_date: Optional[date] = Field(default=None, alias="endDate") allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") + group_code: Optional[StrictStr] = Field(default=None, description="Group profile code", alias="groupCode") adults: Optional[StrictInt] = None children: Optional[StrictInt] = None balance: Optional[Union[StrictFloat, StrictInt]] = None @@ -55,7 +56,7 @@ class GetReservationsResponseDataInner(BaseModel): guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation meal plans", alias="mealPlans") - __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "groupInventory", "subReservationID", "customFields", "rooms", "guestList", "origin", "mealPlans"] + __properties: ClassVar[List[str]] = ["propertyID", "reservationID", "dateCreated", "dateModified", "status", "guestID", "profileID", "guestName", "startDate", "endDate", "allotmentBlockCode", "groupCode", "adults", "children", "balance", "sourceName", "sourceID", "thirdPartyIdentifier", "groupInventory", "subReservationID", "customFields", "rooms", "guestList", "origin", "mealPlans"] @field_validator('status') def status_validate_enum(cls, value): @@ -139,6 +140,11 @@ def to_dict(self) -> Dict[str, Any]: if self.allotment_block_code is None and "allotment_block_code" in self.model_fields_set: _dict['allotmentBlockCode'] = None + # set to None if group_code (nullable) is None + # and model_fields_set contains the field + if self.group_code is None and "group_code" in self.model_fields_set: + _dict['groupCode'] = None + # set to None if group_inventory (nullable) is None # and model_fields_set contains the field if self.group_inventory is None and "group_inventory" in self.model_fields_set: @@ -182,6 +188,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), "allotmentBlockCode": obj.get("allotmentBlockCode"), + "groupCode": obj.get("groupCode"), "adults": obj.get("adults"), "children": obj.get("children"), "balance": obj.get("balance"), diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response.py index cadcd2b..6e375c9 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner from typing import Optional, Set @@ -29,8 +29,19 @@ class GetRoomBlocksResponse(BaseModel): """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") data: Optional[List[GetRoomBlocksResponseDataInner]] = Field(default=None, description="Room block details") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block.", alias="roomBlockType") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "data", "message"] + __properties: ClassVar[List[str]] = ["success", "data", "roomBlockType", "message"] + + @field_validator('room_block_type') + def room_block_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['blocked', 'out_of_service', 'courtesy_hold']): + raise ValueError("must be one of enum values ('blocked', 'out_of_service', 'courtesy_hold')") + return value model_config = ConfigDict( populate_by_name=True, @@ -92,6 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), "data": [GetRoomBlocksResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "roomBlockType": obj.get("roomBlockType"), "message": obj.get("message") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py index ff7e6c3..5a8c89f 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py @@ -18,7 +18,7 @@ import json from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner from typing import Optional, Set @@ -29,23 +29,12 @@ class GetRoomBlocksResponseDataInner(BaseModel): GetRoomBlocksResponseDataInner """ # noqa: E501 room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") - room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block", alias="roomBlockType") room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") rooms: Optional[List[PostRoomBlockRequestRoomsInner]] = Field(default=None, description="All rooms for Block ID") count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned.") - __properties: ClassVar[List[str]] = ["roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "count"] - - @field_validator('room_block_type') - def room_block_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['blocked', 'out_of_service']): - raise ValueError("must be one of enum values ('blocked', 'out_of_service')") - return value + __properties: ClassVar[List[str]] = ["roomBlockID", "roomBlockReason", "startDate", "endDate", "rooms", "count"] model_config = ConfigDict( populate_by_name=True, @@ -106,7 +95,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "roomBlockID": obj.get("roomBlockID"), - "roomBlockType": obj.get("roomBlockType"), "roomBlockReason": obj.get("roomBlockReason"), "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py index 6f9e212..9fe4624 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py @@ -34,6 +34,7 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): tax_id: Optional[StrictStr] = Field(default=None, description="Tax's unique identifier. Only exists if type = tax.", alias="taxID") name: Optional[StrictStr] = Field(default=None, description="Name") code: Optional[StrictStr] = Field(default=None, description="Code") + kind: Optional[StrictStr] = Field(default=None, description="Tax kind. Currently supports \"vat\" or null. Only exists if type = tax.") amount: Optional[StrictStr] = Field(default=None, description="Amount") amount_adult: Optional[StrictStr] = Field(default=None, description="Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountAdult") amount_child: Optional[StrictStr] = Field(default=None, description="Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountChild") @@ -48,7 +49,7 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): expired_at: Optional[StrictStr] = Field(default=None, description="Date when tax or fee was expired", alias="expiredAt") room_types: Optional[List[GetTaxesAndFeesResponseDataInnerRoomTypesInner]] = Field(default=None, description="Room types this tax/fee applies to", alias="roomTypes") date_ranges: Optional[List[GetTaxesAndFeesResponseDataInnerDateRangesInner]] = Field(default=None, description="Date ranges when this tax/fee is applicable", alias="dateRanges") - __properties: ClassVar[List[str]] = ["type", "feeID", "taxID", "name", "code", "amount", "amountAdult", "amountChild", "amountRateBased", "amountType", "availableFor", "feesCharged", "inclusiveOrExclusive", "isDeleted", "childId", "createdAt", "expiredAt", "roomTypes", "dateRanges"] + __properties: ClassVar[List[str]] = ["type", "feeID", "taxID", "name", "code", "kind", "amount", "amountAdult", "amountChild", "amountRateBased", "amountType", "availableFor", "feesCharged", "inclusiveOrExclusive", "isDeleted", "childId", "createdAt", "expiredAt", "roomTypes", "dateRanges"] @field_validator('type') def type_validate_enum(cls, value): @@ -161,6 +162,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tax_id is None and "tax_id" in self.model_fields_set: _dict['taxID'] = None + # set to None if kind (nullable) is None + # and model_fields_set contains the field + if self.kind is None and "kind" in self.model_fields_set: + _dict['kind'] = None + # set to None if amount_rate_based (nullable) is None # and model_fields_set contains the field if self.amount_rate_based is None and "amount_rate_based" in self.model_fields_set: @@ -198,6 +204,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "taxID": obj.get("taxID"), "name": obj.get("name"), "code": obj.get("code"), + "kind": obj.get("kind"), "amount": obj.get("amount"), "amountAdult": obj.get("amountAdult"), "amountChild": obj.get("amountChild"), diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response.py b/cloudbeds_pms_v1_3/models/post_room_block_response.py index 9c7d945..3a458ce 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response.py @@ -31,7 +31,7 @@ class PostRoomBlockResponse(BaseModel): success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") - room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block", alias="roomBlockType") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold block.", alias="roomBlockType") room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") @@ -45,8 +45,8 @@ def room_block_type_validate_enum(cls, value): if value is None: return value - if value not in set(['blocked', 'out_of_service']): - raise ValueError("must be one of enum values ('blocked', 'out_of_service')") + if value not in set(['blocked', 'out_of_service', 'courtesy_hold']): + raise ValueError("must be one of enum values ('blocked', 'out_of_service', 'courtesy_hold')") return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py index bc4e7a6..87f365f 100644 --- a/cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/put_reservation_request_rooms_inner.py @@ -18,7 +18,7 @@ import json from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -34,7 +34,8 @@ class PutReservationRequestRoomsInner(BaseModel): adults: Optional[StrictInt] = Field(default=None, description="Quantity of adults for the room. Mandatory if rooms are sent.") children: Optional[StrictInt] = Field(default=None, description="Number of children for the room. Mandatory if rooms are sent.") rate_id: Optional[StrictStr] = Field(default=None, description="Rate ID for the room. Optional.", alias="rateID") - __properties: ClassVar[List[str]] = ["subReservationID", "roomTypeID", "checkinDate", "checkoutDate", "adults", "children", "rateID"] + adjust_price: Optional[StrictBool] = Field(default=True, description="Whether to adjust pricing when changing room types. If false, preserves existing rates. Default is true.", alias="adjustPrice") + __properties: ClassVar[List[str]] = ["subReservationID", "roomTypeID", "checkinDate", "checkoutDate", "adults", "children", "rateID", "adjustPrice"] model_config = ConfigDict( populate_by_name=True, @@ -110,6 +111,11 @@ def to_dict(self) -> Dict[str, Any]: if self.rate_id is None and "rate_id" in self.model_fields_set: _dict['rateID'] = None + # set to None if adjust_price (nullable) is None + # and model_fields_set contains the field + if self.adjust_price is None and "adjust_price" in self.model_fields_set: + _dict['adjustPrice'] = None + return _dict @classmethod @@ -128,7 +134,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "checkoutDate": obj.get("checkoutDate"), "adults": obj.get("adults"), "children": obj.get("children"), - "rateID": obj.get("rateID") + "rateID": obj.get("rateID"), + "adjustPrice": obj.get("adjustPrice") if obj.get("adjustPrice") is not None else True }) return _obj diff --git a/cloudbeds_pms_v1_3/models/put_room_block_response.py b/cloudbeds_pms_v1_3/models/put_room_block_response.py index b2b5bf5..d5f3a14 100644 --- a/cloudbeds_pms_v1_3/models/put_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_response.py @@ -31,16 +31,16 @@ class PutRoomBlockResponse(BaseModel): success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") - room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block", alias="roomBlockType") + courtesy_hold: Optional[StrictStr] = Field(default=None, description="roomBlockType Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias=""courtesy_hold"}") room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] + __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", ""courtesy_hold"}", "roomBlockReason", "startDate", "endDate", "rooms", "message"] - @field_validator('room_block_type') - def room_block_type_validate_enum(cls, value): + @field_validator('courtesy_hold') + def courtesy_hold_validate_enum(cls, value): """Validates the enum""" if value is None: return value @@ -110,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "success": obj.get("success"), "propertyID": obj.get("propertyID"), "roomBlockID": obj.get("roomBlockID"), - "roomBlockType": obj.get("roomBlockType"), + ""courtesy_hold"}": obj.get(""courtesy_hold"}"), "roomBlockReason": obj.get("roomBlockReason"), "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response.py b/cloudbeds_pms_v1_3/test/test_get_groups_response.py index 306f09a..17a3573 100644 --- a/cloudbeds_pms_v1_3/test/test_get_groups_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response.py @@ -44,13 +44,51 @@ def make_instance(self, include_optional) -> GetGroupsResponse: status = 'open', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), source_id = '', + source_name = '', address1 = '', address2 = '', city = '', zip = '', state = '', - commission_type = 'fixed', ) - ] + country_code = '', + commission_type = 'fixed', + tax_document_type = '', + tax_id_number = '', + legal_name = '', + contacts = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner.GetGroupsResponse_data_inner_contacts_inner( + id = '', + group_profile_id = '', + primary = True, + anonymized = True, + first_name = '', + last_name = '', + role = '', + status = 'active', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + emails = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner.GetGroupsResponse_data_inner_contacts_inner_emails_inner( + type = 'personal', + value = '', ) + ], + phones = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner.GetGroupsResponse_data_inner_contacts_inner_phones_inner( + value = '', ) + ], + is_billing_recipient = True, + tax_id_number = '', + tax_document_type = '', + legal_name = '', + address_1 = '', + address_2 = '', + city = '', + state = '', + country_code = '', + zip = '', ) + ], ) + ], + cell_phone = 'home' ) else: return GetGroupsResponse( diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py index 5aa07d3..33ee6c5 100644 --- a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py @@ -41,12 +41,49 @@ def make_instance(self, include_optional) -> GetGroupsResponseDataInner: status = 'open', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), source_id = '', + source_name = '', address1 = '', address2 = '', city = '', zip = '', state = '', - commission_type = 'fixed' + country_code = '', + commission_type = 'fixed', + tax_document_type = '', + tax_id_number = '', + legal_name = '', + contacts = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner.GetGroupsResponse_data_inner_contacts_inner( + id = '', + group_profile_id = '', + primary = True, + anonymized = True, + first_name = '', + last_name = '', + role = '', + status = 'active', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + emails = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner.GetGroupsResponse_data_inner_contacts_inner_emails_inner( + type = 'personal', + value = '', ) + ], + phones = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner.GetGroupsResponse_data_inner_contacts_inner_phones_inner( + value = '', ) + ], + is_billing_recipient = True, + tax_id_number = '', + tax_document_type = '', + legal_name = '', + address_1 = '', + address_2 = '', + city = '', + state = '', + country_code = '', + zip = '', ) + ] ) else: return GetGroupsResponseDataInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py new file mode 100644 index 0000000..95aef03 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner + +class TestGetGroupsResponseDataInnerContactsInner(unittest.TestCase): + """GetGroupsResponseDataInnerContactsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGroupsResponseDataInnerContactsInner: + """Test GetGroupsResponseDataInnerContactsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGroupsResponseDataInnerContactsInner` + """ + model = GetGroupsResponseDataInnerContactsInner() + if include_optional: + return GetGroupsResponseDataInnerContactsInner( + id = '', + group_profile_id = '', + primary = True, + anonymized = True, + first_name = '', + last_name = '', + role = '', + status = 'active', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + emails = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner.GetGroupsResponse_data_inner_contacts_inner_emails_inner( + type = 'personal', + value = '', ) + ], + phones = [ + cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner.GetGroupsResponse_data_inner_contacts_inner_phones_inner( + value = '', ) + ], + is_billing_recipient = True, + tax_id_number = '', + tax_document_type = '', + legal_name = '', + address_1 = '', + address_2 = '', + city = '', + state = '', + country_code = '', + zip = '' + ) + else: + return GetGroupsResponseDataInnerContactsInner( + ) + """ + + def testGetGroupsResponseDataInnerContactsInner(self): + """Test GetGroupsResponseDataInnerContactsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py new file mode 100644 index 0000000..5fbd624 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner + +class TestGetGroupsResponseDataInnerContactsInnerEmailsInner(unittest.TestCase): + """GetGroupsResponseDataInnerContactsInnerEmailsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGroupsResponseDataInnerContactsInnerEmailsInner: + """Test GetGroupsResponseDataInnerContactsInnerEmailsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGroupsResponseDataInnerContactsInnerEmailsInner` + """ + model = GetGroupsResponseDataInnerContactsInnerEmailsInner() + if include_optional: + return GetGroupsResponseDataInnerContactsInnerEmailsInner( + type = 'personal', + value = '' + ) + else: + return GetGroupsResponseDataInnerContactsInnerEmailsInner( + ) + """ + + def testGetGroupsResponseDataInnerContactsInnerEmailsInner(self): + """Test GetGroupsResponseDataInnerContactsInnerEmailsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py new file mode 100644 index 0000000..e5be79f --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner + +class TestGetGroupsResponseDataInnerContactsInnerPhonesInner(unittest.TestCase): + """GetGroupsResponseDataInnerContactsInnerPhonesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGroupsResponseDataInnerContactsInnerPhonesInner: + """Test GetGroupsResponseDataInnerContactsInnerPhonesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGroupsResponseDataInnerContactsInnerPhonesInner` + """ + model = GetGroupsResponseDataInnerContactsInnerPhonesInner() + if include_optional: + return GetGroupsResponseDataInnerContactsInnerPhonesInner( + value = '' + ) + else: + return GetGroupsResponseDataInnerContactsInnerPhonesInner( + ) + """ + + def testGetGroupsResponseDataInnerContactsInnerPhonesInner(self): + """Test GetGroupsResponseDataInnerContactsInnerPhonesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py index 42c6222..5cd1117 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> GetReservationsResponse: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), allotment_block_code = '', + group_code = '', adults = 56, children = 56, balance = 1.337, diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py index 2d1de51..46323fe 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), allotment_block_code = '', + group_code = '', adults = 56, children = 56, balance = 1.337, diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py index 9755458..7091d5d 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py @@ -39,7 +39,6 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponse: data = [ cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner.GetRoomBlocksResponse_data_inner( room_block_id = '', - room_block_type = 'blocked', room_block_reason = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -50,6 +49,7 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponse: ], count = 56, ) ], + room_block_type = 'blocked', message = '' ) else: diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py index 3193795..081f8ff 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py @@ -36,7 +36,6 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInner: if include_optional: return GetRoomBlocksResponseDataInner( room_block_id = '', - room_block_type = 'blocked', room_block_reason = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py index 26493bc..8855555 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: tax_id = '', name = '', code = '', + kind = '', amount = '', amount_adult = '', amount_child = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py index a464690..2c8780c 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: tax_id = '', name = '', code = '', + kind = '', amount = '', amount_adult = '', amount_child = '', diff --git a/cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py index fb67311..60e0c38 100644 --- a/cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py @@ -41,7 +41,8 @@ def make_instance(self, include_optional) -> PutReservationRequestRoomsInner: checkout_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), adults = 56, children = 56, - rate_id = '' + rate_id = '', + adjust_price = True ) else: return PutReservationRequestRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py index 915c189..a63d033 100644 --- a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> PutRoomBlockResponse: success = True, property_id = '', room_block_id = '', - room_block_type = 'blocked', + courtesy_hold = 'blocked', room_block_reason = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/openapitools.json b/openapitools.json index 1b06696..b340982 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.4.0", + "packageVersion": "1.5.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 9f79ffc364ecc33d76d6bbe82779de2aaf807676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 23 Sep 2025 11:48:21 +0200 Subject: [PATCH 26/46] feat: v1.5 --- .openapi-generator/FILES | 330 ------------------ README.md | 2 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 2 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/GetGroupsResponse.md | 1 - ...sponseDataInnerContactsInnerPhonesInner.md | 1 + .../models/get_groups_response.py | 18 +- ..._data_inner_contacts_inner_phones_inner.py | 16 +- openapitools.json | 2 +- 11 files changed, 24 insertions(+), 354 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2fdddc8..c1a44c5 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -668,333 +668,3 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py -cloudbeds_pms_v1_3/test/test_adjustment_api.py -cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py -cloudbeds_pms_v1_3/test/test_app_settings_api.py -cloudbeds_pms_v1_3/test/test_authentication_api.py -cloudbeds_pms_v1_3/test/test_currency_api.py -cloudbeds_pms_v1_3/test/test_custom_fields_api.py -cloudbeds_pms_v1_3/test/test_dashboard_api.py -cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py -cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py -cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_delete_room_block_response.py -cloudbeds_pms_v1_3/test/test_delete_webhook_response.py -cloudbeds_pms_v1_3/test/test_emails_api.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_state_response.py -cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_files_response.py -cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py -cloudbeds_pms_v1_3/test/test_get_groups_response.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py -cloudbeds_pms_v1_3/test/test_get_hotels_response.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response.py -cloudbeds_pms_v1_3/test/test_get_item_response_data.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_items_response.py -cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_metadata_response.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py -cloudbeds_pms_v1_3/test/test_get_packages_response.py -cloudbeds_pms_v1_3/test/test_get_packages_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_response.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py -cloudbeds_pms_v1_3/test/test_get_users_response.py -cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py -cloudbeds_pms_v1_3/test/test_groups_api.py -cloudbeds_pms_v1_3/test/test_guest_api.py -cloudbeds_pms_v1_3/test/test_hotel_api.py -cloudbeds_pms_v1_3/test/test_house_account_api.py -cloudbeds_pms_v1_3/test/test_housekeeping_api.py -cloudbeds_pms_v1_3/test/test_integration_api.py -cloudbeds_pms_v1_3/test/test_item_api.py -cloudbeds_pms_v1_3/test/test_package_api.py -cloudbeds_pms_v1_3/test/test_payment_api.py -cloudbeds_pms_v1_3/test/test_post_access_token_response.py -cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_error_response.py -cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_state_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_card_response.py -cloudbeds_pms_v1_3/test/test_post_card_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py -cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py -cloudbeds_pms_v1_3/test/test_post_email_template_response.py -cloudbeds_pms_v1_3/test/test_post_file_response.py -cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py -cloudbeds_pms_v1_3/test/test_post_guest_note_response.py -cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py -cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_response.py -cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py -cloudbeds_pms_v1_3/test/test_post_item_category_response.py -cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_item_response.py -cloudbeds_pms_v1_3/test/test_post_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py -cloudbeds_pms_v1_3/test/test_post_payment_response.py -cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_put_group_response.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_post_room_assign_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_block_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py -cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_void_item_response.py -cloudbeds_pms_v1_3/test/test_post_void_payment_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py -cloudbeds_pms_v1_3/test/test_put_guest_note_response.py -cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_guest_response.py -cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py -cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_response.py -cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_room_block_response.py -cloudbeds_pms_v1_3/test/test_rate_api.py -cloudbeds_pms_v1_3/test/test_reservation_api.py -cloudbeds_pms_v1_3/test/test_room_api.py -cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py -cloudbeds_pms_v1_3/test/test_user_api.py diff --git a/README.md b/README.md index 8255c1b..5ee1e39 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.5.0 +- Package version: 1.5.1 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/VERSION b/VERSION index bc80560..26ca594 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.0 +1.5.1 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index c5c5ee4..4658b4a 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.5.0" +__version__ = "1.5.1" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index e90dc07..08cd621 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.5.0/python' + self.user_agent = 'OpenAPI-Generator/1.5.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 8dcc6e8..d474ea8 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.5.0".\ + "SDK Package Version: 1.5.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md index af84438..e54af0d 100644 --- a/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponse.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Success | [optional] **data** | [**List[GetGroupsResponseDataInner]**](GetGroupsResponseDataInner.md) | Data | [optional] -**cell_phone** | **str** | \"fax\"} data.contacts.phones.type Phone type | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md index b02d53a..88c6c75 100644 --- a/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGroupsResponseDataInnerContactsInnerPhonesInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**type** | **str** | Phone type | [optional] **value** | **str** | Phone number value | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/models/get_groups_response.py b/cloudbeds_pms_v1_3/models/get_groups_response.py index 275276e..2ea34ce 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner from typing import Optional, Set @@ -29,18 +29,7 @@ class GetGroupsResponse(BaseModel): """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Success") data: Optional[List[GetGroupsResponseDataInner]] = Field(default=None, description="Data") - cell_phone: Optional[StrictStr] = Field(default=None, description="\"fax\"} data.contacts.phones.type Phone type", alias=""cell_phone",") - __properties: ClassVar[List[str]] = ["success", "data", ""cell_phone","] - - @field_validator('cell_phone') - def cell_phone_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['home', 'work']): - raise ValueError("must be one of enum values ('home', 'work')") - return value + __properties: ClassVar[List[str]] = ["success", "data"] model_config = ConfigDict( populate_by_name=True, @@ -101,8 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), - "data": [GetGroupsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - ""cell_phone",": obj.get(""cell_phone",") + "data": [GetGroupsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py index ada576b..2b3b1c6 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,19 @@ class GetGroupsResponseDataInnerContactsInnerPhonesInner(BaseModel): """ GetGroupsResponseDataInnerContactsInnerPhonesInner """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, description="Phone type") value: Optional[StrictStr] = Field(default=None, description="Phone number value") - __properties: ClassVar[List[str]] = ["value"] + __properties: ClassVar[List[str]] = ["type", "value"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['home', 'work', 'cell_phone', 'fax']): + raise ValueError("must be one of enum values ('home', 'work', 'cell_phone', 'fax')") + return value model_config = ConfigDict( populate_by_name=True, @@ -80,6 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "type": obj.get("type"), "value": obj.get("value") }) return _obj diff --git a/openapitools.json b/openapitools.json index b340982..cbed195 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.5.0", + "packageVersion": "1.5.1", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 0c21b381cb7ce307baf3ed1664a83e03708bc759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 23 Sep 2025 12:27:46 +0200 Subject: [PATCH 27/46] feat: v1.5.2 --- README.md | 2 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 2 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md | 2 +- .../models/put_room_block_response.py | 14 +++++++------- openapitools.json | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 5ee1e39..1408603 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.5.1 +- Package version: 1.5.2 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/VERSION b/VERSION index 26ca594..4cda8f1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.1 +1.5.2 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 4658b4a..efcbfa8 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.5.1" +__version__ = "1.5.2" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 08cd621..0cd3477 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.5.1/python' + self.user_agent = 'OpenAPI-Generator/1.5.2/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index d474ea8..54e215f 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.5.1".\ + "SDK Package Version: 1.5.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md index 5b08c3e..cf1c419 100644 --- a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **success** | **bool** | Returns if the request could be completed | [optional] **property_id** | **str** | Property ID | [optional] **room_block_id** | **str** | Room block ID | [optional] -**courtesy_hold** | **str** | roomBlockType Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] +**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] diff --git a/cloudbeds_pms_v1_3/models/put_room_block_response.py b/cloudbeds_pms_v1_3/models/put_room_block_response.py index d5f3a14..be3de53 100644 --- a/cloudbeds_pms_v1_3/models/put_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_response.py @@ -31,22 +31,22 @@ class PutRoomBlockResponse(BaseModel): success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") - courtesy_hold: Optional[StrictStr] = Field(default=None, description="roomBlockType Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias=""courtesy_hold"}") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType") room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") - __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", ""courtesy_hold"}", "roomBlockReason", "startDate", "endDate", "rooms", "message"] + __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] - @field_validator('courtesy_hold') - def courtesy_hold_validate_enum(cls, value): + @field_validator('room_block_type') + def room_block_type_validate_enum(cls, value): """Validates the enum""" if value is None: return value - if value not in set(['blocked', 'out_of_service']): - raise ValueError("must be one of enum values ('blocked', 'out_of_service')") + if value not in set(['blocked', 'out_of_service', 'courtesy_hold']): + raise ValueError("must be one of enum values ('blocked', 'out_of_service', 'courtesy_hold')") return value model_config = ConfigDict( @@ -110,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "success": obj.get("success"), "propertyID": obj.get("propertyID"), "roomBlockID": obj.get("roomBlockID"), - ""courtesy_hold"}": obj.get(""courtesy_hold"}"), + "roomBlockType": obj.get("roomBlockType"), "roomBlockReason": obj.get("roomBlockReason"), "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), diff --git a/openapitools.json b/openapitools.json index cbed195..e47fd53 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.5.1", + "packageVersion": "1.5.2", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 31055899c06f25953995166f6e09ff203c93dd81 Mon Sep 17 00:00:00 2001 From: Kirill Kolesnik Date: Fri, 26 Sep 2025 18:02:27 +0300 Subject: [PATCH 28/46] feat: regenerated get users api --- .openapi-generator/FILES | 4 - .openapi-generator/VERSION | 2 +- README.md | 8 +- cloudbeds_pms_v1_3/__init__.py | 1377 +++++++++++++---- cloudbeds_pms_v1_3/api/__init__.py | 38 +- cloudbeds_pms_v1_3/api_client.py | 9 +- cloudbeds_pms_v1_3/configuration.py | 11 +- cloudbeds_pms_v1_3/docs/CustomFieldsApi.md | 2 +- cloudbeds_pms_v1_3/docs/EmailsApi.md | 2 +- cloudbeds_pms_v1_3/docs/GetUsersResponse.md | 2 +- cloudbeds_pms_v1_3/docs/HotelApi.md | 2 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 2 +- cloudbeds_pms_v1_3/models/__init__.py | 325 +++- .../models/get_users_response.py | 12 +- cloudbeds_pms_v1_3/rest.py | 1 + openapitools.json | 4 +- 16 files changed, 1427 insertions(+), 374 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c1a44c5..8d860a1 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -209,8 +209,6 @@ cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md cloudbeds_pms_v1_3/docs/GetUsersResponse.md -cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md -cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md cloudbeds_pms_v1_3/docs/GetWebhooksResponse.md cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInner.md cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerEvent.md @@ -533,8 +531,6 @@ cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inne cloudbeds_pms_v1_3/models/get_userinfo_response.py cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py cloudbeds_pms_v1_3/models/get_users_response.py -cloudbeds_pms_v1_3/models/get_users_response_data_inner.py -cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py cloudbeds_pms_v1_3/models/get_webhooks_response.py cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner.py cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_event.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index b23eb27..368fd8f 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0 +7.15.0 diff --git a/README.md b/README.md index 1408603..dd6085d 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Gene - API version: v1.3 - Package version: 1.5.2 -- Generator version: 7.11.0 +- Generator version: 7.15.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. -Python 3.8+ +Python 3.9+ ## Installation & Usage @@ -18,7 +18,7 @@ This python library package is generated without supporting files like setup.py To be able to use it, you will need these dependencies in your own package that uses this library: -* urllib3 >= 1.25.3, < 3.0.0 +* urllib3 >= 2.1.0, < 3.0.0 * python-dateutil >= 2.8.2 * pydantic >= 2 * typing-extensions >= 4.7.1 @@ -372,8 +372,6 @@ Class | Method | HTTP request | Description - [GetUserinfoResponse](cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md) - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md) - [GetUsersResponse](cloudbeds_pms_v1_3/docs/GetUsersResponse.md) - - [GetUsersResponseDataInner](cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md) - - [GetUsersResponseDataInnerUserRole](cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md) - [GetWebhooksResponse](cloudbeds_pms_v1_3/docs/GetWebhooksResponse.md) - [GetWebhooksResponseDataInner](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInner.md) - [GetWebhooksResponseDataInnerEvent](cloudbeds_pms_v1_3/docs/GetWebhooksResponseDataInnerEvent.md) diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index efcbfa8..79c747d 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -16,347 +16,1044 @@ __version__ = "1.5.2" -# import apis into sdk package -from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi -from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi -from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi -from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi -from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi -from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi -from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi -from cloudbeds_pms_v1_3.api.emails_api import EmailsApi -from cloudbeds_pms_v1_3.api.groups_api import GroupsApi -from cloudbeds_pms_v1_3.api.guest_api import GuestApi -from cloudbeds_pms_v1_3.api.hotel_api import HotelApi -from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi -from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi -from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi -from cloudbeds_pms_v1_3.api.item_api import ItemApi -from cloudbeds_pms_v1_3.api.package_api import PackageApi -from cloudbeds_pms_v1_3.api.payment_api import PaymentApi -from cloudbeds_pms_v1_3.api.rate_api import RateApi -from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi -from cloudbeds_pms_v1_3.api.room_api import RoomApi -from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi -from cloudbeds_pms_v1_3.api.user_api import UserApi +# Define package exports +__all__ = [ + "AdjustmentApi", + "AllotmentBlocksApi", + "AppSettingsApi", + "AuthenticationApi", + "CurrencyApi", + "CustomFieldsApi", + "DashboardApi", + "EmailsApi", + "GroupsApi", + "GuestApi", + "HotelApi", + "HouseAccountApi", + "HousekeepingApi", + "IntegrationApi", + "ItemApi", + "PackageApi", + "PaymentApi", + "RateApi", + "ReservationApi", + "RoomApi", + "TaxesAndFeesApi", + "UserApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "DeleteAdjustmentResponse", + "DeleteGuestNoteResponse", + "DeleteReservationNoteResponse", + "DeleteRoomBlockResponse", + "DeleteWebhookResponse", + "GetAllotmentBlocksResponse", + "GetAllotmentBlocksResponseDataInner", + "GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner", + "GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner", + "GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions", + "GetAllotmentBlocksResponseDataInnerAutoReleaseInner", + "GetAppPropertySettingsResponse", + "GetAppPropertySettingsResponseData", + "GetAppPropertySettingsResponseDataOneOf", + "GetAppSettingsResponse", + "GetAppSettingsResponseData", + "GetAppStateResponse", + "GetAppStateResponseData", + "GetAvailableRoomTypesResponse", + "GetAvailableRoomTypesResponseDataInner", + "GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner", + "GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner", + "GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner", + "GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner", + "GetCurrencySettingsResponse", + "GetCurrencySettingsResponseData", + "GetCurrencySettingsResponseDataFormat", + "GetCurrencySettingsResponseDataRates", + "GetCurrencySettingsResponseDataRatesFixedInner", + "GetCustomFieldsResponse", + "GetCustomFieldsResponseDataInner", + "GetDashboardResponse", + "GetDashboardResponseData", + "GetEmailScheduleResponse", + "GetEmailScheduleResponseDataInner", + "GetEmailTemplatesResponse", + "GetEmailTemplatesResponseDataInner", + "GetFilesResponse", + "GetFilesResponseDataInner", + "GetGroupNotesResponse", + "GetGroupNotesResponseData", + "GetGroupsResponse", + "GetGroupsResponseDataInner", + "GetGroupsResponseDataInnerContactsInner", + "GetGroupsResponseDataInnerContactsInnerEmailsInner", + "GetGroupsResponseDataInnerContactsInnerPhonesInner", + "GetGuestListResponse", + "GetGuestListResponseDataValue", + "GetGuestListResponseDataValueGuestNotesInner", + "GetGuestNotesResponse", + "GetGuestNotesResponseDataInner", + "GetGuestResponse", + "GetGuestResponseData", + "GetGuestResponseDataBirthDate", + "GetGuestResponseDataCustomFieldsInner", + "GetGuestResponseDataDocumentExpirationDate", + "GetGuestResponseDataDocumentIssueDate", + "GetGuestsByFilterResponse", + "GetGuestsByFilterResponseDataInner", + "GetGuestsByStatusResponse", + "GetGuestsByStatusResponseDataInner", + "GetGuestsModifiedResponse", + "GetGuestsModifiedResponseDataInner", + "GetGuestsModifiedResponseDataInnerCustomFieldsInner", + "GetHotelDetailsResponse", + "GetHotelDetailsResponseData", + "GetHotelDetailsResponseDataPropertyAddress", + "GetHotelDetailsResponseDataPropertyCurrency", + "GetHotelDetailsResponseDataPropertyImageInner", + "GetHotelDetailsResponseDataPropertyPolicy", + "GetHotelsResponse", + "GetHotelsResponseDataInner", + "GetHotelsResponseDataInnerPropertyCurrencyInner", + "GetHouseAccountListResponse", + "GetHouseAccountListResponseDataInner", + "GetHousekeepersResponse", + "GetHousekeepersResponseDataInner", + "GetHousekeepingStatusResponse", + "GetHousekeepingStatusResponseDataInner", + "GetItemCategoriesResponse", + "GetItemCategoriesResponseDataInner", + "GetItemResponse", + "GetItemResponseData", + "GetItemResponseDataFeesInner", + "GetItemResponseDataTaxesInner", + "GetItemsResponse", + "GetItemsResponseDataInner", + "GetListAllotmentBlockNotesResponse", + "GetListAllotmentBlockNotesResponseDataInner", + "GetMetadataResponse", + "GetMetadataResponseData", + "GetMetadataResponseDataApi", + "GetPackagesResponse", + "GetPackagesResponseData", + "GetPaymentMethodsResponse", + "GetPaymentMethodsResponseData", + "GetPaymentMethodsResponseDataGatewayInner", + "GetPaymentMethodsResponseDataMethodsInner", + "GetPaymentMethodsResponseDataMethodsInnerCardTypesInner", + "GetPaymentsCapabilitiesResponse", + "GetPaymentsCapabilitiesResponseDataInner", + "GetRateJobsResponse", + "GetRateJobsResponseDataInner", + "GetRateJobsResponseDataInnerUpdatesInner", + "GetRatePlansResponse", + "GetRatePlansResponseDataInner", + "GetRatePlansResponseDataInnerAddOnsInner", + "GetRatePlansResponseDataInnerRoomRateDetailedInner", + "GetRateResponse", + "GetRateResponseData", + "GetRateResponseDataRoomRateDetailedInner", + "GetReservationAssignmentsResponse", + "GetReservationAssignmentsResponseDataInner", + "GetReservationAssignmentsResponseDataInnerAssignedInner", + "GetReservationNotesResponse", + "GetReservationNotesResponseDataInner", + "GetReservationResponse", + "GetReservationResponseData", + "GetReservationResponseDataAssignedInner", + "GetReservationResponseDataAssignedInnerDailyRatesInner", + "GetReservationResponseDataBalanceDetailed", + "GetReservationResponseDataBalanceDetailedOneOf", + "GetReservationResponseDataCardsOnFileInner", + "GetReservationResponseDataGroupInventoryInner", + "GetReservationResponseDataGuestListValue", + "GetReservationResponseDataGuestListValueCustomFieldsInner", + "GetReservationResponseDataGuestListValueGuestBirthdate", + "GetReservationResponseDataGuestListValueRoomsInner", + "GetReservationResponseDataGuestListValueUnassignedRoomsInner", + "GetReservationResponseDataUnassignedInner", + "GetReservationRoomDetailsResponse", + "GetReservationRoomDetailsResponseData", + "GetReservationRoomDetailsResponseDataGuestsInner", + "GetReservationsResponse", + "GetReservationsResponseDataInner", + "GetReservationsResponseDataInnerGuestListValue", + "GetReservationsResponseDataInnerGuestListValueRoomsInner", + "GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner", + "GetReservationsResponseDataInnerRoomsInner", + "GetReservationsWithRateDetailsResponse", + "GetReservationsWithRateDetailsResponseDataInner", + "GetReservationsWithRateDetailsResponseDataInnerRoomsInner", + "GetReservationsWithRateDetailsResponseDataInnerSourceInner", + "GetRoomBlocksResponse", + "GetRoomBlocksResponseDataInner", + "GetRoomTypesResponse", + "GetRoomTypesResponseDataInner", + "GetRoomsFeesAndTaxesResponse", + "GetRoomsFeesAndTaxesResponseData", + "GetRoomsFeesAndTaxesResponseDataFeesInner", + "GetRoomsFeesAndTaxesResponseDataTaxesInner", + "GetRoomsResponse", + "GetRoomsResponseDataInner", + "GetRoomsResponseDataInnerRoomsInner", + "GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner", + "GetRoomsUnassignedResponse", + "GetRoomsUnassignedResponseDataInner", + "GetRoomsUnassignedResponseDataInnerRoomsInner", + "GetSourcesResponse", + "GetSourcesResponseDataInner", + "GetSourcesResponseDataInnerFeesInner", + "GetSourcesResponseDataInnerTaxesInner", + "GetTaxesAndFeesResponse", + "GetTaxesAndFeesResponseDataInner", + "GetTaxesAndFeesResponseDataInnerAmountRateBasedInner", + "GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage", + "GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate", + "GetTaxesAndFeesResponseDataInnerDateRangesInner", + "GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount", + "GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult", + "GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild", + "GetTaxesAndFeesResponseDataInnerRoomTypesInner", + "GetUserinfoResponse", + "GetUserinfoResponseRolesInner", + "GetUsersResponse", + "GetWebhooksResponse", + "GetWebhooksResponseDataInner", + "GetWebhooksResponseDataInnerEvent", + "GetWebhooksResponseDataInnerKey", + "GetWebhooksResponseDataInnerOwner", + "GetWebhooksResponseDataInnerSubscriptionData", + "PostAccessTokenResponse", + "PostAccessTokenResponseResourcesInner", + "PostAdjustmentResponse", + "PostAdjustmentResponseData", + "PostAppErrorResponse", + "PostAppErrorResponseData", + "PostAppPropertySettingResponse", + "PostAppPropertySettingResponseData", + "PostAppStateResponse", + "PostAppendCustomItemResponse", + "PostAppendCustomItemResponseData", + "PostCardResponse", + "PostCardResponseData", + "PostChargeResponse", + "PostChargeResponseData", + "PostChargeResponseDataNextAction", + "PostChargeResponseDataNextActionDetails", + "PostCreateAllotmentBlockNotesResponse", + "PostCreateAllotmentBlockNotesResponseData", + "PostCreateAllotmentBlockRequestAllotmentIntervalsInner", + "PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner", + "PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing", + "PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions", + "PostCreateAllotmentBlockRequestAutoRelease", + "PostCreateAllotmentBlockResponse", + "PostCreateAllotmentBlockResponseDataInner", + "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner", + "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability", + "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing", + "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions", + "PostCreateAllotmentBlockResponseDataInnerAutoRelease", + "PostCustomFieldResponse", + "PostCustomFieldResponseData", + "PostCustomItemRequestItemsInner", + "PostCustomItemRequestItemsInnerItemFeesInner", + "PostCustomItemRequestItemsInnerItemTaxesInner", + "PostCustomItemRequestPaymentsInner", + "PostCustomItemResponse", + "PostCustomItemResponseData", + "PostCustomPaymentMethodResponse", + "PostDeleteAllotmentBlockResponse", + "PostDeleteAppPropertySettingsResponse", + "PostEmailScheduleRequestSchedule", + "PostEmailScheduleRequestScheduleReservationEvent", + "PostEmailScheduleRequestScheduleReservationStatusChange", + "PostEmailScheduleResponse", + "PostEmailTemplateRequestBody", + "PostEmailTemplateRequestSubject", + "PostEmailTemplateResponse", + "PostFileResponse", + "PostGovernmentReceiptResponse", + "PostGroupNoteResponse", + "PostGroupNoteResponseDataInner", + "PostGuestDocumentResponse", + "PostGuestDocumentResponseData", + "PostGuestNoteResponse", + "PostGuestPhotoResponse", + "PostGuestRequestCustomFieldsInner", + "PostGuestResponse", + "PostGuestsToRoomResponse", + "PostHousekeeperResponse", + "PostHousekeepingAssignmentResponse", + "PostHousekeepingStatusResponse", + "PostHousekeepingStatusResponseData", + "PostItemCategoryResponse", + "PostItemRequestPaymentsInner", + "PostItemResponse", + "PostItemResponseData", + "PostItemsToInventoryRequestItem", + "PostItemsToInventoryResponse", + "PostItemsToInventoryResponseDataInner", + "PostNewHouseAccountResponse", + "PostNewHouseAccountResponseData", + "PostPatchGroupResponse", + "PostPatchGroupResponseDataInner", + "PostPatchRateRequestRatesInner", + "PostPatchRateRequestRatesInnerInterval", + "PostPatchRateResponse", + "PostPaymentResponse", + "PostPutAppPropertySettingsResponse", + "PostPutGroupResponse", + "PostPutRateRequestRatesInner", + "PostPutRateRequestRatesInnerIntervalInner", + "PostPutRateResponse", + "PostReservationDocumentResponse", + "PostReservationNoteResponse", + "PostReservationRequestAdultsInner", + "PostReservationRequestChildrenInner", + "PostReservationRequestCustomFieldsInner", + "PostReservationRequestRoomsInner", + "PostReservationResponse", + "PostReservationResponseUnassignedInner", + "PostRoomAssignResponse", + "PostRoomBlockRequestRoomsInner", + "PostRoomBlockResponse", + "PostRoomBlockResponseRoomsInner", + "PostRoomCheckInResponse", + "PostRoomCheckOutResponse", + "PostUpdateAllotmentBlockNotesResponse", + "PostUpdateAllotmentBlockNotesResponseData", + "PostUpdateAllotmentBlockRequestAllotmentIntervalsInner", + "PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner", + "PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing", + "PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions", + "PostUpdateAllotmentBlockRequestAutoRelease", + "PostUpdateAllotmentBlockResponse", + "PostUpdateAllotmentBlockResponseDataInner", + "PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner", + "PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions", + "PostVoidItemResponse", + "PostVoidPaymentResponse", + "PostWebhookResponse", + "PostWebhookResponseData", + "PutGuestNoteResponse", + "PutGuestRequestGuestCustomFieldsInner", + "PutGuestResponse", + "PutHouseAccountStatusResponse", + "PutHousekeeperResponse", + "PutItemToInventoryResponse", + "PutReservationNoteResponse", + "PutReservationRequestCustomFieldsInner", + "PutReservationRequestRoomsInner", + "PutReservationResponse", + "PutRoomBlockRequestRoomsInner", + "PutRoomBlockResponse", +] + +if __import__("typing").TYPE_CHECKING: + # import apis into sdk package + from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi as AdjustmentApi + from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi as AllotmentBlocksApi + from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi as AppSettingsApi + from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi as AuthenticationApi + from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi as CurrencyApi + from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi as CustomFieldsApi + from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi as DashboardApi + from cloudbeds_pms_v1_3.api.emails_api import EmailsApi as EmailsApi + from cloudbeds_pms_v1_3.api.groups_api import GroupsApi as GroupsApi + from cloudbeds_pms_v1_3.api.guest_api import GuestApi as GuestApi + from cloudbeds_pms_v1_3.api.hotel_api import HotelApi as HotelApi + from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi as HouseAccountApi + from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi as HousekeepingApi + from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi as IntegrationApi + from cloudbeds_pms_v1_3.api.item_api import ItemApi as ItemApi + from cloudbeds_pms_v1_3.api.package_api import PackageApi as PackageApi + from cloudbeds_pms_v1_3.api.payment_api import PaymentApi as PaymentApi + from cloudbeds_pms_v1_3.api.rate_api import RateApi as RateApi + from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi as ReservationApi + from cloudbeds_pms_v1_3.api.room_api import RoomApi as RoomApi + from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi as TaxesAndFeesApi + from cloudbeds_pms_v1_3.api.user_api import UserApi as UserApi + + # import ApiClient + from cloudbeds_pms_v1_3.api_response import ApiResponse as ApiResponse + from cloudbeds_pms_v1_3.api_client import ApiClient as ApiClient + from cloudbeds_pms_v1_3.configuration import Configuration as Configuration + from cloudbeds_pms_v1_3.exceptions import OpenApiException as OpenApiException + from cloudbeds_pms_v1_3.exceptions import ApiTypeError as ApiTypeError + from cloudbeds_pms_v1_3.exceptions import ApiValueError as ApiValueError + from cloudbeds_pms_v1_3.exceptions import ApiKeyError as ApiKeyError + from cloudbeds_pms_v1_3.exceptions import ApiAttributeError as ApiAttributeError + from cloudbeds_pms_v1_3.exceptions import ApiException as ApiException + + # import models into sdk package + from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse as DeleteAdjustmentResponse + from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse as DeleteGuestNoteResponse + from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse as DeleteReservationNoteResponse + from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse as DeleteRoomBlockResponse + from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse as DeleteWebhookResponse + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse as GetAllotmentBlocksResponse + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner as GetAllotmentBlocksResponseDataInner + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner as GetAllotmentBlocksResponseDataInnerAutoReleaseInner + from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse as GetAppPropertySettingsResponse + from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData as GetAppPropertySettingsResponseData + from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf as GetAppPropertySettingsResponseDataOneOf + from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse as GetAppSettingsResponse + from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData as GetAppSettingsResponseData + from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse as GetAppStateResponse + from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData as GetAppStateResponseData + from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse as GetAvailableRoomTypesResponse + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner as GetAvailableRoomTypesResponseDataInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner as GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner + from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse as GetCurrencySettingsResponse + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData as GetCurrencySettingsResponseData + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat as GetCurrencySettingsResponseDataFormat + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates as GetCurrencySettingsResponseDataRates + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner as GetCurrencySettingsResponseDataRatesFixedInner + from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse as GetCustomFieldsResponse + from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner as GetCustomFieldsResponseDataInner + from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse as GetDashboardResponse + from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData as GetDashboardResponseData + from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse as GetEmailScheduleResponse + from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner as GetEmailScheduleResponseDataInner + from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse as GetEmailTemplatesResponse + from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner as GetEmailTemplatesResponseDataInner + from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse as GetFilesResponse + from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner as GetFilesResponseDataInner + from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse as GetGroupNotesResponse + from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData as GetGroupNotesResponseData + from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse as GetGroupsResponse + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner as GetGroupsResponseDataInner + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner as GetGroupsResponseDataInnerContactsInner + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner as GetGroupsResponseDataInnerContactsInnerEmailsInner + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner as GetGroupsResponseDataInnerContactsInnerPhonesInner + from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse as GetGuestListResponse + from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue as GetGuestListResponseDataValue + from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner as GetGuestListResponseDataValueGuestNotesInner + from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse as GetGuestNotesResponse + from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner as GetGuestNotesResponseDataInner + from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse as GetGuestResponse + from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData as GetGuestResponseData + from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate as GetGuestResponseDataBirthDate + from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner as GetGuestResponseDataCustomFieldsInner + from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate as GetGuestResponseDataDocumentExpirationDate + from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate as GetGuestResponseDataDocumentIssueDate + from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse as GetGuestsByFilterResponse + from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner as GetGuestsByFilterResponseDataInner + from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse as GetGuestsByStatusResponse + from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner as GetGuestsByStatusResponseDataInner + from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse as GetGuestsModifiedResponse + from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner as GetGuestsModifiedResponseDataInner + from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner as GetGuestsModifiedResponseDataInnerCustomFieldsInner + from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse as GetHotelDetailsResponse + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData as GetHotelDetailsResponseData + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress as GetHotelDetailsResponseDataPropertyAddress + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency as GetHotelDetailsResponseDataPropertyCurrency + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner as GetHotelDetailsResponseDataPropertyImageInner + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy as GetHotelDetailsResponseDataPropertyPolicy + from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse as GetHotelsResponse + from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner as GetHotelsResponseDataInner + from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner as GetHotelsResponseDataInnerPropertyCurrencyInner + from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse as GetHouseAccountListResponse + from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner as GetHouseAccountListResponseDataInner + from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse as GetHousekeepersResponse + from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner as GetHousekeepersResponseDataInner + from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse as GetHousekeepingStatusResponse + from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner as GetHousekeepingStatusResponseDataInner + from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse as GetItemCategoriesResponse + from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner as GetItemCategoriesResponseDataInner + from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse as GetItemResponse + from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData as GetItemResponseData + from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner as GetItemResponseDataFeesInner + from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner as GetItemResponseDataTaxesInner + from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse as GetItemsResponse + from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner as GetItemsResponseDataInner + from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse as GetListAllotmentBlockNotesResponse + from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner as GetListAllotmentBlockNotesResponseDataInner + from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse as GetMetadataResponse + from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData as GetMetadataResponseData + from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi as GetMetadataResponseDataApi + from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse as GetPackagesResponse + from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData as GetPackagesResponseData + from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse as GetPaymentMethodsResponse + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData as GetPaymentMethodsResponseData + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner as GetPaymentMethodsResponseDataGatewayInner + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner as GetPaymentMethodsResponseDataMethodsInner + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner as GetPaymentMethodsResponseDataMethodsInnerCardTypesInner + from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse as GetPaymentsCapabilitiesResponse + from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner as GetPaymentsCapabilitiesResponseDataInner + from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse as GetRateJobsResponse + from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner as GetRateJobsResponseDataInner + from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner as GetRateJobsResponseDataInnerUpdatesInner + from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse as GetRatePlansResponse + from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner as GetRatePlansResponseDataInner + from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner as GetRatePlansResponseDataInnerAddOnsInner + from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner as GetRatePlansResponseDataInnerRoomRateDetailedInner + from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse as GetRateResponse + from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData as GetRateResponseData + from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner as GetRateResponseDataRoomRateDetailedInner + from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse as GetReservationAssignmentsResponse + from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner as GetReservationAssignmentsResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner as GetReservationAssignmentsResponseDataInnerAssignedInner + from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse as GetReservationNotesResponse + from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner as GetReservationNotesResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse as GetReservationResponse + from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData as GetReservationResponseData + from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner as GetReservationResponseDataAssignedInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner as GetReservationResponseDataAssignedInnerDailyRatesInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed as GetReservationResponseDataBalanceDetailed + from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf as GetReservationResponseDataBalanceDetailedOneOf + from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner as GetReservationResponseDataCardsOnFileInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner as GetReservationResponseDataGroupInventoryInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue as GetReservationResponseDataGuestListValue + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner as GetReservationResponseDataGuestListValueCustomFieldsInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate as GetReservationResponseDataGuestListValueGuestBirthdate + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner as GetReservationResponseDataGuestListValueRoomsInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner as GetReservationResponseDataGuestListValueUnassignedRoomsInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner as GetReservationResponseDataUnassignedInner + from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse as GetReservationRoomDetailsResponse + from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData as GetReservationRoomDetailsResponseData + from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner as GetReservationRoomDetailsResponseDataGuestsInner + from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse as GetReservationsResponse + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner as GetReservationsResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue as GetReservationsResponseDataInnerGuestListValue + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner as GetReservationsResponseDataInnerGuestListValueRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner as GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner as GetReservationsResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse as GetReservationsWithRateDetailsResponse + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner as GetReservationsWithRateDetailsResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner as GetReservationsWithRateDetailsResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner as GetReservationsWithRateDetailsResponseDataInnerSourceInner + from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse as GetRoomBlocksResponse + from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner as GetRoomBlocksResponseDataInner + from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse as GetRoomTypesResponse + from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner as GetRoomTypesResponseDataInner + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse as GetRoomsFeesAndTaxesResponse + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData as GetRoomsFeesAndTaxesResponseData + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner as GetRoomsFeesAndTaxesResponseDataFeesInner + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner as GetRoomsFeesAndTaxesResponseDataTaxesInner + from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse as GetRoomsResponse + from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner as GetRoomsResponseDataInner + from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner as GetRoomsResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner as GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner + from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse as GetRoomsUnassignedResponse + from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner as GetRoomsUnassignedResponseDataInner + from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner as GetRoomsUnassignedResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse as GetSourcesResponse + from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner as GetSourcesResponseDataInner + from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner as GetSourcesResponseDataInnerFeesInner + from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner as GetSourcesResponseDataInnerTaxesInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse as GetTaxesAndFeesResponse + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner as GetTaxesAndFeesResponseDataInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner as GetTaxesAndFeesResponseDataInnerAmountRateBasedInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner as GetTaxesAndFeesResponseDataInnerDateRangesInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner as GetTaxesAndFeesResponseDataInnerRoomTypesInner + from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse as GetUserinfoResponse + from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner as GetUserinfoResponseRolesInner + from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse as GetUsersResponse + from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse as GetWebhooksResponse + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner as GetWebhooksResponseDataInner + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent as GetWebhooksResponseDataInnerEvent + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey as GetWebhooksResponseDataInnerKey + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner as GetWebhooksResponseDataInnerOwner + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData as GetWebhooksResponseDataInnerSubscriptionData + from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse as PostAccessTokenResponse + from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner as PostAccessTokenResponseResourcesInner + from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse as PostAdjustmentResponse + from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData as PostAdjustmentResponseData + from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse as PostAppErrorResponse + from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData as PostAppErrorResponseData + from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse as PostAppPropertySettingResponse + from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData as PostAppPropertySettingResponseData + from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse as PostAppStateResponse + from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse as PostAppendCustomItemResponse + from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData as PostAppendCustomItemResponseData + from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse as PostCardResponse + from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData as PostCardResponseData + from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse as PostChargeResponse + from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData as PostChargeResponseData + from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction as PostChargeResponseDataNextAction + from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails as PostChargeResponseDataNextActionDetails + from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse as PostCreateAllotmentBlockNotesResponse + from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData as PostCreateAllotmentBlockNotesResponseData + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease as PostCreateAllotmentBlockRequestAutoRelease + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse as PostCreateAllotmentBlockResponse + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner as PostCreateAllotmentBlockResponseDataInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease as PostCreateAllotmentBlockResponseDataInnerAutoRelease + from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse as PostCustomFieldResponse + from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData as PostCustomFieldResponseData + from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner as PostCustomItemRequestItemsInner + from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner as PostCustomItemRequestItemsInnerItemFeesInner + from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner as PostCustomItemRequestItemsInnerItemTaxesInner + from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner as PostCustomItemRequestPaymentsInner + from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse as PostCustomItemResponse + from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData as PostCustomItemResponseData + from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse as PostCustomPaymentMethodResponse + from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse as PostDeleteAllotmentBlockResponse + from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse as PostDeleteAppPropertySettingsResponse + from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule as PostEmailScheduleRequestSchedule + from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent as PostEmailScheduleRequestScheduleReservationEvent + from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange as PostEmailScheduleRequestScheduleReservationStatusChange + from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse as PostEmailScheduleResponse + from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody as PostEmailTemplateRequestBody + from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject as PostEmailTemplateRequestSubject + from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse as PostEmailTemplateResponse + from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse as PostFileResponse + from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse as PostGovernmentReceiptResponse + from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse as PostGroupNoteResponse + from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner as PostGroupNoteResponseDataInner + from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse as PostGuestDocumentResponse + from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData as PostGuestDocumentResponseData + from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse as PostGuestNoteResponse + from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse as PostGuestPhotoResponse + from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner as PostGuestRequestCustomFieldsInner + from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse as PostGuestResponse + from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse as PostGuestsToRoomResponse + from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse as PostHousekeeperResponse + from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse as PostHousekeepingAssignmentResponse + from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse as PostHousekeepingStatusResponse + from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData as PostHousekeepingStatusResponseData + from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse as PostItemCategoryResponse + from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner as PostItemRequestPaymentsInner + from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse as PostItemResponse + from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData as PostItemResponseData + from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem as PostItemsToInventoryRequestItem + from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse as PostItemsToInventoryResponse + from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner as PostItemsToInventoryResponseDataInner + from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse as PostNewHouseAccountResponse + from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData as PostNewHouseAccountResponseData + from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse as PostPatchGroupResponse + from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner as PostPatchGroupResponseDataInner + from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner as PostPatchRateRequestRatesInner + from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval as PostPatchRateRequestRatesInnerInterval + from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse as PostPatchRateResponse + from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse as PostPaymentResponse + from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse as PostPutAppPropertySettingsResponse + from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse as PostPutGroupResponse + from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner as PostPutRateRequestRatesInner + from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner as PostPutRateRequestRatesInnerIntervalInner + from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse as PostPutRateResponse + from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse as PostReservationDocumentResponse + from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse as PostReservationNoteResponse + from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner as PostReservationRequestAdultsInner + from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner as PostReservationRequestChildrenInner + from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner as PostReservationRequestCustomFieldsInner + from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner as PostReservationRequestRoomsInner + from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse as PostReservationResponse + from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner as PostReservationResponseUnassignedInner + from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse as PostRoomAssignResponse + from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner as PostRoomBlockRequestRoomsInner + from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse as PostRoomBlockResponse + from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner as PostRoomBlockResponseRoomsInner + from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse as PostRoomCheckInResponse + from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse as PostRoomCheckOutResponse + from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse as PostUpdateAllotmentBlockNotesResponse + from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData as PostUpdateAllotmentBlockNotesResponseData + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease as PostUpdateAllotmentBlockRequestAutoRelease + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse as PostUpdateAllotmentBlockResponse + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner as PostUpdateAllotmentBlockResponseDataInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse as PostVoidItemResponse + from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse as PostVoidPaymentResponse + from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse as PostWebhookResponse + from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData as PostWebhookResponseData + from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse as PutGuestNoteResponse + from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner as PutGuestRequestGuestCustomFieldsInner + from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse as PutGuestResponse + from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse as PutHouseAccountStatusResponse + from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse as PutHousekeeperResponse + from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse as PutItemToInventoryResponse + from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse as PutReservationNoteResponse + from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner as PutReservationRequestCustomFieldsInner + from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner as PutReservationRequestRoomsInner + from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse as PutReservationResponse + from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner as PutRoomBlockRequestRoomsInner + from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse as PutRoomBlockResponse + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + ("__version__", __version__), + ("__all__", __all__), + """# import apis into sdk package +from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi as AdjustmentApi +from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi as AllotmentBlocksApi +from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi as AppSettingsApi +from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi as AuthenticationApi +from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi as CurrencyApi +from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi as CustomFieldsApi +from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi as DashboardApi +from cloudbeds_pms_v1_3.api.emails_api import EmailsApi as EmailsApi +from cloudbeds_pms_v1_3.api.groups_api import GroupsApi as GroupsApi +from cloudbeds_pms_v1_3.api.guest_api import GuestApi as GuestApi +from cloudbeds_pms_v1_3.api.hotel_api import HotelApi as HotelApi +from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi as HouseAccountApi +from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi as HousekeepingApi +from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi as IntegrationApi +from cloudbeds_pms_v1_3.api.item_api import ItemApi as ItemApi +from cloudbeds_pms_v1_3.api.package_api import PackageApi as PackageApi +from cloudbeds_pms_v1_3.api.payment_api import PaymentApi as PaymentApi +from cloudbeds_pms_v1_3.api.rate_api import RateApi as RateApi +from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi as ReservationApi +from cloudbeds_pms_v1_3.api.room_api import RoomApi as RoomApi +from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi as TaxesAndFeesApi +from cloudbeds_pms_v1_3.api.user_api import UserApi as UserApi # import ApiClient -from cloudbeds_pms_v1_3.api_response import ApiResponse -from cloudbeds_pms_v1_3.api_client import ApiClient -from cloudbeds_pms_v1_3.configuration import Configuration -from cloudbeds_pms_v1_3.exceptions import OpenApiException -from cloudbeds_pms_v1_3.exceptions import ApiTypeError -from cloudbeds_pms_v1_3.exceptions import ApiValueError -from cloudbeds_pms_v1_3.exceptions import ApiKeyError -from cloudbeds_pms_v1_3.exceptions import ApiAttributeError -from cloudbeds_pms_v1_3.exceptions import ApiException +from cloudbeds_pms_v1_3.api_response import ApiResponse as ApiResponse +from cloudbeds_pms_v1_3.api_client import ApiClient as ApiClient +from cloudbeds_pms_v1_3.configuration import Configuration as Configuration +from cloudbeds_pms_v1_3.exceptions import OpenApiException as OpenApiException +from cloudbeds_pms_v1_3.exceptions import ApiTypeError as ApiTypeError +from cloudbeds_pms_v1_3.exceptions import ApiValueError as ApiValueError +from cloudbeds_pms_v1_3.exceptions import ApiKeyError as ApiKeyError +from cloudbeds_pms_v1_3.exceptions import ApiAttributeError as ApiAttributeError +from cloudbeds_pms_v1_3.exceptions import ApiException as ApiException # import models into sdk package -from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse -from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse -from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse -from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse -from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner -from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData -from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf -from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse -from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData -from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse -from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData -from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner -from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse -from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner -from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse -from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData -from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse -from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner -from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse -from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner -from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse -from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner -from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse -from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData -from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner -from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse -from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue -from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner -from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse -from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner -from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse -from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData -from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate -from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate -from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate -from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse -from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner -from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse -from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner -from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse -from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner -from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy -from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse -from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner -from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse -from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner -from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse -from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner -from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse -from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner -from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse -from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner -from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse -from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData -from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner -from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner -from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse -from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner -from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse -from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner -from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse -from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData -from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi -from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse -from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData -from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner -from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse -from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner -from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner -from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse -from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner -from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner -from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse -from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData -from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse -from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner -from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse -from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse -from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData -from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf -from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner -from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse -from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData -from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner -from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner -from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse -from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner -from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse -from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner -from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse -from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner -from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner -from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse -from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner -from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse -from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner -from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner -from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner -from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse -from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner -from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse -from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner -from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole -from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData -from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse -from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner -from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse -from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData -from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse -from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData -from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse -from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData -from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse -from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse -from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData -from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse -from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData -from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse -from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData -from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction -from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails -from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease -from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse -from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData -from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner -from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner -from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner -from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse -from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData -from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse -from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse -from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule -from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent -from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange -from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse -from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody -from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject -from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse -from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse -from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse -from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse -from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner -from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse -from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData -from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse -from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse -from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse -from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse -from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse -from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse -from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse -from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData -from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse -from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse -from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData -from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem -from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse -from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner -from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse -from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData -from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse -from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner -from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner -from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval -from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse -from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse -from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse -from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner -from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner -from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse -from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse -from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse -from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner -from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner -from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner -from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse -from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner -from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse -from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse -from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner -from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse -from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse -from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse -from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse -from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse -from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData -from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse -from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse -from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse -from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse -from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse -from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse -from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner -from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse -from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse as DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse as DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse as DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse as DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse as DeleteWebhookResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse as GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner as GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner as GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse as GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData as GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf as GetAppPropertySettingsResponseDataOneOf +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse as GetAppSettingsResponse +from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData as GetAppSettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse as GetAppStateResponse +from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData as GetAppStateResponseData +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse as GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner as GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner as GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse as GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData as GetCurrencySettingsResponseData +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat as GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates as GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner as GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse as GetCustomFieldsResponse +from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner as GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse as GetDashboardResponse +from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData as GetDashboardResponseData +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse as GetEmailScheduleResponse +from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner as GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse as GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner as GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse as GetFilesResponse +from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner as GetFilesResponseDataInner +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse as GetGroupNotesResponse +from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData as GetGroupNotesResponseData +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse as GetGroupsResponse +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner as GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner as GetGroupsResponseDataInnerContactsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner as GetGroupsResponseDataInnerContactsInnerEmailsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner as GetGroupsResponseDataInnerContactsInnerPhonesInner +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse as GetGuestListResponse +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue as GetGuestListResponseDataValue +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner as GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse as GetGuestNotesResponse +from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner as GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse as GetGuestResponse +from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData as GetGuestResponseData +from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate as GetGuestResponseDataBirthDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner as GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate as GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate as GetGuestResponseDataDocumentIssueDate +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse as GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner as GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse as GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner as GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse as GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner as GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner as GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse as GetHotelDetailsResponse +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData as GetHotelDetailsResponseData +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress as GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency as GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner as GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy as GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse as GetHotelsResponse +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner as GetHotelsResponseDataInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner as GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse as GetHouseAccountListResponse +from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner as GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse as GetHousekeepersResponse +from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner as GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse as GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner as GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse as GetItemCategoriesResponse +from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner as GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse as GetItemResponse +from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData as GetItemResponseData +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner as GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner as GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse as GetItemsResponse +from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner as GetItemsResponseDataInner +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse as GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner as GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse as GetMetadataResponse +from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData as GetMetadataResponseData +from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi as GetMetadataResponseDataApi +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse as GetPackagesResponse +from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData as GetPackagesResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse as GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData as GetPaymentMethodsResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner as GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner as GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner as GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse as GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner as GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse as GetRateJobsResponse +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner as GetRateJobsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner as GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse as GetRatePlansResponse +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner as GetRatePlansResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner as GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner as GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse as GetRateResponse +from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData as GetRateResponseData +from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner as GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse as GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner as GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner as GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse as GetReservationNotesResponse +from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner as GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse as GetReservationResponse +from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData as GetReservationResponseData +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner as GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner as GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed as GetReservationResponseDataBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf as GetReservationResponseDataBalanceDetailedOneOf +from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner as GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner as GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue as GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner as GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate as GetReservationResponseDataGuestListValueGuestBirthdate +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner as GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner as GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner as GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse as GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData as GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner as GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse as GetReservationsResponse +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner as GetReservationsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue as GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner as GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner as GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner as GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse as GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner as GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner as GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner as GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse as GetRoomBlocksResponse +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner as GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse as GetRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner as GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse as GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData as GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner as GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner as GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse as GetRoomsResponse +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner as GetRoomsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner as GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner as GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse as GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner as GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner as GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse as GetSourcesResponse +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner as GetSourcesResponseDataInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner as GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner as GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse as GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner as GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner as GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner as GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner as GetTaxesAndFeesResponseDataInnerRoomTypesInner +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse as GetUserinfoResponse +from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner as GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse as GetUsersResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse as GetWebhooksResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner as GetWebhooksResponseDataInner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent as GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey as GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner as GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData as GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse as PostAccessTokenResponse +from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner as PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse as PostAdjustmentResponse +from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData as PostAdjustmentResponseData +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse as PostAppErrorResponse +from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData as PostAppErrorResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse as PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData as PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse as PostAppStateResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse as PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData as PostAppendCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse as PostCardResponse +from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData as PostCardResponseData +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse as PostChargeResponse +from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData as PostChargeResponseData +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction as PostChargeResponseDataNextAction +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails as PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse as PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData as PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease as PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse as PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner as PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease as PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse as PostCustomFieldResponse +from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData as PostCustomFieldResponseData +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner as PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner as PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner as PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner as PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse as PostCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData as PostCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse as PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse as PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse as PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule as PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent as PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange as PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse as PostEmailScheduleResponse +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody as PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject as PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse as PostEmailTemplateResponse +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse as PostFileResponse +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse as PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse as PostGroupNoteResponse +from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner as PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse as PostGuestDocumentResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData as PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse as PostGuestNoteResponse +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse as PostGuestPhotoResponse +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner as PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse as PostGuestResponse +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse as PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse as PostHousekeeperResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse as PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse as PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData as PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse as PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner as PostItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse as PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData as PostItemResponseData +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem as PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse as PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner as PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse as PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData as PostNewHouseAccountResponseData +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse as PostPatchGroupResponse +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner as PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner as PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval as PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse as PostPatchRateResponse +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse as PostPaymentResponse +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse as PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse as PostPutGroupResponse +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner as PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner as PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse as PostPutRateResponse +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse as PostReservationDocumentResponse +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse as PostReservationNoteResponse +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner as PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner as PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner as PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner as PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse as PostReservationResponse +from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner as PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse as PostRoomAssignResponse +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner as PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse as PostRoomBlockResponse +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner as PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse as PostRoomCheckInResponse +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse as PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse as PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData as PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease as PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse as PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner as PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse as PostVoidItemResponse +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse as PostVoidPaymentResponse +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse as PostWebhookResponse +from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData as PostWebhookResponseData +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse as PutGuestNoteResponse +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner as PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse as PutGuestResponse +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse as PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse as PutHousekeeperResponse +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse as PutItemToInventoryResponse +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse as PutReservationNoteResponse +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner as PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner as PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse as PutReservationResponse +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner as PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse as PutRoomBlockResponse + +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/cloudbeds_pms_v1_3/api/__init__.py b/cloudbeds_pms_v1_3/api/__init__.py index e69a82e..fc8302c 100644 --- a/cloudbeds_pms_v1_3/api/__init__.py +++ b/cloudbeds_pms_v1_3/api/__init__.py @@ -1,6 +1,37 @@ # flake8: noqa -# import apis into api package +if __import__("typing").TYPE_CHECKING: + # import apis into api package + from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi + from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi + from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi + from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi + from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi + from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi + from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi + from cloudbeds_pms_v1_3.api.emails_api import EmailsApi + from cloudbeds_pms_v1_3.api.groups_api import GroupsApi + from cloudbeds_pms_v1_3.api.guest_api import GuestApi + from cloudbeds_pms_v1_3.api.hotel_api import HotelApi + from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi + from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi + from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi + from cloudbeds_pms_v1_3.api.item_api import ItemApi + from cloudbeds_pms_v1_3.api.package_api import PackageApi + from cloudbeds_pms_v1_3.api.payment_api import PaymentApi + from cloudbeds_pms_v1_3.api.rate_api import RateApi + from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi + from cloudbeds_pms_v1_3.api.room_api import RoomApi + from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi + from cloudbeds_pms_v1_3.api.user_api import UserApi + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + """# import apis into api package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi @@ -24,3 +55,8 @@ from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi from cloudbeds_pms_v1_3.api.user_api import UserApi +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 0cd3477..5b77341 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -21,6 +21,7 @@ import os import re import tempfile +import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union @@ -356,6 +357,8 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): return [ self.sanitize_for_serialization(sub_obj) for sub_obj in obj @@ -382,6 +385,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() @@ -404,7 +411,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 54e215f..1202e45 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union from typing_extensions import NotRequired, Self import urllib3 @@ -162,6 +162,8 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: @@ -195,13 +197,14 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -279,6 +282,10 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ diff --git a/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md b/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md index 876e7bd..a8918c6 100644 --- a/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md +++ b/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description getCustomFields -Gets custom fields list
¹ data.displayed = \"booking\" - Display this field to guests on the booking engine.
¹ data.displayed = \"reservation\" - Add this field to the reservation folio for use by staff.
¹ data.displayed = \"card\" - Make this field available for registration cards.
+Gets custom fields list
¹ data.displayed = "booking" - Display this field to guests on the booking engine.
¹ data.displayed = "reservation" - Add this field to the reservation folio for use by staff.
¹ data.displayed = "card" - Make this field available for registration cards.
### Example diff --git a/cloudbeds_pms_v1_3/docs/EmailsApi.md b/cloudbeds_pms_v1_3/docs/EmailsApi.md index 5c3ce07..d55b069 100644 --- a/cloudbeds_pms_v1_3/docs/EmailsApi.md +++ b/cloudbeds_pms_v1_3/docs/EmailsApi.md @@ -268,7 +268,7 @@ Name | Type | Description | Notes postEmailTemplate -Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. +Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. ### Example diff --git a/cloudbeds_pms_v1_3/docs/GetUsersResponse.md b/cloudbeds_pms_v1_3/docs/GetUsersResponse.md index 4fb415c..90772ef 100644 --- a/cloudbeds_pms_v1_3/docs/GetUsersResponse.md +++ b/cloudbeds_pms_v1_3/docs/GetUsersResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **success** | **bool** | Returns if the request could be completed | [optional] -**data** | [**List[GetUsersResponseDataInner]**](GetUsersResponseDataInner.md) | Details for the users | [optional] +**data** | **object** | Container of user arrays, indexed by property ID (e.g., \"1\"). | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/HotelApi.md b/cloudbeds_pms_v1_3/docs/HotelApi.md index c1f9457..e4591f2 100644 --- a/cloudbeds_pms_v1_3/docs/HotelApi.md +++ b/cloudbeds_pms_v1_3/docs/HotelApi.md @@ -109,7 +109,7 @@ Name | Type | Description | Notes getHotelDetails -Returns the details of a specific hotel, identified by \"propertyID\" +Returns the details of a specific hotel, identified by "propertyID" ### Example diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index 5852c69..f2851ae 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -1063,7 +1063,7 @@ Name | Type | Description | Notes postRoomCheckOut -Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to \"Checked Out\" as well. +Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to "Checked Out" as well. ### Example diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index 7a20b48..0085cdc 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -13,7 +13,322 @@ """ # noqa: E501 -# import models into model package +if __import__("typing").TYPE_CHECKING: + # import models into model package + from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse + from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse + from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse + from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse + from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions + from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner + from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse + from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData + from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf + from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse + from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData + from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse + from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData + from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner + from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner + from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates + from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner + from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse + from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner + from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse + from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData + from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse + from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner + from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse + from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner + from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse + from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner + from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse + from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData + from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner + from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner + from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse + from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue + from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner + from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse + from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner + from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse + from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData + from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate + from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner + from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate + from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate + from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse + from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner + from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse + from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner + from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse + from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner + from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner + from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner + from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy + from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse + from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner + from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner + from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse + from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner + from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse + from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner + from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse + from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner + from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse + from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner + from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse + from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData + from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner + from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner + from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse + from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner + from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse + from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner + from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse + from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData + from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi + from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse + from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData + from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner + from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner + from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse + from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner + from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse + from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner + from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner + from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse + from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner + from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner + from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner + from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse + from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData + from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner + from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse + from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner + from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse + from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse + from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData + from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed + from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf + from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner + from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner + from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse + from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData + from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner + from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner + from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse + from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner + from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse + from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner + from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner + from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse + from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner + from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner + from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse + from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner + from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner + from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse + from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner + from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner + from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild + from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner + from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse + from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner + from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse + from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner + from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData + from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse + from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner + from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse + from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData + from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse + from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData + from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse + from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData + from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse + from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse + from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData + from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse + from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData + from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse + from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData + from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction + from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails + from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse + from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease + from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse + from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData + from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner + from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner + from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner + from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner + from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse + from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData + from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse + from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse + from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse + from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule + from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent + from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange + from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse + from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody + from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject + from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse + from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse + from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse + from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse + from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner + from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse + from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData + from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse + from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse + from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner + from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse + from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse + from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse + from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse + from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse + from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData + from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse + from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner + from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse + from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData + from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem + from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse + from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner + from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse + from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData + from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse + from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner + from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner + from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval + from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse + from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse + from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse + from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse + from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner + from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner + from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse + from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse + from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse + from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner + from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner + from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner + from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner + from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse + from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner + from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse + from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner + from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse + from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner + from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse + from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse + from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse + from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner + from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions + from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse + from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse + from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse + from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData + from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse + from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner + from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse + from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse + from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse + from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse + from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse + from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner + from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner + from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse + from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner + from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + """# import models into model package from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse @@ -189,8 +504,6 @@ from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse -from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner -from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent @@ -322,3 +635,9 @@ from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse + +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/cloudbeds_pms_v1_3/models/get_users_response.py b/cloudbeds_pms_v1_3/models/get_users_response.py index c7b648b..29e3b97 100644 --- a/cloudbeds_pms_v1_3/models/get_users_response.py +++ b/cloudbeds_pms_v1_3/models/get_users_response.py @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner from typing import Optional, Set from typing_extensions import Self @@ -28,7 +27,7 @@ class GetUsersResponse(BaseModel): GetUsersResponse """ # noqa: E501 success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") - data: Optional[List[GetUsersResponseDataInner]] = Field(default=None, description="Details for the users") + data: Optional[Dict[str, Any]] = Field(default=None, description="Container of user arrays, indexed by property ID (e.g., \"1\").") __properties: ClassVar[List[str]] = ["success", "data"] model_config = ConfigDict( @@ -70,13 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item_data in self.data: - if _item_data: - _items.append(_item_data.to_dict()) - _dict['data'] = _items return _dict @classmethod @@ -90,7 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "success": obj.get("success"), - "data": [GetUsersResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + "data": obj.get("data") }) return _obj diff --git a/cloudbeds_pms_v1_3/rest.py b/cloudbeds_pms_v1_3/rest.py index f3e598f..0c36d38 100644 --- a/cloudbeds_pms_v1_3/rest.py +++ b/cloudbeds_pms_v1_3/rest.py @@ -76,6 +76,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( diff --git a/openapitools.json b/openapitools.json index e47fd53..0c67bb3 100644 --- a/openapitools.json +++ b/openapitools.json @@ -3,13 +3,13 @@ "version": "7.11.0" }, "generatorName": "python", - "inputSpec": "public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", + "inputSpec": "../mfd/public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", "outputDir": ".", "validateSpec": false, "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.5.2", + "packageVersion": "1.5.3", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 3f86a9cdb34f3ad1b65dad048485daaffb1eea29 Mon Sep 17 00:00:00 2001 From: Kirill Kolesnik Date: Fri, 26 Sep 2025 18:21:11 +0300 Subject: [PATCH 29/46] feat: reverted extra change --- .openapi-generator/VERSION | 2 +- openapitools.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 368fd8f..b23eb27 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.15.0 +7.11.0 diff --git a/openapitools.json b/openapitools.json index 0c67bb3..ff41fde 100644 --- a/openapitools.json +++ b/openapitools.json @@ -3,7 +3,7 @@ "version": "7.11.0" }, "generatorName": "python", - "inputSpec": "../mfd/public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", + "inputSpec": "public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", "outputDir": ".", "validateSpec": false, "additionalProperties": { From 9771abde367ebb7fdd38ce16c747171f6599653b Mon Sep 17 00:00:00 2001 From: Kirill Kolesnik Date: Mon, 29 Sep 2025 13:04:45 +0300 Subject: [PATCH 30/46] feat: regenerated using 7.11 version --- README.md | 8 +- cloudbeds_pms_v1_3/__init__.py | 1377 +++++--------------- cloudbeds_pms_v1_3/api/__init__.py | 38 +- cloudbeds_pms_v1_3/api_client.py | 11 +- cloudbeds_pms_v1_3/configuration.py | 13 +- cloudbeds_pms_v1_3/docs/CustomFieldsApi.md | 2 +- cloudbeds_pms_v1_3/docs/EmailsApi.md | 2 +- cloudbeds_pms_v1_3/docs/HotelApi.md | 2 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 2 +- cloudbeds_pms_v1_3/models/__init__.py | 323 +---- cloudbeds_pms_v1_3/rest.py | 1 - openapitools.json | 2 +- 12 files changed, 355 insertions(+), 1426 deletions(-) diff --git a/README.md b/README.md index dd6085d..fbce073 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.5.2 -- Generator version: 7.15.0 +- Package version: 1.5.3 +- Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. -Python 3.9+ +Python 3.8+ ## Installation & Usage @@ -18,7 +18,7 @@ This python library package is generated without supporting files like setup.py To be able to use it, you will need these dependencies in your own package that uses this library: -* urllib3 >= 2.1.0, < 3.0.0 +* urllib3 >= 1.25.3, < 3.0.0 * python-dateutil >= 2.8.2 * pydantic >= 2 * typing-extensions >= 4.7.1 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 79c747d..a45dace 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,1046 +14,347 @@ """ # noqa: E501 -__version__ = "1.5.2" +__version__ = "1.5.3" -# Define package exports -__all__ = [ - "AdjustmentApi", - "AllotmentBlocksApi", - "AppSettingsApi", - "AuthenticationApi", - "CurrencyApi", - "CustomFieldsApi", - "DashboardApi", - "EmailsApi", - "GroupsApi", - "GuestApi", - "HotelApi", - "HouseAccountApi", - "HousekeepingApi", - "IntegrationApi", - "ItemApi", - "PackageApi", - "PaymentApi", - "RateApi", - "ReservationApi", - "RoomApi", - "TaxesAndFeesApi", - "UserApi", - "ApiResponse", - "ApiClient", - "Configuration", - "OpenApiException", - "ApiTypeError", - "ApiValueError", - "ApiKeyError", - "ApiAttributeError", - "ApiException", - "DeleteAdjustmentResponse", - "DeleteGuestNoteResponse", - "DeleteReservationNoteResponse", - "DeleteRoomBlockResponse", - "DeleteWebhookResponse", - "GetAllotmentBlocksResponse", - "GetAllotmentBlocksResponseDataInner", - "GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner", - "GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner", - "GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions", - "GetAllotmentBlocksResponseDataInnerAutoReleaseInner", - "GetAppPropertySettingsResponse", - "GetAppPropertySettingsResponseData", - "GetAppPropertySettingsResponseDataOneOf", - "GetAppSettingsResponse", - "GetAppSettingsResponseData", - "GetAppStateResponse", - "GetAppStateResponseData", - "GetAvailableRoomTypesResponse", - "GetAvailableRoomTypesResponseDataInner", - "GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner", - "GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner", - "GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner", - "GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner", - "GetCurrencySettingsResponse", - "GetCurrencySettingsResponseData", - "GetCurrencySettingsResponseDataFormat", - "GetCurrencySettingsResponseDataRates", - "GetCurrencySettingsResponseDataRatesFixedInner", - "GetCustomFieldsResponse", - "GetCustomFieldsResponseDataInner", - "GetDashboardResponse", - "GetDashboardResponseData", - "GetEmailScheduleResponse", - "GetEmailScheduleResponseDataInner", - "GetEmailTemplatesResponse", - "GetEmailTemplatesResponseDataInner", - "GetFilesResponse", - "GetFilesResponseDataInner", - "GetGroupNotesResponse", - "GetGroupNotesResponseData", - "GetGroupsResponse", - "GetGroupsResponseDataInner", - "GetGroupsResponseDataInnerContactsInner", - "GetGroupsResponseDataInnerContactsInnerEmailsInner", - "GetGroupsResponseDataInnerContactsInnerPhonesInner", - "GetGuestListResponse", - "GetGuestListResponseDataValue", - "GetGuestListResponseDataValueGuestNotesInner", - "GetGuestNotesResponse", - "GetGuestNotesResponseDataInner", - "GetGuestResponse", - "GetGuestResponseData", - "GetGuestResponseDataBirthDate", - "GetGuestResponseDataCustomFieldsInner", - "GetGuestResponseDataDocumentExpirationDate", - "GetGuestResponseDataDocumentIssueDate", - "GetGuestsByFilterResponse", - "GetGuestsByFilterResponseDataInner", - "GetGuestsByStatusResponse", - "GetGuestsByStatusResponseDataInner", - "GetGuestsModifiedResponse", - "GetGuestsModifiedResponseDataInner", - "GetGuestsModifiedResponseDataInnerCustomFieldsInner", - "GetHotelDetailsResponse", - "GetHotelDetailsResponseData", - "GetHotelDetailsResponseDataPropertyAddress", - "GetHotelDetailsResponseDataPropertyCurrency", - "GetHotelDetailsResponseDataPropertyImageInner", - "GetHotelDetailsResponseDataPropertyPolicy", - "GetHotelsResponse", - "GetHotelsResponseDataInner", - "GetHotelsResponseDataInnerPropertyCurrencyInner", - "GetHouseAccountListResponse", - "GetHouseAccountListResponseDataInner", - "GetHousekeepersResponse", - "GetHousekeepersResponseDataInner", - "GetHousekeepingStatusResponse", - "GetHousekeepingStatusResponseDataInner", - "GetItemCategoriesResponse", - "GetItemCategoriesResponseDataInner", - "GetItemResponse", - "GetItemResponseData", - "GetItemResponseDataFeesInner", - "GetItemResponseDataTaxesInner", - "GetItemsResponse", - "GetItemsResponseDataInner", - "GetListAllotmentBlockNotesResponse", - "GetListAllotmentBlockNotesResponseDataInner", - "GetMetadataResponse", - "GetMetadataResponseData", - "GetMetadataResponseDataApi", - "GetPackagesResponse", - "GetPackagesResponseData", - "GetPaymentMethodsResponse", - "GetPaymentMethodsResponseData", - "GetPaymentMethodsResponseDataGatewayInner", - "GetPaymentMethodsResponseDataMethodsInner", - "GetPaymentMethodsResponseDataMethodsInnerCardTypesInner", - "GetPaymentsCapabilitiesResponse", - "GetPaymentsCapabilitiesResponseDataInner", - "GetRateJobsResponse", - "GetRateJobsResponseDataInner", - "GetRateJobsResponseDataInnerUpdatesInner", - "GetRatePlansResponse", - "GetRatePlansResponseDataInner", - "GetRatePlansResponseDataInnerAddOnsInner", - "GetRatePlansResponseDataInnerRoomRateDetailedInner", - "GetRateResponse", - "GetRateResponseData", - "GetRateResponseDataRoomRateDetailedInner", - "GetReservationAssignmentsResponse", - "GetReservationAssignmentsResponseDataInner", - "GetReservationAssignmentsResponseDataInnerAssignedInner", - "GetReservationNotesResponse", - "GetReservationNotesResponseDataInner", - "GetReservationResponse", - "GetReservationResponseData", - "GetReservationResponseDataAssignedInner", - "GetReservationResponseDataAssignedInnerDailyRatesInner", - "GetReservationResponseDataBalanceDetailed", - "GetReservationResponseDataBalanceDetailedOneOf", - "GetReservationResponseDataCardsOnFileInner", - "GetReservationResponseDataGroupInventoryInner", - "GetReservationResponseDataGuestListValue", - "GetReservationResponseDataGuestListValueCustomFieldsInner", - "GetReservationResponseDataGuestListValueGuestBirthdate", - "GetReservationResponseDataGuestListValueRoomsInner", - "GetReservationResponseDataGuestListValueUnassignedRoomsInner", - "GetReservationResponseDataUnassignedInner", - "GetReservationRoomDetailsResponse", - "GetReservationRoomDetailsResponseData", - "GetReservationRoomDetailsResponseDataGuestsInner", - "GetReservationsResponse", - "GetReservationsResponseDataInner", - "GetReservationsResponseDataInnerGuestListValue", - "GetReservationsResponseDataInnerGuestListValueRoomsInner", - "GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner", - "GetReservationsResponseDataInnerRoomsInner", - "GetReservationsWithRateDetailsResponse", - "GetReservationsWithRateDetailsResponseDataInner", - "GetReservationsWithRateDetailsResponseDataInnerRoomsInner", - "GetReservationsWithRateDetailsResponseDataInnerSourceInner", - "GetRoomBlocksResponse", - "GetRoomBlocksResponseDataInner", - "GetRoomTypesResponse", - "GetRoomTypesResponseDataInner", - "GetRoomsFeesAndTaxesResponse", - "GetRoomsFeesAndTaxesResponseData", - "GetRoomsFeesAndTaxesResponseDataFeesInner", - "GetRoomsFeesAndTaxesResponseDataTaxesInner", - "GetRoomsResponse", - "GetRoomsResponseDataInner", - "GetRoomsResponseDataInnerRoomsInner", - "GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner", - "GetRoomsUnassignedResponse", - "GetRoomsUnassignedResponseDataInner", - "GetRoomsUnassignedResponseDataInnerRoomsInner", - "GetSourcesResponse", - "GetSourcesResponseDataInner", - "GetSourcesResponseDataInnerFeesInner", - "GetSourcesResponseDataInnerTaxesInner", - "GetTaxesAndFeesResponse", - "GetTaxesAndFeesResponseDataInner", - "GetTaxesAndFeesResponseDataInnerAmountRateBasedInner", - "GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage", - "GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate", - "GetTaxesAndFeesResponseDataInnerDateRangesInner", - "GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount", - "GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult", - "GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild", - "GetTaxesAndFeesResponseDataInnerRoomTypesInner", - "GetUserinfoResponse", - "GetUserinfoResponseRolesInner", - "GetUsersResponse", - "GetWebhooksResponse", - "GetWebhooksResponseDataInner", - "GetWebhooksResponseDataInnerEvent", - "GetWebhooksResponseDataInnerKey", - "GetWebhooksResponseDataInnerOwner", - "GetWebhooksResponseDataInnerSubscriptionData", - "PostAccessTokenResponse", - "PostAccessTokenResponseResourcesInner", - "PostAdjustmentResponse", - "PostAdjustmentResponseData", - "PostAppErrorResponse", - "PostAppErrorResponseData", - "PostAppPropertySettingResponse", - "PostAppPropertySettingResponseData", - "PostAppStateResponse", - "PostAppendCustomItemResponse", - "PostAppendCustomItemResponseData", - "PostCardResponse", - "PostCardResponseData", - "PostChargeResponse", - "PostChargeResponseData", - "PostChargeResponseDataNextAction", - "PostChargeResponseDataNextActionDetails", - "PostCreateAllotmentBlockNotesResponse", - "PostCreateAllotmentBlockNotesResponseData", - "PostCreateAllotmentBlockRequestAllotmentIntervalsInner", - "PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner", - "PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing", - "PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions", - "PostCreateAllotmentBlockRequestAutoRelease", - "PostCreateAllotmentBlockResponse", - "PostCreateAllotmentBlockResponseDataInner", - "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner", - "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability", - "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing", - "PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions", - "PostCreateAllotmentBlockResponseDataInnerAutoRelease", - "PostCustomFieldResponse", - "PostCustomFieldResponseData", - "PostCustomItemRequestItemsInner", - "PostCustomItemRequestItemsInnerItemFeesInner", - "PostCustomItemRequestItemsInnerItemTaxesInner", - "PostCustomItemRequestPaymentsInner", - "PostCustomItemResponse", - "PostCustomItemResponseData", - "PostCustomPaymentMethodResponse", - "PostDeleteAllotmentBlockResponse", - "PostDeleteAppPropertySettingsResponse", - "PostEmailScheduleRequestSchedule", - "PostEmailScheduleRequestScheduleReservationEvent", - "PostEmailScheduleRequestScheduleReservationStatusChange", - "PostEmailScheduleResponse", - "PostEmailTemplateRequestBody", - "PostEmailTemplateRequestSubject", - "PostEmailTemplateResponse", - "PostFileResponse", - "PostGovernmentReceiptResponse", - "PostGroupNoteResponse", - "PostGroupNoteResponseDataInner", - "PostGuestDocumentResponse", - "PostGuestDocumentResponseData", - "PostGuestNoteResponse", - "PostGuestPhotoResponse", - "PostGuestRequestCustomFieldsInner", - "PostGuestResponse", - "PostGuestsToRoomResponse", - "PostHousekeeperResponse", - "PostHousekeepingAssignmentResponse", - "PostHousekeepingStatusResponse", - "PostHousekeepingStatusResponseData", - "PostItemCategoryResponse", - "PostItemRequestPaymentsInner", - "PostItemResponse", - "PostItemResponseData", - "PostItemsToInventoryRequestItem", - "PostItemsToInventoryResponse", - "PostItemsToInventoryResponseDataInner", - "PostNewHouseAccountResponse", - "PostNewHouseAccountResponseData", - "PostPatchGroupResponse", - "PostPatchGroupResponseDataInner", - "PostPatchRateRequestRatesInner", - "PostPatchRateRequestRatesInnerInterval", - "PostPatchRateResponse", - "PostPaymentResponse", - "PostPutAppPropertySettingsResponse", - "PostPutGroupResponse", - "PostPutRateRequestRatesInner", - "PostPutRateRequestRatesInnerIntervalInner", - "PostPutRateResponse", - "PostReservationDocumentResponse", - "PostReservationNoteResponse", - "PostReservationRequestAdultsInner", - "PostReservationRequestChildrenInner", - "PostReservationRequestCustomFieldsInner", - "PostReservationRequestRoomsInner", - "PostReservationResponse", - "PostReservationResponseUnassignedInner", - "PostRoomAssignResponse", - "PostRoomBlockRequestRoomsInner", - "PostRoomBlockResponse", - "PostRoomBlockResponseRoomsInner", - "PostRoomCheckInResponse", - "PostRoomCheckOutResponse", - "PostUpdateAllotmentBlockNotesResponse", - "PostUpdateAllotmentBlockNotesResponseData", - "PostUpdateAllotmentBlockRequestAllotmentIntervalsInner", - "PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner", - "PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing", - "PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions", - "PostUpdateAllotmentBlockRequestAutoRelease", - "PostUpdateAllotmentBlockResponse", - "PostUpdateAllotmentBlockResponseDataInner", - "PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner", - "PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions", - "PostVoidItemResponse", - "PostVoidPaymentResponse", - "PostWebhookResponse", - "PostWebhookResponseData", - "PutGuestNoteResponse", - "PutGuestRequestGuestCustomFieldsInner", - "PutGuestResponse", - "PutHouseAccountStatusResponse", - "PutHousekeeperResponse", - "PutItemToInventoryResponse", - "PutReservationNoteResponse", - "PutReservationRequestCustomFieldsInner", - "PutReservationRequestRoomsInner", - "PutReservationResponse", - "PutRoomBlockRequestRoomsInner", - "PutRoomBlockResponse", -] - -if __import__("typing").TYPE_CHECKING: - # import apis into sdk package - from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi as AdjustmentApi - from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi as AllotmentBlocksApi - from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi as AppSettingsApi - from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi as AuthenticationApi - from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi as CurrencyApi - from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi as CustomFieldsApi - from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi as DashboardApi - from cloudbeds_pms_v1_3.api.emails_api import EmailsApi as EmailsApi - from cloudbeds_pms_v1_3.api.groups_api import GroupsApi as GroupsApi - from cloudbeds_pms_v1_3.api.guest_api import GuestApi as GuestApi - from cloudbeds_pms_v1_3.api.hotel_api import HotelApi as HotelApi - from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi as HouseAccountApi - from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi as HousekeepingApi - from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi as IntegrationApi - from cloudbeds_pms_v1_3.api.item_api import ItemApi as ItemApi - from cloudbeds_pms_v1_3.api.package_api import PackageApi as PackageApi - from cloudbeds_pms_v1_3.api.payment_api import PaymentApi as PaymentApi - from cloudbeds_pms_v1_3.api.rate_api import RateApi as RateApi - from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi as ReservationApi - from cloudbeds_pms_v1_3.api.room_api import RoomApi as RoomApi - from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi as TaxesAndFeesApi - from cloudbeds_pms_v1_3.api.user_api import UserApi as UserApi - - # import ApiClient - from cloudbeds_pms_v1_3.api_response import ApiResponse as ApiResponse - from cloudbeds_pms_v1_3.api_client import ApiClient as ApiClient - from cloudbeds_pms_v1_3.configuration import Configuration as Configuration - from cloudbeds_pms_v1_3.exceptions import OpenApiException as OpenApiException - from cloudbeds_pms_v1_3.exceptions import ApiTypeError as ApiTypeError - from cloudbeds_pms_v1_3.exceptions import ApiValueError as ApiValueError - from cloudbeds_pms_v1_3.exceptions import ApiKeyError as ApiKeyError - from cloudbeds_pms_v1_3.exceptions import ApiAttributeError as ApiAttributeError - from cloudbeds_pms_v1_3.exceptions import ApiException as ApiException - - # import models into sdk package - from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse as DeleteAdjustmentResponse - from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse as DeleteGuestNoteResponse - from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse as DeleteReservationNoteResponse - from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse as DeleteRoomBlockResponse - from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse as DeleteWebhookResponse - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse as GetAllotmentBlocksResponse - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner as GetAllotmentBlocksResponseDataInner - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner as GetAllotmentBlocksResponseDataInnerAutoReleaseInner - from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse as GetAppPropertySettingsResponse - from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData as GetAppPropertySettingsResponseData - from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf as GetAppPropertySettingsResponseDataOneOf - from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse as GetAppSettingsResponse - from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData as GetAppSettingsResponseData - from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse as GetAppStateResponse - from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData as GetAppStateResponseData - from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse as GetAvailableRoomTypesResponse - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner as GetAvailableRoomTypesResponseDataInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner as GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner - from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse as GetCurrencySettingsResponse - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData as GetCurrencySettingsResponseData - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat as GetCurrencySettingsResponseDataFormat - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates as GetCurrencySettingsResponseDataRates - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner as GetCurrencySettingsResponseDataRatesFixedInner - from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse as GetCustomFieldsResponse - from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner as GetCustomFieldsResponseDataInner - from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse as GetDashboardResponse - from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData as GetDashboardResponseData - from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse as GetEmailScheduleResponse - from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner as GetEmailScheduleResponseDataInner - from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse as GetEmailTemplatesResponse - from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner as GetEmailTemplatesResponseDataInner - from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse as GetFilesResponse - from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner as GetFilesResponseDataInner - from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse as GetGroupNotesResponse - from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData as GetGroupNotesResponseData - from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse as GetGroupsResponse - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner as GetGroupsResponseDataInner - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner as GetGroupsResponseDataInnerContactsInner - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner as GetGroupsResponseDataInnerContactsInnerEmailsInner - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner as GetGroupsResponseDataInnerContactsInnerPhonesInner - from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse as GetGuestListResponse - from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue as GetGuestListResponseDataValue - from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner as GetGuestListResponseDataValueGuestNotesInner - from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse as GetGuestNotesResponse - from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner as GetGuestNotesResponseDataInner - from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse as GetGuestResponse - from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData as GetGuestResponseData - from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate as GetGuestResponseDataBirthDate - from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner as GetGuestResponseDataCustomFieldsInner - from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate as GetGuestResponseDataDocumentExpirationDate - from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate as GetGuestResponseDataDocumentIssueDate - from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse as GetGuestsByFilterResponse - from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner as GetGuestsByFilterResponseDataInner - from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse as GetGuestsByStatusResponse - from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner as GetGuestsByStatusResponseDataInner - from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse as GetGuestsModifiedResponse - from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner as GetGuestsModifiedResponseDataInner - from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner as GetGuestsModifiedResponseDataInnerCustomFieldsInner - from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse as GetHotelDetailsResponse - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData as GetHotelDetailsResponseData - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress as GetHotelDetailsResponseDataPropertyAddress - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency as GetHotelDetailsResponseDataPropertyCurrency - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner as GetHotelDetailsResponseDataPropertyImageInner - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy as GetHotelDetailsResponseDataPropertyPolicy - from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse as GetHotelsResponse - from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner as GetHotelsResponseDataInner - from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner as GetHotelsResponseDataInnerPropertyCurrencyInner - from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse as GetHouseAccountListResponse - from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner as GetHouseAccountListResponseDataInner - from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse as GetHousekeepersResponse - from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner as GetHousekeepersResponseDataInner - from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse as GetHousekeepingStatusResponse - from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner as GetHousekeepingStatusResponseDataInner - from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse as GetItemCategoriesResponse - from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner as GetItemCategoriesResponseDataInner - from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse as GetItemResponse - from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData as GetItemResponseData - from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner as GetItemResponseDataFeesInner - from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner as GetItemResponseDataTaxesInner - from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse as GetItemsResponse - from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner as GetItemsResponseDataInner - from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse as GetListAllotmentBlockNotesResponse - from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner as GetListAllotmentBlockNotesResponseDataInner - from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse as GetMetadataResponse - from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData as GetMetadataResponseData - from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi as GetMetadataResponseDataApi - from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse as GetPackagesResponse - from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData as GetPackagesResponseData - from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse as GetPaymentMethodsResponse - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData as GetPaymentMethodsResponseData - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner as GetPaymentMethodsResponseDataGatewayInner - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner as GetPaymentMethodsResponseDataMethodsInner - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner as GetPaymentMethodsResponseDataMethodsInnerCardTypesInner - from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse as GetPaymentsCapabilitiesResponse - from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner as GetPaymentsCapabilitiesResponseDataInner - from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse as GetRateJobsResponse - from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner as GetRateJobsResponseDataInner - from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner as GetRateJobsResponseDataInnerUpdatesInner - from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse as GetRatePlansResponse - from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner as GetRatePlansResponseDataInner - from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner as GetRatePlansResponseDataInnerAddOnsInner - from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner as GetRatePlansResponseDataInnerRoomRateDetailedInner - from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse as GetRateResponse - from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData as GetRateResponseData - from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner as GetRateResponseDataRoomRateDetailedInner - from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse as GetReservationAssignmentsResponse - from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner as GetReservationAssignmentsResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner as GetReservationAssignmentsResponseDataInnerAssignedInner - from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse as GetReservationNotesResponse - from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner as GetReservationNotesResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse as GetReservationResponse - from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData as GetReservationResponseData - from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner as GetReservationResponseDataAssignedInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner as GetReservationResponseDataAssignedInnerDailyRatesInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed as GetReservationResponseDataBalanceDetailed - from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf as GetReservationResponseDataBalanceDetailedOneOf - from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner as GetReservationResponseDataCardsOnFileInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner as GetReservationResponseDataGroupInventoryInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue as GetReservationResponseDataGuestListValue - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner as GetReservationResponseDataGuestListValueCustomFieldsInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate as GetReservationResponseDataGuestListValueGuestBirthdate - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner as GetReservationResponseDataGuestListValueRoomsInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner as GetReservationResponseDataGuestListValueUnassignedRoomsInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner as GetReservationResponseDataUnassignedInner - from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse as GetReservationRoomDetailsResponse - from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData as GetReservationRoomDetailsResponseData - from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner as GetReservationRoomDetailsResponseDataGuestsInner - from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse as GetReservationsResponse - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner as GetReservationsResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue as GetReservationsResponseDataInnerGuestListValue - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner as GetReservationsResponseDataInnerGuestListValueRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner as GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner as GetReservationsResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse as GetReservationsWithRateDetailsResponse - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner as GetReservationsWithRateDetailsResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner as GetReservationsWithRateDetailsResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner as GetReservationsWithRateDetailsResponseDataInnerSourceInner - from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse as GetRoomBlocksResponse - from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner as GetRoomBlocksResponseDataInner - from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse as GetRoomTypesResponse - from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner as GetRoomTypesResponseDataInner - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse as GetRoomsFeesAndTaxesResponse - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData as GetRoomsFeesAndTaxesResponseData - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner as GetRoomsFeesAndTaxesResponseDataFeesInner - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner as GetRoomsFeesAndTaxesResponseDataTaxesInner - from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse as GetRoomsResponse - from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner as GetRoomsResponseDataInner - from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner as GetRoomsResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner as GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner - from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse as GetRoomsUnassignedResponse - from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner as GetRoomsUnassignedResponseDataInner - from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner as GetRoomsUnassignedResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse as GetSourcesResponse - from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner as GetSourcesResponseDataInner - from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner as GetSourcesResponseDataInnerFeesInner - from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner as GetSourcesResponseDataInnerTaxesInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse as GetTaxesAndFeesResponse - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner as GetTaxesAndFeesResponseDataInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner as GetTaxesAndFeesResponseDataInnerAmountRateBasedInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner as GetTaxesAndFeesResponseDataInnerDateRangesInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner as GetTaxesAndFeesResponseDataInnerRoomTypesInner - from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse as GetUserinfoResponse - from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner as GetUserinfoResponseRolesInner - from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse as GetUsersResponse - from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse as GetWebhooksResponse - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner as GetWebhooksResponseDataInner - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent as GetWebhooksResponseDataInnerEvent - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey as GetWebhooksResponseDataInnerKey - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner as GetWebhooksResponseDataInnerOwner - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData as GetWebhooksResponseDataInnerSubscriptionData - from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse as PostAccessTokenResponse - from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner as PostAccessTokenResponseResourcesInner - from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse as PostAdjustmentResponse - from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData as PostAdjustmentResponseData - from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse as PostAppErrorResponse - from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData as PostAppErrorResponseData - from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse as PostAppPropertySettingResponse - from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData as PostAppPropertySettingResponseData - from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse as PostAppStateResponse - from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse as PostAppendCustomItemResponse - from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData as PostAppendCustomItemResponseData - from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse as PostCardResponse - from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData as PostCardResponseData - from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse as PostChargeResponse - from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData as PostChargeResponseData - from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction as PostChargeResponseDataNextAction - from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails as PostChargeResponseDataNextActionDetails - from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse as PostCreateAllotmentBlockNotesResponse - from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData as PostCreateAllotmentBlockNotesResponseData - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease as PostCreateAllotmentBlockRequestAutoRelease - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse as PostCreateAllotmentBlockResponse - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner as PostCreateAllotmentBlockResponseDataInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease as PostCreateAllotmentBlockResponseDataInnerAutoRelease - from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse as PostCustomFieldResponse - from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData as PostCustomFieldResponseData - from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner as PostCustomItemRequestItemsInner - from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner as PostCustomItemRequestItemsInnerItemFeesInner - from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner as PostCustomItemRequestItemsInnerItemTaxesInner - from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner as PostCustomItemRequestPaymentsInner - from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse as PostCustomItemResponse - from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData as PostCustomItemResponseData - from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse as PostCustomPaymentMethodResponse - from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse as PostDeleteAllotmentBlockResponse - from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse as PostDeleteAppPropertySettingsResponse - from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule as PostEmailScheduleRequestSchedule - from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent as PostEmailScheduleRequestScheduleReservationEvent - from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange as PostEmailScheduleRequestScheduleReservationStatusChange - from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse as PostEmailScheduleResponse - from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody as PostEmailTemplateRequestBody - from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject as PostEmailTemplateRequestSubject - from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse as PostEmailTemplateResponse - from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse as PostFileResponse - from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse as PostGovernmentReceiptResponse - from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse as PostGroupNoteResponse - from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner as PostGroupNoteResponseDataInner - from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse as PostGuestDocumentResponse - from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData as PostGuestDocumentResponseData - from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse as PostGuestNoteResponse - from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse as PostGuestPhotoResponse - from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner as PostGuestRequestCustomFieldsInner - from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse as PostGuestResponse - from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse as PostGuestsToRoomResponse - from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse as PostHousekeeperResponse - from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse as PostHousekeepingAssignmentResponse - from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse as PostHousekeepingStatusResponse - from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData as PostHousekeepingStatusResponseData - from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse as PostItemCategoryResponse - from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner as PostItemRequestPaymentsInner - from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse as PostItemResponse - from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData as PostItemResponseData - from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem as PostItemsToInventoryRequestItem - from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse as PostItemsToInventoryResponse - from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner as PostItemsToInventoryResponseDataInner - from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse as PostNewHouseAccountResponse - from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData as PostNewHouseAccountResponseData - from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse as PostPatchGroupResponse - from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner as PostPatchGroupResponseDataInner - from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner as PostPatchRateRequestRatesInner - from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval as PostPatchRateRequestRatesInnerInterval - from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse as PostPatchRateResponse - from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse as PostPaymentResponse - from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse as PostPutAppPropertySettingsResponse - from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse as PostPutGroupResponse - from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner as PostPutRateRequestRatesInner - from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner as PostPutRateRequestRatesInnerIntervalInner - from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse as PostPutRateResponse - from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse as PostReservationDocumentResponse - from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse as PostReservationNoteResponse - from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner as PostReservationRequestAdultsInner - from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner as PostReservationRequestChildrenInner - from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner as PostReservationRequestCustomFieldsInner - from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner as PostReservationRequestRoomsInner - from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse as PostReservationResponse - from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner as PostReservationResponseUnassignedInner - from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse as PostRoomAssignResponse - from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner as PostRoomBlockRequestRoomsInner - from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse as PostRoomBlockResponse - from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner as PostRoomBlockResponseRoomsInner - from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse as PostRoomCheckInResponse - from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse as PostRoomCheckOutResponse - from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse as PostUpdateAllotmentBlockNotesResponse - from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData as PostUpdateAllotmentBlockNotesResponseData - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease as PostUpdateAllotmentBlockRequestAutoRelease - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse as PostUpdateAllotmentBlockResponse - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner as PostUpdateAllotmentBlockResponseDataInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions - from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse as PostVoidItemResponse - from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse as PostVoidPaymentResponse - from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse as PostWebhookResponse - from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData as PostWebhookResponseData - from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse as PutGuestNoteResponse - from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner as PutGuestRequestGuestCustomFieldsInner - from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse as PutGuestResponse - from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse as PutHouseAccountStatusResponse - from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse as PutHousekeeperResponse - from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse as PutItemToInventoryResponse - from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse as PutReservationNoteResponse - from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner as PutReservationRequestCustomFieldsInner - from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner as PutReservationRequestRoomsInner - from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse as PutReservationResponse - from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner as PutRoomBlockRequestRoomsInner - from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse as PutRoomBlockResponse - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - ("__version__", __version__), - ("__all__", __all__), - """# import apis into sdk package -from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi as AdjustmentApi -from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi as AllotmentBlocksApi -from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi as AppSettingsApi -from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi as AuthenticationApi -from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi as CurrencyApi -from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi as CustomFieldsApi -from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi as DashboardApi -from cloudbeds_pms_v1_3.api.emails_api import EmailsApi as EmailsApi -from cloudbeds_pms_v1_3.api.groups_api import GroupsApi as GroupsApi -from cloudbeds_pms_v1_3.api.guest_api import GuestApi as GuestApi -from cloudbeds_pms_v1_3.api.hotel_api import HotelApi as HotelApi -from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi as HouseAccountApi -from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi as HousekeepingApi -from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi as IntegrationApi -from cloudbeds_pms_v1_3.api.item_api import ItemApi as ItemApi -from cloudbeds_pms_v1_3.api.package_api import PackageApi as PackageApi -from cloudbeds_pms_v1_3.api.payment_api import PaymentApi as PaymentApi -from cloudbeds_pms_v1_3.api.rate_api import RateApi as RateApi -from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi as ReservationApi -from cloudbeds_pms_v1_3.api.room_api import RoomApi as RoomApi -from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi as TaxesAndFeesApi -from cloudbeds_pms_v1_3.api.user_api import UserApi as UserApi +# import apis into sdk package +from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi +from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi +from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi +from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi +from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi +from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi +from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi +from cloudbeds_pms_v1_3.api.emails_api import EmailsApi +from cloudbeds_pms_v1_3.api.groups_api import GroupsApi +from cloudbeds_pms_v1_3.api.guest_api import GuestApi +from cloudbeds_pms_v1_3.api.hotel_api import HotelApi +from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi +from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi +from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi +from cloudbeds_pms_v1_3.api.item_api import ItemApi +from cloudbeds_pms_v1_3.api.package_api import PackageApi +from cloudbeds_pms_v1_3.api.payment_api import PaymentApi +from cloudbeds_pms_v1_3.api.rate_api import RateApi +from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi +from cloudbeds_pms_v1_3.api.room_api import RoomApi +from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi +from cloudbeds_pms_v1_3.api.user_api import UserApi # import ApiClient -from cloudbeds_pms_v1_3.api_response import ApiResponse as ApiResponse -from cloudbeds_pms_v1_3.api_client import ApiClient as ApiClient -from cloudbeds_pms_v1_3.configuration import Configuration as Configuration -from cloudbeds_pms_v1_3.exceptions import OpenApiException as OpenApiException -from cloudbeds_pms_v1_3.exceptions import ApiTypeError as ApiTypeError -from cloudbeds_pms_v1_3.exceptions import ApiValueError as ApiValueError -from cloudbeds_pms_v1_3.exceptions import ApiKeyError as ApiKeyError -from cloudbeds_pms_v1_3.exceptions import ApiAttributeError as ApiAttributeError -from cloudbeds_pms_v1_3.exceptions import ApiException as ApiException +from cloudbeds_pms_v1_3.api_response import ApiResponse +from cloudbeds_pms_v1_3.api_client import ApiClient +from cloudbeds_pms_v1_3.configuration import Configuration +from cloudbeds_pms_v1_3.exceptions import OpenApiException +from cloudbeds_pms_v1_3.exceptions import ApiTypeError +from cloudbeds_pms_v1_3.exceptions import ApiValueError +from cloudbeds_pms_v1_3.exceptions import ApiKeyError +from cloudbeds_pms_v1_3.exceptions import ApiAttributeError +from cloudbeds_pms_v1_3.exceptions import ApiException # import models into sdk package -from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse as DeleteAdjustmentResponse -from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse as DeleteGuestNoteResponse -from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse as DeleteReservationNoteResponse -from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse as DeleteRoomBlockResponse -from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse as DeleteWebhookResponse -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse as GetAllotmentBlocksResponse -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner as GetAllotmentBlocksResponseDataInner -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions as GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner as GetAllotmentBlocksResponseDataInnerAutoReleaseInner -from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse as GetAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData as GetAppPropertySettingsResponseData -from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf as GetAppPropertySettingsResponseDataOneOf -from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse as GetAppSettingsResponse -from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData as GetAppSettingsResponseData -from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse as GetAppStateResponse -from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData as GetAppStateResponseData -from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse as GetAvailableRoomTypesResponse -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner as GetAvailableRoomTypesResponseDataInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner as GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner -from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner as GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse as GetCurrencySettingsResponse -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData as GetCurrencySettingsResponseData -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat as GetCurrencySettingsResponseDataFormat -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates as GetCurrencySettingsResponseDataRates -from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner as GetCurrencySettingsResponseDataRatesFixedInner -from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse as GetCustomFieldsResponse -from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner as GetCustomFieldsResponseDataInner -from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse as GetDashboardResponse -from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData as GetDashboardResponseData -from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse as GetEmailScheduleResponse -from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner as GetEmailScheduleResponseDataInner -from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse as GetEmailTemplatesResponse -from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner as GetEmailTemplatesResponseDataInner -from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse as GetFilesResponse -from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner as GetFilesResponseDataInner -from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse as GetGroupNotesResponse -from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData as GetGroupNotesResponseData -from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse as GetGroupsResponse -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner as GetGroupsResponseDataInner -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner as GetGroupsResponseDataInnerContactsInner -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner as GetGroupsResponseDataInnerContactsInnerEmailsInner -from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner as GetGroupsResponseDataInnerContactsInnerPhonesInner -from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse as GetGuestListResponse -from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue as GetGuestListResponseDataValue -from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner as GetGuestListResponseDataValueGuestNotesInner -from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse as GetGuestNotesResponse -from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner as GetGuestNotesResponseDataInner -from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse as GetGuestResponse -from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData as GetGuestResponseData -from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate as GetGuestResponseDataBirthDate -from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner as GetGuestResponseDataCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate as GetGuestResponseDataDocumentExpirationDate -from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate as GetGuestResponseDataDocumentIssueDate -from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse as GetGuestsByFilterResponse -from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner as GetGuestsByFilterResponseDataInner -from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse as GetGuestsByStatusResponse -from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner as GetGuestsByStatusResponseDataInner -from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse as GetGuestsModifiedResponse -from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner as GetGuestsModifiedResponseDataInner -from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner as GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse as GetHotelDetailsResponse -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData as GetHotelDetailsResponseData -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress as GetHotelDetailsResponseDataPropertyAddress -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency as GetHotelDetailsResponseDataPropertyCurrency -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner as GetHotelDetailsResponseDataPropertyImageInner -from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy as GetHotelDetailsResponseDataPropertyPolicy -from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse as GetHotelsResponse -from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner as GetHotelsResponseDataInner -from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner as GetHotelsResponseDataInnerPropertyCurrencyInner -from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse as GetHouseAccountListResponse -from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner as GetHouseAccountListResponseDataInner -from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse as GetHousekeepersResponse -from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner as GetHousekeepersResponseDataInner -from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse as GetHousekeepingStatusResponse -from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner as GetHousekeepingStatusResponseDataInner -from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse as GetItemCategoriesResponse -from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner as GetItemCategoriesResponseDataInner -from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse as GetItemResponse -from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData as GetItemResponseData -from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner as GetItemResponseDataFeesInner -from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner as GetItemResponseDataTaxesInner -from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse as GetItemsResponse -from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner as GetItemsResponseDataInner -from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse as GetListAllotmentBlockNotesResponse -from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner as GetListAllotmentBlockNotesResponseDataInner -from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse as GetMetadataResponse -from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData as GetMetadataResponseData -from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi as GetMetadataResponseDataApi -from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse as GetPackagesResponse -from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData as GetPackagesResponseData -from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse as GetPaymentMethodsResponse -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData as GetPaymentMethodsResponseData -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner as GetPaymentMethodsResponseDataGatewayInner -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner as GetPaymentMethodsResponseDataMethodsInner -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner as GetPaymentMethodsResponseDataMethodsInnerCardTypesInner -from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse as GetPaymentsCapabilitiesResponse -from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner as GetPaymentsCapabilitiesResponseDataInner -from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse as GetRateJobsResponse -from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner as GetRateJobsResponseDataInner -from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner as GetRateJobsResponseDataInnerUpdatesInner -from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse as GetRatePlansResponse -from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner as GetRatePlansResponseDataInner -from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner as GetRatePlansResponseDataInnerAddOnsInner -from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner as GetRatePlansResponseDataInnerRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse as GetRateResponse -from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData as GetRateResponseData -from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner as GetRateResponseDataRoomRateDetailedInner -from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse as GetReservationAssignmentsResponse -from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner as GetReservationAssignmentsResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner as GetReservationAssignmentsResponseDataInnerAssignedInner -from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse as GetReservationNotesResponse -from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner as GetReservationNotesResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse as GetReservationResponse -from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData as GetReservationResponseData -from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner as GetReservationResponseDataAssignedInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner as GetReservationResponseDataAssignedInnerDailyRatesInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed as GetReservationResponseDataBalanceDetailed -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf as GetReservationResponseDataBalanceDetailedOneOf -from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner as GetReservationResponseDataCardsOnFileInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner as GetReservationResponseDataGroupInventoryInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue as GetReservationResponseDataGuestListValue -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner as GetReservationResponseDataGuestListValueCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate as GetReservationResponseDataGuestListValueGuestBirthdate -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner as GetReservationResponseDataGuestListValueRoomsInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner as GetReservationResponseDataGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner as GetReservationResponseDataUnassignedInner -from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse as GetReservationRoomDetailsResponse -from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData as GetReservationRoomDetailsResponseData -from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner as GetReservationRoomDetailsResponseDataGuestsInner -from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse as GetReservationsResponse -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner as GetReservationsResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue as GetReservationsResponseDataInnerGuestListValue -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner as GetReservationsResponseDataInnerGuestListValueRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner as GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner as GetReservationsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse as GetReservationsWithRateDetailsResponse -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner as GetReservationsWithRateDetailsResponseDataInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner as GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner as GetReservationsWithRateDetailsResponseDataInnerSourceInner -from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse as GetRoomBlocksResponse -from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner as GetRoomBlocksResponseDataInner -from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse as GetRoomTypesResponse -from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner as GetRoomTypesResponseDataInner -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse as GetRoomsFeesAndTaxesResponse -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData as GetRoomsFeesAndTaxesResponseData -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner as GetRoomsFeesAndTaxesResponseDataFeesInner -from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner as GetRoomsFeesAndTaxesResponseDataTaxesInner -from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse as GetRoomsResponse -from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner as GetRoomsResponseDataInner -from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner as GetRoomsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner as GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner -from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse as GetRoomsUnassignedResponse -from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner as GetRoomsUnassignedResponseDataInner -from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner as GetRoomsUnassignedResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse as GetSourcesResponse -from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner as GetSourcesResponseDataInner -from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner as GetSourcesResponseDataInnerFeesInner -from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner as GetSourcesResponseDataInnerTaxesInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse as GetTaxesAndFeesResponse -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner as GetTaxesAndFeesResponseDataInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner as GetTaxesAndFeesResponseDataInnerAmountRateBasedInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate as GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner as GetTaxesAndFeesResponseDataInnerDateRangesInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild as GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner as GetTaxesAndFeesResponseDataInnerRoomTypesInner -from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse as GetUserinfoResponse -from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner as GetUserinfoResponseRolesInner -from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse as GetUsersResponse -from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse as GetWebhooksResponse -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner as GetWebhooksResponseDataInner -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent as GetWebhooksResponseDataInnerEvent -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey as GetWebhooksResponseDataInnerKey -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner as GetWebhooksResponseDataInnerOwner -from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData as GetWebhooksResponseDataInnerSubscriptionData -from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse as PostAccessTokenResponse -from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner as PostAccessTokenResponseResourcesInner -from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse as PostAdjustmentResponse -from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData as PostAdjustmentResponseData -from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse as PostAppErrorResponse -from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData as PostAppErrorResponseData -from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse as PostAppPropertySettingResponse -from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData as PostAppPropertySettingResponseData -from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse as PostAppStateResponse -from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse as PostAppendCustomItemResponse -from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData as PostAppendCustomItemResponseData -from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse as PostCardResponse -from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData as PostCardResponseData -from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse as PostChargeResponse -from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData as PostChargeResponseData -from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction as PostChargeResponseDataNextAction -from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails as PostChargeResponseDataNextActionDetails -from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse as PostCreateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData as PostCreateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease as PostCreateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse as PostCreateAllotmentBlockResponse -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner as PostCreateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease as PostCreateAllotmentBlockResponseDataInnerAutoRelease -from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse as PostCustomFieldResponse -from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData as PostCustomFieldResponseData -from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner as PostCustomItemRequestItemsInner -from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner as PostCustomItemRequestItemsInnerItemFeesInner -from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner as PostCustomItemRequestItemsInnerItemTaxesInner -from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner as PostCustomItemRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse as PostCustomItemResponse -from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData as PostCustomItemResponseData -from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse as PostCustomPaymentMethodResponse -from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse as PostDeleteAllotmentBlockResponse -from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse as PostDeleteAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule as PostEmailScheduleRequestSchedule -from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent as PostEmailScheduleRequestScheduleReservationEvent -from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange as PostEmailScheduleRequestScheduleReservationStatusChange -from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse as PostEmailScheduleResponse -from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody as PostEmailTemplateRequestBody -from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject as PostEmailTemplateRequestSubject -from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse as PostEmailTemplateResponse -from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse as PostFileResponse -from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse as PostGovernmentReceiptResponse -from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse as PostGroupNoteResponse -from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner as PostGroupNoteResponseDataInner -from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse as PostGuestDocumentResponse -from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData as PostGuestDocumentResponseData -from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse as PostGuestNoteResponse -from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse as PostGuestPhotoResponse -from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner as PostGuestRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse as PostGuestResponse -from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse as PostGuestsToRoomResponse -from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse as PostHousekeeperResponse -from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse as PostHousekeepingAssignmentResponse -from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse as PostHousekeepingStatusResponse -from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData as PostHousekeepingStatusResponseData -from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse as PostItemCategoryResponse -from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner as PostItemRequestPaymentsInner -from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse as PostItemResponse -from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData as PostItemResponseData -from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem as PostItemsToInventoryRequestItem -from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse as PostItemsToInventoryResponse -from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner as PostItemsToInventoryResponseDataInner -from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse as PostNewHouseAccountResponse -from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData as PostNewHouseAccountResponseData -from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse as PostPatchGroupResponse -from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner as PostPatchGroupResponseDataInner -from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner as PostPatchRateRequestRatesInner -from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval as PostPatchRateRequestRatesInnerInterval -from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse as PostPatchRateResponse -from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse as PostPaymentResponse -from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse as PostPutAppPropertySettingsResponse -from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse as PostPutGroupResponse -from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner as PostPutRateRequestRatesInner -from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner as PostPutRateRequestRatesInnerIntervalInner -from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse as PostPutRateResponse -from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse as PostReservationDocumentResponse -from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse as PostReservationNoteResponse -from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner as PostReservationRequestAdultsInner -from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner as PostReservationRequestChildrenInner -from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner as PostReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner as PostReservationRequestRoomsInner -from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse as PostReservationResponse -from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner as PostReservationResponseUnassignedInner -from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse as PostRoomAssignResponse -from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner as PostRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse as PostRoomBlockResponse -from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner as PostRoomBlockResponseRoomsInner -from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse as PostRoomCheckInResponse -from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse as PostRoomCheckOutResponse -from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse as PostUpdateAllotmentBlockNotesResponse -from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData as PostUpdateAllotmentBlockNotesResponseData -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions as PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease as PostUpdateAllotmentBlockRequestAutoRelease -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse as PostUpdateAllotmentBlockResponse -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner as PostUpdateAllotmentBlockResponseDataInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner -from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions as PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions -from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse as PostVoidItemResponse -from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse as PostVoidPaymentResponse -from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse as PostWebhookResponse -from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData as PostWebhookResponseData -from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse as PutGuestNoteResponse -from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner as PutGuestRequestGuestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse as PutGuestResponse -from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse as PutHouseAccountStatusResponse -from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse as PutHousekeeperResponse -from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse as PutItemToInventoryResponse -from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse as PutReservationNoteResponse -from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner as PutReservationRequestCustomFieldsInner -from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner as PutReservationRequestRoomsInner -from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse as PutReservationResponse -from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner as PutRoomBlockRequestRoomsInner -from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse as PutRoomBlockResponse - -""", - name=__name__, - doc=__doc__, - ) - ) +from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse +from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse +from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse +from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse +from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner +from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf +from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse +from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData +from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse +from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData +from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner +from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates +from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner +from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse +from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner +from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse +from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData +from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse +from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner +from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse +from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner +from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse +from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner +from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse +from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData +from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner +from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner +from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue +from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner +from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse +from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse +from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData +from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate +from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse +from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse +from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner +from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy +from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner +from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner +from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse +from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse +from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse +from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner +from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse +from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData +from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse +from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse +from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData +from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi +from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse +from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse +from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner +from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse +from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData +from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse +from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse +from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf +from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData +from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner +from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse +from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner +from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner +from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner +from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner +from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner +from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner +from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse +from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner +from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner +from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData +from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse +from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner +from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse +from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData +from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse +from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData +from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse +from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData +from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse +from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse +from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData +from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse +from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction +from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease +from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse +from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner +from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse +from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData +from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse +from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent +from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange +from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse +from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody +from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject +from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse +from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse +from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse +from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse +from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner +from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse +from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData +from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse +from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse +from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse +from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse +from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse +from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData +from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse +from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner +from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse +from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData +from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse +from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner +from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse +from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData +from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse +from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval +from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse +from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse +from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse +from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner +from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner +from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse +from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse +from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse +from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner +from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse +from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner +from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse +from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse +from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner +from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse +from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner +from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions +from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse +from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse +from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse +from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData +from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse +from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse +from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse +from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse +from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse +from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse +from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner +from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse +from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse diff --git a/cloudbeds_pms_v1_3/api/__init__.py b/cloudbeds_pms_v1_3/api/__init__.py index fc8302c..e69a82e 100644 --- a/cloudbeds_pms_v1_3/api/__init__.py +++ b/cloudbeds_pms_v1_3/api/__init__.py @@ -1,37 +1,6 @@ # flake8: noqa -if __import__("typing").TYPE_CHECKING: - # import apis into api package - from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi - from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi - from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi - from cloudbeds_pms_v1_3.api.authentication_api import AuthenticationApi - from cloudbeds_pms_v1_3.api.currency_api import CurrencyApi - from cloudbeds_pms_v1_3.api.custom_fields_api import CustomFieldsApi - from cloudbeds_pms_v1_3.api.dashboard_api import DashboardApi - from cloudbeds_pms_v1_3.api.emails_api import EmailsApi - from cloudbeds_pms_v1_3.api.groups_api import GroupsApi - from cloudbeds_pms_v1_3.api.guest_api import GuestApi - from cloudbeds_pms_v1_3.api.hotel_api import HotelApi - from cloudbeds_pms_v1_3.api.house_account_api import HouseAccountApi - from cloudbeds_pms_v1_3.api.housekeeping_api import HousekeepingApi - from cloudbeds_pms_v1_3.api.integration_api import IntegrationApi - from cloudbeds_pms_v1_3.api.item_api import ItemApi - from cloudbeds_pms_v1_3.api.package_api import PackageApi - from cloudbeds_pms_v1_3.api.payment_api import PaymentApi - from cloudbeds_pms_v1_3.api.rate_api import RateApi - from cloudbeds_pms_v1_3.api.reservation_api import ReservationApi - from cloudbeds_pms_v1_3.api.room_api import RoomApi - from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi - from cloudbeds_pms_v1_3.api.user_api import UserApi - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - """# import apis into api package +# import apis into api package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi from cloudbeds_pms_v1_3.api.allotment_blocks_api import AllotmentBlocksApi from cloudbeds_pms_v1_3.api.app_settings_api import AppSettingsApi @@ -55,8 +24,3 @@ from cloudbeds_pms_v1_3.api.taxes_and_fees_api import TaxesAndFeesApi from cloudbeds_pms_v1_3.api.user_api import UserApi -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 5b77341..339a48e 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -21,7 +21,6 @@ import os import re import tempfile -import uuid from urllib.parse import quote from typing import Tuple, Optional, List, Dict, Union @@ -91,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.5.2/python' + self.user_agent = 'OpenAPI-Generator/1.5.3/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -357,8 +356,6 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj - elif isinstance(obj, uuid.UUID): - return str(obj) elif isinstance(obj, list): return [ self.sanitize_for_serialization(sub_obj) for sub_obj in obj @@ -385,10 +382,6 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ - if isinstance(obj_dict, list): - # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() - return self.sanitize_for_serialization(obj_dict) - return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() @@ -411,7 +404,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): if response_text == "": data = "" else: diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 1202e45..50a50c7 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict from typing_extensions import NotRequired, Self import urllib3 @@ -162,8 +162,6 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. - :param ca_cert_data: verify the peer using concatenated CA certificate data - in PEM (str) or DER (bytes) format. :Example: @@ -197,14 +195,13 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, - ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -282,10 +279,6 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ - self.ca_cert_data = ca_cert_data - """Set this to verify the peer using PEM (str) or DER (bytes) - certificate data. - """ self.cert_file = None """client certificate file """ @@ -539,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.5.2".\ + "SDK Package Version: 1.5.3".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md b/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md index a8918c6..876e7bd 100644 --- a/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md +++ b/cloudbeds_pms_v1_3/docs/CustomFieldsApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description getCustomFields -Gets custom fields list
¹ data.displayed = "booking" - Display this field to guests on the booking engine.
¹ data.displayed = "reservation" - Add this field to the reservation folio for use by staff.
¹ data.displayed = "card" - Make this field available for registration cards.
+Gets custom fields list
¹ data.displayed = \"booking\" - Display this field to guests on the booking engine.
¹ data.displayed = \"reservation\" - Add this field to the reservation folio for use by staff.
¹ data.displayed = \"card\" - Make this field available for registration cards.
### Example diff --git a/cloudbeds_pms_v1_3/docs/EmailsApi.md b/cloudbeds_pms_v1_3/docs/EmailsApi.md index d55b069..5c3ce07 100644 --- a/cloudbeds_pms_v1_3/docs/EmailsApi.md +++ b/cloudbeds_pms_v1_3/docs/EmailsApi.md @@ -268,7 +268,7 @@ Name | Type | Description | Notes postEmailTemplate -Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. +Creates a new email template. See the full list of available language parameters here. This call is only available for third-party integration partners, and not for property client IDs. ### Example diff --git a/cloudbeds_pms_v1_3/docs/HotelApi.md b/cloudbeds_pms_v1_3/docs/HotelApi.md index e4591f2..c1f9457 100644 --- a/cloudbeds_pms_v1_3/docs/HotelApi.md +++ b/cloudbeds_pms_v1_3/docs/HotelApi.md @@ -109,7 +109,7 @@ Name | Type | Description | Notes getHotelDetails -Returns the details of a specific hotel, identified by "propertyID" +Returns the details of a specific hotel, identified by \"propertyID\" ### Example diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index f2851ae..5852c69 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -1063,7 +1063,7 @@ Name | Type | Description | Notes postRoomCheckOut -Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to "Checked Out" as well. +Check-out a room already assigned for a guest. If all rooms are checked out, the reservation status will update accordingly to \"Checked Out\" as well. ### Example diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index 0085cdc..9e202ea 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -13,322 +13,7 @@ """ # noqa: E501 -if __import__("typing").TYPE_CHECKING: - # import models into model package - from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse - from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse - from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse - from cloudbeds_pms_v1_3.models.delete_room_block_response import DeleteRoomBlockResponse - from cloudbeds_pms_v1_3.models.delete_webhook_response import DeleteWebhookResponse - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response import GetAllotmentBlocksResponse - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner import GetAllotmentBlocksResponseDataInner - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions - from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner - from cloudbeds_pms_v1_3.models.get_app_property_settings_response import GetAppPropertySettingsResponse - from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data import GetAppPropertySettingsResponseData - from cloudbeds_pms_v1_3.models.get_app_property_settings_response_data_one_of import GetAppPropertySettingsResponseDataOneOf - from cloudbeds_pms_v1_3.models.get_app_settings_response import GetAppSettingsResponse - from cloudbeds_pms_v1_3.models.get_app_settings_response_data import GetAppSettingsResponseData - from cloudbeds_pms_v1_3.models.get_app_state_response import GetAppStateResponse - from cloudbeds_pms_v1_3.models.get_app_state_response_data import GetAppStateResponseData - from cloudbeds_pms_v1_3.models.get_available_room_types_response import GetAvailableRoomTypesResponse - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner import GetAvailableRoomTypesResponseDataInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_currency_inner import GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerIndividualRoomsInner - from cloudbeds_pms_v1_3.models.get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner import GetAvailableRoomTypesResponseDataInnerPropertyRoomsInnerRoomRateDetailedInner - from cloudbeds_pms_v1_3.models.get_currency_settings_response import GetCurrencySettingsResponse - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data import GetCurrencySettingsResponseData - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_format import GetCurrencySettingsResponseDataFormat - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates import GetCurrencySettingsResponseDataRates - from cloudbeds_pms_v1_3.models.get_currency_settings_response_data_rates_fixed_inner import GetCurrencySettingsResponseDataRatesFixedInner - from cloudbeds_pms_v1_3.models.get_custom_fields_response import GetCustomFieldsResponse - from cloudbeds_pms_v1_3.models.get_custom_fields_response_data_inner import GetCustomFieldsResponseDataInner - from cloudbeds_pms_v1_3.models.get_dashboard_response import GetDashboardResponse - from cloudbeds_pms_v1_3.models.get_dashboard_response_data import GetDashboardResponseData - from cloudbeds_pms_v1_3.models.get_email_schedule_response import GetEmailScheduleResponse - from cloudbeds_pms_v1_3.models.get_email_schedule_response_data_inner import GetEmailScheduleResponseDataInner - from cloudbeds_pms_v1_3.models.get_email_templates_response import GetEmailTemplatesResponse - from cloudbeds_pms_v1_3.models.get_email_templates_response_data_inner import GetEmailTemplatesResponseDataInner - from cloudbeds_pms_v1_3.models.get_files_response import GetFilesResponse - from cloudbeds_pms_v1_3.models.get_files_response_data_inner import GetFilesResponseDataInner - from cloudbeds_pms_v1_3.models.get_group_notes_response import GetGroupNotesResponse - from cloudbeds_pms_v1_3.models.get_group_notes_response_data import GetGroupNotesResponseData - from cloudbeds_pms_v1_3.models.get_groups_response import GetGroupsResponse - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner import GetGroupsResponseDataInner - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner import GetGroupsResponseDataInnerContactsInner - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_emails_inner import GetGroupsResponseDataInnerContactsInnerEmailsInner - from cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner import GetGroupsResponseDataInnerContactsInnerPhonesInner - from cloudbeds_pms_v1_3.models.get_guest_list_response import GetGuestListResponse - from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value import GetGuestListResponseDataValue - from cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner import GetGuestListResponseDataValueGuestNotesInner - from cloudbeds_pms_v1_3.models.get_guest_notes_response import GetGuestNotesResponse - from cloudbeds_pms_v1_3.models.get_guest_notes_response_data_inner import GetGuestNotesResponseDataInner - from cloudbeds_pms_v1_3.models.get_guest_response import GetGuestResponse - from cloudbeds_pms_v1_3.models.get_guest_response_data import GetGuestResponseData - from cloudbeds_pms_v1_3.models.get_guest_response_data_birth_date import GetGuestResponseDataBirthDate - from cloudbeds_pms_v1_3.models.get_guest_response_data_custom_fields_inner import GetGuestResponseDataCustomFieldsInner - from cloudbeds_pms_v1_3.models.get_guest_response_data_document_expiration_date import GetGuestResponseDataDocumentExpirationDate - from cloudbeds_pms_v1_3.models.get_guest_response_data_document_issue_date import GetGuestResponseDataDocumentIssueDate - from cloudbeds_pms_v1_3.models.get_guests_by_filter_response import GetGuestsByFilterResponse - from cloudbeds_pms_v1_3.models.get_guests_by_filter_response_data_inner import GetGuestsByFilterResponseDataInner - from cloudbeds_pms_v1_3.models.get_guests_by_status_response import GetGuestsByStatusResponse - from cloudbeds_pms_v1_3.models.get_guests_by_status_response_data_inner import GetGuestsByStatusResponseDataInner - from cloudbeds_pms_v1_3.models.get_guests_modified_response import GetGuestsModifiedResponse - from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner import GetGuestsModifiedResponseDataInner - from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner - from cloudbeds_pms_v1_3.models.get_hotel_details_response import GetHotelDetailsResponse - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data import GetHotelDetailsResponseData - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_address import GetHotelDetailsResponseDataPropertyAddress - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_currency import GetHotelDetailsResponseDataPropertyCurrency - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_image_inner import GetHotelDetailsResponseDataPropertyImageInner - from cloudbeds_pms_v1_3.models.get_hotel_details_response_data_property_policy import GetHotelDetailsResponseDataPropertyPolicy - from cloudbeds_pms_v1_3.models.get_hotels_response import GetHotelsResponse - from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner import GetHotelsResponseDataInner - from cloudbeds_pms_v1_3.models.get_hotels_response_data_inner_property_currency_inner import GetHotelsResponseDataInnerPropertyCurrencyInner - from cloudbeds_pms_v1_3.models.get_house_account_list_response import GetHouseAccountListResponse - from cloudbeds_pms_v1_3.models.get_house_account_list_response_data_inner import GetHouseAccountListResponseDataInner - from cloudbeds_pms_v1_3.models.get_housekeepers_response import GetHousekeepersResponse - from cloudbeds_pms_v1_3.models.get_housekeepers_response_data_inner import GetHousekeepersResponseDataInner - from cloudbeds_pms_v1_3.models.get_housekeeping_status_response import GetHousekeepingStatusResponse - from cloudbeds_pms_v1_3.models.get_housekeeping_status_response_data_inner import GetHousekeepingStatusResponseDataInner - from cloudbeds_pms_v1_3.models.get_item_categories_response import GetItemCategoriesResponse - from cloudbeds_pms_v1_3.models.get_item_categories_response_data_inner import GetItemCategoriesResponseDataInner - from cloudbeds_pms_v1_3.models.get_item_response import GetItemResponse - from cloudbeds_pms_v1_3.models.get_item_response_data import GetItemResponseData - from cloudbeds_pms_v1_3.models.get_item_response_data_fees_inner import GetItemResponseDataFeesInner - from cloudbeds_pms_v1_3.models.get_item_response_data_taxes_inner import GetItemResponseDataTaxesInner - from cloudbeds_pms_v1_3.models.get_items_response import GetItemsResponse - from cloudbeds_pms_v1_3.models.get_items_response_data_inner import GetItemsResponseDataInner - from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response import GetListAllotmentBlockNotesResponse - from cloudbeds_pms_v1_3.models.get_list_allotment_block_notes_response_data_inner import GetListAllotmentBlockNotesResponseDataInner - from cloudbeds_pms_v1_3.models.get_metadata_response import GetMetadataResponse - from cloudbeds_pms_v1_3.models.get_metadata_response_data import GetMetadataResponseData - from cloudbeds_pms_v1_3.models.get_metadata_response_data_api import GetMetadataResponseDataApi - from cloudbeds_pms_v1_3.models.get_packages_response import GetPackagesResponse - from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData - from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner - from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner - from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse - from cloudbeds_pms_v1_3.models.get_payments_capabilities_response_data_inner import GetPaymentsCapabilitiesResponseDataInner - from cloudbeds_pms_v1_3.models.get_rate_jobs_response import GetRateJobsResponse - from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner import GetRateJobsResponseDataInner - from cloudbeds_pms_v1_3.models.get_rate_jobs_response_data_inner_updates_inner import GetRateJobsResponseDataInnerUpdatesInner - from cloudbeds_pms_v1_3.models.get_rate_plans_response import GetRatePlansResponse - from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner import GetRatePlansResponseDataInner - from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_add_ons_inner import GetRatePlansResponseDataInnerAddOnsInner - from cloudbeds_pms_v1_3.models.get_rate_plans_response_data_inner_room_rate_detailed_inner import GetRatePlansResponseDataInnerRoomRateDetailedInner - from cloudbeds_pms_v1_3.models.get_rate_response import GetRateResponse - from cloudbeds_pms_v1_3.models.get_rate_response_data import GetRateResponseData - from cloudbeds_pms_v1_3.models.get_rate_response_data_room_rate_detailed_inner import GetRateResponseDataRoomRateDetailedInner - from cloudbeds_pms_v1_3.models.get_reservation_assignments_response import GetReservationAssignmentsResponse - from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner import GetReservationAssignmentsResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservation_assignments_response_data_inner_assigned_inner import GetReservationAssignmentsResponseDataInnerAssignedInner - from cloudbeds_pms_v1_3.models.get_reservation_notes_response import GetReservationNotesResponse - from cloudbeds_pms_v1_3.models.get_reservation_notes_response_data_inner import GetReservationNotesResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservation_response import GetReservationResponse - from cloudbeds_pms_v1_3.models.get_reservation_response_data import GetReservationResponseData - from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner import GetReservationResponseDataAssignedInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_assigned_inner_daily_rates_inner import GetReservationResponseDataAssignedInnerDailyRatesInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed import GetReservationResponseDataBalanceDetailed - from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf - from cloudbeds_pms_v1_3.models.get_reservation_response_data_cards_on_file_inner import GetReservationResponseDataCardsOnFileInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_group_inventory_inner import GetReservationResponseDataGroupInventoryInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value import GetReservationResponseDataGuestListValue - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner import GetReservationResponseDataGuestListValueCustomFieldsInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_guest_birthdate import GetReservationResponseDataGuestListValueGuestBirthdate - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_rooms_inner import GetReservationResponseDataGuestListValueRoomsInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_unassigned_rooms_inner import GetReservationResponseDataGuestListValueUnassignedRoomsInner - from cloudbeds_pms_v1_3.models.get_reservation_response_data_unassigned_inner import GetReservationResponseDataUnassignedInner - from cloudbeds_pms_v1_3.models.get_reservation_room_details_response import GetReservationRoomDetailsResponse - from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data import GetReservationRoomDetailsResponseData - from cloudbeds_pms_v1_3.models.get_reservation_room_details_response_data_guests_inner import GetReservationRoomDetailsResponseDataGuestsInner - from cloudbeds_pms_v1_3.models.get_reservations_response import GetReservationsResponse - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner import GetReservationsResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner - from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse - from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner - from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse - from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data import GetRoomsFeesAndTaxesResponseData - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_fees_inner import GetRoomsFeesAndTaxesResponseDataFeesInner - from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response_data_taxes_inner import GetRoomsFeesAndTaxesResponseDataTaxesInner - from cloudbeds_pms_v1_3.models.get_rooms_response import GetRoomsResponse - from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner import GetRoomsResponseDataInner - from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner import GetRoomsResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner import GetRoomsResponseDataInnerRoomsInnerLinkedRoomTypeQtyInner - from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response import GetRoomsUnassignedResponse - from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner import GetRoomsUnassignedResponseDataInner - from cloudbeds_pms_v1_3.models.get_rooms_unassigned_response_data_inner_rooms_inner import GetRoomsUnassignedResponseDataInnerRoomsInner - from cloudbeds_pms_v1_3.models.get_sources_response import GetSourcesResponse - from cloudbeds_pms_v1_3.models.get_sources_response_data_inner import GetSourcesResponseDataInner - from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_fees_inner import GetSourcesResponseDataInnerFeesInner - from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild - from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner - from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse - from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner - from cloudbeds_pms_v1_3.models.get_users_response import GetUsersResponse - from cloudbeds_pms_v1_3.models.get_webhooks_response import GetWebhooksResponse - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner import GetWebhooksResponseDataInner - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_event import GetWebhooksResponseDataInnerEvent - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_key import GetWebhooksResponseDataInnerKey - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_owner import GetWebhooksResponseDataInnerOwner - from cloudbeds_pms_v1_3.models.get_webhooks_response_data_inner_subscription_data import GetWebhooksResponseDataInnerSubscriptionData - from cloudbeds_pms_v1_3.models.post_access_token_response import PostAccessTokenResponse - from cloudbeds_pms_v1_3.models.post_access_token_response_resources_inner import PostAccessTokenResponseResourcesInner - from cloudbeds_pms_v1_3.models.post_adjustment_response import PostAdjustmentResponse - from cloudbeds_pms_v1_3.models.post_adjustment_response_data import PostAdjustmentResponseData - from cloudbeds_pms_v1_3.models.post_app_error_response import PostAppErrorResponse - from cloudbeds_pms_v1_3.models.post_app_error_response_data import PostAppErrorResponseData - from cloudbeds_pms_v1_3.models.post_app_property_setting_response import PostAppPropertySettingResponse - from cloudbeds_pms_v1_3.models.post_app_property_setting_response_data import PostAppPropertySettingResponseData - from cloudbeds_pms_v1_3.models.post_app_state_response import PostAppStateResponse - from cloudbeds_pms_v1_3.models.post_append_custom_item_response import PostAppendCustomItemResponse - from cloudbeds_pms_v1_3.models.post_append_custom_item_response_data import PostAppendCustomItemResponseData - from cloudbeds_pms_v1_3.models.post_card_response import PostCardResponse - from cloudbeds_pms_v1_3.models.post_card_response_data import PostCardResponseData - from cloudbeds_pms_v1_3.models.post_charge_response import PostChargeResponse - from cloudbeds_pms_v1_3.models.post_charge_response_data import PostChargeResponseData - from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action import PostChargeResponseDataNextAction - from cloudbeds_pms_v1_3.models.post_charge_response_data_next_action_details import PostChargeResponseDataNextActionDetails - from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response import PostCreateAllotmentBlockNotesResponse - from cloudbeds_pms_v1_3.models.post_create_allotment_block_notes_response_data import PostCreateAllotmentBlockNotesResponseData - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions - from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_auto_release import PostCreateAllotmentBlockRequestAutoRelease - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response import PostCreateAllotmentBlockResponse - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner import PostCreateAllotmentBlockResponseDataInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions - from cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release import PostCreateAllotmentBlockResponseDataInnerAutoRelease - from cloudbeds_pms_v1_3.models.post_custom_field_response import PostCustomFieldResponse - from cloudbeds_pms_v1_3.models.post_custom_field_response_data import PostCustomFieldResponseData - from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner import PostCustomItemRequestItemsInner - from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_fees_inner import PostCustomItemRequestItemsInnerItemFeesInner - from cloudbeds_pms_v1_3.models.post_custom_item_request_items_inner_item_taxes_inner import PostCustomItemRequestItemsInnerItemTaxesInner - from cloudbeds_pms_v1_3.models.post_custom_item_request_payments_inner import PostCustomItemRequestPaymentsInner - from cloudbeds_pms_v1_3.models.post_custom_item_response import PostCustomItemResponse - from cloudbeds_pms_v1_3.models.post_custom_item_response_data import PostCustomItemResponseData - from cloudbeds_pms_v1_3.models.post_custom_payment_method_response import PostCustomPaymentMethodResponse - from cloudbeds_pms_v1_3.models.post_delete_allotment_block_response import PostDeleteAllotmentBlockResponse - from cloudbeds_pms_v1_3.models.post_delete_app_property_settings_response import PostDeleteAppPropertySettingsResponse - from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule import PostEmailScheduleRequestSchedule - from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_event import PostEmailScheduleRequestScheduleReservationEvent - from cloudbeds_pms_v1_3.models.post_email_schedule_request_schedule_reservation_status_change import PostEmailScheduleRequestScheduleReservationStatusChange - from cloudbeds_pms_v1_3.models.post_email_schedule_response import PostEmailScheduleResponse - from cloudbeds_pms_v1_3.models.post_email_template_request_body import PostEmailTemplateRequestBody - from cloudbeds_pms_v1_3.models.post_email_template_request_subject import PostEmailTemplateRequestSubject - from cloudbeds_pms_v1_3.models.post_email_template_response import PostEmailTemplateResponse - from cloudbeds_pms_v1_3.models.post_file_response import PostFileResponse - from cloudbeds_pms_v1_3.models.post_government_receipt_response import PostGovernmentReceiptResponse - from cloudbeds_pms_v1_3.models.post_group_note_response import PostGroupNoteResponse - from cloudbeds_pms_v1_3.models.post_group_note_response_data_inner import PostGroupNoteResponseDataInner - from cloudbeds_pms_v1_3.models.post_guest_document_response import PostGuestDocumentResponse - from cloudbeds_pms_v1_3.models.post_guest_document_response_data import PostGuestDocumentResponseData - from cloudbeds_pms_v1_3.models.post_guest_note_response import PostGuestNoteResponse - from cloudbeds_pms_v1_3.models.post_guest_photo_response import PostGuestPhotoResponse - from cloudbeds_pms_v1_3.models.post_guest_request_custom_fields_inner import PostGuestRequestCustomFieldsInner - from cloudbeds_pms_v1_3.models.post_guest_response import PostGuestResponse - from cloudbeds_pms_v1_3.models.post_guests_to_room_response import PostGuestsToRoomResponse - from cloudbeds_pms_v1_3.models.post_housekeeper_response import PostHousekeeperResponse - from cloudbeds_pms_v1_3.models.post_housekeeping_assignment_response import PostHousekeepingAssignmentResponse - from cloudbeds_pms_v1_3.models.post_housekeeping_status_response import PostHousekeepingStatusResponse - from cloudbeds_pms_v1_3.models.post_housekeeping_status_response_data import PostHousekeepingStatusResponseData - from cloudbeds_pms_v1_3.models.post_item_category_response import PostItemCategoryResponse - from cloudbeds_pms_v1_3.models.post_item_request_payments_inner import PostItemRequestPaymentsInner - from cloudbeds_pms_v1_3.models.post_item_response import PostItemResponse - from cloudbeds_pms_v1_3.models.post_item_response_data import PostItemResponseData - from cloudbeds_pms_v1_3.models.post_items_to_inventory_request_item import PostItemsToInventoryRequestItem - from cloudbeds_pms_v1_3.models.post_items_to_inventory_response import PostItemsToInventoryResponse - from cloudbeds_pms_v1_3.models.post_items_to_inventory_response_data_inner import PostItemsToInventoryResponseDataInner - from cloudbeds_pms_v1_3.models.post_new_house_account_response import PostNewHouseAccountResponse - from cloudbeds_pms_v1_3.models.post_new_house_account_response_data import PostNewHouseAccountResponseData - from cloudbeds_pms_v1_3.models.post_patch_group_response import PostPatchGroupResponse - from cloudbeds_pms_v1_3.models.post_patch_group_response_data_inner import PostPatchGroupResponseDataInner - from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner import PostPatchRateRequestRatesInner - from cloudbeds_pms_v1_3.models.post_patch_rate_request_rates_inner_interval import PostPatchRateRequestRatesInnerInterval - from cloudbeds_pms_v1_3.models.post_patch_rate_response import PostPatchRateResponse - from cloudbeds_pms_v1_3.models.post_payment_response import PostPaymentResponse - from cloudbeds_pms_v1_3.models.post_put_app_property_settings_response import PostPutAppPropertySettingsResponse - from cloudbeds_pms_v1_3.models.post_put_group_response import PostPutGroupResponse - from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner import PostPutRateRequestRatesInner - from cloudbeds_pms_v1_3.models.post_put_rate_request_rates_inner_interval_inner import PostPutRateRequestRatesInnerIntervalInner - from cloudbeds_pms_v1_3.models.post_put_rate_response import PostPutRateResponse - from cloudbeds_pms_v1_3.models.post_reservation_document_response import PostReservationDocumentResponse - from cloudbeds_pms_v1_3.models.post_reservation_note_response import PostReservationNoteResponse - from cloudbeds_pms_v1_3.models.post_reservation_request_adults_inner import PostReservationRequestAdultsInner - from cloudbeds_pms_v1_3.models.post_reservation_request_children_inner import PostReservationRequestChildrenInner - from cloudbeds_pms_v1_3.models.post_reservation_request_custom_fields_inner import PostReservationRequestCustomFieldsInner - from cloudbeds_pms_v1_3.models.post_reservation_request_rooms_inner import PostReservationRequestRoomsInner - from cloudbeds_pms_v1_3.models.post_reservation_response import PostReservationResponse - from cloudbeds_pms_v1_3.models.post_reservation_response_unassigned_inner import PostReservationResponseUnassignedInner - from cloudbeds_pms_v1_3.models.post_room_assign_response import PostRoomAssignResponse - from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner - from cloudbeds_pms_v1_3.models.post_room_block_response import PostRoomBlockResponse - from cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner import PostRoomBlockResponseRoomsInner - from cloudbeds_pms_v1_3.models.post_room_check_in_response import PostRoomCheckInResponse - from cloudbeds_pms_v1_3.models.post_room_check_out_response import PostRoomCheckOutResponse - from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response import PostUpdateAllotmentBlockNotesResponse - from cloudbeds_pms_v1_3.models.post_update_allotment_block_notes_response_data import PostUpdateAllotmentBlockNotesResponseData - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions - from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner - from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions import PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions - from cloudbeds_pms_v1_3.models.post_void_item_response import PostVoidItemResponse - from cloudbeds_pms_v1_3.models.post_void_payment_response import PostVoidPaymentResponse - from cloudbeds_pms_v1_3.models.post_webhook_response import PostWebhookResponse - from cloudbeds_pms_v1_3.models.post_webhook_response_data import PostWebhookResponseData - from cloudbeds_pms_v1_3.models.put_guest_note_response import PutGuestNoteResponse - from cloudbeds_pms_v1_3.models.put_guest_request_guest_custom_fields_inner import PutGuestRequestGuestCustomFieldsInner - from cloudbeds_pms_v1_3.models.put_guest_response import PutGuestResponse - from cloudbeds_pms_v1_3.models.put_house_account_status_response import PutHouseAccountStatusResponse - from cloudbeds_pms_v1_3.models.put_housekeeper_response import PutHousekeeperResponse - from cloudbeds_pms_v1_3.models.put_item_to_inventory_response import PutItemToInventoryResponse - from cloudbeds_pms_v1_3.models.put_reservation_note_response import PutReservationNoteResponse - from cloudbeds_pms_v1_3.models.put_reservation_request_custom_fields_inner import PutReservationRequestCustomFieldsInner - from cloudbeds_pms_v1_3.models.put_reservation_request_rooms_inner import PutReservationRequestRoomsInner - from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse - from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner - from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - """# import models into model package +# import models into model package from cloudbeds_pms_v1_3.models.delete_adjustment_response import DeleteAdjustmentResponse from cloudbeds_pms_v1_3.models.delete_guest_note_response import DeleteGuestNoteResponse from cloudbeds_pms_v1_3.models.delete_reservation_note_response import DeleteReservationNoteResponse @@ -635,9 +320,3 @@ from cloudbeds_pms_v1_3.models.put_reservation_response import PutReservationResponse from cloudbeds_pms_v1_3.models.put_room_block_request_rooms_inner import PutRoomBlockRequestRoomsInner from cloudbeds_pms_v1_3.models.put_room_block_response import PutRoomBlockResponse - -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/cloudbeds_pms_v1_3/rest.py b/cloudbeds_pms_v1_3/rest.py index 0c36d38..f3e598f 100644 --- a/cloudbeds_pms_v1_3/rest.py +++ b/cloudbeds_pms_v1_3/rest.py @@ -76,7 +76,6 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, - "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( diff --git a/openapitools.json b/openapitools.json index ff41fde..0c67bb3 100644 --- a/openapitools.json +++ b/openapitools.json @@ -3,7 +3,7 @@ "version": "7.11.0" }, "generatorName": "python", - "inputSpec": "public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", + "inputSpec": "../mfd/public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", "outputDir": ".", "validateSpec": false, "additionalProperties": { From 48a7abbc3cf2b937c8ec5b5aaed455972c84ed9b Mon Sep 17 00:00:00 2001 From: Kirill Kolesnik Date: Mon, 29 Sep 2025 13:21:42 +0300 Subject: [PATCH 31/46] feat: corrected config --- openapitools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapitools.json b/openapitools.json index 0c67bb3..ff41fde 100644 --- a/openapitools.json +++ b/openapitools.json @@ -3,7 +3,7 @@ "version": "7.11.0" }, "generatorName": "python", - "inputSpec": "../mfd/public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", + "inputSpec": "public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", "outputDir": ".", "validateSpec": false, "additionalProperties": { From 3c2417ebcee999011dcfab3954b919b57c53a719 Mon Sep 17 00:00:00 2001 From: Kirill Kolesnik Date: Mon, 29 Sep 2025 13:24:58 +0300 Subject: [PATCH 32/46] feat: updated version --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 4cda8f1..8af85be 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.2 +1.5.3 From 01d47cfbd6a2f39e9c84924539c68b5b55cfd9db Mon Sep 17 00:00:00 2001 From: Kirill Kolesnik Date: Tue, 30 Sep 2025 18:44:21 +0300 Subject: [PATCH 33/46] feat: updated get payments code --- .../docs/GetPaymentMethodsResponseDataMethodsInner.md | 3 ++- .../get_payment_methods_response_data_methods_inner.py | 8 +++++--- openapitools.json | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md index de8c2b2..c30ef00 100644 --- a/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | Payment Type | [optional] +**method** | **str** | Payment Method | [optional] +**code** | **str** | Payment Code | [optional] **name** | **str** | Payment Name (in given lang) | [optional] **card_types** | [**List[GetPaymentMethodsResponseDataMethodsInnerCardTypesInner]**](GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) | IF type = 'credit' the enabled card types. Having the array's keys as its type and the value as its name. | [optional] diff --git a/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py index d1f497f..2b05497 100644 --- a/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py @@ -27,10 +27,11 @@ class GetPaymentMethodsResponseDataMethodsInner(BaseModel): """ GetPaymentMethodsResponseDataMethodsInner """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, description="Payment Type") + method: Optional[StrictStr] = Field(default=None, description="Payment Method") + code: Optional[StrictStr] = Field(default=None, description="Payment Code") name: Optional[StrictStr] = Field(default=None, description="Payment Name (in given lang)") card_types: Optional[List[GetPaymentMethodsResponseDataMethodsInnerCardTypesInner]] = Field(default=None, description="IF type = 'credit' the enabled card types. Having the array's keys as its type and the value as its name.", alias="cardTypes") - __properties: ClassVar[List[str]] = ["type", "name", "cardTypes"] + __properties: ClassVar[List[str]] = ["method", "code", "name", "cardTypes"] model_config = ConfigDict( populate_by_name=True, @@ -95,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), + "method": obj.get("method"), + "code": obj.get("code"), "name": obj.get("name"), "cardTypes": [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.from_dict(_item) for _item in obj["cardTypes"]] if obj.get("cardTypes") is not None else None }) diff --git a/openapitools.json b/openapitools.json index ff41fde..3698dc0 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.5.3", + "packageVersion": "1.5.4", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From a10f2b61fb18fe4871eef446b1dfd96331af367c Mon Sep 17 00:00:00 2001 From: Kirill Kolesnik Date: Tue, 30 Sep 2025 18:51:30 +0300 Subject: [PATCH 34/46] feat: updated version file --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 8af85be..94fe62c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.3 +1.5.4 From 1b871cf308d65cd8da7bc6bffe53a89718f0d6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 11 Nov 2025 13:16:29 +0100 Subject: [PATCH 35/46] feat: v1.6.0 --- .openapi-generator/FILES | 10 ++ README.md | 7 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 7 +- .../api/allotment_blocks_api.py | 29 +++- cloudbeds_pms_v1_3/api/rate_api.py | 17 +++ cloudbeds_pms_v1_3/api/room_api.py | 17 +++ cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md | 10 +- .../docs/GetTaxesAndFeesResponseDataInner.md | 1 + ...AndFeesResponseDataInnerDateRangesInner.md | 1 + ...nnerDateRangesInnerLengthOfStaySettings.md | 31 +++++ ...gesInnerLengthOfStaySettingsRangesInner.md | 34 +++++ ...esResponseDataInnerLengthOfStaySettings.md | 31 +++++ ...ataInnerLengthOfStaySettingsRangesInner.md | 34 +++++ ...SettingsRangesInnerAmountRateBasedInner.md | 30 ++++ cloudbeds_pms_v1_3/docs/RateApi.md | 6 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 6 +- cloudbeds_pms_v1_3/models/__init__.py | 5 + ...l_details_response_data_property_policy.py | 4 +- .../get_taxes_and_fees_response_data_inner.py | 15 +- ...s_response_data_inner_date_ranges_inner.py | 15 +- ...te_ranges_inner_length_of_stay_settings.py | 117 ++++++++++++++++ ...er_length_of_stay_settings_ranges_inner.py | 122 ++++++++++++++++ ...onse_data_inner_length_of_stay_settings.py | 117 ++++++++++++++++ ...er_length_of_stay_settings_ranges_inner.py | 130 ++++++++++++++++++ ...gs_ranges_inner_amount_rate_based_inner.py | 89 ++++++++++++ ...te_ranges_inner_length_of_stay_settings.py | 62 +++++++++ ...er_length_of_stay_settings_ranges_inner.py | 58 ++++++++ ...onse_data_inner_length_of_stay_settings.py | 64 +++++++++ ...er_length_of_stay_settings_ranges_inner.py | 60 ++++++++ ...gs_ranges_inner_amount_rate_based_inner.py | 52 +++++++ openapitools.json | 2 +- 34 files changed, 1163 insertions(+), 26 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8d860a1..efc729a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -205,6 +205,11 @@ cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md @@ -527,6 +532,11 @@ cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inn cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inner.py cloudbeds_pms_v1_3/models/get_userinfo_response.py cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py diff --git a/README.md b/README.md index fbce073..d779d12 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.5.3 +- Package version: 1.6.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -368,6 +368,11 @@ Class | Method | HTTP request | Description - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettings](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md) + - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md) - [GetTaxesAndFeesResponseDataInnerRoomTypesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) - [GetUserinfoResponse](cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md) - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md) diff --git a/VERSION b/VERSION index 94fe62c..dc1e644 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.4 +1.6.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index a45dace..378a004 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.5.3" +__version__ = "1.6.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -223,6 +223,11 @@ from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner diff --git a/cloudbeds_pms_v1_3/api/allotment_blocks_api.py b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py index 1dc8bcb..7b74122 100644 --- a/cloudbeds_pms_v1_3/api/allotment_blocks_api.py +++ b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py @@ -1039,7 +1039,8 @@ def get_allotment_blocks_get( page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, - end_date: Annotated[Optional[date], Field(description="Interval start date")] = None, + end_date: Annotated[Optional[date], Field(description="Interval end date")] = None, + for_update: Annotated[Optional[StrictBool], Field(description="If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1077,8 +1078,10 @@ def get_allotment_blocks_get( :type page_number: int :param start_date: Interval start date :type start_date: date - :param end_date: Interval start date + :param end_date: Interval end date :type end_date: date + :param for_update: If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals. + :type for_update: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1113,6 +1116,7 @@ def get_allotment_blocks_get( page_number=page_number, start_date=start_date, end_date=end_date, + for_update=for_update, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1146,7 +1150,8 @@ def get_allotment_blocks_get_with_http_info( page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, - end_date: Annotated[Optional[date], Field(description="Interval start date")] = None, + end_date: Annotated[Optional[date], Field(description="Interval end date")] = None, + for_update: Annotated[Optional[StrictBool], Field(description="If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1184,8 +1189,10 @@ def get_allotment_blocks_get_with_http_info( :type page_number: int :param start_date: Interval start date :type start_date: date - :param end_date: Interval start date + :param end_date: Interval end date :type end_date: date + :param for_update: If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals. + :type for_update: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1220,6 +1227,7 @@ def get_allotment_blocks_get_with_http_info( page_number=page_number, start_date=start_date, end_date=end_date, + for_update=for_update, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1253,7 +1261,8 @@ def get_allotment_blocks_get_without_preload_content( page_size: Annotated[Optional[StrictInt], Field(description="Number of allotment blocks to return per page (min: 1, max: 100)")] = None, page_number: Annotated[Optional[StrictInt], Field(description="Which page in the results to access")] = None, start_date: Annotated[Optional[date], Field(description="Interval start date")] = None, - end_date: Annotated[Optional[date], Field(description="Interval start date")] = None, + end_date: Annotated[Optional[date], Field(description="Interval end date")] = None, + for_update: Annotated[Optional[StrictBool], Field(description="If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1291,8 +1300,10 @@ def get_allotment_blocks_get_without_preload_content( :type page_number: int :param start_date: Interval start date :type start_date: date - :param end_date: Interval start date + :param end_date: Interval end date :type end_date: date + :param for_update: If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals. + :type for_update: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1327,6 +1338,7 @@ def get_allotment_blocks_get_without_preload_content( page_number=page_number, start_date=start_date, end_date=end_date, + for_update=for_update, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1356,6 +1368,7 @@ def _get_allotment_blocks_get_serialize( page_number, start_date, end_date, + for_update, _request_auth, _content_type, _headers, @@ -1440,6 +1453,10 @@ def _get_allotment_blocks_get_serialize( else: _query_params.append(('endDate', end_date)) + if for_update is not None: + + _query_params.append(('forUpdate', for_update)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/cloudbeds_pms_v1_3/api/rate_api.py b/cloudbeds_pms_v1_3/api/rate_api.py index ee97ad1..deb57de 100644 --- a/cloudbeds_pms_v1_3/api/rate_api.py +++ b/cloudbeds_pms_v1_3/api/rate_api.py @@ -724,6 +724,7 @@ def get_rate_plans_get( adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + include_shared_rooms: Annotated[Optional[StrictBool], Field(description="Include shared rooms in the result for multiple adults/children")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -761,6 +762,8 @@ def get_rate_plans_get( :type children: int :param detailed_rates: If the rates need detailed information :type detailed_rates: bool + :param include_shared_rooms: Include shared rooms in the result for multiple adults/children + :type include_shared_rooms: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -794,6 +797,7 @@ def get_rate_plans_get( adults=adults, children=children, detailed_rates=detailed_rates, + include_shared_rooms=include_shared_rooms, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -827,6 +831,7 @@ def get_rate_plans_get_with_http_info( adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + include_shared_rooms: Annotated[Optional[StrictBool], Field(description="Include shared rooms in the result for multiple adults/children")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -864,6 +869,8 @@ def get_rate_plans_get_with_http_info( :type children: int :param detailed_rates: If the rates need detailed information :type detailed_rates: bool + :param include_shared_rooms: Include shared rooms in the result for multiple adults/children + :type include_shared_rooms: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -897,6 +904,7 @@ def get_rate_plans_get_with_http_info( adults=adults, children=children, detailed_rates=detailed_rates, + include_shared_rooms=include_shared_rooms, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -930,6 +938,7 @@ def get_rate_plans_get_without_preload_content( adults: Annotated[Optional[StrictInt], Field(description="Number of adults")] = None, children: Annotated[Optional[StrictInt], Field(description="Number of children")] = None, detailed_rates: Annotated[Optional[StrictBool], Field(description="If the rates need detailed information")] = None, + include_shared_rooms: Annotated[Optional[StrictBool], Field(description="Include shared rooms in the result for multiple adults/children")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -967,6 +976,8 @@ def get_rate_plans_get_without_preload_content( :type children: int :param detailed_rates: If the rates need detailed information :type detailed_rates: bool + :param include_shared_rooms: Include shared rooms in the result for multiple adults/children + :type include_shared_rooms: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1000,6 +1011,7 @@ def get_rate_plans_get_without_preload_content( adults=adults, children=children, detailed_rates=detailed_rates, + include_shared_rooms=include_shared_rooms, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1028,6 +1040,7 @@ def _get_rate_plans_get_serialize( adults, children, detailed_rates, + include_shared_rooms, _request_auth, _content_type, _headers, @@ -1108,6 +1121,10 @@ def _get_rate_plans_get_serialize( _query_params.append(('detailedRates', detailed_rates)) + if include_shared_rooms is not None: + + _query_params.append(('includeSharedRooms', include_shared_rooms)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/cloudbeds_pms_v1_3/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py index e785d70..b50aa01 100644 --- a/cloudbeds_pms_v1_3/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -346,6 +346,7 @@ def get_available_room_types_get( property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code")] = None, detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + include_shared_rooms: Annotated[Optional[StrictBool], Field(description="Include shared rooms in the result for multiple adults/children")] = None, sort: Annotated[Optional[StrictStr], Field(description="Sort parameter")] = None, order: Optional[StrictStr] = None, min_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minimum daily rate. Used to filter results")] = None, @@ -385,6 +386,8 @@ def get_available_room_types_get( :type promo_code: str :param detailed_rates: If detailed rates are expected :type detailed_rates: bool + :param include_shared_rooms: Include shared rooms in the result for multiple adults/children + :type include_shared_rooms: bool :param sort: Sort parameter :type sort: str :param order: @@ -428,6 +431,7 @@ def get_available_room_types_get( property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, + include_shared_rooms=include_shared_rooms, sort=sort, order=order, min_rate=min_rate, @@ -465,6 +469,7 @@ def get_available_room_types_get_with_http_info( property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code")] = None, detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + include_shared_rooms: Annotated[Optional[StrictBool], Field(description="Include shared rooms in the result for multiple adults/children")] = None, sort: Annotated[Optional[StrictStr], Field(description="Sort parameter")] = None, order: Optional[StrictStr] = None, min_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minimum daily rate. Used to filter results")] = None, @@ -504,6 +509,8 @@ def get_available_room_types_get_with_http_info( :type promo_code: str :param detailed_rates: If detailed rates are expected :type detailed_rates: bool + :param include_shared_rooms: Include shared rooms in the result for multiple adults/children + :type include_shared_rooms: bool :param sort: Sort parameter :type sort: str :param order: @@ -547,6 +554,7 @@ def get_available_room_types_get_with_http_info( property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, + include_shared_rooms=include_shared_rooms, sort=sort, order=order, min_rate=min_rate, @@ -584,6 +592,7 @@ def get_available_room_types_get_without_preload_content( property_ids: Annotated[Optional[StrictStr], Field(description="Property ID list, comma-separated, i.e. 37,345,89")] = None, promo_code: Annotated[Optional[StrictStr], Field(description="Promotional code")] = None, detailed_rates: Annotated[Optional[StrictBool], Field(description="If detailed rates are expected")] = None, + include_shared_rooms: Annotated[Optional[StrictBool], Field(description="Include shared rooms in the result for multiple adults/children")] = None, sort: Annotated[Optional[StrictStr], Field(description="Sort parameter")] = None, order: Optional[StrictStr] = None, min_rate: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minimum daily rate. Used to filter results")] = None, @@ -623,6 +632,8 @@ def get_available_room_types_get_without_preload_content( :type promo_code: str :param detailed_rates: If detailed rates are expected :type detailed_rates: bool + :param include_shared_rooms: Include shared rooms in the result for multiple adults/children + :type include_shared_rooms: bool :param sort: Sort parameter :type sort: str :param order: @@ -666,6 +677,7 @@ def get_available_room_types_get_without_preload_content( property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, + include_shared_rooms=include_shared_rooms, sort=sort, order=order, min_rate=min_rate, @@ -698,6 +710,7 @@ def _get_available_room_types_get_serialize( property_ids, promo_code, detailed_rates, + include_shared_rooms, sort, order, min_rate, @@ -776,6 +789,10 @@ def _get_available_room_types_get_serialize( _query_params.append(('detailedRates', detailed_rates)) + if include_shared_rooms is not None: + + _query_params.append(('includeSharedRooms', include_shared_rooms)) + if sort is not None: _query_params.append(('sort', sort)) diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 339a48e..5de0a62 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.5.3/python' + self.user_agent = 'OpenAPI-Generator/1.6.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 50a50c7..03d3f1b 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.5.3".\ + "SDK Package Version: 1.6.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md index 5ff16c4..1ef6278 100644 --- a/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md +++ b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md @@ -282,7 +282,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_allotment_blocks_get** -> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) +> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date, for_update=for_update) getAllotmentBlocks @@ -332,11 +332,12 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: page_size = 56 # int | Number of allotment blocks to return per page (min: 1, max: 100) (optional) page_number = 56 # int | Which page in the results to access (optional) start_date = '2013-10-20' # date | Interval start date (optional) - end_date = '2013-10-20' # date | Interval start date (optional) + end_date = '2013-10-20' # date | Interval end date (optional) + for_update = True # bool | If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals. (optional) try: # getAllotmentBlocks - api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date) + api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date, for_update=for_update) print("The response of AllotmentBlocksApi->get_allotment_blocks_get:\n") pprint(api_response) except Exception as e: @@ -360,7 +361,8 @@ Name | Type | Description | Notes **page_size** | **int**| Number of allotment blocks to return per page (min: 1, max: 100) | [optional] **page_number** | **int**| Which page in the results to access | [optional] **start_date** | **date**| Interval start date | [optional] - **end_date** | **date**| Interval start date | [optional] + **end_date** | **date**| Interval end date | [optional] + **for_update** | **bool**| If false (default) this will show the effective availability on each date. If true, will read raw availability from the allotment intervals. | [optional] ### Return type diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md index d4b3c55..c0cacc1 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **expired_at** | **str** | Date when tax or fee was expired | [optional] **room_types** | [**List[GetTaxesAndFeesResponseDataInnerRoomTypesInner]**](GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) | Room types this tax/fee applies to | [optional] **date_ranges** | [**List[GetTaxesAndFeesResponseDataInnerDateRangesInner]**](GetTaxesAndFeesResponseDataInnerDateRangesInner.md) | Date ranges when this tax/fee is applicable | [optional] +**length_of_stay_settings** | [**GetTaxesAndFeesResponseDataInnerLengthOfStaySettings**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md index bab5630..7d5766a 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **amount_adult** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) | | [optional] **amount_child** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) | | [optional] **amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) | Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based) | [optional] +**length_of_stay_settings** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings**](GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md new file mode 100644 index 0000000..3c2aacc --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md @@ -0,0 +1,31 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings + +Length of Stay configuration settings specific to this date range + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_type** | **str** | Application type for Length of Stay rules | [optional] +**ranges** | [**List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner]**](GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md new file mode 100644 index 0000000..0a4f981 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md @@ -0,0 +1,34 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minimum_nights** | **int** | Minimum number of nights required for this range | [optional] +**maximum_nights** | **int** | Maximum number of nights for this range (null means no limit) | [optional] +**amount** | **float** | Amount for this range | [optional] +**amount_adult** | **float** | Amount per adult for this range | [optional] +**amount_child** | **float** | Amount per child for this range | [optional] +**amount_rate_based** | **List[object]** | Rate-based amounts for this range | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md new file mode 100644 index 0000000..0a828cd --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md @@ -0,0 +1,31 @@ +# GetTaxesAndFeesResponseDataInnerLengthOfStaySettings + +Length of Stay configuration settings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_type** | **str** | Application type for Length of Stay rules:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>progressive_application</td><td>Apply tax/fee when minimum nights are reached</td></tr> <tr><td>retroactive_adjustment</td><td>Apply adjustments retroactively when conditions are met</td></tr> </table> | [optional] +**ranges** | [**List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner]**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from a JSON string +get_taxes_and_fees_response_data_inner_length_of_stay_settings_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md new file mode 100644 index 0000000..2d9087d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md @@ -0,0 +1,34 @@ +# GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minimum_nights** | **int** | Minimum number of nights required for this range | [optional] +**maximum_nights** | **int** | Maximum number of nights for this range (null means no limit) | [optional] +**amount** | **float** | Amount for this range (uses same amountType as the parent tax/fee) | [optional] +**amount_adult** | **float** | Amount per adult for this range (uses same amountType as the parent tax/fee) | [optional] +**amount_child** | **float** | Amount per child for this range (uses same amountType as the parent tax/fee) | [optional] +**amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md) | Rate-based amounts for this range (uses same amountType as the parent tax/fee) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a JSON string +get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md new file mode 100644 index 0000000..164907a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md @@ -0,0 +1,30 @@ +# GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate** | **float** | Maximum rate for which this percentage is valid | [optional] +**percentage** | **float** | Percentage applied for the rate | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a JSON string +get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/RateApi.md b/cloudbeds_pms_v1_3/docs/RateApi.md index 8cf7fb7..384f812 100644 --- a/cloudbeds_pms_v1_3/docs/RateApi.md +++ b/cloudbeds_pms_v1_3/docs/RateApi.md @@ -190,7 +190,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_rate_plans_get** -> GetRatePlansResponse get_rate_plans_get(start_date, end_date, property_ids=property_ids, rate_ids=rate_ids, room_type_id=room_type_id, promo_code=promo_code, include_promo_code=include_promo_code, adults=adults, children=children, detailed_rates=detailed_rates) +> GetRatePlansResponse get_rate_plans_get(start_date, end_date, property_ids=property_ids, rate_ids=rate_ids, room_type_id=room_type_id, promo_code=promo_code, include_promo_code=include_promo_code, adults=adults, children=children, detailed_rates=detailed_rates, include_shared_rooms=include_shared_rooms) getRatePlans @@ -240,10 +240,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: adults = 56 # int | Number of adults (optional) children = 56 # int | Number of children (optional) detailed_rates = False # bool | If the rates need detailed information (optional) (default to False) + include_shared_rooms = False # bool | Include shared rooms in the result for multiple adults/children (optional) (default to False) try: # getRatePlans - api_response = api_instance.get_rate_plans_get(start_date, end_date, property_ids=property_ids, rate_ids=rate_ids, room_type_id=room_type_id, promo_code=promo_code, include_promo_code=include_promo_code, adults=adults, children=children, detailed_rates=detailed_rates) + api_response = api_instance.get_rate_plans_get(start_date, end_date, property_ids=property_ids, rate_ids=rate_ids, room_type_id=room_type_id, promo_code=promo_code, include_promo_code=include_promo_code, adults=adults, children=children, detailed_rates=detailed_rates, include_shared_rooms=include_shared_rooms) print("The response of RateApi->get_rate_plans_get:\n") pprint(api_response) except Exception as e: @@ -267,6 +268,7 @@ Name | Type | Description | Notes **adults** | **int**| Number of adults | [optional] **children** | **int**| Number of children | [optional] **detailed_rates** | **bool**| If the rates need detailed information | [optional] [default to False] + **include_shared_rooms** | **bool**| Include shared rooms in the result for multiple adults/children | [optional] [default to False] ### Return type diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index 5852c69..c449181 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -104,7 +104,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_available_room_types_get** -> GetAvailableRoomTypesResponse get_available_room_types_get(start_date, end_date, rooms, adults, children, property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, sort=sort, order=order, min_rate=min_rate, max_rate=max_rate, page_number=page_number, page_size=page_size) +> GetAvailableRoomTypesResponse get_available_room_types_get(start_date, end_date, rooms, adults, children, property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, include_shared_rooms=include_shared_rooms, sort=sort, order=order, min_rate=min_rate, max_rate=max_rate, page_number=page_number, page_size=page_size) getAvailableRoomTypes @@ -152,6 +152,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: property_ids = 'property_ids_example' # str | Property ID list, comma-separated, i.e. 37,345,89 (optional) promo_code = 'promo_code_example' # str | Promotional code (optional) detailed_rates = False # bool | If detailed rates are expected (optional) (default to False) + include_shared_rooms = False # bool | Include shared rooms in the result for multiple adults/children (optional) (default to False) sort = 'sort_example' # str | Sort parameter (optional) order = asc # str | (optional) (default to asc) min_rate = 3.4 # float | Minimum daily rate. Used to filter results (optional) @@ -161,7 +162,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # getAvailableRoomTypes - api_response = api_instance.get_available_room_types_get(start_date, end_date, rooms, adults, children, property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, sort=sort, order=order, min_rate=min_rate, max_rate=max_rate, page_number=page_number, page_size=page_size) + api_response = api_instance.get_available_room_types_get(start_date, end_date, rooms, adults, children, property_ids=property_ids, promo_code=promo_code, detailed_rates=detailed_rates, include_shared_rooms=include_shared_rooms, sort=sort, order=order, min_rate=min_rate, max_rate=max_rate, page_number=page_number, page_size=page_size) print("The response of RoomApi->get_available_room_types_get:\n") pprint(api_response) except Exception as e: @@ -183,6 +184,7 @@ Name | Type | Description | Notes **property_ids** | **str**| Property ID list, comma-separated, i.e. 37,345,89 | [optional] **promo_code** | **str**| Promotional code | [optional] **detailed_rates** | **bool**| If detailed rates are expected | [optional] [default to False] + **include_shared_rooms** | **bool**| Include shared rooms in the result for multiple adults/children | [optional] [default to False] **sort** | **str**| Sort parameter | [optional] **order** | **str**| | [optional] [default to asc] **min_rate** | **float**| Minimum daily rate. Used to filter results | [optional] diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index 9e202ea..f57d6a0 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -185,6 +185,11 @@ from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner diff --git a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py index e93cf88..d37f9ce 100644 --- a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py @@ -41,8 +41,8 @@ def property_late_check_out_type_validate_enum(cls, value): if value is None: return value - if value not in set(['value', 'percent']): - raise ValueError("must be one of enum values ('value', 'percent')") + if value not in set(['value', 'percent', 'fixed']): + raise ValueError("must be one of enum values ('value', 'percent', 'fixed')") return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py index 9fe4624..22c9dd7 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py @@ -21,6 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from typing import Optional, Set from typing_extensions import Self @@ -49,7 +50,8 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): expired_at: Optional[StrictStr] = Field(default=None, description="Date when tax or fee was expired", alias="expiredAt") room_types: Optional[List[GetTaxesAndFeesResponseDataInnerRoomTypesInner]] = Field(default=None, description="Room types this tax/fee applies to", alias="roomTypes") date_ranges: Optional[List[GetTaxesAndFeesResponseDataInnerDateRangesInner]] = Field(default=None, description="Date ranges when this tax/fee is applicable", alias="dateRanges") - __properties: ClassVar[List[str]] = ["type", "feeID", "taxID", "name", "code", "kind", "amount", "amountAdult", "amountChild", "amountRateBased", "amountType", "availableFor", "feesCharged", "inclusiveOrExclusive", "isDeleted", "childId", "createdAt", "expiredAt", "roomTypes", "dateRanges"] + length_of_stay_settings: Optional[GetTaxesAndFeesResponseDataInnerLengthOfStaySettings] = Field(default=None, alias="lengthOfStaySettings") + __properties: ClassVar[List[str]] = ["type", "feeID", "taxID", "name", "code", "kind", "amount", "amountAdult", "amountChild", "amountRateBased", "amountType", "availableFor", "feesCharged", "inclusiveOrExclusive", "isDeleted", "childId", "createdAt", "expiredAt", "roomTypes", "dateRanges", "lengthOfStaySettings"] @field_validator('type') def type_validate_enum(cls, value): @@ -152,6 +154,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_date_ranges: _items.append(_item_date_ranges.to_dict()) _dict['dateRanges'] = _items + # override the default output from pydantic by calling `to_dict()` of length_of_stay_settings + if self.length_of_stay_settings: + _dict['lengthOfStaySettings'] = self.length_of_stay_settings.to_dict() # set to None if fee_id (nullable) is None # and model_fields_set contains the field if self.fee_id is None and "fee_id" in self.model_fields_set: @@ -187,6 +192,11 @@ def to_dict(self) -> Dict[str, Any]: if self.date_ranges is None and "date_ranges" in self.model_fields_set: _dict['dateRanges'] = None + # set to None if length_of_stay_settings (nullable) is None + # and model_fields_set contains the field + if self.length_of_stay_settings is None and "length_of_stay_settings" in self.model_fields_set: + _dict['lengthOfStaySettings'] = None + return _dict @classmethod @@ -218,7 +228,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "createdAt": obj.get("createdAt"), "expiredAt": obj.get("expiredAt"), "roomTypes": [GetTaxesAndFeesResponseDataInnerRoomTypesInner.from_dict(_item) for _item in obj["roomTypes"]] if obj.get("roomTypes") is not None else None, - "dateRanges": [GetTaxesAndFeesResponseDataInnerDateRangesInner.from_dict(_item) for _item in obj["dateRanges"]] if obj.get("dateRanges") is not None else None + "dateRanges": [GetTaxesAndFeesResponseDataInnerDateRangesInner.from_dict(_item) for _item in obj["dateRanges"]] if obj.get("dateRanges") is not None else None, + "lengthOfStaySettings": GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.from_dict(obj["lengthOfStaySettings"]) if obj.get("lengthOfStaySettings") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py index 987fd2a..b60c171 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -23,6 +23,7 @@ from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from typing import Optional, Set from typing_extensions import Self @@ -35,7 +36,8 @@ class GetTaxesAndFeesResponseDataInnerDateRangesInner(BaseModel): amount_adult: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult] = Field(default=None, alias="amountAdult") amount_child: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild] = Field(default=None, alias="amountChild") amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]] = Field(default=None, description="Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based)", alias="amountRateBased") - __properties: ClassVar[List[str]] = ["range", "amount", "amountAdult", "amountChild", "amountRateBased"] + length_of_stay_settings: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings] = Field(default=None, alias="lengthOfStaySettings") + __properties: ClassVar[List[str]] = ["range", "amount", "amountAdult", "amountChild", "amountRateBased", "lengthOfStaySettings"] model_config = ConfigDict( populate_by_name=True, @@ -92,11 +94,19 @@ def to_dict(self) -> Dict[str, Any]: if _item_amount_rate_based: _items.append(_item_amount_rate_based.to_dict()) _dict['amountRateBased'] = _items + # override the default output from pydantic by calling `to_dict()` of length_of_stay_settings + if self.length_of_stay_settings: + _dict['lengthOfStaySettings'] = self.length_of_stay_settings.to_dict() # set to None if amount_rate_based (nullable) is None # and model_fields_set contains the field if self.amount_rate_based is None and "amount_rate_based" in self.model_fields_set: _dict['amountRateBased'] = None + # set to None if length_of_stay_settings (nullable) is None + # and model_fields_set contains the field + if self.length_of_stay_settings is None and "length_of_stay_settings" in self.model_fields_set: + _dict['lengthOfStaySettings'] = None + return _dict @classmethod @@ -113,7 +123,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "amount": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, "amountAdult": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.from_dict(obj["amountAdult"]) if obj.get("amountAdult") is not None else None, "amountChild": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.from_dict(obj["amountChild"]) if obj.get("amountChild") is not None else None, - "amountRateBased": [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None + "amountRateBased": [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None, + "lengthOfStaySettings": GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.from_dict(obj["lengthOfStaySettings"]) if obj.get("lengthOfStaySettings") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py new file mode 100644 index 0000000..c14dae5 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings(BaseModel): + """ + Length of Stay configuration settings specific to this date range + """ # noqa: E501 + application_type: Optional[StrictStr] = Field(default=None, description="Application type for Length of Stay rules", alias="applicationType") + ranges: Optional[List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner]] = Field(default=None, description="Night-based ranges for Length of Stay configuration") + __properties: ClassVar[List[str]] = ["applicationType", "ranges"] + + @field_validator('application_type') + def application_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['progressive_application', 'retroactive_adjustment']): + raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in ranges (list) + _items = [] + if self.ranges: + for _item_ranges in self.ranges: + if _item_ranges: + _items.append(_item_ranges.to_dict()) + _dict['ranges'] = _items + # set to None if application_type (nullable) is None + # and model_fields_set contains the field + if self.application_type is None and "application_type" in self.model_fields_set: + _dict['applicationType'] = None + + # set to None if ranges (nullable) is None + # and model_fields_set contains the field + if self.ranges is None and "ranges" in self.model_fields_set: + _dict['ranges'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "applicationType": obj.get("applicationType"), + "ranges": [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.from_dict(_item) for _item in obj["ranges"]] if obj.get("ranges") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py new file mode 100644 index 0000000..7a036b9 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner(BaseModel): + """ + GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner + """ # noqa: E501 + minimum_nights: Optional[StrictInt] = Field(default=None, description="Minimum number of nights required for this range", alias="minimumNights") + maximum_nights: Optional[StrictInt] = Field(default=None, description="Maximum number of nights for this range (null means no limit)", alias="maximumNights") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount for this range") + amount_adult: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount per adult for this range", alias="amountAdult") + amount_child: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount per child for this range", alias="amountChild") + amount_rate_based: Optional[List[Dict[str, Any]]] = Field(default=None, description="Rate-based amounts for this range", alias="amountRateBased") + __properties: ClassVar[List[str]] = ["minimumNights", "maximumNights", "amount", "amountAdult", "amountChild", "amountRateBased"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if maximum_nights (nullable) is None + # and model_fields_set contains the field + if self.maximum_nights is None and "maximum_nights" in self.model_fields_set: + _dict['maximumNights'] = None + + # set to None if amount (nullable) is None + # and model_fields_set contains the field + if self.amount is None and "amount" in self.model_fields_set: + _dict['amount'] = None + + # set to None if amount_adult (nullable) is None + # and model_fields_set contains the field + if self.amount_adult is None and "amount_adult" in self.model_fields_set: + _dict['amountAdult'] = None + + # set to None if amount_child (nullable) is None + # and model_fields_set contains the field + if self.amount_child is None and "amount_child" in self.model_fields_set: + _dict['amountChild'] = None + + # set to None if amount_rate_based (nullable) is None + # and model_fields_set contains the field + if self.amount_rate_based is None and "amount_rate_based" in self.model_fields_set: + _dict['amountRateBased'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minimumNights": obj.get("minimumNights"), + "maximumNights": obj.get("maximumNights"), + "amount": obj.get("amount"), + "amountAdult": obj.get("amountAdult"), + "amountChild": obj.get("amountChild"), + "amountRateBased": obj.get("amountRateBased") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py new file mode 100644 index 0000000..fb861c9 --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInnerLengthOfStaySettings(BaseModel): + """ + Length of Stay configuration settings + """ # noqa: E501 + application_type: Optional[StrictStr] = Field(default=None, description="Application type for Length of Stay rules:
ValueMeaning
progressive_applicationApply tax/fee when minimum nights are reached
retroactive_adjustmentApply adjustments retroactively when conditions are met
", alias="applicationType") + ranges: Optional[List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner]] = Field(default=None, description="Night-based ranges for Length of Stay configuration") + __properties: ClassVar[List[str]] = ["applicationType", "ranges"] + + @field_validator('application_type') + def application_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['progressive_application', 'retroactive_adjustment']): + raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in ranges (list) + _items = [] + if self.ranges: + for _item_ranges in self.ranges: + if _item_ranges: + _items.append(_item_ranges.to_dict()) + _dict['ranges'] = _items + # set to None if application_type (nullable) is None + # and model_fields_set contains the field + if self.application_type is None and "application_type" in self.model_fields_set: + _dict['applicationType'] = None + + # set to None if ranges (nullable) is None + # and model_fields_set contains the field + if self.ranges is None and "ranges" in self.model_fields_set: + _dict['ranges'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "applicationType": obj.get("applicationType"), + "ranges": [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.from_dict(_item) for _item in obj["ranges"]] if obj.get("ranges") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py new file mode 100644 index 0000000..3e5bf3c --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner(BaseModel): + """ + GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner + """ # noqa: E501 + minimum_nights: Optional[StrictInt] = Field(default=None, description="Minimum number of nights required for this range", alias="minimumNights") + maximum_nights: Optional[StrictInt] = Field(default=None, description="Maximum number of nights for this range (null means no limit)", alias="maximumNights") + amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount for this range (uses same amountType as the parent tax/fee)") + amount_adult: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount per adult for this range (uses same amountType as the parent tax/fee)", alias="amountAdult") + amount_child: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount per child for this range (uses same amountType as the parent tax/fee)", alias="amountChild") + amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner]] = Field(default=None, description="Rate-based amounts for this range (uses same amountType as the parent tax/fee)", alias="amountRateBased") + __properties: ClassVar[List[str]] = ["minimumNights", "maximumNights", "amount", "amountAdult", "amountChild", "amountRateBased"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in amount_rate_based (list) + _items = [] + if self.amount_rate_based: + for _item_amount_rate_based in self.amount_rate_based: + if _item_amount_rate_based: + _items.append(_item_amount_rate_based.to_dict()) + _dict['amountRateBased'] = _items + # set to None if maximum_nights (nullable) is None + # and model_fields_set contains the field + if self.maximum_nights is None and "maximum_nights" in self.model_fields_set: + _dict['maximumNights'] = None + + # set to None if amount (nullable) is None + # and model_fields_set contains the field + if self.amount is None and "amount" in self.model_fields_set: + _dict['amount'] = None + + # set to None if amount_adult (nullable) is None + # and model_fields_set contains the field + if self.amount_adult is None and "amount_adult" in self.model_fields_set: + _dict['amountAdult'] = None + + # set to None if amount_child (nullable) is None + # and model_fields_set contains the field + if self.amount_child is None and "amount_child" in self.model_fields_set: + _dict['amountChild'] = None + + # set to None if amount_rate_based (nullable) is None + # and model_fields_set contains the field + if self.amount_rate_based is None and "amount_rate_based" in self.model_fields_set: + _dict['amountRateBased'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minimumNights": obj.get("minimumNights"), + "maximumNights": obj.get("maximumNights"), + "amount": obj.get("amount"), + "amountAdult": obj.get("amountAdult"), + "amountChild": obj.get("amountChild"), + "amountRateBased": [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py new file mode 100644 index 0000000..37f862e --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner(BaseModel): + """ + GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner + """ # noqa: E501 + rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum rate for which this percentage is valid") + percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage applied for the rate") + __properties: ClassVar[List[str]] = ["rate", "percentage"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rate": obj.get("rate"), + "percentage": obj.get("percentage") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py new file mode 100644 index 0000000..3ac6579 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings + +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings` + """ + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings() + if include_optional: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings( + application_type = 'progressive_application', + ranges = [ + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner_lengthOfStaySettings_ranges_inner( + minimum_nights = 56, + maximum_nights = 56, + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + None + ], ) + ] + ) + else: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py new file mode 100644 index 0000000..2d6bf50 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner + +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner` + """ + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner() + if include_optional: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner( + minimum_nights = 56, + maximum_nights = 56, + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + None + ] + ) + else: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py new file mode 100644 index 0000000..1661ffe --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings + +class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettings(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerLengthOfStaySettings unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettings: + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettings + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettings` + """ + model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettings() + if include_optional: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettings( + application_type = 'progressive_application', + ranges = [ + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_ranges_inner( + minimum_nights = 56, + maximum_nights = 56, + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_ranges_inner_amountRateBased_inner( + rate = 1.337, + percentage = 1.337, ) + ], ) + ] + ) + else: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettings( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettings(self): + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettings""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py new file mode 100644 index 0000000..95fdefc --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner + +class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner: + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner` + """ + model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner() + if include_optional: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner( + minimum_nights = 56, + maximum_nights = 56, + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_ranges_inner_amountRateBased_inner( + rate = 1.337, + percentage = 1.337, ) + ] + ) + else: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner(self): + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py new file mode 100644 index 0000000..e901968 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner + +class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner: + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner` + """ + model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner() + if include_optional: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner( + rate = 1.337, + percentage = 1.337 + ) + else: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner(self): + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/openapitools.json b/openapitools.json index 3698dc0..37f2ee5 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.5.4", + "packageVersion": "1.6.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 1d127af87dc6b170dca828d8df95190832d65e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 11 Nov 2025 21:15:38 +0100 Subject: [PATCH 36/46] feat: v1.6.1 --- .openapi-generator/FILES | 355 +++++++++++++++++- README.md | 12 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 12 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- .../docs/GetPaymentMethodsResponseData.md | 2 +- .../GetPaymentMethodsResponseDataGateway.md | 31 ++ ...tPaymentMethodsResponseDataGatewayInner.md | 30 -- ...AndFeesResponseDataInnerDateRangesInner.md | 2 +- ...nnerDateRangesInnerLengthOfStaySettings.md | 4 +- ...ateRangesInnerLengthOfStaySettingsOneOf.md | 30 ++ ...erLengthOfStaySettingsOneOfRangesInner.md} | 16 +- ...esResponseDataInnerLengthOfStaySettings.md | 4 +- ...ponseDataInnerLengthOfStaySettingsOneOf.md | 30 ++ ...nerLengthOfStaySettingsOneOfRangesInner.md | 34 ++ ...ngsOneOfRangesInnerAmountRateBasedInner.md | 30 ++ ...ataInnerLengthOfStaySettingsRangesInner.md | 34 -- ...SettingsRangesInnerAmountRateBasedInner.md | 30 -- .../docs/GetUsersResponseDataInner.md | 38 -- .../docs/GetUsersResponseDataInnerUserRole.md | 31 -- cloudbeds_pms_v1_3/models/__init__.py | 10 +- .../get_payment_methods_response_data.py | 14 +- ..._payment_methods_response_data_gateway.py} | 8 +- ...s_response_data_inner_date_ranges_inner.py | 4 +- ...te_ranges_inner_length_of_stay_settings.py | 191 ++++++---- ...s_inner_length_of_stay_settings_one_of.py} | 68 ++-- ...h_of_stay_settings_one_of_ranges_inner.py} | 8 +- ...onse_data_inner_length_of_stay_settings.py | 191 ++++++---- ...ta_inner_length_of_stay_settings_one_of.py | 117 ++++++ ...h_of_stay_settings_one_of_ranges_inner.py} | 14 +- ...f_ranges_inner_amount_rate_based_inner.py} | 8 +- ...get_users_response_data_inner_user_role.py | 89 ----- .../test/test_get_groups_response.py | 4 +- .../test_get_groups_response_data_inner.py | 1 + ...oups_response_data_inner_contacts_inner.py | 1 + ..._data_inner_contacts_inner_phones_inner.py | 1 + .../test/test_get_payment_methods_response.py | 11 +- .../test_get_payment_methods_response_data.py | 11 +- ..._payment_methods_response_data_gateway.py} | 22 +- ...ent_methods_response_data_methods_inner.py | 3 +- .../test/test_get_taxes_and_fees_response.py | 8 +- ..._get_taxes_and_fees_response_data_inner.py | 8 +- ...s_response_data_inner_date_ranges_inner.py | 5 +- ...te_ranges_inner_length_of_stay_settings.py | 2 +- ...es_inner_length_of_stay_settings_one_of.py | 62 +++ ...h_of_stay_settings_one_of_ranges_inner.py} | 22 +- ...onse_data_inner_length_of_stay_settings.py | 4 +- ...ta_inner_length_of_stay_settings_one_of.py | 64 ++++ ...h_of_stay_settings_one_of_ranges_inner.py} | 24 +- ...f_ranges_inner_amount_rate_based_inner.py} | 22 +- .../test/test_get_users_response.py | 16 +- .../test_get_users_response_data_inner.py | 62 --- ...get_users_response_data_inner_user_role.py | 52 --- .../test/test_put_room_block_response.py | 2 +- openapitools.json | 2 +- 56 files changed, 1139 insertions(+), 723 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGateway.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md rename cloudbeds_pms_v1_3/docs/{GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md => GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md} (61%) create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md rename cloudbeds_pms_v1_3/models/{get_payment_methods_response_data_gateway_inner.py => get_payment_methods_response_data_gateway.py} (96%) rename cloudbeds_pms_v1_3/models/{get_users_response_data_inner.py => get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py} (60%) rename cloudbeds_pms_v1_3/models/{get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py => get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py} (96%) create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py rename cloudbeds_pms_v1_3/models/{get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py => get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py} (89%) rename cloudbeds_pms_v1_3/models/{get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py => get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py} (92%) delete mode 100644 cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py rename cloudbeds_pms_v1_3/test/{test_get_payment_methods_response_data_gateway_inner.py => test_get_payment_methods_response_data_gateway.py} (81%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py rename cloudbeds_pms_v1_3/test/{test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py => test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py} (84%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py rename cloudbeds_pms_v1_3/test/{test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py => test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py} (82%) rename cloudbeds_pms_v1_3/test/{test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py => test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py} (79%) delete mode 100644 cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index efc729a..239ee24 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -130,7 +130,7 @@ cloudbeds_pms_v1_3/docs/GetPackagesResponse.md cloudbeds_pms_v1_3/docs/GetPackagesResponseData.md cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponse.md cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md -cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md +cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGateway.md cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md @@ -206,10 +206,12 @@ cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md -cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md -cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md -cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md @@ -457,7 +459,7 @@ cloudbeds_pms_v1_3/models/get_packages_response.py cloudbeds_pms_v1_3/models/get_packages_response_data.py cloudbeds_pms_v1_3/models/get_payment_methods_response.py cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py -cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py +cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway.py cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner.py cloudbeds_pms_v1_3/models/get_payment_methods_response_data_methods_inner_card_types_inner.py cloudbeds_pms_v1_3/models/get_payments_capabilities_response.py @@ -533,10 +535,12 @@ cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inn cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py -cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py -cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py -cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_room_types_inner.py cloudbeds_pms_v1_3/models/get_userinfo_response.py cloudbeds_pms_v1_3/models/get_userinfo_response_roles_inner.py @@ -674,3 +678,338 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py +cloudbeds_pms_v1_3/test/test_adjustment_api.py +cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py +cloudbeds_pms_v1_3/test/test_app_settings_api.py +cloudbeds_pms_v1_3/test/test_authentication_api.py +cloudbeds_pms_v1_3/test/test_currency_api.py +cloudbeds_pms_v1_3/test/test_custom_fields_api.py +cloudbeds_pms_v1_3/test/test_dashboard_api.py +cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py +cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py +cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_delete_room_block_response.py +cloudbeds_pms_v1_3/test/test_delete_webhook_response.py +cloudbeds_pms_v1_3/test/test_emails_api.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_state_response.py +cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_files_response.py +cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py +cloudbeds_pms_v1_3/test/test_get_groups_response.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_3/test/test_get_hotels_response.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response.py +cloudbeds_pms_v1_3/test/test_get_item_response_data.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_items_response.py +cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_metadata_response.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py +cloudbeds_pms_v1_3/test/test_get_packages_response.py +cloudbeds_pms_v1_3/test/test_get_packages_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_response.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_3/test/test_groups_api.py +cloudbeds_pms_v1_3/test/test_guest_api.py +cloudbeds_pms_v1_3/test/test_hotel_api.py +cloudbeds_pms_v1_3/test/test_house_account_api.py +cloudbeds_pms_v1_3/test/test_housekeeping_api.py +cloudbeds_pms_v1_3/test/test_integration_api.py +cloudbeds_pms_v1_3/test/test_item_api.py +cloudbeds_pms_v1_3/test/test_package_api.py +cloudbeds_pms_v1_3/test/test_payment_api.py +cloudbeds_pms_v1_3/test/test_post_access_token_response.py +cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_error_response.py +cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_state_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_card_response.py +cloudbeds_pms_v1_3/test/test_post_card_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py +cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py +cloudbeds_pms_v1_3/test/test_post_email_template_response.py +cloudbeds_pms_v1_3/test/test_post_file_response.py +cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py +cloudbeds_pms_v1_3/test/test_post_guest_note_response.py +cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py +cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_response.py +cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py +cloudbeds_pms_v1_3/test/test_post_item_category_response.py +cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_item_response.py +cloudbeds_pms_v1_3/test/test_post_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py +cloudbeds_pms_v1_3/test/test_post_payment_response.py +cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_put_group_response.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_post_room_assign_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_block_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py +cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_void_item_response.py +cloudbeds_pms_v1_3/test/test_post_void_payment_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py +cloudbeds_pms_v1_3/test/test_put_guest_note_response.py +cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_guest_response.py +cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py +cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_response.py +cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_room_block_response.py +cloudbeds_pms_v1_3/test/test_rate_api.py +cloudbeds_pms_v1_3/test/test_reservation_api.py +cloudbeds_pms_v1_3/test/test_room_api.py +cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py +cloudbeds_pms_v1_3/test/test_user_api.py diff --git a/README.md b/README.md index d779d12..a73b217 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.6.0 +- Package version: 1.6.1 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -293,7 +293,7 @@ Class | Method | HTTP request | Description - [GetPackagesResponseData](cloudbeds_pms_v1_3/docs/GetPackagesResponseData.md) - [GetPaymentMethodsResponse](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponse.md) - [GetPaymentMethodsResponseData](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md) - - [GetPaymentMethodsResponseDataGatewayInner](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md) + - [GetPaymentMethodsResponseDataGateway](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGateway.md) - [GetPaymentMethodsResponseDataMethodsInner](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInner.md) - [GetPaymentMethodsResponseDataMethodsInnerCardTypesInner](cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataMethodsInnerCardTypesInner.md) - [GetPaymentsCapabilitiesResponse](cloudbeds_pms_v1_3/docs/GetPaymentsCapabilitiesResponse.md) @@ -369,10 +369,12 @@ Class | Method | HTTP request | Description - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md) - - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md) - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettings](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md) - - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md) - - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md) + - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md) + - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.md) - [GetTaxesAndFeesResponseDataInnerRoomTypesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerRoomTypesInner.md) - [GetUserinfoResponse](cloudbeds_pms_v1_3/docs/GetUserinfoResponse.md) - [GetUserinfoResponseRolesInner](cloudbeds_pms_v1_3/docs/GetUserinfoResponseRolesInner.md) diff --git a/VERSION b/VERSION index dc1e644..9c6d629 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.6.0 +1.6.1 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 378a004..b9a1d5e 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.6.0" +__version__ = "1.6.1" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -148,7 +148,7 @@ from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway import GetPaymentMethodsResponseDataGateway from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse @@ -224,10 +224,12 @@ from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 5de0a62..9cae8a5 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.6.0/python' + self.user_agent = 'OpenAPI-Generator/1.6.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 03d3f1b..44aedb2 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.6.0".\ + "SDK Package Version: 1.6.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md index a4b095b..f70b504 100644 --- a/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **property_id** | **str** | Property ID | [optional] **methods** | [**List[GetPaymentMethodsResponseDataMethodsInner]**](GetPaymentMethodsResponseDataMethodsInner.md) | List of active methods enabled | [optional] -**gateway** | [**List[GetPaymentMethodsResponseDataGatewayInner]**](GetPaymentMethodsResponseDataGatewayInner.md) | Payment Gateway used by property | [optional] +**gateway** | [**GetPaymentMethodsResponseDataGateway**](GetPaymentMethodsResponseDataGateway.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGateway.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGateway.md new file mode 100644 index 0000000..d1d99c3 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGateway.md @@ -0,0 +1,31 @@ +# GetPaymentMethodsResponseDataGateway + +Payment Gateway used by property + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Gateway name | [optional] +**currency** | **str** | 3 letters iso code | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway import GetPaymentMethodsResponseDataGateway + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPaymentMethodsResponseDataGateway from a JSON string +get_payment_methods_response_data_gateway_instance = GetPaymentMethodsResponseDataGateway.from_json(json) +# print the JSON string representation of the object +print(GetPaymentMethodsResponseDataGateway.to_json()) + +# convert the object into a dict +get_payment_methods_response_data_gateway_dict = get_payment_methods_response_data_gateway_instance.to_dict() +# create an instance of GetPaymentMethodsResponseDataGateway from a dict +get_payment_methods_response_data_gateway_from_dict = GetPaymentMethodsResponseDataGateway.from_dict(get_payment_methods_response_data_gateway_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md b/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md deleted file mode 100644 index 33fe1e1..0000000 --- a/cloudbeds_pms_v1_3/docs/GetPaymentMethodsResponseDataGatewayInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetPaymentMethodsResponseDataGatewayInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Gateway name | [optional] -**currency** | **str** | 3 letters iso code | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPaymentMethodsResponseDataGatewayInner from a JSON string -get_payment_methods_response_data_gateway_inner_instance = GetPaymentMethodsResponseDataGatewayInner.from_json(json) -# print the JSON string representation of the object -print(GetPaymentMethodsResponseDataGatewayInner.to_json()) - -# convert the object into a dict -get_payment_methods_response_data_gateway_inner_dict = get_payment_methods_response_data_gateway_inner_instance.to_dict() -# create an instance of GetPaymentMethodsResponseDataGatewayInner from a dict -get_payment_methods_response_data_gateway_inner_from_dict = GetPaymentMethodsResponseDataGatewayInner.from_dict(get_payment_methods_response_data_gateway_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md index 7d5766a..9037a02 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**range** | **object** | ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD | [optional] +**range** | **str** | ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD | [optional] **amount** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md) | | [optional] **amount_adult** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) | | [optional] **amount_child** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) | | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md index 3c2aacc..77053e5 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md @@ -1,13 +1,13 @@ # GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings -Length of Stay configuration settings specific to this date range +Length of Stay configuration settings specific to this date range. Returns object when settings exist, empty array [] when no settings configured. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **application_type** | **str** | Application type for Length of Stay rules | [optional] -**ranges** | [**List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner]**](GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] +**ranges** | [**List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner]**](GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md new file mode 100644 index 0000000..ade2f3d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md @@ -0,0 +1,30 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_type** | **str** | Application type for Length of Stay rules | [optional] +**ranges** | [**List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner]**](GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md similarity index 61% rename from cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md rename to cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md index 0a4f981..c2f3a14 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md @@ -1,4 +1,4 @@ -# GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +# GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner ## Properties @@ -15,19 +15,19 @@ Name | Type | Description | Notes ## Example ```python -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner # TODO update the JSON string below json = "{}" -# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a JSON string -get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.from_json(json) +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.from_json(json) # print the JSON string representation of the object -print(GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.to_json()) +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.to_json()) # convert the object into a dict -get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_instance.to_dict() -# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a dict -get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner_dict) +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md index 0a828cd..638243a 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md @@ -1,13 +1,13 @@ # GetTaxesAndFeesResponseDataInnerLengthOfStaySettings -Length of Stay configuration settings +Length of Stay configuration settings. Returns object when settings exist, empty array [] when no settings configured. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **application_type** | **str** | Application type for Length of Stay rules:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>progressive_application</td><td>Apply tax/fee when minimum nights are reached</td></tr> <tr><td>retroactive_adjustment</td><td>Apply adjustments retroactively when conditions are met</td></tr> </table> | [optional] -**ranges** | [**List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner]**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] +**ranges** | [**List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner]**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md new file mode 100644 index 0000000..d2654c5 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md @@ -0,0 +1,30 @@ +# GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_type** | **str** | Application type for Length of Stay rules:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>progressive_application</td><td>Apply tax/fee when minimum nights are reached</td></tr> <tr><td>retroactive_adjustment</td><td>Apply adjustments retroactively when conditions are met</td></tr> </table> | [optional] +**ranges** | [**List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner]**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md) | Night-based ranges for Length of Stay configuration | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf from a JSON string +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf from a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md new file mode 100644 index 0000000..8b22535 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md @@ -0,0 +1,34 @@ +# GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minimum_nights** | **int** | Minimum number of nights required for this range | [optional] +**maximum_nights** | **int** | Maximum number of nights for this range (null means no limit) | [optional] +**amount** | **float** | Amount for this range (uses same amountType as the parent tax/fee) | [optional] +**amount_adult** | **float** | Amount per adult for this range (uses same amountType as the parent tax/fee) | [optional] +**amount_child** | **float** | Amount per child for this range (uses same amountType as the parent tax/fee) | [optional] +**amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.md) | Rate-based amounts for this range (uses same amountType as the parent tax/fee) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner from a JSON string +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner from a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.md new file mode 100644 index 0000000..377f85b --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.md @@ -0,0 +1,30 @@ +# GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rate** | **float** | Maximum rate for which this percentage is valid | [optional] +**percentage** | **float** | Percentage applied for the rate | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner from a JSON string +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner from a dict +get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md deleted file mode 100644 index 2d9087d..0000000 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.md +++ /dev/null @@ -1,34 +0,0 @@ -# GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**minimum_nights** | **int** | Minimum number of nights required for this range | [optional] -**maximum_nights** | **int** | Maximum number of nights for this range (null means no limit) | [optional] -**amount** | **float** | Amount for this range (uses same amountType as the parent tax/fee) | [optional] -**amount_adult** | **float** | Amount per adult for this range (uses same amountType as the parent tax/fee) | [optional] -**amount_child** | **float** | Amount per child for this range (uses same amountType as the parent tax/fee) | [optional] -**amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md) | Rate-based amounts for this range (uses same amountType as the parent tax/fee) | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a JSON string -get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.from_json(json) -# print the JSON string representation of the object -print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.to_json()) - -# convert the object into a dict -get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_instance.to_dict() -# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a dict -get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md deleted file mode 100644 index 164907a..0000000 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rate** | **float** | Maximum rate for which this percentage is valid | [optional] -**percentage** | **float** | Percentage applied for the rate | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a JSON string -get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.from_json(json) -# print the JSON string representation of the object -print(GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.to_json()) - -# convert the object into a dict -get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_dict = get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_instance.to_dict() -# create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a dict -get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_from_dict = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.from_dict(get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md deleted file mode 100644 index efe63a7..0000000 --- a/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInner.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetUsersResponseDataInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **str** | User ID | [optional] -**first_name** | **str** | First Name | [optional] -**last_name** | **str** | Last Name | [optional] -**email** | **str** | Email | [optional] -**language** | **str** | User Language|Property Default Language. See the full list of available language parameters <a target=\"_blank\" href=\"https://integrations.cloudbeds.com/hc/en-us/articles/360007144993-FAQ#methods-and-parameters\">here</a> | [optional] -**user_role** | [**GetUsersResponseDataInnerUserRole**](GetUsersResponseDataInnerUserRole.md) | | [optional] -**active** | **str** | | [optional] -**last_login** | **date** | Date and time of the last login event | [optional] -**property_id** | **str** | Property numeric identifier | [optional] -**organization_id** | **str** | Organization ID | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUsersResponseDataInner from a JSON string -get_users_response_data_inner_instance = GetUsersResponseDataInner.from_json(json) -# print the JSON string representation of the object -print(GetUsersResponseDataInner.to_json()) - -# convert the object into a dict -get_users_response_data_inner_dict = get_users_response_data_inner_instance.to_dict() -# create an instance of GetUsersResponseDataInner from a dict -get_users_response_data_inner_from_dict = GetUsersResponseDataInner.from_dict(get_users_response_data_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md b/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md deleted file mode 100644 index 08e3e92..0000000 --- a/cloudbeds_pms_v1_3/docs/GetUsersResponseDataInnerUserRole.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetUsersResponseDataInnerUserRole - -Details for the role - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Role's name | [optional] -**description** | **str** | Role's description | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUsersResponseDataInnerUserRole from a JSON string -get_users_response_data_inner_user_role_instance = GetUsersResponseDataInnerUserRole.from_json(json) -# print the JSON string representation of the object -print(GetUsersResponseDataInnerUserRole.to_json()) - -# convert the object into a dict -get_users_response_data_inner_user_role_dict = get_users_response_data_inner_user_role_instance.to_dict() -# create an instance of GetUsersResponseDataInnerUserRole from a dict -get_users_response_data_inner_user_role_from_dict = GetUsersResponseDataInnerUserRole.from_dict(get_users_response_data_inner_user_role_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index f57d6a0..d78c454 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -110,7 +110,7 @@ from cloudbeds_pms_v1_3.models.get_packages_response_data import GetPackagesResponseData from cloudbeds_pms_v1_3.models.get_payment_methods_response import GetPaymentMethodsResponse from cloudbeds_pms_v1_3.models.get_payment_methods_response_data import GetPaymentMethodsResponseData -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway import GetPaymentMethodsResponseDataGateway from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner import GetPaymentMethodsResponseDataMethodsInnerCardTypesInner from cloudbeds_pms_v1_3.models.get_payments_capabilities_response import GetPaymentsCapabilitiesResponse @@ -186,10 +186,12 @@ from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_room_types_inner import GetTaxesAndFeesResponseDataInnerRoomTypesInner from cloudbeds_pms_v1_3.models.get_userinfo_response import GetUserinfoResponse from cloudbeds_pms_v1_3.models.get_userinfo_response_roles_inner import GetUserinfoResponseRolesInner diff --git a/cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py index d004484..8c7fef6 100644 --- a/cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway import GetPaymentMethodsResponseDataGateway from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner import GetPaymentMethodsResponseDataMethodsInner from typing import Optional, Set from typing_extensions import Self @@ -30,7 +30,7 @@ class GetPaymentMethodsResponseData(BaseModel): """ # noqa: E501 property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") methods: Optional[List[GetPaymentMethodsResponseDataMethodsInner]] = Field(default=None, description="List of active methods enabled") - gateway: Optional[List[GetPaymentMethodsResponseDataGatewayInner]] = Field(default=None, description="Payment Gateway used by property") + gateway: Optional[GetPaymentMethodsResponseDataGateway] = None __properties: ClassVar[List[str]] = ["propertyID", "methods", "gateway"] model_config = ConfigDict( @@ -79,13 +79,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_methods: _items.append(_item_methods.to_dict()) _dict['methods'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in gateway (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of gateway if self.gateway: - for _item_gateway in self.gateway: - if _item_gateway: - _items.append(_item_gateway.to_dict()) - _dict['gateway'] = _items + _dict['gateway'] = self.gateway.to_dict() return _dict @classmethod @@ -100,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "propertyID": obj.get("propertyID"), "methods": [GetPaymentMethodsResponseDataMethodsInner.from_dict(_item) for _item in obj["methods"]] if obj.get("methods") is not None else None, - "gateway": [GetPaymentMethodsResponseDataGatewayInner.from_dict(_item) for _item in obj["gateway"]] if obj.get("gateway") is not None else None + "gateway": GetPaymentMethodsResponseDataGateway.from_dict(obj["gateway"]) if obj.get("gateway") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway.py similarity index 96% rename from cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py rename to cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway.py index e909073..625f02f 100644 --- a/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway_inner.py +++ b/cloudbeds_pms_v1_3/models/get_payment_methods_response_data_gateway.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class GetPaymentMethodsResponseDataGatewayInner(BaseModel): +class GetPaymentMethodsResponseDataGateway(BaseModel): """ - GetPaymentMethodsResponseDataGatewayInner + Payment Gateway used by property """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, description="Gateway name") currency: Optional[StrictStr] = Field(default=None, description="3 letters iso code") @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPaymentMethodsResponseDataGatewayInner from a JSON string""" + """Create an instance of GetPaymentMethodsResponseDataGateway from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPaymentMethodsResponseDataGatewayInner from a dict""" + """Create an instance of GetPaymentMethodsResponseDataGateway from a dict""" if obj is None: return None diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py index b60c171..97d76dd 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount @@ -31,7 +31,7 @@ class GetTaxesAndFeesResponseDataInnerDateRangesInner(BaseModel): """ GetTaxesAndFeesResponseDataInnerDateRangesInner """ # noqa: E501 - range: Optional[Dict[str, Any]] = Field(default=None, description="ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD") + range: Optional[StrictStr] = Field(default=None, description="ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD") amount: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount] = None amount_adult: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult] = Field(default=None, alias="amountAdult") amount_child: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild] = Field(default=None, alias="amountChild") diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py index c14dae5..30c42ed 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py @@ -13,105 +13,134 @@ from __future__ import annotations -import pprint -import re # noqa: F401 import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner -from typing import Optional, Set -from typing_extensions import Self +GETTAXESANDFEESRESPONSEDATAINNERDATERANGESINNERLENGTHOFSTAYSETTINGS_ONE_OF_SCHEMAS = ["GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf", "List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]"] class GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings(BaseModel): """ - Length of Stay configuration settings specific to this date range - """ # noqa: E501 - application_type: Optional[StrictStr] = Field(default=None, description="Application type for Length of Stay rules", alias="applicationType") - ranges: Optional[List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner]] = Field(default=None, description="Night-based ranges for Length of Stay configuration") - __properties: ClassVar[List[str]] = ["applicationType", "ranges"] - - @field_validator('application_type') - def application_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['progressive_application', 'retroactive_adjustment']): - raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") - return value + Length of Stay configuration settings specific to this date range. Returns object when settings exist, empty array [] when no settings configured. + """ + # data type: GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf + oneof_schema_1_validator: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf] = None + # data type: List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf] + oneof_schema_2_validator: Optional[List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]] = None + actual_instance: Optional[Union[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]]] = None + one_of_schemas: Set[str] = { "GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf", "List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]" } model_config = ConfigDict( - populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + if v is None: + return v + + instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.model_construct() + error_messages = [] + match = 0 + # validate data type: GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf + if not isinstance(v, GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf`") + else: + match += 1 + # validate data type: List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf] + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + else: + return v @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in ranges (list) - _items = [] - if self.ranges: - for _item_ranges in self.ranges: - if _item_ranges: - _items.append(_item_ranges.to_dict()) - _dict['ranges'] = _items - # set to None if application_type (nullable) is None - # and model_fields_set contains the field - if self.application_type is None and "application_type" in self.model_fields_set: - _dict['applicationType'] = None - - # set to None if ranges (nullable) is None - # and model_fields_set contains the field - if self.ranges is None and "ranges" in self.model_fields_set: - _dict['ranges'] = None - - return _dict + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from a dict""" - if obj is None: + def from_json(cls, json_str: Optional[str]) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + match = 0 + + # deserialize data into GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf + try: + instance.actual_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf] + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance - _obj = cls.model_validate({ - "applicationType": obj.get("applicationType"), - "ranges": [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner.from_dict(_item) for _item in obj["ranges"]] if obj.get("ranges") is not None else None - }) - return _obj + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/cloudbeds_pms_v1_3/models/get_users_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py similarity index 60% rename from cloudbeds_pms_v1_3/models/get_users_response_data_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py index e33ba0d..a9a328c 100644 --- a/cloudbeds_pms_v1_3/models/get_users_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py @@ -17,37 +17,28 @@ import re # noqa: F401 import json -from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner from typing import Optional, Set from typing_extensions import Self -class GetUsersResponseDataInner(BaseModel): +class GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf(BaseModel): """ - GetUsersResponseDataInner + GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf """ # noqa: E501 - user_id: Optional[StrictStr] = Field(default=None, description="User ID", alias="userID") - first_name: Optional[StrictStr] = Field(default=None, description="First Name", alias="firstName") - last_name: Optional[StrictStr] = Field(default=None, description="Last Name", alias="lastName") - email: Optional[StrictStr] = Field(default=None, description="Email") - language: Optional[StrictStr] = Field(default=None, description="User Language|Property Default Language. See the full list of available language parameters here") - user_role: Optional[GetUsersResponseDataInnerUserRole] = Field(default=None, alias="userRole") - active: Optional[StrictStr] = None - last_login: Optional[date] = Field(default=None, description="Date and time of the last login event", alias="lastLogin") - property_id: Optional[StrictStr] = Field(default=None, description="Property numeric identifier", alias="propertyId") - organization_id: Optional[StrictStr] = Field(default=None, description="Organization ID", alias="organizationID") - __properties: ClassVar[List[str]] = ["userID", "firstName", "lastName", "email", "language", "userRole", "active", "lastLogin", "propertyId", "organizationID"] - - @field_validator('active') - def active_validate_enum(cls, value): + application_type: Optional[StrictStr] = Field(default=None, description="Application type for Length of Stay rules", alias="applicationType") + ranges: Optional[List[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner]] = Field(default=None, description="Night-based ranges for Length of Stay configuration") + __properties: ClassVar[List[str]] = ["applicationType", "ranges"] + + @field_validator('application_type') + def application_type_validate_enum(cls, value): """Validates the enum""" if value is None: return value - if value not in set(['yes', 'no']): - raise ValueError("must be one of enum values ('yes', 'no')") + if value not in set(['progressive_application', 'retroactive_adjustment']): + raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") return value model_config = ConfigDict( @@ -68,7 +59,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetUsersResponseDataInner from a JSON string""" + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -89,19 +80,28 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of user_role - if self.user_role: - _dict['userRole'] = self.user_role.to_dict() - # set to None if organization_id (nullable) is None + # override the default output from pydantic by calling `to_dict()` of each item in ranges (list) + _items = [] + if self.ranges: + for _item_ranges in self.ranges: + if _item_ranges: + _items.append(_item_ranges.to_dict()) + _dict['ranges'] = _items + # set to None if application_type (nullable) is None + # and model_fields_set contains the field + if self.application_type is None and "application_type" in self.model_fields_set: + _dict['applicationType'] = None + + # set to None if ranges (nullable) is None # and model_fields_set contains the field - if self.organization_id is None and "organization_id" in self.model_fields_set: - _dict['organizationID'] = None + if self.ranges is None and "ranges" in self.model_fields_set: + _dict['ranges'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetUsersResponseDataInner from a dict""" + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf from a dict""" if obj is None: return None @@ -109,16 +109,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "userID": obj.get("userID"), - "firstName": obj.get("firstName"), - "lastName": obj.get("lastName"), - "email": obj.get("email"), - "language": obj.get("language"), - "userRole": GetUsersResponseDataInnerUserRole.from_dict(obj["userRole"]) if obj.get("userRole") is not None else None, - "active": obj.get("active"), - "lastLogin": obj.get("lastLogin"), - "propertyId": obj.get("propertyId"), - "organizationID": obj.get("organizationID") + "applicationType": obj.get("applicationType"), + "ranges": [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.from_dict(_item) for _item in obj["ranges"]] if obj.get("ranges") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py similarity index 96% rename from cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py index 7a036b9..292e7fa 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner(BaseModel): +class GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner(BaseModel): """ - GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner + GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner """ # noqa: E501 minimum_nights: Optional[StrictInt] = Field(default=None, description="Minimum number of nights required for this range", alias="minimumNights") maximum_nights: Optional[StrictInt] = Field(default=None, description="Maximum number of nights for this range (null means no limit)", alias="maximumNights") @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a JSON string""" + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -102,7 +102,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner from a dict""" + """Create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner from a dict""" if obj is None: return None diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py index fb861c9..f35126e 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py @@ -13,105 +13,134 @@ from __future__ import annotations -import pprint -import re # noqa: F401 import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner -from typing import Optional, Set -from typing_extensions import Self +GETTAXESANDFEESRESPONSEDATAINNERLENGTHOFSTAYSETTINGS_ONE_OF_SCHEMAS = ["GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf", "List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]"] class GetTaxesAndFeesResponseDataInnerLengthOfStaySettings(BaseModel): """ - Length of Stay configuration settings - """ # noqa: E501 - application_type: Optional[StrictStr] = Field(default=None, description="Application type for Length of Stay rules:
ValueMeaning
progressive_applicationApply tax/fee when minimum nights are reached
retroactive_adjustmentApply adjustments retroactively when conditions are met
", alias="applicationType") - ranges: Optional[List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner]] = Field(default=None, description="Night-based ranges for Length of Stay configuration") - __properties: ClassVar[List[str]] = ["applicationType", "ranges"] - - @field_validator('application_type') - def application_type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['progressive_application', 'retroactive_adjustment']): - raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") - return value + Length of Stay configuration settings. Returns object when settings exist, empty array [] when no settings configured. + """ + # data type: GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + oneof_schema_1_validator: Optional[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf] = None + # data type: List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf] + oneof_schema_2_validator: Optional[List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]] = None + actual_instance: Optional[Union[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]]] = None + one_of_schemas: Set[str] = { "GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf", "List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]" } model_config = ConfigDict( - populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + if v is None: + return v + + instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.model_construct() + error_messages = [] + match = 0 + # validate data type: GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + if not isinstance(v, GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf`") + else: + match += 1 + # validate data type: List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf] + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + else: + return v @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in ranges (list) - _items = [] - if self.ranges: - for _item_ranges in self.ranges: - if _item_ranges: - _items.append(_item_ranges.to_dict()) - _dict['ranges'] = _items - # set to None if application_type (nullable) is None - # and model_fields_set contains the field - if self.application_type is None and "application_type" in self.model_fields_set: - _dict['applicationType'] = None - - # set to None if ranges (nullable) is None - # and model_fields_set contains the field - if self.ranges is None and "ranges" in self.model_fields_set: - _dict['ranges'] = None - - return _dict + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from a dict""" - if obj is None: + def from_json(cls, json_str: Optional[str]) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + if json_str is None: + return instance + + error_messages = [] + match = 0 + + # deserialize data into GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + try: + instance.actual_instance = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf] + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerLengthOfStaySettings with oneOf schemas: GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf, List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance - _obj = cls.model_validate({ - "applicationType": obj.get("applicationType"), - "ranges": [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner.from_dict(_item) for _item in obj["ranges"]] if obj.get("ranges") is not None else None - }) - return _obj + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py new file mode 100644 index 0000000..3325dac --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner +from typing import Optional, Set +from typing_extensions import Self + +class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf(BaseModel): + """ + GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + """ # noqa: E501 + application_type: Optional[StrictStr] = Field(default=None, description="Application type for Length of Stay rules:
ValueMeaning
progressive_applicationApply tax/fee when minimum nights are reached
retroactive_adjustmentApply adjustments retroactively when conditions are met
", alias="applicationType") + ranges: Optional[List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner]] = Field(default=None, description="Night-based ranges for Length of Stay configuration") + __properties: ClassVar[List[str]] = ["applicationType", "ranges"] + + @field_validator('application_type') + def application_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['progressive_application', 'retroactive_adjustment']): + raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in ranges (list) + _items = [] + if self.ranges: + for _item_ranges in self.ranges: + if _item_ranges: + _items.append(_item_ranges.to_dict()) + _dict['ranges'] = _items + # set to None if application_type (nullable) is None + # and model_fields_set contains the field + if self.application_type is None and "application_type" in self.model_fields_set: + _dict['applicationType'] = None + + # set to None if ranges (nullable) is None + # and model_fields_set contains the field + if self.ranges is None and "ranges" in self.model_fields_set: + _dict['ranges'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "applicationType": obj.get("applicationType"), + "ranges": [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.from_dict(_item) for _item in obj["ranges"]] if obj.get("ranges") is not None else None + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py similarity index 89% rename from cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py index 3e5bf3c..1bb941d 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py @@ -19,20 +19,20 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner from typing import Optional, Set from typing_extensions import Self -class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner(BaseModel): +class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner(BaseModel): """ - GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner + GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner """ # noqa: E501 minimum_nights: Optional[StrictInt] = Field(default=None, description="Minimum number of nights required for this range", alias="minimumNights") maximum_nights: Optional[StrictInt] = Field(default=None, description="Maximum number of nights for this range (null means no limit)", alias="maximumNights") amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount for this range (uses same amountType as the parent tax/fee)") amount_adult: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount per adult for this range (uses same amountType as the parent tax/fee)", alias="amountAdult") amount_child: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount per child for this range (uses same amountType as the parent tax/fee)", alias="amountChild") - amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner]] = Field(default=None, description="Rate-based amounts for this range (uses same amountType as the parent tax/fee)", alias="amountRateBased") + amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner]] = Field(default=None, description="Rate-based amounts for this range (uses same amountType as the parent tax/fee)", alias="amountRateBased") __properties: ClassVar[List[str]] = ["minimumNights", "maximumNights", "amount", "amountAdult", "amountChild", "amountRateBased"] model_config = ConfigDict( @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a JSON string""" + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -110,7 +110,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner from a dict""" + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner from a dict""" if obj is None: return None @@ -123,7 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "amount": obj.get("amount"), "amountAdult": obj.get("amountAdult"), "amountChild": obj.get("amountChild"), - "amountRateBased": [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None + "amountRateBased": [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py similarity index 92% rename from cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py index 37f862e..58d05f5 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner(BaseModel): +class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner(BaseModel): """ - GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner + GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner """ # noqa: E501 rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum rate for which this percentage is valid") percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage applied for the rate") @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a JSON string""" + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner from a dict""" + """Create an instance of GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner from a dict""" if obj is None: return None diff --git a/cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py b/cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py deleted file mode 100644 index dab0d6d..0000000 --- a/cloudbeds_pms_v1_3/models/get_users_response_data_inner_user_role.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetUsersResponseDataInnerUserRole(BaseModel): - """ - Details for the role - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="Role's name") - description: Optional[StrictStr] = Field(default=None, description="Role's description") - __properties: ClassVar[List[str]] = ["name", "description"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetUsersResponseDataInnerUserRole from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetUsersResponseDataInnerUserRole from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "description": obj.get("description") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response.py b/cloudbeds_pms_v1_3/test/test_get_groups_response.py index 17a3573..bb1fe9c 100644 --- a/cloudbeds_pms_v1_3/test/test_get_groups_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response.py @@ -74,6 +74,7 @@ def make_instance(self, include_optional) -> GetGroupsResponse: ], phones = [ cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner.GetGroupsResponse_data_inner_contacts_inner_phones_inner( + type = 'home', value = '', ) ], is_billing_recipient = True, @@ -87,8 +88,7 @@ def make_instance(self, include_optional) -> GetGroupsResponse: country_code = '', zip = '', ) ], ) - ], - cell_phone = 'home' + ] ) else: return GetGroupsResponse( diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py index 33ee6c5..d687b62 100644 --- a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py @@ -71,6 +71,7 @@ def make_instance(self, include_optional) -> GetGroupsResponseDataInner: ], phones = [ cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner.GetGroupsResponse_data_inner_contacts_inner_phones_inner( + type = 'home', value = '', ) ], is_billing_recipient = True, diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py index 95aef03..b023291 100644 --- a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py @@ -52,6 +52,7 @@ def make_instance(self, include_optional) -> GetGroupsResponseDataInnerContactsI ], phones = [ cloudbeds_pms_v1_3.models.get_groups_response_data_inner_contacts_inner_phones_inner.GetGroupsResponse_data_inner_contacts_inner_phones_inner( + type = 'home', value = '', ) ], is_billing_recipient = True, diff --git a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py index e5be79f..3b2235f 100644 --- a/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetGroupsResponseDataInnerContactsI model = GetGroupsResponseDataInnerContactsInnerPhonesInner() if include_optional: return GetGroupsResponseDataInnerContactsInnerPhonesInner( + type = 'home', value = '' ) else: diff --git a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py index 58271d8..4824732 100644 --- a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py @@ -40,7 +40,8 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponse: property_id = '', methods = [ cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( - type = '', + method = '', + code = '', name = '', card_types = [ cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( @@ -48,11 +49,9 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponse: card_name = '', ) ], ) ], - gateway = [ - cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( - name = '', - currency = '', ) - ], ) + gateway = cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway.GetPaymentMethodsResponse_data_gateway( + name = '', + currency = '', ), ) ) else: return GetPaymentMethodsResponse( diff --git a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py index 6d27db3..c655260 100644 --- a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py @@ -38,7 +38,8 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponseData: property_id = '', methods = [ cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner.GetPaymentMethodsResponse_data_methods_inner( - type = '', + method = '', + code = '', name = '', card_types = [ cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( @@ -46,11 +47,9 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponseData: card_name = '', ) ], ) ], - gateway = [ - cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner.GetPaymentMethodsResponse_data_gateway_inner( - name = '', - currency = '', ) - ] + gateway = cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway.GetPaymentMethodsResponse_data_gateway( + name = '', + currency = '', ) ) else: return GetPaymentMethodsResponseData( diff --git a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway.py similarity index 81% rename from cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py rename to cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway.py index 9221da9..56ab73b 100644 --- a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway_inner import GetPaymentMethodsResponseDataGatewayInner +from cloudbeds_pms_v1_3.models.get_payment_methods_response_data_gateway import GetPaymentMethodsResponseDataGateway -class TestGetPaymentMethodsResponseDataGatewayInner(unittest.TestCase): - """GetPaymentMethodsResponseDataGatewayInner unit test stubs""" +class TestGetPaymentMethodsResponseDataGateway(unittest.TestCase): + """GetPaymentMethodsResponseDataGateway unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetPaymentMethodsResponseDataGatewayInner: - """Test GetPaymentMethodsResponseDataGatewayInner + def make_instance(self, include_optional) -> GetPaymentMethodsResponseDataGateway: + """Test GetPaymentMethodsResponseDataGateway include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetPaymentMethodsResponseDataGatewayInner` + # uncomment below to create an instance of `GetPaymentMethodsResponseDataGateway` """ - model = GetPaymentMethodsResponseDataGatewayInner() + model = GetPaymentMethodsResponseDataGateway() if include_optional: - return GetPaymentMethodsResponseDataGatewayInner( + return GetPaymentMethodsResponseDataGateway( name = '', currency = '' ) else: - return GetPaymentMethodsResponseDataGatewayInner( + return GetPaymentMethodsResponseDataGateway( ) """ - def testGetPaymentMethodsResponseDataGatewayInner(self): - """Test GetPaymentMethodsResponseDataGatewayInner""" + def testGetPaymentMethodsResponseDataGateway(self): + """Test GetPaymentMethodsResponseDataGateway""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py index 911c4ea..4375c61 100644 --- a/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py @@ -35,7 +35,8 @@ def make_instance(self, include_optional) -> GetPaymentMethodsResponseDataMethod model = GetPaymentMethodsResponseDataMethodsInner() if include_optional: return GetPaymentMethodsResponseDataMethodsInner( - type = '', + method = '', + code = '', name = '', card_types = [ cloudbeds_pms_v1_3.models.get_payment_methods_response_data_methods_inner_card_types_inner.GetPaymentMethodsResponse_data_methods_inner_cardTypes_inner( diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py index 8855555..18714b9 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py @@ -72,11 +72,13 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: ], date_ranges = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( - range = cloudbeds_pms_v1_3.models.range.range(), + range = '', amount = null, amount_adult = null, - amount_child = null, ) - ], ) + amount_child = null, + length_of_stay_settings = null, ) + ], + length_of_stay_settings = null, ) ], total = 56 ) diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py index 2c8780c..574b586 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py @@ -68,7 +68,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: ], date_ranges = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( - range = cloudbeds_pms_v1_3.models.range.range(), + range = '', amount = null, amount_adult = null, amount_child = null, @@ -76,8 +76,10 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = null, percentage = null, ) - ], ) - ] + ], + length_of_stay_settings = null, ) + ], + length_of_stay_settings = None ) else: return GetTaxesAndFeesResponseDataInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py index dfef952..7668a77 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDat model = GetTaxesAndFeesResponseDataInnerDateRangesInner() if include_optional: return GetTaxesAndFeesResponseDataInnerDateRangesInner( - range = cloudbeds_pms_v1_3.models.range.range(), + range = '', amount = None, amount_adult = None, amount_child = None, @@ -43,7 +43,8 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDat cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = null, percentage = null, ) - ] + ], + length_of_stay_settings = None ) else: return GetTaxesAndFeesResponseDataInnerDateRangesInner( diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py index 3ac6579..8894d98 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDat return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings( application_type = 'progressive_application', ranges = [ - cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner_lengthOfStaySettings_ranges_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner_lengthOfStaySettings_oneOf_ranges_inner( minimum_nights = 56, maximum_nights = 56, amount = 1.337, diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py new file mode 100644 index 0000000..e26cc37 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf + +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf` + """ + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf() + if include_optional: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf( + application_type = 'progressive_application', + ranges = [ + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner_lengthOfStaySettings_oneOf_ranges_inner( + minimum_nights = 56, + maximum_nights = 56, + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + None + ], ) + ] + ) + else: + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py similarity index 84% rename from cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py index 2d6bf50..8754d3b 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner -class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner(unittest.TestCase): - """GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner unit test stubs""" +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner: - """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner` + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner` """ - model = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner() + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner() if include_optional: - return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner( + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner( minimum_nights = 56, maximum_nights = 56, amount = 1.337, @@ -45,12 +45,12 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDat ] ) else: - return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner( + return GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner( ) """ - def testGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner(self): - """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsRangesInner""" + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py index 1661ffe..f77fd68 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py @@ -37,14 +37,14 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLen return GetTaxesAndFeesResponseDataInnerLengthOfStaySettings( application_type = 'progressive_application', ranges = [ - cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_ranges_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_oneOf_ranges_inner( minimum_nights = 56, maximum_nights = 56, amount = 1.337, amount_adult = 1.337, amount_child = 1.337, amount_rate_based = [ - cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_ranges_inner_amountRateBased_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_oneOf_ranges_inner_amountRateBased_inner( rate = 1.337, percentage = 1.337, ) ], ) diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py new file mode 100644 index 0000000..6955fe5 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + +class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf: + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf` + """ + model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf() + if include_optional: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf( + application_type = 'progressive_application', + ranges = [ + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_oneOf_ranges_inner( + minimum_nights = 56, + maximum_nights = 56, + amount = 1.337, + amount_adult = 1.337, + amount_child = 1.337, + amount_rate_based = [ + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_oneOf_ranges_inner_amountRateBased_inner( + rate = 1.337, + percentage = 1.337, ) + ], ) + ] + ) + else: + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf(self): + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py similarity index 82% rename from cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py index 95fdefc..15459f7 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner -class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner(unittest.TestCase): - """GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner unit test stubs""" +class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner unit test stubs""" def setUp(self): pass @@ -25,34 +25,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner: - """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner: + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner` + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner` """ - model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner() + model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner() if include_optional: - return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner( + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner( minimum_nights = 56, maximum_nights = 56, amount = 1.337, amount_adult = 1.337, amount_child = 1.337, amount_rate_based = [ - cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_ranges_inner_amountRateBased_inner( + cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_lengthOfStaySettings_oneOf_ranges_inner_amountRateBased_inner( rate = 1.337, percentage = 1.337, ) ] ) else: - return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner( + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner( ) """ - def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner(self): - """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInner""" + def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner(self): + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py similarity index 79% rename from cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py index e901968..b191cfa 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner -class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner(unittest.TestCase): - """GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner unit test stubs""" +class TestGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner: - """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner: + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner` + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner` """ - model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner() + model = GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner() if include_optional: - return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner( + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner( rate = 1.337, percentage = 1.337 ) else: - return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner( + return GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner( ) """ - def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner(self): - """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsRangesInnerAmountRateBasedInner""" + def testGetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner(self): + """Test GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInnerAmountRateBasedInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_3/test/test_get_users_response.py b/cloudbeds_pms_v1_3/test/test_get_users_response.py index c6bbb86..5695ad0 100644 --- a/cloudbeds_pms_v1_3/test/test_get_users_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_users_response.py @@ -36,21 +36,7 @@ def make_instance(self, include_optional) -> GetUsersResponse: if include_optional: return GetUsersResponse( success = True, - data = [ - cloudbeds_pms_v1_3.models.get_users_response_data_inner.GetUsersResponse_data_inner( - user_id = '', - first_name = '', - last_name = '', - email = '', - language = '', - user_role = cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( - name = '', - description = '', ), - active = 'yes', - last_login = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - property_id = '', - organization_id = '', ) - ] + data = None ) else: return GetUsersResponse( diff --git a/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py deleted file mode 100644 index 41b843b..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_users_response_data_inner import GetUsersResponseDataInner - -class TestGetUsersResponseDataInner(unittest.TestCase): - """GetUsersResponseDataInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUsersResponseDataInner: - """Test GetUsersResponseDataInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUsersResponseDataInner` - """ - model = GetUsersResponseDataInner() - if include_optional: - return GetUsersResponseDataInner( - user_id = '', - first_name = '', - last_name = '', - email = '', - language = '', - user_role = cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role.GetUsersResponse_data_inner_userRole( - name = '', - description = '', ), - active = 'yes', - last_login = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - property_id = '', - organization_id = '' - ) - else: - return GetUsersResponseDataInner( - ) - """ - - def testGetUsersResponseDataInner(self): - """Test GetUsersResponseDataInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py b/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py deleted file mode 100644 index 22ae031..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_users_response_data_inner_user_role.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_users_response_data_inner_user_role import GetUsersResponseDataInnerUserRole - -class TestGetUsersResponseDataInnerUserRole(unittest.TestCase): - """GetUsersResponseDataInnerUserRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUsersResponseDataInnerUserRole: - """Test GetUsersResponseDataInnerUserRole - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUsersResponseDataInnerUserRole` - """ - model = GetUsersResponseDataInnerUserRole() - if include_optional: - return GetUsersResponseDataInnerUserRole( - name = '', - description = '' - ) - else: - return GetUsersResponseDataInnerUserRole( - ) - """ - - def testGetUsersResponseDataInnerUserRole(self): - """Test GetUsersResponseDataInnerUserRole""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py index a63d033..915c189 100644 --- a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> PutRoomBlockResponse: success = True, property_id = '', room_block_id = '', - courtesy_hold = 'blocked', + room_block_type = 'blocked', room_block_reason = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/openapitools.json b/openapitools.json index 37f2ee5..dfb8d31 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.6.0", + "packageVersion": "1.6.1", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From eb39932b3c42a110953af31defff4f5f1a409ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Thu, 13 Nov 2025 11:33:22 +0100 Subject: [PATCH 37/46] feat: v1.7.0 --- .openapi-generator/FILES | 15 +- README.md | 7 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 7 +- cloudbeds_pms_v1_3/api/taxes_and_fees_api.py | 17 +++ cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- .../docs/GetTaxesAndFeesResponseDataInner.md | 6 +- ...axesAndFeesResponseDataInnerAmountAdult.md | 29 ++++ ...axesAndFeesResponseDataInnerAmountChild.md | 29 ++++ ...AndFeesResponseDataInnerDateRangesInner.md | 5 +- ...onseDataInnerDateRangesInnerAmountAdult.md | 29 ---- ...onseDataInnerDateRangesInnerAmountChild.md | 29 ---- ...sponseDataInnerDateRangesInnerMaxLength.md | 29 ++++ cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md | 6 +- cloudbeds_pms_v1_3/models/__init__.py | 5 +- .../get_taxes_and_fees_response_data_inner.py | 22 ++- ...d_fees_response_data_inner_amount_adult.py | 143 ++++++++++++++++++ ..._fees_response_data_inner_amount_child.py} | 14 +- ...s_response_data_inner_date_ranges_inner.py | 20 ++- ...ata_inner_date_ranges_inner_max_length.py} | 16 +- .../test/test_get_taxes_and_fees_response.py | 7 +- ..._get_taxes_and_fees_response_data_inner.py | 5 +- ..._fees_response_data_inner_amount_adult.py} | 22 +-- ...d_fees_response_data_inner_amount_child.py | 50 ++++++ ...s_response_data_inner_date_ranges_inner.py | 1 + ...ata_inner_date_ranges_inner_max_length.py} | 22 +-- openapitools.json | 2 +- 28 files changed, 403 insertions(+), 140 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountAdult.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountChild.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md delete mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md create mode 100644 cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.md create mode 100644 cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_adult.py rename cloudbeds_pms_v1_3/models/{get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py => get_taxes_and_fees_response_data_inner_amount_child.py} (88%) rename cloudbeds_pms_v1_3/models/{get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py => get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py} (90%) rename cloudbeds_pms_v1_3/test/{test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py => test_get_taxes_and_fees_response_data_inner_amount_adult.py} (76%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_child.py rename cloudbeds_pms_v1_3/test/{test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py => test_get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py} (80%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 239ee24..08363b2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -198,16 +198,17 @@ cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerFeesInner.md cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountAdult.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountChild.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md -cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md -cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md +cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md @@ -527,16 +528,17 @@ cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_adult.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_child.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py -cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py -cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py +cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py @@ -850,16 +852,17 @@ cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_adult.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_child.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py diff --git a/README.md b/README.md index a73b217..8d3d405 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.6.1 +- Package version: 1.7.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -361,16 +361,17 @@ Class | Method | HTTP request | Description - [GetSourcesResponseDataInnerTaxesInner](cloudbeds_pms_v1_3/docs/GetSourcesResponseDataInnerTaxesInner.md) - [GetTaxesAndFeesResponse](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponse.md) - [GetTaxesAndFeesResponseDataInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md) + - [GetTaxesAndFeesResponseDataInnerAmountAdult](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountAdult.md) + - [GetTaxesAndFeesResponseDataInnerAmountChild](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountChild.md) - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage.md) - [GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md) - - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) - - [GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf.md) - [GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner.md) + - [GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.md) - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettings](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettings.md) - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf.md) - [GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner](cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner.md) diff --git a/VERSION b/VERSION index 9c6d629..bd8bf88 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.6.1 +1.7.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index b9a1d5e..b40a8af 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.6.1" +__version__ = "1.7.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -216,16 +216,17 @@ from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_adult import GetTaxesAndFeesResponseDataInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_child import GetTaxesAndFeesResponseDataInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length import GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner diff --git a/cloudbeds_pms_v1_3/api/taxes_and_fees_api.py b/cloudbeds_pms_v1_3/api/taxes_and_fees_api.py index a6d4031..dddbcf4 100644 --- a/cloudbeds_pms_v1_3/api/taxes_and_fees_api.py +++ b/cloudbeds_pms_v1_3/api/taxes_and_fees_api.py @@ -45,6 +45,7 @@ def get_taxes_and_fees_get( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted taxes and fees")] = None, include_expired: Annotated[Optional[StrictBool], Field(description="If the response should include expired taxes and fees")] = None, + include_custom_item_taxes: Annotated[Optional[StrictBool], Field(description="If the response should include custom item taxes")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68,6 +69,8 @@ def get_taxes_and_fees_get( :type include_deleted: bool :param include_expired: If the response should include expired taxes and fees :type include_expired: bool + :param include_custom_item_taxes: If the response should include custom item taxes + :type include_custom_item_taxes: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94,6 +97,7 @@ def get_taxes_and_fees_get( property_id=property_id, include_deleted=include_deleted, include_expired=include_expired, + include_custom_item_taxes=include_custom_item_taxes, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -120,6 +124,7 @@ def get_taxes_and_fees_get_with_http_info( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted taxes and fees")] = None, include_expired: Annotated[Optional[StrictBool], Field(description="If the response should include expired taxes and fees")] = None, + include_custom_item_taxes: Annotated[Optional[StrictBool], Field(description="If the response should include custom item taxes")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -143,6 +148,8 @@ def get_taxes_and_fees_get_with_http_info( :type include_deleted: bool :param include_expired: If the response should include expired taxes and fees :type include_expired: bool + :param include_custom_item_taxes: If the response should include custom item taxes + :type include_custom_item_taxes: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -169,6 +176,7 @@ def get_taxes_and_fees_get_with_http_info( property_id=property_id, include_deleted=include_deleted, include_expired=include_expired, + include_custom_item_taxes=include_custom_item_taxes, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -195,6 +203,7 @@ def get_taxes_and_fees_get_without_preload_content( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, include_deleted: Annotated[Optional[StrictBool], Field(description="If the response should include deleted taxes and fees")] = None, include_expired: Annotated[Optional[StrictBool], Field(description="If the response should include expired taxes and fees")] = None, + include_custom_item_taxes: Annotated[Optional[StrictBool], Field(description="If the response should include custom item taxes")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -218,6 +227,8 @@ def get_taxes_and_fees_get_without_preload_content( :type include_deleted: bool :param include_expired: If the response should include expired taxes and fees :type include_expired: bool + :param include_custom_item_taxes: If the response should include custom item taxes + :type include_custom_item_taxes: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -244,6 +255,7 @@ def get_taxes_and_fees_get_without_preload_content( property_id=property_id, include_deleted=include_deleted, include_expired=include_expired, + include_custom_item_taxes=include_custom_item_taxes, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -265,6 +277,7 @@ def _get_taxes_and_fees_get_serialize( property_id, include_deleted, include_expired, + include_custom_item_taxes, _request_auth, _content_type, _headers, @@ -299,6 +312,10 @@ def _get_taxes_and_fees_get_serialize( _query_params.append(('includeExpired', include_expired)) + if include_custom_item_taxes is not None: + + _query_params.append(('includeCustomItemTaxes', include_custom_item_taxes)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 9cae8a5..84f5be5 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.6.1/python' + self.user_agent = 'OpenAPI-Generator/1.7.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 44aedb2..629b677 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.6.1".\ + "SDK Package Version: 1.7.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md index c0cacc1..01a07dd 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md @@ -12,11 +12,11 @@ Name | Type | Description | Notes **code** | **str** | Code | [optional] **kind** | **str** | Tax kind. Currently supports \"vat\" or null. Only exists if type = tax. | [optional] **amount** | **str** | Amount | [optional] -**amount_adult** | **str** | Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] -**amount_child** | **str** | Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) | [optional] +**amount_adult** | [**GetTaxesAndFeesResponseDataInnerAmountAdult**](GetTaxesAndFeesResponseDataInnerAmountAdult.md) | | [optional] +**amount_child** | [**GetTaxesAndFeesResponseDataInnerAmountChild**](GetTaxesAndFeesResponseDataInnerAmountChild.md) | | [optional] **amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) | Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based) | [optional] **amount_type** | **str** | Amount type. They mean:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>percentage</td><td>Percentage of Total Amount</td></tr> <tr><td>fixed</td><td>Fixed per Room Night / Item</td></tr> <tr><td>fixed_per_person</td><td>Fixed per Person per Night</td></tr> <tr><td>fixed_per_accomodation</td><td>Fixed per Accomodation</td></tr> <tr><td>fixed_per_reservation</td><td>Fixed per Reservation</td></tr> <tr><td>percentage_rate_based</td><td>Rate-based</td></tr> </table> | [optional] -**available_for** | **List[str]** | Where this tax/fee is available?<br/>They mean:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>product</td><td>Items</td></tr> <tr><td>rate</td><td>Reservations</td></tr> <tr><td>fee</td><td>Fees -- this tax is charged on top of some fees</td></tr> </table> | [optional] +**available_for** | **List[str]** | Where this tax/fee is available?<br/>They mean:<br/> <table> <tr><th>Value</th><th>Meaning</th></tr> <tr><td>product</td><td>Items</td></tr> <tr><td>rate</td><td>Reservations</td></tr> <tr><td>fee</td><td>Fees -- this tax is charged on top of some fees</td></tr> <tr><td>custom_item</td><td>Custom item - this tax was charged for a custom item</td></tr> </table> | [optional] **fees_charged** | **List[str]** | List of Fee IDs charged by the current tax. Only exists if type = tax. | [optional] **inclusive_or_exclusive** | **str** | If this tax/fee is inclusive or exclusive | [optional] **is_deleted** | **bool** | Flag indicating if tax was deleted from the system | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountAdult.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountAdult.md new file mode 100644 index 0000000..a3d4efd --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountAdult.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerAmountAdult + +Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_adult import GetTaxesAndFeesResponseDataInnerAmountAdult + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerAmountAdult from a JSON string +get_taxes_and_fees_response_data_inner_amount_adult_instance = GetTaxesAndFeesResponseDataInnerAmountAdult.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerAmountAdult.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_amount_adult_dict = get_taxes_and_fees_response_data_inner_amount_adult_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerAmountAdult from a dict +get_taxes_and_fees_response_data_inner_amount_adult_from_dict = GetTaxesAndFeesResponseDataInnerAmountAdult.from_dict(get_taxes_and_fees_response_data_inner_amount_adult_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountChild.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountChild.md new file mode 100644 index 0000000..960e2ff --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerAmountChild.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerAmountChild + +Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_child import GetTaxesAndFeesResponseDataInnerAmountChild + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerAmountChild from a JSON string +get_taxes_and_fees_response_data_inner_amount_child_instance = GetTaxesAndFeesResponseDataInnerAmountChild.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerAmountChild.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_amount_child_dict = get_taxes_and_fees_response_data_inner_amount_child_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerAmountChild from a dict +get_taxes_and_fees_response_data_inner_amount_child_from_dict = GetTaxesAndFeesResponseDataInnerAmountChild.from_dict(get_taxes_and_fees_response_data_inner_amount_child_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md index 9037a02..e840065 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInner.md @@ -7,8 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **range** | **str** | ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD | [optional] **amount** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.md) | | [optional] -**amount_adult** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md) | | [optional] -**amount_child** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild**](GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md) | | [optional] +**amount_adult** | [**GetTaxesAndFeesResponseDataInnerAmountAdult**](GetTaxesAndFeesResponseDataInnerAmountAdult.md) | | [optional] +**amount_child** | [**GetTaxesAndFeesResponseDataInnerAmountChild**](GetTaxesAndFeesResponseDataInnerAmountChild.md) | | [optional] +**max_length** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength**](GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.md) | | [optional] **amount_rate_based** | [**List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]**](GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.md) | Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based) | [optional] **length_of_stay_settings** | [**GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings**](GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.md) | | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md deleted file mode 100644 index 17ccc4a..0000000 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult - -Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from a JSON string -get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.from_json(json) -# print the JSON string representation of the object -print(GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.to_json()) - -# convert the object into a dict -get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_instance.to_dict() -# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult from a dict -get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md deleted file mode 100644 index 94cb14c..0000000 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild - -Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from a JSON string -get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.from_json(json) -# print the JSON string representation of the object -print(GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.to_json()) - -# convert the object into a dict -get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_instance.to_dict() -# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from a dict -get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.md new file mode 100644 index 0000000..8d7268f --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.md @@ -0,0 +1,29 @@ +# GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength + +Maximum amount of nights where this applies. Only applicable if amountType = fixed_per_person (Per Person Per Night) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length import GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength from a JSON string +get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length_instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.from_json(json) +# print the JSON string representation of the object +print(GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.to_json()) + +# convert the object into a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length_dict = get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length_instance.to_dict() +# create an instance of GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength from a dict +get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length_from_dict = GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.from_dict(get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md b/cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md index d9f15f6..2e53bc2 100644 --- a/cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md +++ b/cloudbeds_pms_v1_3/docs/TaxesAndFeesApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **get_taxes_and_fees_get** -> GetTaxesAndFeesResponse get_taxes_and_fees_get(property_id=property_id, include_deleted=include_deleted, include_expired=include_expired) +> GetTaxesAndFeesResponse get_taxes_and_fees_get(property_id=property_id, include_deleted=include_deleted, include_expired=include_expired, include_custom_item_taxes=include_custom_item_taxes) getTaxesAndFees @@ -51,10 +51,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: property_id = 'property_id_example' # str | Property ID (optional) include_deleted = False # bool | If the response should include deleted taxes and fees (optional) (default to False) include_expired = False # bool | If the response should include expired taxes and fees (optional) (default to False) + include_custom_item_taxes = False # bool | If the response should include custom item taxes (optional) (default to False) try: # getTaxesAndFees - api_response = api_instance.get_taxes_and_fees_get(property_id=property_id, include_deleted=include_deleted, include_expired=include_expired) + api_response = api_instance.get_taxes_and_fees_get(property_id=property_id, include_deleted=include_deleted, include_expired=include_expired, include_custom_item_taxes=include_custom_item_taxes) print("The response of TaxesAndFeesApi->get_taxes_and_fees_get:\n") pprint(api_response) except Exception as e: @@ -71,6 +72,7 @@ Name | Type | Description | Notes **property_id** | **str**| Property ID | [optional] **include_deleted** | **bool**| If the response should include deleted taxes and fees | [optional] [default to False] **include_expired** | **bool**| If the response should include expired taxes and fees | [optional] [default to False] + **include_custom_item_taxes** | **bool**| If the response should include custom item taxes | [optional] [default to False] ### Return type diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index d78c454..29b8515 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -178,16 +178,17 @@ from cloudbeds_pms_v1_3.models.get_sources_response_data_inner_taxes_inner import GetSourcesResponseDataInnerTaxesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response import GetTaxesAndFeesResponse from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner import GetTaxesAndFeesResponseDataInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_adult import GetTaxesAndFeesResponseDataInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_child import GetTaxesAndFeesResponseDataInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerPercentage from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate import GetTaxesAndFeesResponseDataInnerAmountRateBasedInnerRate from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOfRangesInner +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length import GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner import GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOfRangesInner diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py index 22c9dd7..6a482f5 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py @@ -19,6 +19,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_adult import GetTaxesAndFeesResponseDataInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_child import GetTaxesAndFeesResponseDataInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner import GetTaxesAndFeesResponseDataInnerDateRangesInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerLengthOfStaySettings @@ -37,11 +39,11 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): code: Optional[StrictStr] = Field(default=None, description="Code") kind: Optional[StrictStr] = Field(default=None, description="Tax kind. Currently supports \"vat\" or null. Only exists if type = tax.") amount: Optional[StrictStr] = Field(default=None, description="Amount") - amount_adult: Optional[StrictStr] = Field(default=None, description="Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountAdult") - amount_child: Optional[StrictStr] = Field(default=None, description="Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night)", alias="amountChild") + amount_adult: Optional[GetTaxesAndFeesResponseDataInnerAmountAdult] = Field(default=None, alias="amountAdult") + amount_child: Optional[GetTaxesAndFeesResponseDataInnerAmountChild] = Field(default=None, alias="amountChild") amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]] = Field(default=None, description="Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based)", alias="amountRateBased") amount_type: Optional[StrictStr] = Field(default=None, description="Amount type. They mean:
ValueMeaning
percentagePercentage of Total Amount
fixedFixed per Room Night / Item
fixed_per_personFixed per Person per Night
fixed_per_accomodationFixed per Accomodation
fixed_per_reservationFixed per Reservation
percentage_rate_basedRate-based
", alias="amountType") - available_for: Optional[List[StrictStr]] = Field(default=None, description="Where this tax/fee is available?
They mean:
ValueMeaning
productItems
rateReservations
feeFees -- this tax is charged on top of some fees
", alias="availableFor") + available_for: Optional[List[StrictStr]] = Field(default=None, description="Where this tax/fee is available?
They mean:
ValueMeaning
productItems
rateReservations
feeFees -- this tax is charged on top of some fees
custom_itemCustom item - this tax was charged for a custom item
", alias="availableFor") fees_charged: Optional[List[StrictStr]] = Field(default=None, description="List of Fee IDs charged by the current tax. Only exists if type = tax.", alias="feesCharged") inclusive_or_exclusive: Optional[StrictStr] = Field(default=None, description="If this tax/fee is inclusive or exclusive", alias="inclusiveOrExclusive") is_deleted: Optional[StrictBool] = Field(default=None, description="Flag indicating if tax was deleted from the system", alias="isDeleted") @@ -80,8 +82,8 @@ def available_for_validate_enum(cls, value): return value for i in value: - if i not in set(['product', 'rate', 'fee']): - raise ValueError("each list item must be one of ('product', 'rate', 'fee')") + if i not in set(['product', 'rate', 'fee', 'custom_item']): + raise ValueError("each list item must be one of ('product', 'rate', 'fee', 'custom_item')") return value @field_validator('inclusive_or_exclusive') @@ -133,6 +135,12 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of amount_adult + if self.amount_adult: + _dict['amountAdult'] = self.amount_adult.to_dict() + # override the default output from pydantic by calling `to_dict()` of amount_child + if self.amount_child: + _dict['amountChild'] = self.amount_child.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in amount_rate_based (list) _items = [] if self.amount_rate_based: @@ -216,8 +224,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "code": obj.get("code"), "kind": obj.get("kind"), "amount": obj.get("amount"), - "amountAdult": obj.get("amountAdult"), - "amountChild": obj.get("amountChild"), + "amountAdult": GetTaxesAndFeesResponseDataInnerAmountAdult.from_dict(obj["amountAdult"]) if obj.get("amountAdult") is not None else None, + "amountChild": GetTaxesAndFeesResponseDataInnerAmountChild.from_dict(obj["amountChild"]) if obj.get("amountChild") is not None else None, "amountRateBased": [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None, "amountType": obj.get("amountType"), "availableFor": obj.get("availableFor"), diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_adult.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_adult.py new file mode 100644 index 0000000..ce553cf --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_adult.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional, Union +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETTAXESANDFEESRESPONSEDATAINNERAMOUNTADULT_ONE_OF_SCHEMAS = ["float", "str"] + +class GetTaxesAndFeesResponseDataInnerAmountAdult(BaseModel): + """ + Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) + """ + # data type: str + oneof_schema_1_validator: Optional[StrictStr] = None + # data type: float + oneof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + actual_instance: Optional[Union[float, str]] = None + one_of_schemas: Set[str] = { "float", "str" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetTaxesAndFeesResponseDataInnerAmountAdult.model_construct() + error_messages = [] + match = 0 + # validate data type: str + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into str + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_child.py similarity index 88% rename from cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_child.py index 879f079..dce3b89 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_amount_child.py @@ -21,9 +21,9 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -GETTAXESANDFEESRESPONSEDATAINNERDATERANGESINNERAMOUNTCHILD_ONE_OF_SCHEMAS = ["float", "str"] +GETTAXESANDFEESRESPONSEDATAINNERAMOUNTCHILD_ONE_OF_SCHEMAS = ["float", "str"] -class GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild(BaseModel): +class GetTaxesAndFeesResponseDataInnerAmountChild(BaseModel): """ Amount charged per children. Only applicable if amountType = fixed_per_person (Per Person Per Night) """ @@ -52,7 +52,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_oneof(cls, v): - instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.model_construct() + instance = GetTaxesAndFeesResponseDataInnerAmountChild.model_construct() error_messages = [] match = 0 # validate data type: str @@ -69,10 +69,10 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return v @@ -108,10 +108,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerAmountChild with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return instance diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py index 97d76dd..db31e61 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -19,11 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_adult import GetTaxesAndFeesResponseDataInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_child import GetTaxesAndFeesResponseDataInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner import GetTaxesAndFeesResponseDataInnerAmountRateBasedInner from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings import GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length import GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength from typing import Optional, Set from typing_extensions import Self @@ -33,11 +34,12 @@ class GetTaxesAndFeesResponseDataInnerDateRangesInner(BaseModel): """ # noqa: E501 range: Optional[StrictStr] = Field(default=None, description="ISO 8601 date range. It can be in the format YYYY-MM-DD/YYYY-MM-DD or YYYY-MM-DD/ (to indicate that the end date is not defined). In case of empty year the format is --MM-DD/--MM-DD") amount: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount] = None - amount_adult: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult] = Field(default=None, alias="amountAdult") - amount_child: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild] = Field(default=None, alias="amountChild") + amount_adult: Optional[GetTaxesAndFeesResponseDataInnerAmountAdult] = Field(default=None, alias="amountAdult") + amount_child: Optional[GetTaxesAndFeesResponseDataInnerAmountChild] = Field(default=None, alias="amountChild") + max_length: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength] = Field(default=None, alias="maxLength") amount_rate_based: Optional[List[GetTaxesAndFeesResponseDataInnerAmountRateBasedInner]] = Field(default=None, description="Rules defined for Rate-Based taxes/fees. Only applicable if amountType = percentage_rate_based (Rate-based)", alias="amountRateBased") length_of_stay_settings: Optional[GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings] = Field(default=None, alias="lengthOfStaySettings") - __properties: ClassVar[List[str]] = ["range", "amount", "amountAdult", "amountChild", "amountRateBased", "lengthOfStaySettings"] + __properties: ClassVar[List[str]] = ["range", "amount", "amountAdult", "amountChild", "maxLength", "amountRateBased", "lengthOfStaySettings"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +89,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of amount_child if self.amount_child: _dict['amountChild'] = self.amount_child.to_dict() + # override the default output from pydantic by calling `to_dict()` of max_length + if self.max_length: + _dict['maxLength'] = self.max_length.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in amount_rate_based (list) _items = [] if self.amount_rate_based: @@ -121,8 +126,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "range": obj.get("range"), "amount": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmount.from_dict(obj["amount"]) if obj.get("amount") is not None else None, - "amountAdult": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.from_dict(obj["amountAdult"]) if obj.get("amountAdult") is not None else None, - "amountChild": GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild.from_dict(obj["amountChild"]) if obj.get("amountChild") is not None else None, + "amountAdult": GetTaxesAndFeesResponseDataInnerAmountAdult.from_dict(obj["amountAdult"]) if obj.get("amountAdult") is not None else None, + "amountChild": GetTaxesAndFeesResponseDataInnerAmountChild.from_dict(obj["amountChild"]) if obj.get("amountChild") is not None else None, + "maxLength": GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.from_dict(obj["maxLength"]) if obj.get("maxLength") is not None else None, "amountRateBased": [GetTaxesAndFeesResponseDataInnerAmountRateBasedInner.from_dict(_item) for _item in obj["amountRateBased"]] if obj.get("amountRateBased") is not None else None, "lengthOfStaySettings": GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettings.from_dict(obj["lengthOfStaySettings"]) if obj.get("lengthOfStaySettings") is not None else None }) diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py similarity index 90% rename from cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py rename to cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py index bcf2c9b..c81ec24 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py @@ -21,11 +21,11 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -GETTAXESANDFEESRESPONSEDATAINNERDATERANGESINNERAMOUNTADULT_ONE_OF_SCHEMAS = ["float", "str"] +GETTAXESANDFEESRESPONSEDATAINNERDATERANGESINNERMAXLENGTH_ONE_OF_SCHEMAS = ["float", "str"] -class GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult(BaseModel): +class GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength(BaseModel): """ - Amount charged per adult. Only applicable if amountType = fixed_per_person (Per Person Per Night) + Maximum amount of nights where this applies. Only applicable if amountType = fixed_per_person (Per Person Per Night) """ # data type: str oneof_schema_1_validator: Optional[StrictStr] = None @@ -52,7 +52,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_oneof(cls, v): - instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult.model_construct() + instance = GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength.model_construct() error_messages = [] match = 0 # validate data type: str @@ -69,10 +69,10 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return v @@ -108,10 +108,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength with oneOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return instance diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py index 18714b9..130c099 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py @@ -46,8 +46,8 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: code = '', kind = '', amount = '', - amount_adult = '', - amount_child = '', + amount_adult = null, + amount_child = null, amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = null, @@ -74,8 +74,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponse: cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner.GetTaxesAndFeesResponse_data_inner_dateRanges_inner( range = '', amount = null, - amount_adult = null, - amount_child = null, + max_length = null, length_of_stay_settings = null, ) ], length_of_stay_settings = null, ) diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py index 574b586..0c3a9d8 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py @@ -42,8 +42,8 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: code = '', kind = '', amount = '', - amount_adult = '', - amount_child = '', + amount_adult = None, + amount_child = None, amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = null, @@ -72,6 +72,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInner: amount = null, amount_adult = null, amount_child = null, + max_length = null, amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = null, diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_adult.py similarity index 76% rename from cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_adult.py index 37b5fbd..ed5ffa9 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_adult.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_child import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_adult import GetTaxesAndFeesResponseDataInnerAmountAdult -class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild(unittest.TestCase): - """GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild unit test stubs""" +class TestGetTaxesAndFeesResponseDataInnerAmountAdult(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerAmountAdult unit test stubs""" def setUp(self): pass @@ -25,24 +25,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild: - """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerAmountAdult: + """Test GetTaxesAndFeesResponseDataInnerAmountAdult include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild` + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerAmountAdult` """ - model = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild() + model = GetTaxesAndFeesResponseDataInnerAmountAdult() if include_optional: - return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild( + return GetTaxesAndFeesResponseDataInnerAmountAdult( ) else: - return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild( + return GetTaxesAndFeesResponseDataInnerAmountAdult( ) """ - def testGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild(self): - """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountChild""" + def testGetTaxesAndFeesResponseDataInnerAmountAdult(self): + """Test GetTaxesAndFeesResponseDataInnerAmountAdult""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_child.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_child.py new file mode 100644 index 0000000..0f57f5a --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_child.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_child import GetTaxesAndFeesResponseDataInnerAmountChild + +class TestGetTaxesAndFeesResponseDataInnerAmountChild(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerAmountChild unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerAmountChild: + """Test GetTaxesAndFeesResponseDataInnerAmountChild + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerAmountChild` + """ + model = GetTaxesAndFeesResponseDataInnerAmountChild() + if include_optional: + return GetTaxesAndFeesResponseDataInnerAmountChild( + ) + else: + return GetTaxesAndFeesResponseDataInnerAmountChild( + ) + """ + + def testGetTaxesAndFeesResponseDataInnerAmountChild(self): + """Test GetTaxesAndFeesResponseDataInnerAmountChild""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py index 7668a77..c8275f0 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDat amount = None, amount_adult = None, amount_child = None, + max_length = None, amount_rate_based = [ cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_amount_rate_based_inner.GetTaxesAndFeesResponse_data_inner_amountRateBased_inner( rate = null, diff --git a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py similarity index 80% rename from cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py rename to cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py index 57749e5..6a03dce 100644 --- a/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult.py +++ b/cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_amount_adult import GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult +from cloudbeds_pms_v1_3.models.get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length import GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength -class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult(unittest.TestCase): - """GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult unit test stubs""" +class TestGetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength(unittest.TestCase): + """GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength unit test stubs""" def setUp(self): pass @@ -25,24 +25,24 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult: - """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult + def make_instance(self, include_optional) -> GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength: + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult` + # uncomment below to create an instance of `GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength` """ - model = GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult() + model = GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength() if include_optional: - return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult( + return GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength( ) else: - return GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult( + return GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength( ) """ - def testGetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult(self): - """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerAmountAdult""" + def testGetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength(self): + """Test GetTaxesAndFeesResponseDataInnerDateRangesInnerMaxLength""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/openapitools.json b/openapitools.json index dfb8d31..9697e11 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.6.1", + "packageVersion": "1.7.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From 500c66413bca4c4fb212128b33971452826c73e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Thu, 8 Jan 2026 18:55:45 +0100 Subject: [PATCH 38/46] feat: v1.8.0 --- .openapi-generator/FILES | 344 +----------------- README.md | 5 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 5 +- .../api/allotment_blocks_api.py | 32 ++ cloudbeds_pms_v1_3/api/reservation_api.py | 18 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md | 12 +- .../GetAllotmentBlocksResponseDataInner.md | 12 + .../docs/GetGuestListResponseDataValue.md | 2 +- .../docs/GetGuestResponseData.md | 2 +- .../GetGuestsModifiedResponseDataInner.md | 2 +- ...etReservationResponseDataGuestListValue.md | 2 +- ...rvationsResponseDataInnerGuestListValue.md | 2 +- ...vationsWithRateDetailsResponseDataInner.md | 4 +- ...DetailsResponseDataInnerBalanceDetailed.md | 35 ++ ...sWithRateDetailsResponseDataInnerSource.md | 33 ++ ...stCreateAllotmentBlockResponseDataInner.md | 2 + ...stUpdateAllotmentBlockResponseDataInner.md | 2 + cloudbeds_pms_v1_3/docs/ReservationApi.md | 6 +- cloudbeds_pms_v1_3/models/__init__.py | 3 +- ...et_allotment_blocks_response_data_inner.py | 28 +- .../get_guest_list_response_data_value.py | 2 +- .../models/get_guest_response_data.py | 2 +- ...get_guests_modified_response_data_inner.py | 2 +- ...ervation_response_data_guest_list_value.py | 2 +- ...ns_response_data_inner_guest_list_value.py | 2 +- ...s_with_rate_details_response_data_inner.py | 28 +- ...ls_response_data_inner_balance_detailed.py | 97 +++++ ...rate_details_response_data_inner_source.py | 103 ++++++ ...ate_allotment_block_response_data_inner.py | 6 +- ...ate_allotment_block_response_data_inner.py | 6 +- ...ls_response_data_inner_balance_detailed.py | 56 +++ ...rate_details_response_data_inner_source.py | 54 +++ openapitools.json | 2 +- 36 files changed, 522 insertions(+), 397 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md create mode 100644 cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py create mode 100644 cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 08363b2..4922a77 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -175,8 +175,9 @@ cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValueUnassigned cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md -cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md @@ -505,8 +506,9 @@ cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_ cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py cloudbeds_pms_v1_3/models/get_room_blocks_response.py cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py cloudbeds_pms_v1_3/models/get_room_types_response.py @@ -680,339 +682,5 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py -cloudbeds_pms_v1_3/test/test_adjustment_api.py -cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py -cloudbeds_pms_v1_3/test/test_app_settings_api.py -cloudbeds_pms_v1_3/test/test_authentication_api.py -cloudbeds_pms_v1_3/test/test_currency_api.py -cloudbeds_pms_v1_3/test/test_custom_fields_api.py -cloudbeds_pms_v1_3/test/test_dashboard_api.py -cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py -cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py -cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_delete_room_block_response.py -cloudbeds_pms_v1_3/test/test_delete_webhook_response.py -cloudbeds_pms_v1_3/test/test_emails_api.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response.py -cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_app_state_response.py -cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py -cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py -cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response.py -cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response.py -cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_files_response.py -cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response.py -cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py -cloudbeds_pms_v1_3/test/test_get_groups_response.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py -cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py -cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py -cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py -cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py -cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py -cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py -cloudbeds_pms_v1_3/test/test_get_hotels_response.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py -cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py -cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response.py -cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response.py -cloudbeds_pms_v1_3/test/test_get_item_response_data.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_items_response.py -cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_metadata_response.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py -cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py -cloudbeds_pms_v1_3/test/test_get_packages_response.py -cloudbeds_pms_v1_3/test/test_get_packages_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py -cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py -cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_rate_response.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data.py -cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py -cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py -cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_room_types_response.py -cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py -cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_adult.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_child.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py -cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response.py -cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py -cloudbeds_pms_v1_3/test/test_get_users_response.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py -cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py -cloudbeds_pms_v1_3/test/test_groups_api.py -cloudbeds_pms_v1_3/test/test_guest_api.py -cloudbeds_pms_v1_3/test/test_hotel_api.py -cloudbeds_pms_v1_3/test/test_house_account_api.py -cloudbeds_pms_v1_3/test/test_housekeeping_api.py -cloudbeds_pms_v1_3/test/test_integration_api.py -cloudbeds_pms_v1_3/test/test_item_api.py -cloudbeds_pms_v1_3/test/test_package_api.py -cloudbeds_pms_v1_3/test/test_payment_api.py -cloudbeds_pms_v1_3/test/test_post_access_token_response.py -cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response.py -cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_error_response.py -cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py -cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py -cloudbeds_pms_v1_3/test/test_post_app_state_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_card_response.py -cloudbeds_pms_v1_3/test/test_post_card_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py -cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response.py -cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response.py -cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py -cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py -cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py -cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py -cloudbeds_pms_v1_3/test/test_post_email_template_response.py -cloudbeds_pms_v1_3/test/test_post_file_response.py -cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response.py -cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response.py -cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py -cloudbeds_pms_v1_3/test/test_post_guest_note_response.py -cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py -cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_guest_response.py -cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py -cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py -cloudbeds_pms_v1_3/test/test_post_item_category_response.py -cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py -cloudbeds_pms_v1_3/test/test_post_item_response.py -cloudbeds_pms_v1_3/test/test_post_item_response_data.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py -cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response.py -cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py -cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py -cloudbeds_pms_v1_3/test/test_post_payment_response.py -cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py -cloudbeds_pms_v1_3/test/test_post_put_group_response.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py -cloudbeds_pms_v1_3/test/test_post_put_rate_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_reservation_response.py -cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py -cloudbeds_pms_v1_3/test/test_post_room_assign_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_block_response.py -cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py -cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py -cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py -cloudbeds_pms_v1_3/test/test_post_void_item_response.py -cloudbeds_pms_v1_3/test/test_post_void_payment_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response.py -cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py -cloudbeds_pms_v1_3/test/test_put_guest_note_response.py -cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_guest_response.py -cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py -cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py -cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_reservation_response.py -cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py -cloudbeds_pms_v1_3/test/test_put_room_block_response.py -cloudbeds_pms_v1_3/test/test_rate_api.py -cloudbeds_pms_v1_3/test/test_reservation_api.py -cloudbeds_pms_v1_3/test/test_room_api.py -cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py -cloudbeds_pms_v1_3/test/test_user_api.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py diff --git a/README.md b/README.md index 8d3d405..62f5775 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.7.0 +- Package version: 1.8.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -338,8 +338,9 @@ Class | Method | HTTP request | Description - [GetReservationsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md) - [GetReservationsWithRateDetailsResponse](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md) - [GetReservationsWithRateDetailsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md) + - [GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) - [GetReservationsWithRateDetailsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) - - [GetReservationsWithRateDetailsResponseDataInnerSourceInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md) + - [GetReservationsWithRateDetailsResponseDataInnerSource](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md) - [GetRoomBlocksResponse](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md) - [GetRoomBlocksResponseDataInner](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md) - [GetRoomTypesResponse](cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md) diff --git a/VERSION b/VERSION index bd8bf88..27f9cd3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.7.0 +1.8.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index b40a8af..76c0427 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.7.0" +__version__ = "1.8.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -193,8 +193,9 @@ from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse diff --git a/cloudbeds_pms_v1_3/api/allotment_blocks_api.py b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py index 7b74122..33691f3 100644 --- a/cloudbeds_pms_v1_3/api/allotment_blocks_api.py +++ b/cloudbeds_pms_v1_3/api/allotment_blocks_api.py @@ -359,6 +359,7 @@ def _create_allotment_block_notes_post_serialize( def create_allotment_block_post( self, group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, + event_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the event the allotment block should be created")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, rate_plan_id: Annotated[Optional[StrictStr], Field(description="The rate plan ID. Required if rateType is \\\"rate_plan\\\".")] = None, @@ -386,6 +387,8 @@ def create_allotment_block_post( :param group_code: The unique identifier of the group profile the allotment block should be created :type group_code: str + :param event_code: The unique identifier of the event the allotment block should be created + :type event_code: str :param allotment_block_name: The name for the allotment block :type allotment_block_name: str :param rate_type: The rate type for the associated intervals @@ -426,6 +429,7 @@ def create_allotment_block_post( _param = self._create_allotment_block_post_serialize( group_code=group_code, + event_code=event_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, @@ -458,6 +462,7 @@ def create_allotment_block_post( def create_allotment_block_post_with_http_info( self, group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, + event_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the event the allotment block should be created")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, rate_plan_id: Annotated[Optional[StrictStr], Field(description="The rate plan ID. Required if rateType is \\\"rate_plan\\\".")] = None, @@ -485,6 +490,8 @@ def create_allotment_block_post_with_http_info( :param group_code: The unique identifier of the group profile the allotment block should be created :type group_code: str + :param event_code: The unique identifier of the event the allotment block should be created + :type event_code: str :param allotment_block_name: The name for the allotment block :type allotment_block_name: str :param rate_type: The rate type for the associated intervals @@ -525,6 +532,7 @@ def create_allotment_block_post_with_http_info( _param = self._create_allotment_block_post_serialize( group_code=group_code, + event_code=event_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, @@ -557,6 +565,7 @@ def create_allotment_block_post_with_http_info( def create_allotment_block_post_without_preload_content( self, group_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the group profile the allotment block should be created")] = None, + event_code: Annotated[Optional[StrictStr], Field(description="The unique identifier of the event the allotment block should be created")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="The name for the allotment block")] = None, rate_type: Annotated[Optional[StrictStr], Field(description="The rate type for the associated intervals")] = None, rate_plan_id: Annotated[Optional[StrictStr], Field(description="The rate plan ID. Required if rateType is \\\"rate_plan\\\".")] = None, @@ -584,6 +593,8 @@ def create_allotment_block_post_without_preload_content( :param group_code: The unique identifier of the group profile the allotment block should be created :type group_code: str + :param event_code: The unique identifier of the event the allotment block should be created + :type event_code: str :param allotment_block_name: The name for the allotment block :type allotment_block_name: str :param rate_type: The rate type for the associated intervals @@ -624,6 +635,7 @@ def create_allotment_block_post_without_preload_content( _param = self._create_allotment_block_post_serialize( group_code=group_code, + event_code=event_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, @@ -651,6 +663,7 @@ def create_allotment_block_post_without_preload_content( def _create_allotment_block_post_serialize( self, group_code, + event_code, allotment_block_name, rate_type, rate_plan_id, @@ -686,6 +699,8 @@ def _create_allotment_block_post_serialize( # process the form parameters if group_code is not None: _form_params.append(('groupCode', group_code)) + if event_code is not None: + _form_params.append(('eventCode', event_code)) if allotment_block_name is not None: _form_params.append(('allotmentBlockName', allotment_block_name)) if rate_type is not None: @@ -1033,6 +1048,7 @@ def get_allotment_blocks_get( allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="Allotment block name")] = None, group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, + event_code: Annotated[Optional[StrictStr], Field(description="An event code")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, room_type_id: Annotated[Optional[StrictStr], Field(description="Filters allotment blocks with the supplied Room Type ID.")] = None, @@ -1066,6 +1082,8 @@ def get_allotment_blocks_get( :type allotment_block_name: str :param group_code: A group profile code :type group_code: str + :param event_code: An event code + :type event_code: str :param allotment_block_status: Allotment block status(es) :type allotment_block_status: str :param allotment_block_type: The type of allotment block @@ -1109,6 +1127,7 @@ def get_allotment_blocks_get( allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, + event_code=event_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, @@ -1144,6 +1163,7 @@ def get_allotment_blocks_get_with_http_info( allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="Allotment block name")] = None, group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, + event_code: Annotated[Optional[StrictStr], Field(description="An event code")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, room_type_id: Annotated[Optional[StrictStr], Field(description="Filters allotment blocks with the supplied Room Type ID.")] = None, @@ -1177,6 +1197,8 @@ def get_allotment_blocks_get_with_http_info( :type allotment_block_name: str :param group_code: A group profile code :type group_code: str + :param event_code: An event code + :type event_code: str :param allotment_block_status: Allotment block status(es) :type allotment_block_status: str :param allotment_block_type: The type of allotment block @@ -1220,6 +1242,7 @@ def get_allotment_blocks_get_with_http_info( allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, + event_code=event_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, @@ -1255,6 +1278,7 @@ def get_allotment_blocks_get_without_preload_content( allotment_block_code: Annotated[Optional[StrictStr], Field(description="Allotment block code")] = None, allotment_block_name: Annotated[Optional[StrictStr], Field(description="Allotment block name")] = None, group_code: Annotated[Optional[StrictStr], Field(description="A group profile code")] = None, + event_code: Annotated[Optional[StrictStr], Field(description="An event code")] = None, allotment_block_status: Annotated[Optional[StrictStr], Field(description="Allotment block status(es)")] = None, allotment_block_type: Annotated[Optional[StrictStr], Field(description="The type of allotment block")] = None, room_type_id: Annotated[Optional[StrictStr], Field(description="Filters allotment blocks with the supplied Room Type ID.")] = None, @@ -1288,6 +1312,8 @@ def get_allotment_blocks_get_without_preload_content( :type allotment_block_name: str :param group_code: A group profile code :type group_code: str + :param event_code: An event code + :type event_code: str :param allotment_block_status: Allotment block status(es) :type allotment_block_status: str :param allotment_block_type: The type of allotment block @@ -1331,6 +1357,7 @@ def get_allotment_blocks_get_without_preload_content( allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, + event_code=event_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, @@ -1361,6 +1388,7 @@ def _get_allotment_blocks_get_serialize( allotment_block_code, allotment_block_name, group_code, + event_code, allotment_block_status, allotment_block_type, room_type_id, @@ -1407,6 +1435,10 @@ def _get_allotment_blocks_get_serialize( _query_params.append(('groupCode', group_code)) + if event_code is not None: + + _query_params.append(('eventCode', event_code)) + if allotment_block_status is not None: _query_params.append(('allotmentBlockStatus', allotment_block_status)) diff --git a/cloudbeds_pms_v1_3/api/reservation_api.py b/cloudbeds_pms_v1_3/api/reservation_api.py index 0e07a0a..970b949 100644 --- a/cloudbeds_pms_v1_3/api/reservation_api.py +++ b/cloudbeds_pms_v1_3/api/reservation_api.py @@ -2040,7 +2040,7 @@ def _get_reservations_get_serialize( def get_reservations_with_rate_details_get( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, @@ -2071,11 +2071,11 @@ def get_reservations_with_rate_details_get( ) -> GetReservationsWithRateDetailsResponse: """getReservationsWithRateDetails - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + Returns a list of reservations with added information regarding booked rates and sources.
Please note that some reservations modification may not be reflected in this timestamp. :param property_id: Property ID :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date :type results_from: datetime :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date :type results_to: datetime @@ -2171,7 +2171,7 @@ def get_reservations_with_rate_details_get( def get_reservations_with_rate_details_get_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, @@ -2202,11 +2202,11 @@ def get_reservations_with_rate_details_get_with_http_info( ) -> ApiResponse[GetReservationsWithRateDetailsResponse]: """getReservationsWithRateDetails - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + Returns a list of reservations with added information regarding booked rates and sources.
Please note that some reservations modification may not be reflected in this timestamp. :param property_id: Property ID :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date :type results_from: datetime :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date :type results_to: datetime @@ -2302,7 +2302,7 @@ def get_reservations_with_rate_details_get_with_http_info( def get_reservations_with_rate_details_get_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago")] = None, + results_from: Annotated[Optional[datetime], Field(description="Inferior limit datetime, used to filter reservations, based on booking date")] = None, results_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date")] = None, modified_from: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, modified_to: Annotated[Optional[datetime], Field(description="Superior limit datetime, used to filter reservations, based on modification date.")] = None, @@ -2333,11 +2333,11 @@ def get_reservations_with_rate_details_get_without_preload_content( ) -> RESTResponseType: """getReservationsWithRateDetails - Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. + Returns a list of reservations with added information regarding booked rates and sources.
Please note that some reservations modification may not be reflected in this timestamp. :param property_id: Property ID :type property_id: str - :param results_from: Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago + :param results_from: Inferior limit datetime, used to filter reservations, based on booking date :type results_from: datetime :param results_to: Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date :type results_to: datetime diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 84f5be5..b475729 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.7.0/python' + self.user_agent = 'OpenAPI-Generator/1.8.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 629b677..8ad69b7 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.7.0".\ + "SDK Package Version: 1.8.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md index 1ef6278..b7db6bb 100644 --- a/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md +++ b/cloudbeds_pms_v1_3/docs/AllotmentBlocksApi.md @@ -100,7 +100,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_allotment_block_post** -> PostCreateAllotmentBlockResponse create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals) +> PostCreateAllotmentBlockResponse create_allotment_block_post(group_code=group_code, event_code=event_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals) createAllotmentBlock @@ -143,6 +143,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_3.AllotmentBlocksApi(api_client) group_code = 'group_code_example' # str | The unique identifier of the group profile the allotment block should be created (optional) + event_code = 'event_code_example' # str | The unique identifier of the event the allotment block should be created (optional) allotment_block_name = 'allotment_block_name_example' # str | The name for the allotment block (optional) rate_type = 'rate_type_example' # str | The rate type for the associated intervals (optional) rate_plan_id = 'rate_plan_id_example' # str | The rate plan ID. Required if rateType is \\\"rate_plan\\\". (optional) @@ -154,7 +155,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # createAllotmentBlock - api_response = api_instance.create_allotment_block_post(group_code=group_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals) + api_response = api_instance.create_allotment_block_post(group_code=group_code, event_code=event_code, allotment_block_name=allotment_block_name, rate_type=rate_type, rate_plan_id=rate_plan_id, allotment_type=allotment_type, allotment_block_status=allotment_block_status, allow_overbooking=allow_overbooking, auto_release=auto_release, allotment_intervals=allotment_intervals) print("The response of AllotmentBlocksApi->create_allotment_block_post:\n") pprint(api_response) except Exception as e: @@ -169,6 +170,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **group_code** | **str**| The unique identifier of the group profile the allotment block should be created | [optional] + **event_code** | **str**| The unique identifier of the event the allotment block should be created | [optional] **allotment_block_name** | **str**| The name for the allotment block | [optional] **rate_type** | **str**| The rate type for the associated intervals | [optional] **rate_plan_id** | **str**| The rate plan ID. Required if rateType is \\\"rate_plan\\\". | [optional] @@ -282,7 +284,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_allotment_blocks_get** -> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date, for_update=for_update) +> GetAllotmentBlocksResponse get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, event_code=event_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date, for_update=for_update) getAllotmentBlocks @@ -326,6 +328,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: allotment_block_code = 'allotment_block_code_example' # str | Allotment block code (optional) allotment_block_name = 'allotment_block_name_example' # str | Allotment block name (optional) group_code = 'group_code_example' # str | A group profile code (optional) + event_code = 'event_code_example' # str | An event code (optional) allotment_block_status = 'allotment_block_status_example' # str | Allotment block status(es) (optional) allotment_block_type = 'allotment_block_type_example' # str | The type of allotment block (optional) room_type_id = 'room_type_id_example' # str | Filters allotment blocks with the supplied Room Type ID. (optional) @@ -337,7 +340,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # getAllotmentBlocks - api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date, for_update=for_update) + api_response = api_instance.get_allotment_blocks_get(property_id, allotment_block_code=allotment_block_code, allotment_block_name=allotment_block_name, group_code=group_code, event_code=event_code, allotment_block_status=allotment_block_status, allotment_block_type=allotment_block_type, room_type_id=room_type_id, page_size=page_size, page_number=page_number, start_date=start_date, end_date=end_date, for_update=for_update) print("The response of AllotmentBlocksApi->get_allotment_blocks_get:\n") pprint(api_response) except Exception as e: @@ -355,6 +358,7 @@ Name | Type | Description | Notes **allotment_block_code** | **str**| Allotment block code | [optional] **allotment_block_name** | **str**| Allotment block name | [optional] **group_code** | **str**| A group profile code | [optional] + **event_code** | **str**| An event code | [optional] **allotment_block_status** | **str**| Allotment block status(es) | [optional] **allotment_block_type** | **str**| The type of allotment block | [optional] **room_type_id** | **str**| Filters allotment blocks with the supplied Room Type ID. | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md index db45c93..b116fd2 100644 --- a/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInner.md @@ -12,11 +12,23 @@ Name | Type | Description | Notes **allotment_block_id** | **str** | Allotment block ID | [optional] **rate_type** | **str** | Rate type for the allotment block | [optional] **rate_plan_id** | **str** | Rate plan ID if applicable | [optional] +**rate_plan** | **str** | Rate plan name if applicable | [optional] **allotment_type** | **str** | the type of allotment block | [optional] **group_id** | **str** | Group profile ID associated to the allotment block | [optional] **group_code** | **str** | Group profile code associated to the allotment block | [optional] +**event_id** | **str** | Event ID associated to the allotment block | [optional] +**event_code** | **str** | Event code associated to the allotment block | [optional] +**booking_code_url** | **str** | URL for the booking engine with the allotment block code pre-filled | [optional] **is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] **auto_release** | [**List[GetAllotmentBlocksResponseDataInnerAutoReleaseInner]**](GetAllotmentBlocksResponseDataInnerAutoReleaseInner.md) | auto-release data if applicable | [optional] +**release_status** | **str** | Current status of the inventory release process | [optional] +**release_schedule_status** | **str** | Human-readable description of release schedule | [optional] +**release_schedule_type** | **str** | The release scheduling method for inventory release | [optional] +**release_date** | **str** | Release date | [optional] +**reservations_count** | **int** | Number of linked reservations | [optional] +**rooms_held** | **int** | Total rooms held | [optional] +**rooms_picked_up** | **int** | Rooms picked up | [optional] +**rooms_remaining** | **int** | Rooms remaining | [optional] **allotment_intervals** | [**List[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner]**](GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md index 2248857..066b08c 100644 --- a/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestListResponseDataValue.md @@ -34,7 +34,7 @@ Name | Type | Description | Notes **company_tax_id** | **str** | Company tax ID | [optional] **company_name** | **str** | Company name | [optional] **guest_opt_in** | **bool** | If guest has opted-in to marketing communication or not | [optional] -**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] +**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **guest_notes** | [**List[GetGuestListResponseDataValueGuestNotesInner]**](GetGuestListResponseDataValueGuestNotesInner.md) | Guest Notes | [optional] **status** | **str** | Reservation status<br /> in_progress - Reservation is pending confirmation<br /> confirmed - Reservation is confirmed<br /> not_confirmed - Reservation not passed confirmation<br /> canceled - Reservation is canceled<br /> checked_in - Guest is in hotel<br /> checked_out - Guest already left hotel<br /> no_show - Guest didn't showed up on check-in date | [optional] **is_merged** | **bool** | Flag indicating that guest was merged | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md b/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md index 54957f8..7ddcebc 100644 --- a/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestResponseData.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **document_issuing_country** | **str** | Document Issuing Country (2-digits code) | [optional] **document_expiration_date** | [**GetGuestResponseDataDocumentExpirationDate**](GetGuestResponseDataDocumentExpirationDate.md) | | [optional] **custom_fields** | [**List[GetGuestResponseDataCustomFieldsInner]**](GetGuestResponseDataCustomFieldsInner.md) | | [optional] -**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] +**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **special_requests** | **str** | Special requests made by the guest at the time of the booking | [optional] **tax_id** | **str** | Tax ID | [optional] **company_tax_id** | **str** | Company tax ID | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md index 18229ff..dc8a119 100644 --- a/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetGuestsModifiedResponseDataInner.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes **guest_document_expiration_date** | **date** | Document Expiration Date | [optional] **start_date** | **datetime** | Check-in date | [optional] **end_date** | **datetime** | Check-out date | [optional] -**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] +**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of custom fields | [optional] **date_modified** | **datetime** | Guest modification date | [optional] **tax_id** | **str** | Tax ID | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md index 85cdb72..ac209ab 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationResponseDataGuestListValue.md @@ -35,7 +35,7 @@ Name | Type | Description | Notes **room_type_name** | **str** | Room Type Name where guest is assigned | [optional] **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] **is_main_guest** | **bool** | If the guest is the main guest of the reservation or not | [optional] -**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] +**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestRequirements=true`. | [optional] **custom_fields** | [**List[GetReservationResponseDataGuestListValueCustomFieldsInner]**](GetReservationResponseDataGuestListValueCustomFieldsInner.md) | List of custom fields | [optional] **rooms** | [**List[GetReservationResponseDataGuestListValueRoomsInner]**](GetReservationResponseDataGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] **unassigned_rooms** | [**List[GetReservationResponseDataGuestListValueUnassignedRoomsInner]**](GetReservationResponseDataGuestListValueUnassignedRoomsInner.md) | List of unassigned rooms | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md index 1505f09..60a86aa 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md @@ -38,7 +38,7 @@ Name | Type | Description | Notes **room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] **rooms** | [**List[GetReservationsResponseDataInnerGuestListValueRoomsInner]**](GetReservationsResponseDataInnerGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] **unassigned_rooms** | [**List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]**](GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) | List of all unassigned rooms | [optional] -**guest_requirements** | **List[object]** | Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`. | [optional] +**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`. | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of guest custom fields | [optional] **is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] **is_main_guest** | **bool** | Flag indicating the guest is the main guest on the reservation | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md index 85cce19..feef90f 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md @@ -21,11 +21,11 @@ Name | Type | Description | Notes **profile_id** | **str** | Main guest profile ID | [optional] **guest_country** | **int** | Main guest Country | [optional] **source_name** | **str** | Reservation source | [optional] -**source** | [**List[GetReservationsWithRateDetailsResponseDataInnerSourceInner]**](GetReservationsWithRateDetailsResponseDataInnerSourceInner.md) | | [optional] +**source** | [**GetReservationsWithRateDetailsResponseDataInnerSource**](GetReservationsWithRateDetailsResponseDataInnerSource.md) | | [optional] **source_category** | **int** | Reservation source category | [optional] **source_reservation_id** | **int** | Reservation ID on the source | [optional] **property_currency** | **int** | Property currency ISO-formatted (3 characters) | [optional] -**balance_detailed** | [**List[GetReservationResponseDataBalanceDetailedOneOf]**](GetReservationResponseDataBalanceDetailedOneOf.md) | Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated | [optional] +**balance_detailed** | [**GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed**](GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) | | [optional] **detailed_rates** | **List[object]** | Associative object, where key is the date, and value is the total rate for that date. | [optional] **rooms** | [**List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]**](GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) | Array with rooms information | [optional] **origin** | **str** | Reservation origin | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md new file mode 100644 index 0000000..43f6b6a --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md @@ -0,0 +1,35 @@ +# GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed + +Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggested_deposit** | **str** | Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid | [optional] +**sub_total** | **float** | Sum of the room prices on the reservation | [optional] +**additional_items** | **float** | Sum of the additional items recorded on the reservation | [optional] +**taxes_fees** | **float** | Sum of the taxes and fees calculated on the reservation | [optional] +**grand_total** | **float** | Sum of sub.Total + additionalItems + taxesFees | [optional] +**paid** | **float** | Amount paid (reservation deposit + any other extra payment) | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed from a JSON string +get_reservations_with_rate_details_response_data_inner_balance_detailed_instance = GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_data_inner_balance_detailed_dict = get_reservations_with_rate_details_response_data_inner_balance_detailed_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed from a dict +get_reservations_with_rate_details_response_data_inner_balance_detailed_from_dict = GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.from_dict(get_reservations_with_rate_details_response_data_inner_balance_detailed_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md new file mode 100644 index 0000000..c6e276d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md @@ -0,0 +1,33 @@ +# GetReservationsWithRateDetailsResponseDataInnerSource + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Reservation source | [optional] +**payment_collect** | **str** | Reservation payment collect source | [optional] +**source_id** | **str** | Booking source unique id | [optional] +**category** | **str** | Reservation source category | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponseDataInnerSource from a JSON string +get_reservations_with_rate_details_response_data_inner_source_instance = GetReservationsWithRateDetailsResponseDataInnerSource.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponseDataInnerSource.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_data_inner_source_dict = get_reservations_with_rate_details_response_data_inner_source_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponseDataInnerSource from a dict +get_reservations_with_rate_details_response_data_inner_source_from_dict = GetReservationsWithRateDetailsResponseDataInnerSource.from_dict(get_reservations_with_rate_details_response_data_inner_source_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md index 608c906..8a57bbe 100644 --- a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInner.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **allotment_type** | **str** | the type of allotment block | [optional] **group_id** | **str** | Group profile ID associated to the allotment block | [optional] **group_code** | **str** | Group profile code associated to the allotment block | [optional] +**event_id** | **str** | Event ID associated to the allotment block | [optional] +**event_code** | **str** | Event code associated to the allotment block | [optional] **is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] **auto_release** | [**PostCreateAllotmentBlockResponseDataInnerAutoRelease**](PostCreateAllotmentBlockResponseDataInnerAutoRelease.md) | | [optional] **allotment_intervals** | [**List[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md index add6f07..a73cd51 100644 --- a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **allotment_type** | **str** | the type of allotment block | [optional] **group_id** | **str** | Group profile ID associated to the allotment block | [optional] **group_code** | **str** | Group profile code associated to the allotment block | [optional] +**event_id** | **str** | Event ID associated to the allotment block | [optional] +**event_code** | **str** | Event code associated to the allotment block | [optional] **is_auto_release** | **bool** | If the allotment block is configured for auto-release | [optional] **auto_release** | [**PostCreateAllotmentBlockResponseDataInnerAutoRelease**](PostCreateAllotmentBlockResponseDataInnerAutoRelease.md) | | [optional] **allotment_intervals** | [**List[PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]**](PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md) | array of interval data by room type | [optional] diff --git a/cloudbeds_pms_v1_3/docs/ReservationApi.md b/cloudbeds_pms_v1_3/docs/ReservationApi.md index 8fb2a59..e87c032 100644 --- a/cloudbeds_pms_v1_3/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_3/docs/ReservationApi.md @@ -501,7 +501,7 @@ Name | Type | Description | Notes getReservationsWithRateDetails -Returns a list of reservations with added information regarding booked rates and sources. The results are limited to 2 years in the past unless resutsFrom parameter is set to another date.
Please note that some reservations modification may not be reflected in this timestamp. +Returns a list of reservations with added information regarding booked rates and sources.
Please note that some reservations modification may not be reflected in this timestamp. ### Example @@ -538,7 +538,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) - results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago (optional) + results_from = '2013-10-20T19:20:30+01:00' # datetime | Inferior limit datetime, used to filter reservations, based on booking date (optional) results_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date (optional) modified_from = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on modification date. (optional) modified_to = '2013-10-20T19:20:30+01:00' # datetime | Superior limit datetime, used to filter reservations, based on modification date. (optional) @@ -572,7 +572,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] - **results_from** | **datetime**| Inferior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations starting 2 years ago | [optional] + **results_from** | **datetime**| Inferior limit datetime, used to filter reservations, based on booking date | [optional] **results_to** | **datetime**| Superior limit datetime, used to filter reservations, based on booking date. If it is not set, will return the reservations up to current date | [optional] **modified_from** | **datetime**| Superior limit datetime, used to filter reservations, based on modification date. | [optional] **modified_to** | **datetime**| Superior limit datetime, used to filter reservations, based on modification date. | [optional] diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index 29b8515..f86c1f7 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -155,8 +155,9 @@ from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_rooms_inner import GetReservationsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse diff --git a/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py index d7329f3..aeac31c 100644 --- a/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner import GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner from cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner import GetAllotmentBlocksResponseDataInnerAutoReleaseInner @@ -35,13 +35,25 @@ class GetAllotmentBlocksResponseDataInner(BaseModel): allotment_block_id: Optional[StrictStr] = Field(default=None, description="Allotment block ID", alias="allotmentBlockId") rate_type: Optional[StrictStr] = Field(default=None, description="Rate type for the allotment block", alias="rateType") rate_plan_id: Optional[StrictStr] = Field(default=None, description="Rate plan ID if applicable", alias="ratePlanId") + rate_plan: Optional[StrictStr] = Field(default=None, description="Rate plan name if applicable", alias="ratePlan") allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") group_code: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block", alias="groupCode") + event_id: Optional[StrictStr] = Field(default=None, description="Event ID associated to the allotment block", alias="eventId") + event_code: Optional[StrictStr] = Field(default=None, description="Event code associated to the allotment block", alias="eventCode") + booking_code_url: Optional[StrictStr] = Field(default=None, description="URL for the booking engine with the allotment block code pre-filled", alias="bookingCodeUrl") is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") auto_release: Optional[List[GetAllotmentBlocksResponseDataInnerAutoReleaseInner]] = Field(default=None, description="auto-release data if applicable", alias="autoRelease") + release_status: Optional[StrictStr] = Field(default=None, description="Current status of the inventory release process", alias="releaseStatus") + release_schedule_status: Optional[StrictStr] = Field(default=None, description="Human-readable description of release schedule", alias="releaseScheduleStatus") + release_schedule_type: Optional[StrictStr] = Field(default=None, description="The release scheduling method for inventory release", alias="releaseScheduleType") + release_date: Optional[StrictStr] = Field(default=None, description="Release date", alias="releaseDate") + reservations_count: Optional[StrictInt] = Field(default=None, description="Number of linked reservations", alias="reservationsCount") + rooms_held: Optional[StrictInt] = Field(default=None, description="Total rooms held", alias="roomsHeld") + rooms_picked_up: Optional[StrictInt] = Field(default=None, description="Rooms picked up", alias="roomsPickedUp") + rooms_remaining: Optional[StrictInt] = Field(default=None, description="Rooms remaining", alias="roomsRemaining") allotment_intervals: Optional[List[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") - __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] + __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "ratePlan", "allotmentType", "groupId", "groupCode", "eventId", "eventCode", "bookingCodeUrl", "isAutoRelease", "autoRelease", "releaseStatus", "releaseScheduleStatus", "releaseScheduleType", "releaseDate", "reservationsCount", "roomsHeld", "roomsPickedUp", "roomsRemaining", "allotmentIntervals"] model_config = ConfigDict( populate_by_name=True, @@ -115,11 +127,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allotmentBlockId": obj.get("allotmentBlockId"), "rateType": obj.get("rateType"), "ratePlanId": obj.get("ratePlanId"), + "ratePlan": obj.get("ratePlan"), "allotmentType": obj.get("allotmentType"), "groupId": obj.get("groupId"), "groupCode": obj.get("groupCode"), + "eventId": obj.get("eventId"), + "eventCode": obj.get("eventCode"), + "bookingCodeUrl": obj.get("bookingCodeUrl"), "isAutoRelease": obj.get("isAutoRelease"), "autoRelease": [GetAllotmentBlocksResponseDataInnerAutoReleaseInner.from_dict(_item) for _item in obj["autoRelease"]] if obj.get("autoRelease") is not None else None, + "releaseStatus": obj.get("releaseStatus"), + "releaseScheduleStatus": obj.get("releaseScheduleStatus"), + "releaseScheduleType": obj.get("releaseScheduleType"), + "releaseDate": obj.get("releaseDate"), + "reservationsCount": obj.get("reservationsCount"), + "roomsHeld": obj.get("roomsHeld"), + "roomsPickedUp": obj.get("roomsPickedUp"), + "roomsRemaining": obj.get("roomsRemaining"), "allotmentIntervals": [GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py index 5a0a36f..e76969d 100644 --- a/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py +++ b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py @@ -57,7 +57,7 @@ class GetGuestListResponseDataValue(BaseModel): company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") company_name: Optional[StrictStr] = Field(default=None, description="Company name", alias="companyName") guest_opt_in: Optional[StrictBool] = Field(default=None, description="If guest has opted-in to marketing communication or not", alias="guestOptIn") - guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") + guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") guest_notes: Optional[List[GetGuestListResponseDataValueGuestNotesInner]] = Field(default=None, description="Guest Notes", alias="guestNotes") status: Optional[StrictStr] = Field(default=None, description="Reservation status
in_progress - Reservation is pending confirmation
confirmed - Reservation is confirmed
not_confirmed - Reservation not passed confirmation
canceled - Reservation is canceled
checked_in - Guest is in hotel
checked_out - Guest already left hotel
no_show - Guest didn't showed up on check-in date") is_merged: Optional[StrictBool] = Field(default=None, description="Flag indicating that guest was merged", alias="isMerged") diff --git a/cloudbeds_pms_v1_3/models/get_guest_response_data.py b/cloudbeds_pms_v1_3/models/get_guest_response_data.py index 7c6c1e7..8f23a37 100644 --- a/cloudbeds_pms_v1_3/models/get_guest_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data.py @@ -49,7 +49,7 @@ class GetGuestResponseData(BaseModel): document_issuing_country: Optional[StrictStr] = Field(default=None, description="Document Issuing Country (2-digits code)", alias="documentIssuingCountry") document_expiration_date: Optional[GetGuestResponseDataDocumentExpirationDate] = Field(default=None, alias="documentExpirationDate") custom_fields: Optional[List[GetGuestResponseDataCustomFieldsInner]] = Field(default=None, alias="customFields") - guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") + guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") special_requests: Optional[StrictStr] = Field(default=None, description="Special requests made by the guest at the time of the booking", alias="specialRequests") tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") company_tax_id: Optional[StrictStr] = Field(default=None, description="Company tax ID", alias="companyTaxID") diff --git a/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py index 946819b..b5c5e55 100644 --- a/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py @@ -53,7 +53,7 @@ class GetGuestsModifiedResponseDataInner(BaseModel): guest_document_expiration_date: Optional[date] = Field(default=None, description="Document Expiration Date", alias="guestDocumentExpirationDate") start_date: Optional[datetime] = Field(default=None, description="Check-in date", alias="startDate") end_date: Optional[datetime] = Field(default=None, description="Check-out date", alias="endDate") - guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") + guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of custom fields", alias="customFields") date_modified: Optional[datetime] = Field(default=None, description="Guest modification date", alias="dateModified") tax_id: Optional[StrictStr] = Field(default=None, description="Tax ID", alias="taxID") diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py index 00f6d3c..d720100 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py @@ -60,7 +60,7 @@ class GetReservationResponseDataGuestListValue(BaseModel): room_type_name: Optional[StrictStr] = Field(default=None, description="Room Type Name where guest is assigned", alias="roomTypeName") room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") is_main_guest: Optional[StrictBool] = Field(default=None, description="If the guest is the main guest of the reservation or not", alias="isMainGuest") - guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") + guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestRequirements=true`.", alias="guestRequirements") custom_fields: Optional[List[GetReservationResponseDataGuestListValueCustomFieldsInner]] = Field(default=None, description="List of custom fields", alias="customFields") rooms: Optional[List[GetReservationResponseDataGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") unassigned_rooms: Optional[List[GetReservationResponseDataGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of unassigned rooms", alias="unassignedRooms") diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py index 2bec38a..67d1a7a 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py @@ -63,7 +63,7 @@ class GetReservationsResponseDataInnerGuestListValue(BaseModel): room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") unassigned_rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of all unassigned rooms", alias="unassignedRooms") - guest_requirements: Optional[List[Dict[str, Any]]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`.", alias="guestRequirements") + guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`.", alias="guestRequirements") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of guest custom fields", alias="customFields") is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") is_main_guest: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest is the main guest on the reservation", alias="isMainGuest") diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py index 30cd0f6..707f4ee 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py @@ -21,10 +21,10 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of import GetReservationResponseDataBalanceDetailedOneOf from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from typing import Optional, Set from typing_extensions import Self @@ -48,11 +48,11 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): profile_id: Optional[StrictStr] = Field(default=None, description="Main guest profile ID", alias="profileID") guest_country: Optional[StrictInt] = Field(default=None, description="Main guest Country", alias="guestCountry") source_name: Optional[StrictStr] = Field(default=None, description="Reservation source", alias="sourceName") - source: Optional[List[GetReservationsWithRateDetailsResponseDataInnerSourceInner]] = None + source: Optional[GetReservationsWithRateDetailsResponseDataInnerSource] = None source_category: Optional[StrictInt] = Field(default=None, description="Reservation source category", alias="sourceCategory") source_reservation_id: Optional[StrictInt] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") property_currency: Optional[StrictInt] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") - balance_detailed: Optional[List[GetReservationResponseDataBalanceDetailedOneOf]] = Field(default=None, description="Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated", alias="balanceDetailed") + balance_detailed: Optional[GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed] = Field(default=None, alias="balanceDetailed") detailed_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") rooms: Optional[List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") @@ -115,20 +115,12 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in source (list) - _items = [] + # override the default output from pydantic by calling `to_dict()` of source if self.source: - for _item_source in self.source: - if _item_source: - _items.append(_item_source.to_dict()) - _dict['source'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in balance_detailed (list) - _items = [] + _dict['source'] = self.source.to_dict() + # override the default output from pydantic by calling `to_dict()` of balance_detailed if self.balance_detailed: - for _item_balance_detailed in self.balance_detailed: - if _item_balance_detailed: - _items.append(_item_balance_detailed.to_dict()) - _dict['balanceDetailed'] = _items + _dict['balanceDetailed'] = self.balance_detailed.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) _items = [] if self.rooms: @@ -218,11 +210,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "profileID": obj.get("profileID"), "guestCountry": obj.get("guestCountry"), "sourceName": obj.get("sourceName"), - "source": [GetReservationsWithRateDetailsResponseDataInnerSourceInner.from_dict(_item) for _item in obj["source"]] if obj.get("source") is not None else None, + "source": GetReservationsWithRateDetailsResponseDataInnerSource.from_dict(obj["source"]) if obj.get("source") is not None else None, "sourceCategory": obj.get("sourceCategory"), "sourceReservationID": obj.get("sourceReservationID"), "propertyCurrency": obj.get("propertyCurrency"), - "balanceDetailed": [GetReservationResponseDataBalanceDetailedOneOf.from_dict(_item) for _item in obj["balanceDetailed"]] if obj.get("balanceDetailed") is not None else None, + "balanceDetailed": GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.from_dict(obj["balanceDetailed"]) if obj.get("balanceDetailed") is not None else None, "detailedRates": obj.get("detailedRates"), "rooms": [GetReservationsWithRateDetailsResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, "origin": obj.get("origin"), diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py new file mode 100644 index 0000000..58f82bd --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed(BaseModel): + """ + Reservation balance detailed with the information available on MyFrontdesk, describing the financial items calculated + """ # noqa: E501 + suggested_deposit: Optional[StrictStr] = Field(default=None, description="Suggested deposit value, calculated according to the hotel policies. Does not mean that it was effectively paid", alias="suggestedDeposit") + sub_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the room prices on the reservation", alias="subTotal") + additional_items: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the additional items recorded on the reservation", alias="additionalItems") + taxes_fees: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the taxes and fees calculated on the reservation", alias="taxesFees") + grand_total: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of sub.Total + additionalItems + taxesFees", alias="grandTotal") + paid: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount paid (reservation deposit + any other extra payment)") + __properties: ClassVar[List[str]] = ["suggestedDeposit", "subTotal", "additionalItems", "taxesFees", "grandTotal", "paid"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "suggestedDeposit": obj.get("suggestedDeposit"), + "subTotal": obj.get("subTotal"), + "additionalItems": obj.get("additionalItems"), + "taxesFees": obj.get("taxesFees"), + "grandTotal": obj.get("grandTotal"), + "paid": obj.get("paid") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py new file mode 100644 index 0000000..f69905d --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponseDataInnerSource(BaseModel): + """ + + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Reservation source") + payment_collect: Optional[StrictStr] = Field(default=None, description="Reservation payment collect source", alias="paymentCollect") + source_id: Optional[StrictStr] = Field(default=None, description="Booking source unique id", alias="sourceID") + category: Optional[StrictStr] = Field(default=None, description="Reservation source category") + __properties: ClassVar[List[str]] = ["name", "paymentCollect", "sourceID", "category"] + + @field_validator('payment_collect') + def payment_collect_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['hotel', 'collect']): + raise ValueError("must be one of enum values ('hotel', 'collect')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerSource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerSource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "paymentCollect": obj.get("paymentCollect"), + "sourceID": obj.get("sourceID"), + "category": obj.get("category") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py index 1559563..385168d 100644 --- a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner.py @@ -38,10 +38,12 @@ class PostCreateAllotmentBlockResponseDataInner(BaseModel): allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") group_code: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block", alias="groupCode") + event_id: Optional[StrictStr] = Field(default=None, description="Event ID associated to the allotment block", alias="eventId") + event_code: Optional[StrictStr] = Field(default=None, description="Event code associated to the allotment block", alias="eventCode") is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") auto_release: Optional[PostCreateAllotmentBlockResponseDataInnerAutoRelease] = Field(default=None, alias="autoRelease") allotment_intervals: Optional[List[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") - __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] + __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "eventId", "eventCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] model_config = ConfigDict( populate_by_name=True, @@ -114,6 +116,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allotmentType": obj.get("allotmentType"), "groupId": obj.get("groupId"), "groupCode": obj.get("groupCode"), + "eventId": obj.get("eventId"), + "eventCode": obj.get("eventCode"), "isAutoRelease": obj.get("isAutoRelease"), "autoRelease": PostCreateAllotmentBlockResponseDataInnerAutoRelease.from_dict(obj["autoRelease"]) if obj.get("autoRelease") is not None else None, "allotmentIntervals": [PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None diff --git a/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py index ae912de..3ad5a23 100644 --- a/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py @@ -38,10 +38,12 @@ class PostUpdateAllotmentBlockResponseDataInner(BaseModel): allotment_type: Optional[StrictStr] = Field(default=None, description="the type of allotment block", alias="allotmentType") group_id: Optional[StrictStr] = Field(default=None, description="Group profile ID associated to the allotment block", alias="groupId") group_code: Optional[StrictStr] = Field(default=None, description="Group profile code associated to the allotment block", alias="groupCode") + event_id: Optional[StrictStr] = Field(default=None, description="Event ID associated to the allotment block", alias="eventId") + event_code: Optional[StrictStr] = Field(default=None, description="Event code associated to the allotment block", alias="eventCode") is_auto_release: Optional[StrictBool] = Field(default=None, description="If the allotment block is configured for auto-release", alias="isAutoRelease") auto_release: Optional[PostCreateAllotmentBlockResponseDataInnerAutoRelease] = Field(default=None, alias="autoRelease") allotment_intervals: Optional[List[PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner]] = Field(default=None, description="array of interval data by room type", alias="allotmentIntervals") - __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] + __properties: ClassVar[List[str]] = ["propertyID", "allotmentBlockCode", "allotmentBlockStatus", "allotmentBlockName", "allotmentBlockId", "rateType", "ratePlanId", "allotmentType", "groupId", "groupCode", "eventId", "eventCode", "isAutoRelease", "autoRelease", "allotmentIntervals"] model_config = ConfigDict( populate_by_name=True, @@ -114,6 +116,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "allotmentType": obj.get("allotmentType"), "groupId": obj.get("groupId"), "groupCode": obj.get("groupCode"), + "eventId": obj.get("eventId"), + "eventCode": obj.get("eventCode"), "isAutoRelease": obj.get("isAutoRelease"), "autoRelease": PostCreateAllotmentBlockResponseDataInnerAutoRelease.from_dict(obj["autoRelease"]) if obj.get("autoRelease") is not None else None, "allotmentIntervals": [PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.from_dict(_item) for _item in obj["allotmentIntervals"]] if obj.get("allotmentIntervals") is not None else None diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py new file mode 100644 index 0000000..f64babe --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed + +class TestGetReservationsWithRateDetailsResponseDataInnerBalanceDetailed(unittest.TestCase): + """GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed: + """Test GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed` + """ + model = GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed() + if include_optional: + return GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337 + ) + else: + return GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed( + ) + """ + + def testGetReservationsWithRateDetailsResponseDataInnerBalanceDetailed(self): + """Test GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py new file mode 100644 index 0000000..f76efb9 --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource + +class TestGetReservationsWithRateDetailsResponseDataInnerSource(unittest.TestCase): + """GetReservationsWithRateDetailsResponseDataInnerSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerSource: + """Test GetReservationsWithRateDetailsResponseDataInnerSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerSource` + """ + model = GetReservationsWithRateDetailsResponseDataInnerSource() + if include_optional: + return GetReservationsWithRateDetailsResponseDataInnerSource( + name = '', + payment_collect = 'hotel', + source_id = '', + category = '' + ) + else: + return GetReservationsWithRateDetailsResponseDataInnerSource( + ) + """ + + def testGetReservationsWithRateDetailsResponseDataInnerSource(self): + """Test GetReservationsWithRateDetailsResponseDataInnerSource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/openapitools.json b/openapitools.json index 9697e11..b33e6ad 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.7.0", + "packageVersion": "1.8.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" From c952b901ff7d845340940e8ee560900b19c7f5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zejd=20=C4=8Ci=C4=8Dak?= Date: Tue, 3 Feb 2026 16:26:00 +0100 Subject: [PATCH 39/46] fix: unknown enum values --- openapitools.json | 4 +- templates/model_enum.mustache | 34 +++ templates/model_generic.mustache | 402 +++++++++++++++++++++++++++++++ 3 files changed, 439 insertions(+), 1 deletion(-) create mode 100644 templates/model_enum.mustache create mode 100644 templates/model_generic.mustache diff --git a/openapitools.json b/openapitools.json index b33e6ad..011c310 100644 --- a/openapitools.json +++ b/openapitools.json @@ -6,13 +6,15 @@ "inputSpec": "public_accessa/api/v1.3/docs/cb-v1.3-openapi-3.0.1.yaml", "outputDir": ".", "validateSpec": false, + "templateDir": "templates", "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", "packageVersion": "1.8.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, - "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1" + "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1", + "enumUnknownDefaultCase": true }, "files": { "README_onlypackage.mustache": { diff --git a/templates/model_enum.mustache b/templates/model_enum.mustache new file mode 100644 index 0000000..b393851 --- /dev/null +++ b/templates/model_enum.mustache @@ -0,0 +1,34 @@ +from __future__ import annotations +import json +from enum import Enum +{{#vendorExtensions.x-py-other-imports}} +{{{.}}} +{{/vendorExtensions.x-py-other-imports}} +from typing_extensions import Self + + +class {{classname}}({{vendorExtensions.x-py-enum-type}}, Enum): + """ + {{{description}}}{{^description}}{{{classname}}}{{/description}} + """ + + """ + allowed enum values + """ +{{#allowableValues}} + {{#enumVars}} + {{{name}}} = {{{value}}} + {{/enumVars}} + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of {{classname}} from a JSON string""" + return cls(json.loads(json_str)) + +{{#enumUnknownDefaultCase}} + @classmethod + def _missing_(cls, value): + """Handle unknown enum values by returning the unknown default case.""" + return cls.UNKNOWN_DEFAULT_OPEN_API +{{/enumUnknownDefaultCase}} +{{/allowableValues}} \ No newline at end of file diff --git a/templates/model_generic.mustache b/templates/model_generic.mustache new file mode 100644 index 0000000..c3bcb0d --- /dev/null +++ b/templates/model_generic.mustache @@ -0,0 +1,402 @@ +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +{{#vendorExtensions.x-py-other-imports}} +{{{.}}} +{{/vendorExtensions.x-py-other-imports}} +{{#vendorExtensions.x-py-model-imports}} +{{{.}}} +{{/vendorExtensions.x-py-model-imports}} +from typing import Optional, Set +from typing_extensions import Self + +{{#hasChildren}} +{{#discriminator}} +{{! If this model is a super class, importlib is used. So import the necessary modules for the type here. }} +from typing import TYPE_CHECKING +if TYPE_CHECKING: +{{#mappedModels}} + from {{packageName}}.models.{{model.classFilename}} import {{modelName}} +{{/mappedModels}} + +{{/discriminator}} +{{/hasChildren}} +class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}): + """ + {{#description}}{{{description}}}{{/description}}{{^description}}{{{classname}}}{{/description}} + """ # noqa: E501 +{{#vars}} + {{name}}: {{{vendorExtensions.x-py-typing}}} +{{/vars}} +{{#isAdditionalPropertiesTrue}} + additional_properties: Dict[str, Any] = {} +{{/isAdditionalPropertiesTrue}} + __properties: ClassVar[List[str]] = [{{#allVars}}"{{baseName}}"{{^-last}}, {{/-last}}{{/allVars}}] +{{#vars}} + {{#vendorExtensions.x-regex}} + + @field_validator('{{{name}}}') + def {{{name}}}_validate_regular_expression(cls, value): + """Validates the regular expression""" + {{^required}} + if value is None: + return value + + {{/required}} + {{#required}} + {{#isNullable}} + if value is None: + return value + + {{/isNullable}} + {{/required}} + if not re.match(r"{{{.}}}", value{{#vendorExtensions.x-modifiers}} ,re.{{{.}}}{{/vendorExtensions.x-modifiers}}): + raise ValueError(r"must validate the regular expression {{{vendorExtensions.x-pattern}}}") + return value + {{/vendorExtensions.x-regex}} + {{#isEnum}} + + @field_validator('{{{name}}}') + def {{{name}}}_validate_enum(cls, value): + """Validates the enum, returning unknown_default_open_api for unrecognized values""" + {{^required}} + if value is None: + return value + + {{/required}} + {{#required}} + {{#isNullable}} + if value is None: + return value + + {{/isNullable}} + {{/required}} + _allowed_values = set([{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]) + {{#isContainer}} + {{#isArray}} + # Map unknown values to the fallback + return [i if i in _allowed_values else 'unknown_default_open_api' for i in value] + {{/isArray}} + {{#isMap}} + # Map unknown values to the fallback + return {k: (v if v in _allowed_values else 'unknown_default_open_api') for k, v in value.items()} + {{/isMap}} + {{/isContainer}} + {{^isContainer}} + if value not in _allowed_values: + return 'unknown_default_open_api' + {{/isContainer}} + return value + {{/isEnum}} +{{/vars}} + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + +{{#hasChildren}} +{{#discriminator}} + # JSON field name that stores the object type + __discriminator_property_name: ClassVar[str] = '{{discriminator.propertyBaseName}}' + + # discriminator mappings + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + {{#mappedModels}}'{{{mappingName}}}': '{{{modelName}}}'{{^-last}},{{/-last}}{{/mappedModels}} + } + + @classmethod + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + """Returns the discriminator value (object type) of the data""" + discriminator_value = obj[cls.__discriminator_property_name] + if discriminator_value: + return cls.__discriminator_value_class_map.get(discriminator_value) + else: + return None + +{{/discriminator}} +{{/hasChildren}} + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[{{^hasChildren}}Self{{/hasChildren}}{{#hasChildren}}{{#discriminator}}Union[{{#mappedModels}}{{{modelName}}}{{^-last}}, {{/-last}}{{/mappedModels}}]{{/discriminator}}{{^discriminator}}Self{{/discriminator}}{{/hasChildren}}]: + """Create an instance of {{{classname}}} from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + {{#vendorExtensions.x-py-readonly}} + * OpenAPI `readOnly` fields are excluded. + {{/vendorExtensions.x-py-readonly}} + {{#isAdditionalPropertiesTrue}} + * Fields in `self.additional_properties` are added to the output dict. + {{/isAdditionalPropertiesTrue}} + """ + excluded_fields: Set[str] = set([ + {{#vendorExtensions.x-py-readonly}} + "{{{.}}}", + {{/vendorExtensions.x-py-readonly}} + {{#isAdditionalPropertiesTrue}} + "additional_properties", + {{/isAdditionalPropertiesTrue}} + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + {{#allVars}} + {{#isContainer}} + {{#isArray}} + {{#items.isArray}} + {{^items.items.isPrimitiveType}} + # override the default output from pydantic by calling `to_dict()` of each item in {{{name}}} (list of list) + _items = [] + if self.{{{name}}}: + for _item_{{{name}}} in self.{{{name}}}: + if _item_{{{name}}}: + _items.append( + [_inner_item.to_dict() for _inner_item in _item_{{{name}}} if _inner_item is not None] + ) + _dict['{{{baseName}}}'] = _items + {{/items.items.isPrimitiveType}} + {{/items.isArray}} + {{^items.isArray}} + {{^items.isPrimitiveType}} + {{^items.isEnumOrRef}} + # override the default output from pydantic by calling `to_dict()` of each item in {{{name}}} (list) + _items = [] + if self.{{{name}}}: + for _item_{{{name}}} in self.{{{name}}}: + if _item_{{{name}}}: + _items.append(_item_{{{name}}}.to_dict()) + _dict['{{{baseName}}}'] = _items + {{/items.isEnumOrRef}} + {{/items.isPrimitiveType}} + {{/items.isArray}} + {{/isArray}} + {{#isMap}} + {{#items.isArray}} + {{^items.items.isPrimitiveType}} + # override the default output from pydantic by calling `to_dict()` of each value in {{{name}}} (dict of array) + _field_dict_of_array = {} + if self.{{{name}}}: + for _key_{{{name}}} in self.{{{name}}}: + if self.{{{name}}}[_key_{{{name}}}] is not None: + _field_dict_of_array[_key_{{{name}}}] = [ + _item.to_dict() for _item in self.{{{name}}}[_key_{{{name}}}] + ] + _dict['{{{baseName}}}'] = _field_dict_of_array + {{/items.items.isPrimitiveType}} + {{/items.isArray}} + {{^items.isArray}} + {{^items.isPrimitiveType}} + {{^items.isEnumOrRef}} + # override the default output from pydantic by calling `to_dict()` of each value in {{{name}}} (dict) + _field_dict = {} + if self.{{{name}}}: + for _key_{{{name}}} in self.{{{name}}}: + if self.{{{name}}}[_key_{{{name}}}]: + _field_dict[_key_{{{name}}}] = self.{{{name}}}[_key_{{{name}}}].to_dict() + _dict['{{{baseName}}}'] = _field_dict + {{/items.isEnumOrRef}} + {{/items.isPrimitiveType}} + {{/items.isArray}} + {{/isMap}} + {{/isContainer}} + {{^isContainer}} + {{^isPrimitiveType}} + {{^isEnumOrRef}} + # override the default output from pydantic by calling `to_dict()` of {{{name}}} + if self.{{{name}}}: + _dict['{{{baseName}}}'] = self.{{{name}}}.to_dict() + {{/isEnumOrRef}} + {{/isPrimitiveType}} + {{/isContainer}} + {{/allVars}} + {{#isAdditionalPropertiesTrue}} + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + {{/isAdditionalPropertiesTrue}} + {{#allVars}} + {{#isNullable}} + # set to None if {{{name}}} (nullable) is None + # and model_fields_set contains the field + if self.{{name}} is None and "{{{name}}}" in self.model_fields_set: + _dict['{{{baseName}}}'] = None + + {{/isNullable}} + {{/allVars}} + return _dict + + {{#hasChildren}} + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Optional[{{#discriminator}}Union[{{#mappedModels}}{{{modelName}}}{{^-last}}, {{/-last}}{{/mappedModels}}]{{/discriminator}}{{^discriminator}}Self{{/discriminator}}]: + """Create an instance of {{{classname}}} from a dict""" + {{#discriminator}} + # look up the object type based on discriminator mapping + object_type = cls.get_discriminator_value(obj) + {{#mappedModels}} + if object_type == '{{{modelName}}}': + return import_module("{{packageName}}.models.{{model.classFilename}}").{{modelName}}.from_dict(obj) + {{/mappedModels}} + + raise ValueError("{{{classname}}} failed to lookup discriminator value from " + + json.dumps(obj) + ". Discriminator property name: " + cls.__discriminator_property_name + + ", mapping: " + json.dumps(cls.__discriminator_value_class_map)) + {{/discriminator}} + {{/hasChildren}} + {{^hasChildren}} + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of {{{classname}}} from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + {{#disallowAdditionalPropertiesIfNotPresent}} + {{^isAdditionalPropertiesTrue}} + # raise errors for additional fields in the input + for _key in obj.keys(): + if _key not in cls.__properties: + raise ValueError("Error due to additional fields (not defined in {{classname}}) in the input: " + _key) + + {{/isAdditionalPropertiesTrue}} + {{/disallowAdditionalPropertiesIfNotPresent}} + _obj = cls.model_validate({ + {{#allVars}} + {{#isContainer}} + {{#isArray}} + {{#items.isArray}} + {{#items.items.isPrimitiveType}} + "{{{baseName}}}": obj.get("{{{baseName}}}"){{^-last}},{{/-last}} + {{/items.items.isPrimitiveType}} + {{^items.items.isPrimitiveType}} + "{{{baseName}}}": [ + [{{{items.items.dataType}}}.from_dict(_inner_item) for _inner_item in _item] + for _item in obj["{{{baseName}}}"] + ] if obj.get("{{{baseName}}}") is not None else None{{^-last}},{{/-last}} + {{/items.items.isPrimitiveType}} + {{/items.isArray}} + {{^items.isArray}} + {{^items.isPrimitiveType}} + {{#items.isEnumOrRef}} + "{{{baseName}}}": obj.get("{{{baseName}}}"){{^-last}},{{/-last}} + {{/items.isEnumOrRef}} + {{^items.isEnumOrRef}} + "{{{baseName}}}": [{{{items.dataType}}}.from_dict(_item) for _item in obj["{{{baseName}}}"]] if obj.get("{{{baseName}}}") is not None else None{{^-last}},{{/-last}} + {{/items.isEnumOrRef}} + {{/items.isPrimitiveType}} + {{#items.isPrimitiveType}} + "{{{baseName}}}": obj.get("{{{baseName}}}"){{^-last}},{{/-last}} + {{/items.isPrimitiveType}} + {{/items.isArray}} + {{/isArray}} + {{#isMap}} + {{^items.isPrimitiveType}} + {{^items.isEnumOrRef}} + {{#items.isContainer}} + {{#items.isMap}} + "{{{baseName}}}": dict( + (_k, dict( + (_ik, {{{items.items.dataType}}}.from_dict(_iv)) + for _ik, _iv in _v.items() + ) + if _v is not None + else None + ) + for _k, _v in obj.get("{{{baseName}}}").items() + ) + if obj.get("{{{baseName}}}") is not None + else None{{^-last}},{{/-last}} + {{/items.isMap}} + {{#items.isArray}} + "{{{baseName}}}": dict( + (_k, + [{{{items.items.dataType}}}.from_dict(_item) for _item in _v] + if _v is not None + else None + ) + for _k, _v in obj.get("{{{baseName}}}", {}).items() + ){{^-last}},{{/-last}} + {{/items.isArray}} + {{/items.isContainer}} + {{^items.isContainer}} + "{{{baseName}}}": dict( + (_k, {{{items.dataType}}}.from_dict(_v)) + for _k, _v in obj["{{{baseName}}}"].items() + ) + if obj.get("{{{baseName}}}") is not None + else None{{^-last}},{{/-last}} + {{/items.isContainer}} + {{/items.isEnumOrRef}} + {{#items.isEnumOrRef}} + "{{{baseName}}}": dict((_k, _v) for _k, _v in obj.get("{{{baseName}}}").items()) if obj.get("{{{baseName}}}") is not None else None{{^-last}},{{/-last}} + {{/items.isEnumOrRef}} + {{/items.isPrimitiveType}} + {{#items.isPrimitiveType}} + "{{{baseName}}}": obj.get("{{{baseName}}}"){{^-last}},{{/-last}} + {{/items.isPrimitiveType}} + {{/isMap}} + {{/isContainer}} + {{^isContainer}} + {{^isPrimitiveType}} + {{^isEnumOrRef}} + "{{{baseName}}}": {{{dataType}}}.from_dict(obj["{{{baseName}}}"]) if obj.get("{{{baseName}}}") is not None else None{{^-last}},{{/-last}} + {{/isEnumOrRef}} + {{#isEnumOrRef}} + "{{{baseName}}}": obj.get("{{{baseName}}}"){{#defaultValue}} if obj.get("{{baseName}}") is not None else {{defaultValue}}{{/defaultValue}}{{^-last}},{{/-last}} + {{/isEnumOrRef}} + {{/isPrimitiveType}} + {{#isPrimitiveType}} + {{#defaultValue}} + "{{{baseName}}}": obj.get("{{{baseName}}}") if obj.get("{{{baseName}}}") is not None else {{{defaultValue}}}{{^-last}},{{/-last}} + {{/defaultValue}} + {{^defaultValue}} + "{{{baseName}}}": obj.get("{{{baseName}}}"){{^-last}},{{/-last}} + {{/defaultValue}} + {{/isPrimitiveType}} + {{/isContainer}} + {{/allVars}} + }) + {{#isAdditionalPropertiesTrue}} + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + {{/isAdditionalPropertiesTrue}} + return _obj + {{/hasChildren}} + +{{#vendorExtensions.x-py-postponed-model-imports.size}} +{{#vendorExtensions.x-py-postponed-model-imports}} +{{{.}}} +{{/vendorExtensions.x-py-postponed-model-imports}} +# TODO: Rewrite to not use raise_errors +{{classname}}.model_rebuild(raise_errors=False) +{{/vendorExtensions.x-py-postponed-model-imports.size}} From b14dd1c2bea4bf7c6fd658abe128429b6d181c2d Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Feb 2026 15:52:38 +0000 Subject: [PATCH 40/46] Bump version to 1.9.0 --- .openapi-generator/FILES | 335 ++++++++++++++++++ README.md | 2 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 2 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- ...RateDetailsResponseDataInnerSourceInner.md | 32 -- ..._response_data_inner_auto_release_inner.py | 7 +- .../models/get_app_state_response_data.py | 7 +- ...onse_data_inner_property_currency_inner.py | 7 +- ...esponse_data_inner_property_rooms_inner.py | 7 +- .../get_custom_fields_response_data_inner.py | 22 +- .../models/get_groups_response_data_inner.py | 21 +- ...oups_response_data_inner_contacts_inner.py | 7 +- ..._data_inner_contacts_inner_emails_inner.py | 7 +- ..._data_inner_contacts_inner_phones_inner.py | 7 +- .../get_guest_list_response_data_value.py | 14 +- .../models/get_guest_response_data.py | 7 +- ...et_guests_by_status_response_data_inner.py | 14 +- ...get_guests_modified_response_data_inner.py | 7 +- ...details_response_data_property_currency.py | 7 +- ...l_details_response_data_property_policy.py | 7 +- ..._house_account_list_response_data_inner.py | 7 +- ...housekeeping_status_response_data_inner.py | 14 +- .../models/get_item_response_data.py | 7 +- .../models/get_items_response_data_inner.py | 7 +- .../get_rate_plans_response_data_inner.py | 15 +- .../models/get_reservation_response_data.py | 7 +- ...ation_response_data_cards_on_file_inner.py | 7 +- ...ervation_response_data_guest_list_value.py | 14 +- ..._reservation_room_details_response_data.py | 7 +- .../get_reservations_response_data_inner.py | 7 +- ...ns_response_data_inner_guest_list_value.py | 7 +- ...data_inner_guest_list_value_rooms_inner.py | 7 +- ...vations_response_data_inner_rooms_inner.py | 7 +- ...s_with_rate_details_response_data_inner.py | 7 +- ...details_response_data_inner_rooms_inner.py | 7 +- ...rate_details_response_data_inner_source.py | 7 +- ...etails_response_data_inner_source_inner.py | 103 ------ .../models/get_room_blocks_response.py | 7 +- .../models/get_sources_response_data_inner.py | 7 +- ..._sources_response_data_inner_fees_inner.py | 14 +- ...sources_response_data_inner_taxes_inner.py | 14 +- .../get_taxes_and_fees_response_data_inner.py | 29 +- ...es_inner_length_of_stay_settings_one_of.py | 7 +- ...ta_inner_length_of_stay_settings_one_of.py | 7 +- .../get_webhooks_response_data_inner_key.py | 7 +- ...t_access_token_response_resources_inner.py | 7 +- .../models/post_card_response_data.py | 7 +- ...te_allotment_block_request_auto_release.py | 7 +- ..._block_response_data_inner_auto_release.py | 7 +- ...dule_request_schedule_reservation_event.py | 7 +- ...uest_schedule_reservation_status_change.py | 7 +- .../post_housekeeping_status_response_data.py | 7 +- .../post_items_to_inventory_request_item.py | 7 +- .../post_patch_group_response_data_inner.py | 14 +- .../models/post_reservation_response.py | 14 +- .../models/post_room_block_response.py | 7 +- ...te_allotment_block_request_auto_release.py | 7 +- .../models/put_room_block_response.py | 7 +- .../test_get_allotment_blocks_response.py | 12 + ...et_allotment_blocks_response_data_inner.py | 12 + .../test/test_get_guest_list_response.py | 4 +- ...test_get_guest_list_response_data_value.py | 4 +- .../test/test_get_guest_response.py | 4 +- .../test/test_get_guest_response_data.py | 4 +- .../test/test_get_guests_modified_response.py | 4 +- ...get_guests_modified_response_data_inner.py | 4 +- .../test/test_get_reservation_response.py | 4 +- .../test_get_reservation_response_data.py | 4 +- ...ervation_response_data_guest_list_value.py | 4 +- .../test/test_get_reservations_response.py | 4 +- ...st_get_reservations_response_data_inner.py | 4 +- ...ns_response_data_inner_guest_list_value.py | 4 +- ...reservations_with_rate_details_response.py | 32 +- ...s_with_rate_details_response_data_inner.py | 32 +- ...etails_response_data_inner_source_inner.py | 54 --- ...st_post_create_allotment_block_response.py | 2 + ...ate_allotment_block_response_data_inner.py | 2 + ...st_post_update_allotment_block_response.py | 2 + ...ate_allotment_block_response_data_inner.py | 2 + openapitools.json | 2 +- 82 files changed, 683 insertions(+), 476 deletions(-) delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md delete mode 100644 cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 4922a77..39ff9bb 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -682,5 +682,340 @@ cloudbeds_pms_v1_3/models/put_room_block_request_rooms_inner.py cloudbeds_pms_v1_3/models/put_room_block_response.py cloudbeds_pms_v1_3/rest.py cloudbeds_pms_v1_3/test/__init__.py +cloudbeds_pms_v1_3/test/test_adjustment_api.py +cloudbeds_pms_v1_3/test/test_allotment_blocks_api.py +cloudbeds_pms_v1_3/test/test_app_settings_api.py +cloudbeds_pms_v1_3/test/test_authentication_api.py +cloudbeds_pms_v1_3/test/test_currency_api.py +cloudbeds_pms_v1_3/test/test_custom_fields_api.py +cloudbeds_pms_v1_3/test/test_dashboard_api.py +cloudbeds_pms_v1_3/test/test_delete_adjustment_response.py +cloudbeds_pms_v1_3/test/test_delete_guest_note_response.py +cloudbeds_pms_v1_3/test/test_delete_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_delete_room_block_response.py +cloudbeds_pms_v1_3/test/test_delete_webhook_response.py +cloudbeds_pms_v1_3/test/test_emails_api.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_auto_release_inner.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_property_settings_response_data_one_of.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response.py +cloudbeds_pms_v1_3/test/test_get_app_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_app_state_response.py +cloudbeds_pms_v1_3/test/test_get_app_state_response_data.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_individual_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_available_room_types_response_data_inner_property_rooms_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_format.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates.py +cloudbeds_pms_v1_3/test/test_get_currency_settings_response_data_rates_fixed_inner.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response.py +cloudbeds_pms_v1_3/test/test_get_custom_fields_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response.py +cloudbeds_pms_v1_3/test/test_get_dashboard_response_data.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_get_email_schedule_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response.py +cloudbeds_pms_v1_3/test/test_get_email_templates_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_files_response.py +cloudbeds_pms_v1_3/test/test_get_files_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response.py +cloudbeds_pms_v1_3/test/test_get_group_notes_response_data.py +cloudbeds_pms_v1_3/test/test_get_groups_response.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_emails_inner.py +cloudbeds_pms_v1_3/test/test_get_groups_response_data_inner_contacts_inner_phones_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py +cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value_guest_notes_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response.py +cloudbeds_pms_v1_3/test/test_get_guest_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_birth_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_expiration_date.py +cloudbeds_pms_v1_3/test/test_get_guest_response_data_document_issue_date.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_filter_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response.py +cloudbeds_pms_v1_3/test/test_get_guests_by_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_address.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_currency.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_image_inner.py +cloudbeds_pms_v1_3/test/test_get_hotel_details_response_data_property_policy.py +cloudbeds_pms_v1_3/test/test_get_hotels_response.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_hotels_response_data_inner_property_currency_inner.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response.py +cloudbeds_pms_v1_3/test/test_get_house_account_list_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response.py +cloudbeds_pms_v1_3/test/test_get_housekeepers_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_get_housekeeping_status_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response.py +cloudbeds_pms_v1_3/test/test_get_item_categories_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response.py +cloudbeds_pms_v1_3/test/test_get_item_response_data.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_item_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_items_response.py +cloudbeds_pms_v1_3/test/test_get_items_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_get_list_allotment_block_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_metadata_response.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data.py +cloudbeds_pms_v1_3/test/test_get_metadata_response_data_api.py +cloudbeds_pms_v1_3/test/test_get_packages_response.py +cloudbeds_pms_v1_3/test/test_get_packages_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_gateway.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner.py +cloudbeds_pms_v1_3/test/test_get_payment_methods_response_data_methods_inner_card_types_inner.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response.py +cloudbeds_pms_v1_3/test/test_get_payments_capabilities_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_jobs_response_data_inner_updates_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_add_ons_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_plans_response_data_inner_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_rate_response.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data.py +cloudbeds_pms_v1_3/test/test_get_rate_response_data_room_rate_detailed_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_assignments_response_data_inner_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_notes_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_assigned_inner_daily_rates_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_balance_detailed_one_of.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_cards_on_file_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_group_inventory_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_guest_birthdate.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_response_data_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data.py +cloudbeds_pms_v1_3/test/test_get_reservation_room_details_response_data_guests_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_room_types_response.py +cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response_data_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_response_data_inner_rooms_inner_linked_room_type_qty_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_rooms_unassigned_response_data_inner_rooms_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_fees_inner.py +cloudbeds_pms_v1_3/test/test_get_sources_response_data_inner_taxes_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_adult.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_child.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_percentage.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_amount_rate_based_inner_rate.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_amount.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_date_ranges_inner_max_length.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of_ranges_inner_amount_rate_based_inner.py +cloudbeds_pms_v1_3/test/test_get_taxes_and_fees_response_data_inner_room_types_inner.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response.py +cloudbeds_pms_v1_3/test/test_get_userinfo_response_roles_inner.py +cloudbeds_pms_v1_3/test/test_get_users_response.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_event.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_key.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_owner.py +cloudbeds_pms_v1_3/test/test_get_webhooks_response_data_inner_subscription_data.py +cloudbeds_pms_v1_3/test/test_groups_api.py +cloudbeds_pms_v1_3/test/test_guest_api.py +cloudbeds_pms_v1_3/test/test_hotel_api.py +cloudbeds_pms_v1_3/test/test_house_account_api.py +cloudbeds_pms_v1_3/test/test_housekeeping_api.py +cloudbeds_pms_v1_3/test/test_integration_api.py +cloudbeds_pms_v1_3/test/test_item_api.py +cloudbeds_pms_v1_3/test/test_package_api.py +cloudbeds_pms_v1_3/test/test_payment_api.py +cloudbeds_pms_v1_3/test/test_post_access_token_response.py +cloudbeds_pms_v1_3/test/test_post_access_token_response_resources_inner.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response.py +cloudbeds_pms_v1_3/test/test_post_adjustment_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_error_response.py +cloudbeds_pms_v1_3/test/test_post_app_error_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response.py +cloudbeds_pms_v1_3/test/test_post_app_property_setting_response_data.py +cloudbeds_pms_v1_3/test/test_post_app_state_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_append_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_card_response.py +cloudbeds_pms_v1_3/test/test_post_card_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action.py +cloudbeds_pms_v1_3/test/test_post_charge_response_data_next_action_details.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_auto_release.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response.py +cloudbeds_pms_v1_3/test/test_post_custom_field_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_fees_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_items_inner_item_taxes_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response.py +cloudbeds_pms_v1_3/test/test_post_custom_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_custom_payment_method_response.py +cloudbeds_pms_v1_3/test/test_post_delete_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_delete_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_event.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_request_schedule_reservation_status_change.py +cloudbeds_pms_v1_3/test/test_post_email_schedule_response.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_body.py +cloudbeds_pms_v1_3/test/test_post_email_template_request_subject.py +cloudbeds_pms_v1_3/test/test_post_email_template_response.py +cloudbeds_pms_v1_3/test/test_post_file_response.py +cloudbeds_pms_v1_3/test/test_post_government_receipt_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response.py +cloudbeds_pms_v1_3/test/test_post_group_note_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response.py +cloudbeds_pms_v1_3/test/test_post_guest_document_response_data.py +cloudbeds_pms_v1_3/test/test_post_guest_note_response.py +cloudbeds_pms_v1_3/test/test_post_guest_photo_response.py +cloudbeds_pms_v1_3/test/test_post_guest_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_guest_response.py +cloudbeds_pms_v1_3/test/test_post_guests_to_room_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_assignment_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response.py +cloudbeds_pms_v1_3/test/test_post_housekeeping_status_response_data.py +cloudbeds_pms_v1_3/test/test_post_item_category_response.py +cloudbeds_pms_v1_3/test/test_post_item_request_payments_inner.py +cloudbeds_pms_v1_3/test/test_post_item_response.py +cloudbeds_pms_v1_3/test/test_post_item_response_data.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_request_item.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_post_items_to_inventory_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response.py +cloudbeds_pms_v1_3/test/test_post_new_house_account_response_data.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response.py +cloudbeds_pms_v1_3/test/test_post_patch_group_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_request_rates_inner_interval.py +cloudbeds_pms_v1_3/test/test_post_patch_rate_response.py +cloudbeds_pms_v1_3/test/test_post_payment_response.py +cloudbeds_pms_v1_3/test/test_post_put_app_property_settings_response.py +cloudbeds_pms_v1_3/test/test_post_put_group_response.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_request_rates_inner_interval_inner.py +cloudbeds_pms_v1_3/test/test_post_put_rate_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_document_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_adults_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_children_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_reservation_response.py +cloudbeds_pms_v1_3/test/test_post_reservation_response_unassigned_inner.py +cloudbeds_pms_v1_3/test/test_post_room_assign_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_block_response.py +cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +cloudbeds_pms_v1_3/test/test_post_room_check_in_response.py +cloudbeds_pms_v1_3/test/test_post_room_check_out_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.py +cloudbeds_pms_v1_3/test/test_post_void_item_response.py +cloudbeds_pms_v1_3/test/test_post_void_payment_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response.py +cloudbeds_pms_v1_3/test/test_post_webhook_response_data.py +cloudbeds_pms_v1_3/test/test_put_guest_note_response.py +cloudbeds_pms_v1_3/test/test_put_guest_request_guest_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_guest_response.py +cloudbeds_pms_v1_3/test/test_put_house_account_status_response.py +cloudbeds_pms_v1_3/test/test_put_housekeeper_response.py +cloudbeds_pms_v1_3/test/test_put_item_to_inventory_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_note_response.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_custom_fields_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_reservation_response.py +cloudbeds_pms_v1_3/test/test_put_room_block_request_rooms_inner.py +cloudbeds_pms_v1_3/test/test_put_room_block_response.py +cloudbeds_pms_v1_3/test/test_rate_api.py +cloudbeds_pms_v1_3/test/test_reservation_api.py +cloudbeds_pms_v1_3/test/test_room_api.py +cloudbeds_pms_v1_3/test/test_taxes_and_fees_api.py +cloudbeds_pms_v1_3/test/test_user_api.py diff --git a/README.md b/README.md index 62f5775..0319458 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.8.0 +- Package version: 1.9.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/VERSION b/VERSION index 27f9cd3..f8e233b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.8.0 +1.9.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 76c0427..bb28ff9 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.8.0" +__version__ = "1.9.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index b475729..aa899ff 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.8.0/python' + self.user_agent = 'OpenAPI-Generator/1.9.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 8ad69b7..6d837f6 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.8.0".\ + "SDK Package Version: 1.9.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md deleted file mode 100644 index 0778e30..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSourceInner.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetReservationsWithRateDetailsResponseDataInnerSourceInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Reservation source | [optional] -**payment_collect** | **str** | Reservation payment collect source | [optional] -**source_id** | **str** | Booking source unique id | [optional] -**category** | **str** | Reservation source category | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a JSON string -get_reservations_with_rate_details_response_data_inner_source_inner_instance = GetReservationsWithRateDetailsResponseDataInnerSourceInner.from_json(json) -# print the JSON string representation of the object -print(GetReservationsWithRateDetailsResponseDataInnerSourceInner.to_json()) - -# convert the object into a dict -get_reservations_with_rate_details_response_data_inner_source_inner_dict = get_reservations_with_rate_details_response_data_inner_source_inner_instance.to_dict() -# create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a dict -get_reservations_with_rate_details_response_data_inner_source_inner_from_dict = GetReservationsWithRateDetailsResponseDataInnerSourceInner.from_dict(get_reservations_with_rate_details_response_data_inner_source_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py index e02abd8..df46f0f 100644 --- a/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_auto_release_inner.py @@ -33,12 +33,13 @@ class GetAllotmentBlocksResponseDataInnerAutoReleaseInner(BaseModel): @field_validator('release_type') def release_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['all_dates', 'by_day', 'by_interval']): - raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + _allowed_values = set(['all_dates', 'by_day', 'by_interval', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_app_state_response_data.py b/cloudbeds_pms_v1_3/models/get_app_state_response_data.py index 4dfc32e..0791865 100644 --- a/cloudbeds_pms_v1_3/models/get_app_state_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_app_state_response_data.py @@ -31,12 +31,13 @@ class GetAppStateResponseData(BaseModel): @field_validator('app_state') def app_state_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['enabled', 'disabled', 'installing', 'pending']): - raise ValueError("must be one of enum values ('enabled', 'disabled', 'installing', 'pending')") + _allowed_values = set(['enabled', 'disabled', 'installing', 'pending', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py index f4ab36e..18cb0c9 100644 --- a/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_currency_inner.py @@ -33,12 +33,13 @@ class GetAvailableRoomTypesResponseDataInnerPropertyCurrencyInner(BaseModel): @field_validator('currency_position') def currency_position_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['before', 'after']): - raise ValueError("must be one of enum values ('before', 'after')") + _allowed_values = set(['before', 'after', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py index 701ba03..7c12641 100644 --- a/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_available_room_types_response_data_inner_property_rooms_inner.py @@ -53,12 +53,13 @@ class GetAvailableRoomTypesResponseDataInnerPropertyRoomsInner(BaseModel): @field_validator('derived_type') def derived_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['fixed', 'percentage']): - raise ValueError("must be one of enum values ('fixed', 'percentage')") + _allowed_values = set(['fixed', 'percentage', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py index 63af086..0c99ba5 100644 --- a/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_custom_fields_response_data_inner.py @@ -39,33 +39,35 @@ class GetCustomFieldsResponseDataInner(BaseModel): @field_validator('apply_to') def apply_to_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['reservation', 'guest']): - raise ValueError("must be one of enum values ('reservation', 'guest')") + _allowed_values = set(['reservation', 'guest', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['input', 'text']): - raise ValueError("must be one of enum values ('input', 'text')") + _allowed_values = set(['input', 'text', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('displayed') def displayed_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - for i in value: - if i not in set(['reservation', 'booking', 'card']): - raise ValueError("each list item must be one of ('reservation', 'booking', 'card')") + _allowed_values = set(['reservation', 'booking', 'card', 'unknown_default_open_api']) + # Map unknown values to the fallback + return [i if i in _allowed_values else 'unknown_default_open_api' for i in value] return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py index d895815..0a30384 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner.py @@ -50,32 +50,35 @@ class GetGroupsResponseDataInner(BaseModel): @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['group', 'company', 'travel_agent', 'wholesaler']): - raise ValueError("must be one of enum values ('group', 'company', 'travel_agent', 'wholesaler')") + _allowed_values = set(['group', 'company', 'travel_agent', 'wholesaler', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['open', 'closed']): - raise ValueError("must be one of enum values ('open', 'closed')") + _allowed_values = set(['open', 'closed', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('commission_type') def commission_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['fixed', 'percent']): - raise ValueError("must be one of enum values ('fixed', 'percent')") + _allowed_values = set(['fixed', 'percent', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py index 6fdf7af..dfd3079 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner.py @@ -55,12 +55,13 @@ class GetGroupsResponseDataInnerContactsInner(BaseModel): @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['active']): - raise ValueError("must be one of enum values ('active')") + _allowed_values = set(['active', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py index 77ccb31..513948b 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_emails_inner.py @@ -32,12 +32,13 @@ class GetGroupsResponseDataInnerContactsInnerEmailsInner(BaseModel): @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['personal', 'business']): - raise ValueError("must be one of enum values ('personal', 'business')") + _allowed_values = set(['personal', 'business', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py index 2b3b1c6..d4662f1 100644 --- a/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py +++ b/cloudbeds_pms_v1_3/models/get_groups_response_data_inner_contacts_inner_phones_inner.py @@ -32,12 +32,13 @@ class GetGroupsResponseDataInnerContactsInnerPhonesInner(BaseModel): @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['home', 'work', 'cell_phone', 'fax']): - raise ValueError("must be one of enum values ('home', 'work', 'cell_phone', 'fax')") + _allowed_values = set(['home', 'work', 'cell_phone', 'fax', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py index e76969d..b87fbdd 100644 --- a/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py +++ b/cloudbeds_pms_v1_3/models/get_guest_list_response_data_value.py @@ -66,22 +66,24 @@ class GetGuestListResponseDataValue(BaseModel): @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['in_progress', 'confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): - raise ValueError("must be one of enum values ('in_progress', 'confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + _allowed_values = set(['in_progress', 'confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_guest_response_data.py b/cloudbeds_pms_v1_3/models/get_guest_response_data.py index 8f23a37..07f20e1 100644 --- a/cloudbeds_pms_v1_3/models/get_guest_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_guest_response_data.py @@ -62,12 +62,13 @@ class GetGuestResponseData(BaseModel): @field_validator('gender') def gender_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py index 19889ce..3686f0d 100644 --- a/cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_by_status_response_data_inner.py @@ -71,22 +71,24 @@ class GetGuestsByStatusResponseDataInner(BaseModel): @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('current_status') def current_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['canceled', 'checked_out', 'in_house', 'not_checked_in']): - raise ValueError("must be one of enum values ('canceled', 'checked_out', 'in_house', 'not_checked_in')") + _allowed_values = set(['canceled', 'checked_out', 'in_house', 'not_checked_in', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py index b5c5e55..4f30977 100644 --- a/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_guests_modified_response_data_inner.py @@ -67,12 +67,13 @@ class GetGuestsModifiedResponseDataInner(BaseModel): @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py index a8627bf..f1fb574 100644 --- a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_currency.py @@ -35,12 +35,13 @@ class GetHotelDetailsResponseDataPropertyCurrency(BaseModel): @field_validator('currency_position') def currency_position_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['before', 'after']): - raise ValueError("must be one of enum values ('before', 'after')") + _allowed_values = set(['before', 'after', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py index d37f9ce..28a3e8c 100644 --- a/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py +++ b/cloudbeds_pms_v1_3/models/get_hotel_details_response_data_property_policy.py @@ -37,12 +37,13 @@ class GetHotelDetailsResponseDataPropertyPolicy(BaseModel): @field_validator('property_late_check_out_type') def property_late_check_out_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['value', 'percent', 'fixed']): - raise ValueError("must be one of enum values ('value', 'percent', 'fixed')") + _allowed_values = set(['value', 'percent', 'fixed', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py index 752fb86..0fe5574 100644 --- a/cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_house_account_list_response_data_inner.py @@ -36,12 +36,13 @@ class GetHouseAccountListResponseDataInner(BaseModel): @field_validator('account_status') def account_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['open', 'closed']): - raise ValueError("must be one of enum values ('open', 'closed')") + _allowed_values = set(['open', 'closed', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py index ff8d0d8..ef1bbbf 100644 --- a/cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_housekeeping_status_response_data_inner.py @@ -46,22 +46,24 @@ class GetHousekeepingStatusResponseDataInner(BaseModel): @field_validator('room_condition') def room_condition_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['dirty', 'clean']): - raise ValueError("must be one of enum values ('dirty', 'clean')") + _allowed_values = set(['dirty', 'clean', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('frontdesk_status') def frontdesk_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['check-in', 'check-out', 'stayover', 'turnover', 'unused']): - raise ValueError("must be one of enum values ('check-in', 'check-out', 'stayover', 'turnover', 'unused')") + _allowed_values = set(['check-in', 'check-out', 'stayover', 'turnover', 'unused', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_item_response_data.py b/cloudbeds_pms_v1_3/models/get_item_response_data.py index fde9b47..64d570b 100644 --- a/cloudbeds_pms_v1_3/models/get_item_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_item_response_data.py @@ -53,12 +53,13 @@ class GetItemResponseData(BaseModel): @field_validator('item_type') def item_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['product', 'service', 'mealplan']): - raise ValueError("must be one of enum values ('product', 'service', 'mealplan')") + _allowed_values = set(['product', 'service', 'mealplan', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py index 82144a8..2855a06 100644 --- a/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_items_response_data_inner.py @@ -53,12 +53,13 @@ class GetItemsResponseDataInner(BaseModel): @field_validator('item_type') def item_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['product', 'service', 'mealplan']): - raise ValueError("must be one of enum values ('product', 'service', 'mealplan')") + _allowed_values = set(['product', 'service', 'mealplan', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py index 4b681f0..c509bf6 100644 --- a/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_rate_plans_response_data_inner.py @@ -50,23 +50,24 @@ class GetRatePlansResponseDataInner(BaseModel): @field_validator('derived_type') def derived_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['fixed', 'percentage']): - raise ValueError("must be one of enum values ('fixed', 'percentage')") + _allowed_values = set(['fixed', 'percentage', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('days_of_week') def days_of_week_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - for i in value: - if i not in set(['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']): - raise ValueError("each list item must be one of ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat')") + _allowed_values = set(['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'unknown_default_open_api']) + # Map unknown values to the fallback + return [i if i in _allowed_values else 'unknown_default_open_api' for i in value] return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data.py index 48e4cd6..92b7ebc 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data.py @@ -65,12 +65,13 @@ class GetReservationResponseData(BaseModel): @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): - raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + _allowed_values = set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py index 1d4bb49..421625c 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_cards_on_file_inner.py @@ -33,12 +33,13 @@ class GetReservationResponseDataCardsOnFileInner(BaseModel): @field_validator('card_type') def card_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['visa', 'master', 'amex', 'diners']): - raise ValueError("must be one of enum values ('visa', 'master', 'amex', 'diners')") + _allowed_values = set(['visa', 'master', 'amex', 'diners', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py index d720100..46e54df 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_response_data_guest_list_value.py @@ -68,22 +68,24 @@ class GetReservationResponseDataGuestListValue(BaseModel): @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('guest_status') def guest_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['in_progress', 'call2confirm', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'not_confirmed', 'no_show', 'paypal_init', 'pending_payment', 'not_checked_in', 'in_house']): - raise ValueError("must be one of enum values ('in_progress', 'call2confirm', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'not_confirmed', 'no_show', 'paypal_init', 'pending_payment', 'not_checked_in', 'in_house')") + _allowed_values = set(['in_progress', 'call2confirm', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'not_confirmed', 'no_show', 'paypal_init', 'pending_payment', 'not_checked_in', 'in_house', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py index 7b334d8..98ffbcb 100644 --- a/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py +++ b/cloudbeds_pms_v1_3/models/get_reservation_room_details_response_data.py @@ -46,12 +46,13 @@ class GetReservationRoomDetailsResponseData(BaseModel): @field_validator('room_status') def room_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['cancelled', 'checked_out', 'in_house', 'not_checked_in']): - raise ValueError("must be one of enum values ('cancelled', 'checked_out', 'in_house', 'not_checked_in')") + _allowed_values = set(['cancelled', 'checked_out', 'in_house', 'not_checked_in', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py index 6e6bd7d..c20c683 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py @@ -60,12 +60,13 @@ class GetReservationsResponseDataInner(BaseModel): @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['not_confirmed', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): - raise ValueError("must be one of enum values ('not_confirmed', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + _allowed_values = set(['not_confirmed', 'confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py index 67d1a7a..773486c 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py @@ -71,12 +71,13 @@ class GetReservationsResponseDataInnerGuestListValue(BaseModel): @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py index 6a2f624..92b3f80 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value_rooms_inner.py @@ -41,12 +41,13 @@ class GetReservationsResponseDataInnerGuestListValueRoomsInner(BaseModel): @field_validator('room_status') def room_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['in_house', 'checked_out', 'not_checked_in']): - raise ValueError("must be one of enum values ('in_house', 'checked_out', 'not_checked_in')") + _allowed_values = set(['in_house', 'checked_out', 'not_checked_in', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py index b2aa899..af0e462 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py @@ -46,12 +46,13 @@ class GetReservationsResponseDataInnerRoomsInner(BaseModel): @field_validator('room_status') def room_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['cancelled', 'in_house', 'checked_out', 'not_checked_in']): - raise ValueError("must be one of enum values ('cancelled', 'in_house', 'checked_out', 'not_checked_in')") + _allowed_values = set(['cancelled', 'in_house', 'checked_out', 'not_checked_in', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py index 707f4ee..9fd5bb0 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py @@ -68,12 +68,13 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): - raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + _allowed_values = set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py index 7a64cda..e1ae593 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -49,12 +49,13 @@ class GetReservationsWithRateDetailsResponseDataInnerRoomsInner(BaseModel): @field_validator('room_status') def room_status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['cancelled', 'in_house', 'checked_out', 'not_checked_in']): - raise ValueError("must be one of enum values ('cancelled', 'in_house', 'checked_out', 'not_checked_in')") + _allowed_values = set(['cancelled', 'in_house', 'checked_out', 'not_checked_in', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py index f69905d..420a6d6 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py @@ -34,12 +34,13 @@ class GetReservationsWithRateDetailsResponseDataInnerSource(BaseModel): @field_validator('payment_collect') def payment_collect_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['hotel', 'collect']): - raise ValueError("must be one of enum values ('hotel', 'collect')") + _allowed_values = set(['hotel', 'collect', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py deleted file mode 100644 index a1ad5d8..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source_inner.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationsWithRateDetailsResponseDataInnerSourceInner(BaseModel): - """ - GetReservationsWithRateDetailsResponseDataInnerSourceInner - """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="Reservation source") - payment_collect: Optional[StrictStr] = Field(default=None, description="Reservation payment collect source", alias="paymentCollect") - source_id: Optional[StrictStr] = Field(default=None, description="Booking source unique id", alias="sourceID") - category: Optional[StrictStr] = Field(default=None, description="Reservation source category") - __properties: ClassVar[List[str]] = ["name", "paymentCollect", "sourceID", "category"] - - @field_validator('payment_collect') - def payment_collect_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['hotel', 'collect']): - raise ValueError("must be one of enum values ('hotel', 'collect')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationsWithRateDetailsResponseDataInnerSourceInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "paymentCollect": obj.get("paymentCollect"), - "sourceID": obj.get("sourceID"), - "category": obj.get("category") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response.py index 6e375c9..bb3ecf4 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response.py @@ -35,12 +35,13 @@ class GetRoomBlocksResponse(BaseModel): @field_validator('room_block_type') def room_block_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['blocked', 'out_of_service', 'courtesy_hold']): - raise ValueError("must be one of enum values ('blocked', 'out_of_service', 'courtesy_hold')") + _allowed_values = set(['blocked', 'out_of_service', 'courtesy_hold', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py index 7c47479..1c840f0 100644 --- a/cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner.py @@ -41,12 +41,13 @@ class GetSourcesResponseDataInner(BaseModel): @field_validator('payment_collect') def payment_collect_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['hotel', 'channel']): - raise ValueError("must be one of enum values ('hotel', 'channel')") + _allowed_values = set(['hotel', 'channel', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py index c04ab14..6a01f30 100644 --- a/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py +++ b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_fees_inner.py @@ -35,22 +35,24 @@ class GetSourcesResponseDataInnerFeesInner(BaseModel): @field_validator('amount_type') def amount_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['percentage', 'fixed']): - raise ValueError("must be one of enum values ('percentage', 'fixed')") + _allowed_values = set(['percentage', 'fixed', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['exclusive', 'inclusive']): - raise ValueError("must be one of enum values ('exclusive', 'inclusive')") + _allowed_values = set(['exclusive', 'inclusive', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py index c4ec543..045b4f6 100644 --- a/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py +++ b/cloudbeds_pms_v1_3/models/get_sources_response_data_inner_taxes_inner.py @@ -35,22 +35,24 @@ class GetSourcesResponseDataInnerTaxesInner(BaseModel): @field_validator('amount_type') def amount_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['percentage', 'fixed']): - raise ValueError("must be one of enum values ('percentage', 'fixed')") + _allowed_values = set(['percentage', 'fixed', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['exclusive', 'inclusive']): - raise ValueError("must be one of enum values ('exclusive', 'inclusive')") + _allowed_values = set(['exclusive', 'inclusive', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py index 6a482f5..c6b23ab 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py @@ -57,43 +57,46 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['fee', 'tax']): - raise ValueError("must be one of enum values ('fee', 'tax')") + _allowed_values = set(['fee', 'tax', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('amount_type') def amount_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['percentage', 'fixed', 'fixed_per_person', 'fixed_per_accomodation', 'fixed_per_reservation', 'percentage_rate_based']): - raise ValueError("must be one of enum values ('percentage', 'fixed', 'fixed_per_person', 'fixed_per_accomodation', 'fixed_per_reservation', 'percentage_rate_based')") + _allowed_values = set(['percentage', 'fixed', 'fixed_per_person', 'fixed_per_accomodation', 'fixed_per_reservation', 'percentage_rate_based', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('available_for') def available_for_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - for i in value: - if i not in set(['product', 'rate', 'fee', 'custom_item']): - raise ValueError("each list item must be one of ('product', 'rate', 'fee', 'custom_item')") + _allowed_values = set(['product', 'rate', 'fee', 'custom_item', 'unknown_default_open_api']) + # Map unknown values to the fallback + return [i if i in _allowed_values else 'unknown_default_open_api' for i in value] return value @field_validator('inclusive_or_exclusive') def inclusive_or_exclusive_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['inclusive', 'exclusive']): - raise ValueError("must be one of enum values ('inclusive', 'exclusive')") + _allowed_values = set(['inclusive', 'exclusive', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py index a9a328c..aa74971 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_date_ranges_inner_length_of_stay_settings_one_of.py @@ -33,12 +33,13 @@ class GetTaxesAndFeesResponseDataInnerDateRangesInnerLengthOfStaySettingsOneOf(B @field_validator('application_type') def application_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['progressive_application', 'retroactive_adjustment']): - raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") + _allowed_values = set(['progressive_application', 'retroactive_adjustment', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py index 3325dac..058ab44 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner_length_of_stay_settings_one_of.py @@ -33,12 +33,13 @@ class GetTaxesAndFeesResponseDataInnerLengthOfStaySettingsOneOf(BaseModel): @field_validator('application_type') def application_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['progressive_application', 'retroactive_adjustment']): - raise ValueError("must be one of enum values ('progressive_application', 'retroactive_adjustment')") + _allowed_values = set(['progressive_application', 'retroactive_adjustment', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py index badb15c..4a25da3 100644 --- a/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py +++ b/cloudbeds_pms_v1_3/models/get_webhooks_response_data_inner_key.py @@ -32,12 +32,13 @@ class GetWebhooksResponseDataInnerKey(BaseModel): @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['user', 'property', 'association']): - raise ValueError("must be one of enum values ('user', 'property', 'association')") + _allowed_values = set(['user', 'property', 'association', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py b/cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py index 3275e18..67b7fd8 100644 --- a/cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py +++ b/cloudbeds_pms_v1_3/models/post_access_token_response_resources_inner.py @@ -32,12 +32,13 @@ class PostAccessTokenResponseResourcesInner(BaseModel): @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['property', 'association']): - raise ValueError("must be one of enum values ('property', 'association')") + _allowed_values = set(['property', 'association', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_card_response_data.py b/cloudbeds_pms_v1_3/models/post_card_response_data.py index be721d1..9cd168b 100644 --- a/cloudbeds_pms_v1_3/models/post_card_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_card_response_data.py @@ -34,12 +34,13 @@ class PostCardResponseData(BaseModel): @field_validator('card_type') def card_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['visa', 'master', 'amex', 'aura', 'diners', 'hiper', 'elo', 'Discover', 'jcb', 'maestro', 'dan', 'PostCard', 'Eurocard', 'сunion']): - raise ValueError("must be one of enum values ('visa', 'master', 'amex', 'aura', 'diners', 'hiper', 'elo', 'Discover', 'jcb', 'maestro', 'dan', 'PostCard', 'Eurocard', 'сunion')") + _allowed_values = set(['visa', 'master', 'amex', 'aura', 'diners', 'hiper', 'elo', 'Discover', 'jcb', 'maestro', 'dan', 'PostCard', 'Eurocard', 'сunion', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py index c580878..a5ee53d 100644 --- a/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_auto_release.py @@ -33,12 +33,13 @@ class PostCreateAllotmentBlockRequestAutoRelease(BaseModel): @field_validator('release_type') def release_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['all_dates', 'by_day', 'by_interval']): - raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + _allowed_values = set(['all_dates', 'by_day', 'by_interval', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py index 889f074..0612507 100644 --- a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_auto_release.py @@ -33,12 +33,13 @@ class PostCreateAllotmentBlockResponseDataInnerAutoRelease(BaseModel): @field_validator('release_type') def release_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['all_dates', 'by_day', 'by_interval']): - raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + _allowed_values = set(['all_dates', 'by_day', 'by_interval', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py index a83b9cd..fa3a48c 100644 --- a/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py +++ b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_event.py @@ -33,12 +33,13 @@ class PostEmailScheduleRequestScheduleReservationEvent(BaseModel): @field_validator('event') def event_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['after_booking', 'after_check_out', 'after_check_in', 'before_check_out', 'before_check_in']): - raise ValueError("must be one of enum values ('after_booking', 'after_check_out', 'after_check_in', 'before_check_out', 'before_check_in')") + _allowed_values = set(['after_booking', 'after_check_out', 'after_check_in', 'before_check_out', 'before_check_in', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py index 8d9b8f0..066ec90 100644 --- a/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py +++ b/cloudbeds_pms_v1_3/models/post_email_schedule_request_schedule_reservation_status_change.py @@ -31,12 +31,13 @@ class PostEmailScheduleRequestScheduleReservationStatusChange(BaseModel): @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show']): - raise ValueError("must be one of enum values ('confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show')") + _allowed_values = set(['confirmed', 'not_confirmed', 'canceled', 'checked_in', 'checked_out', 'no_show', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py b/cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py index 300e010..e15b541 100644 --- a/cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py +++ b/cloudbeds_pms_v1_3/models/post_housekeeping_status_response_data.py @@ -38,12 +38,13 @@ class PostHousekeepingStatusResponseData(BaseModel): @field_validator('room_condition') def room_condition_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['dirty', 'clean', 'inspected']): - raise ValueError("must be one of enum values ('dirty', 'clean', 'inspected')") + _allowed_values = set(['dirty', 'clean', 'inspected', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py b/cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py index 85a5857..3706079 100644 --- a/cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py +++ b/cloudbeds_pms_v1_3/models/post_items_to_inventory_request_item.py @@ -43,12 +43,13 @@ class PostItemsToInventoryRequestItem(BaseModel): @field_validator('item_type') def item_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['product', 'service']): - raise ValueError("must be one of enum values ('product', 'service')") + _allowed_values = set(['product', 'service', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py b/cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py index e87c7fa..579bed5 100644 --- a/cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/post_patch_group_response_data_inner.py @@ -44,22 +44,24 @@ class PostPatchGroupResponseDataInner(BaseModel): @field_validator('type') def type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['group', 'company', 'travel_agent', 'wholesaler']): - raise ValueError("must be one of enum values ('group', 'company', 'travel_agent', 'wholesaler')") + _allowed_values = set(['group', 'company', 'travel_agent', 'wholesaler', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['open', 'closed']): - raise ValueError("must be one of enum values ('open', 'closed')") + _allowed_values = set(['open', 'closed', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_reservation_response.py b/cloudbeds_pms_v1_3/models/post_reservation_response.py index a438481..4e9fe4a 100644 --- a/cloudbeds_pms_v1_3/models/post_reservation_response.py +++ b/cloudbeds_pms_v1_3/models/post_reservation_response.py @@ -46,22 +46,24 @@ class PostReservationResponse(BaseModel): @field_validator('status') def status_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['not_confirmed', 'confirmed']): - raise ValueError("must be one of enum values ('not_confirmed', 'confirmed')") + _allowed_values = set(['not_confirmed', 'confirmed', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value @field_validator('guest_gender') def guest_gender_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['M', 'F', 'N/A']): - raise ValueError("must be one of enum values ('M', 'F', 'N/A')") + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response.py b/cloudbeds_pms_v1_3/models/post_room_block_response.py index 3a458ce..fe5daa7 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response.py @@ -41,12 +41,13 @@ class PostRoomBlockResponse(BaseModel): @field_validator('room_block_type') def room_block_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['blocked', 'out_of_service', 'courtesy_hold']): - raise ValueError("must be one of enum values ('blocked', 'out_of_service', 'courtesy_hold')") + _allowed_values = set(['blocked', 'out_of_service', 'courtesy_hold', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py index 1b019ed..4926a44 100644 --- a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py @@ -33,12 +33,13 @@ class PostUpdateAllotmentBlockRequestAutoRelease(BaseModel): @field_validator('release_type') def release_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['all_dates', 'by_day', 'by_interval']): - raise ValueError("must be one of enum values ('all_dates', 'by_day', 'by_interval')") + _allowed_values = set(['all_dates', 'by_day', 'by_interval', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/models/put_room_block_response.py b/cloudbeds_pms_v1_3/models/put_room_block_response.py index be3de53..2dbde8f 100644 --- a/cloudbeds_pms_v1_3/models/put_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_response.py @@ -41,12 +41,13 @@ class PutRoomBlockResponse(BaseModel): @field_validator('room_block_type') def room_block_type_validate_enum(cls, value): - """Validates the enum""" + """Validates the enum, returning unknown_default_open_api for unrecognized values""" if value is None: return value - if value not in set(['blocked', 'out_of_service', 'courtesy_hold']): - raise ValueError("must be one of enum values ('blocked', 'out_of_service', 'courtesy_hold')") + _allowed_values = set(['blocked', 'out_of_service', 'courtesy_hold', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' return value model_config = ConfigDict( diff --git a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py index 80d0f5b..e291f13 100644 --- a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py @@ -47,9 +47,13 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: allotment_block_id = '', rate_type = '', rate_plan_id = '', + rate_plan = '', allotment_type = '', group_id = '', group_code = '', + event_id = '', + event_code = '', + booking_code_url = '', is_auto_release = True, auto_release = [ cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( @@ -57,6 +61,14 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: days = 56, release_time = '', ) ], + release_status = '', + release_schedule_status = '', + release_schedule_type = '', + release_date = '', + reservations_count = 56, + rooms_held = 56, + rooms_picked_up = 56, + rooms_remaining = 56, allotment_intervals = [ cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( room_type_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py index 1e6c7c3..1e7fa0a 100644 --- a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py @@ -42,9 +42,13 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner allotment_block_id = '', rate_type = '', rate_plan_id = '', + rate_plan = '', allotment_type = '', group_id = '', group_code = '', + event_id = '', + event_code = '', + booking_code_url = '', is_auto_release = True, auto_release = [ cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_auto_release_inner.GetAllotmentBlocksResponse_data_inner_autoRelease_inner( @@ -52,6 +56,14 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner days = 56, release_time = '', ) ], + release_status = '', + release_schedule_status = '', + release_schedule_type = '', + release_date = '', + reservations_count = 56, + rooms_held = 56, + rooms_picked_up = 56, + rooms_remaining = 56, allotment_intervals = [ cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( room_type_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py b/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py index c634372..7487076 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_list_response.py @@ -67,9 +67,7 @@ def make_instance(self, include_optional) -> GetGuestListResponse: company_tax_id = '', company_name = '', guest_opt_in = True, - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), guest_notes = [ cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py index d9498d6..ae6a7cb 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_list_response_data_value.py @@ -64,9 +64,7 @@ def make_instance(self, include_optional) -> GetGuestListResponseDataValue: company_tax_id = '', company_name = '', guest_opt_in = True, - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), guest_notes = [ cloudbeds_pms_v1_3.models.get_guest_list_response_data_value_guest_notes_inner.GetGuestListResponse_data_value_guestNotes_inner( id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_response.py b/cloudbeds_pms_v1_3/test/test_get_guest_response.py index 8b8a7e6..9c89af4 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response.py @@ -60,9 +60,7 @@ def make_instance(self, include_optional) -> GetGuestResponse: custom_field_name = '', custom_field_value = '', ) ], - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), special_requests = '', tax_id = '', company_tax_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py b/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py index dcdb0f6..bd67ee2 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_guest_response_data.py @@ -58,9 +58,7 @@ def make_instance(self, include_optional) -> GetGuestResponseData: custom_field_name = '', custom_field_value = '', ) ], - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), special_requests = '', tax_id = '', company_tax_id = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py index adfb0b7..b50b034 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response.py @@ -63,9 +63,7 @@ def make_instance(self, include_optional) -> GetGuestsModifiedResponse: guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py index 0b81ae9..4963096 100644 --- a/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_guests_modified_response_data_inner.py @@ -60,9 +60,7 @@ def make_instance(self, include_optional) -> GetGuestsModifiedResponseDataInner: guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response.py index ac81c4e..d814a25 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response.py @@ -73,9 +73,7 @@ def make_instance(self, include_optional) -> GetReservationResponse: room_type_name = '', room_type_is_virtual = True, is_main_guest = True, - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py index 632860e..3f085b5 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data.py @@ -71,9 +71,7 @@ def make_instance(self, include_optional) -> GetReservationResponseData: room_type_name = '', room_type_is_virtual = True, is_main_guest = True, - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py index d336f6b..6e2ee5d 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservation_response_data_guest_list_value.py @@ -65,9 +65,7 @@ def make_instance(self, include_optional) -> GetReservationResponseDataGuestList room_type_name = '', room_type_is_virtual = True, is_main_guest = True, - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_reservation_response_data_guest_list_value_custom_fields_inner.GetReservationResponse_data_guestList_value_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py index 5cd1117..4e7fa47 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py @@ -132,9 +132,7 @@ def make_instance(self, include_optional) -> GetReservationsResponse: rate_plan_name = '', sub_reservation_id = '', ) ], - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), is_anonymized = True, is_main_guest = True, ) }, diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py index 46323fe..5e24f7f 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py @@ -143,9 +143,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: rate_plan_name = '', sub_reservation_id = '', ) ], - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py index 2454548..55cb051 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py @@ -91,9 +91,7 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue rate_plan_name = '', sub_reservation_id = '', ) ], - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py index e40eeb4..e0766b6 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py @@ -54,25 +54,21 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo profile_id = '', guest_country = 56, source_name = '', - source = [ - cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( - name = '', - payment_collect = 'hotel', - source_id = '', - category = '', ) - ], + source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( + name = '', + payment_collect = 'hotel', + source_id = '', + category = '', ), source_category = 56, source_reservation_id = 56, property_currency = 56, - balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of.GetReservationResponse_data_balanceDetailed_oneOf( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337, ) - ], + balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, ), detailed_rates = [ None ], @@ -146,9 +142,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo rate_plan_name = '', sub_reservation_id = '', ) ], - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py index 5e9222b..5d03a79 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -51,25 +51,21 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo profile_id = '', guest_country = 56, source_name = '', - source = [ - cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner.GetReservationsWithRateDetailsResponse_data_inner_source_inner( - name = '', - payment_collect = 'hotel', - source_id = '', - category = '', ) - ], + source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( + name = '', + payment_collect = 'hotel', + source_id = '', + category = '', ), source_category = 56, source_reservation_id = 56, property_currency = 56, - balance_detailed = [ - cloudbeds_pms_v1_3.models.get_reservation_response_data_balance_detailed_one_of.GetReservationResponse_data_balanceDetailed_oneOf( - suggested_deposit = '', - sub_total = 1.337, - additional_items = 1.337, - taxes_fees = 1.337, - grand_total = 1.337, - paid = 1.337, ) - ], + balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( + suggested_deposit = '', + sub_total = 1.337, + additional_items = 1.337, + taxes_fees = 1.337, + grand_total = 1.337, + paid = 1.337, ), detailed_rates = [ None ], @@ -157,9 +153,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo rate_plan_name = '', sub_reservation_id = '', ) ], - guest_requirements = [ - None - ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), custom_fields = [ cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( custom_field_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py deleted file mode 100644 index fcf0fa5..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source_inner import GetReservationsWithRateDetailsResponseDataInnerSourceInner - -class TestGetReservationsWithRateDetailsResponseDataInnerSourceInner(unittest.TestCase): - """GetReservationsWithRateDetailsResponseDataInnerSourceInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerSourceInner: - """Test GetReservationsWithRateDetailsResponseDataInnerSourceInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerSourceInner` - """ - model = GetReservationsWithRateDetailsResponseDataInnerSourceInner() - if include_optional: - return GetReservationsWithRateDetailsResponseDataInnerSourceInner( - name = '', - payment_collect = 'hotel', - source_id = '', - category = '' - ) - else: - return GetReservationsWithRateDetailsResponseDataInnerSourceInner( - ) - """ - - def testGetReservationsWithRateDetailsResponseDataInnerSourceInner(self): - """Test GetReservationsWithRateDetailsResponseDataInnerSourceInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py index fdc72df..3581671 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py @@ -50,6 +50,8 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponse: allotment_type = '', group_id = '', group_code = '', + event_id = '', + event_code = '', is_auto_release = True, auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py index c706584..2e63e9f 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py @@ -45,6 +45,8 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat allotment_type = '', group_id = '', group_code = '', + event_id = '', + event_code = '', is_auto_release = True, auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py index abebe5b..dcc1118 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py @@ -48,6 +48,8 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponse: allotment_type = '', group_id = '', group_code = '', + event_id = '', + event_code = '', is_auto_release = True, auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py index 62df3f2..9e42450 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py @@ -45,6 +45,8 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDat allotment_type = '', group_id = '', group_code = '', + event_id = '', + event_code = '', is_auto_release = True, auto_release = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_auto_release.PostCreateAllotmentBlockResponse_data_inner_autoRelease( release_type = 'all_dates', diff --git a/openapitools.json b/openapitools.json index 011c310..84984b7 100644 --- a/openapitools.json +++ b/openapitools.json @@ -10,7 +10,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.8.0", + "packageVersion": "1.9.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1", From 49aa217de70cdd736f401134419bc6974dd2d909 Mon Sep 17 00:00:00 2001 From: Dimitrios Klimis Date: Wed, 18 Feb 2026 14:23:02 +0200 Subject: [PATCH 41/46] chore: urllib3 security update --- pyproject.toml | 5 +- requirements.txt | 2 +- uv.lock | 832 ++++++++++++++++++++++++++++------------------- 3 files changed, 499 insertions(+), 340 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7218d93..3072314 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ authors = [ ] license = { file = "LICENSE" } dependencies = [ - "urllib3 >= 1.25.3, < 3.0.0", + "urllib3 >= 2.6.3, < 3.0.0", "python-dateutil >= 2.8.2, < 3.0.0", "pydantic >= 2", "typing-extensions >= 4.7.1", @@ -25,7 +25,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -35,7 +34,7 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules", ] -requires-python = ">=3.8" +requires-python = ">=3.9" [project.urls] Documentation = "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1#README" diff --git a/requirements.txt b/requirements.txt index 8faae90..2b448c3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,5 +25,5 @@ typing-extensions==4.12.2 # cloudbeds-pms-v1-3 (pyproject.toml) # pydantic # pydantic-core -urllib3==2.3.0 +urllib3==2.6.3 # via cloudbeds-pms-v1-3 (pyproject.toml) diff --git a/uv.lock b/uv.lock index 2018920..2557836 100644 --- a/uv.lock +++ b/uv.lock @@ -1,21 +1,18 @@ version = 1 -revision = 1 -requires-python = ">=3.8" +revision = 3 +requires-python = ">=3.9" resolution-markers = [ - "python_full_version >= '3.9'", - "python_full_version < '3.9'", + "python_full_version >= '3.10'", + "python_full_version < '3.10'", ] [[package]] name = "annotated-types" version = "0.7.0" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions", marker = "python_full_version < '3.9'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081 } +sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 }, + { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, ] [[package]] @@ -25,22 +22,23 @@ dependencies = [ { name = "pydantic" }, { name = "python-dateutil" }, { name = "typing-extensions" }, - { name = "urllib3", version = "2.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" }, - { name = "urllib3", version = "2.3.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" }, + { name = "urllib3" }, ] [package.optional-dependencies] testing = [ - { name = "coverage", version = "7.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" }, - { name = "coverage", version = "7.6.10", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" }, - { name = "pytest" }, + { name = "coverage", version = "7.10.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "coverage", version = "7.13.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "pytest", version = "8.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "pytest", version = "9.0.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, ] [package.dev-dependencies] dev = [ - { name = "coverage", version = "7.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" }, - { name = "coverage", version = "7.6.10", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.9'" }, - { name = "pytest" }, + { name = "coverage", version = "7.10.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "coverage", version = "7.13.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "pytest", version = "8.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "pytest", version = "9.0.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, ] [package.metadata] @@ -50,7 +48,7 @@ requires-dist = [ { name = "pytest", marker = "extra == 'testing'" }, { name = "python-dateutil", specifier = ">=2.8.2,<3.0.0" }, { name = "typing-extensions", specifier = ">=4.7.1" }, - { name = "urllib3", specifier = ">=1.25.3,<3.0.0" }, + { name = "urllib3", specifier = ">=2.6.3,<3.0.0" }, ] provides-extras = ["testing"] @@ -64,340 +62,490 @@ dev = [ name = "colorama" version = "0.4.6" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, ] [[package]] name = "coverage" -version = "7.6.1" +version = "7.10.7" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version < '3.9'", + "python_full_version < '3.10'", ] -sdist = { url = "https://files.pythonhosted.org/packages/f7/08/7e37f82e4d1aead42a7443ff06a1e406aabf7302c4f00a546e4b320b994c/coverage-7.6.1.tar.gz", hash = "sha256:953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d", size = 798791 } +sdist = { url = "https://files.pythonhosted.org/packages/51/26/d22c300112504f5f9a9fd2297ce33c35f3d353e4aeb987c8419453b2a7c2/coverage-7.10.7.tar.gz", hash = "sha256:f4ab143ab113be368a3e9b795f9cd7906c5ef407d6173fe9675a902e1fffc239", size = 827704, upload-time = "2025-09-21T20:03:56.815Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/7e/61/eb7ce5ed62bacf21beca4937a90fe32545c91a3c8a42a30c6616d48fc70d/coverage-7.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b06079abebbc0e89e6163b8e8f0e16270124c154dc6e4a47b413dd538859af16", size = 206690 }, - { url = "https://files.pythonhosted.org/packages/7d/73/041928e434442bd3afde5584bdc3f932fb4562b1597629f537387cec6f3d/coverage-7.6.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cf4b19715bccd7ee27b6b120e7e9dd56037b9c0681dcc1adc9ba9db3d417fa36", size = 207127 }, - { url = "https://files.pythonhosted.org/packages/c7/c8/6ca52b5147828e45ad0242388477fdb90df2c6cbb9a441701a12b3c71bc8/coverage-7.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e61c0abb4c85b095a784ef23fdd4aede7a2628478e7baba7c5e3deba61070a02", size = 235654 }, - { url = "https://files.pythonhosted.org/packages/d5/da/9ac2b62557f4340270942011d6efeab9833648380109e897d48ab7c1035d/coverage-7.6.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd21f6ae3f08b41004dfb433fa895d858f3f5979e7762d052b12aef444e29afc", size = 233598 }, - { url = "https://files.pythonhosted.org/packages/53/23/9e2c114d0178abc42b6d8d5281f651a8e6519abfa0ef460a00a91f80879d/coverage-7.6.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f59d57baca39b32db42b83b2a7ba6f47ad9c394ec2076b084c3f029b7afca23", size = 234732 }, - { url = "https://files.pythonhosted.org/packages/0f/7e/a0230756fb133343a52716e8b855045f13342b70e48e8ad41d8a0d60ab98/coverage-7.6.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a1ac0ae2b8bd743b88ed0502544847c3053d7171a3cff9228af618a068ed9c34", size = 233816 }, - { url = "https://files.pythonhosted.org/packages/28/7c/3753c8b40d232b1e5eeaed798c875537cf3cb183fb5041017c1fdb7ec14e/coverage-7.6.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e6a08c0be454c3b3beb105c0596ebdc2371fab6bb90c0c0297f4e58fd7e1012c", size = 232325 }, - { url = "https://files.pythonhosted.org/packages/57/e3/818a2b2af5b7573b4b82cf3e9f137ab158c90ea750a8f053716a32f20f06/coverage-7.6.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:f5796e664fe802da4f57a168c85359a8fbf3eab5e55cd4e4569fbacecc903959", size = 233418 }, - { url = "https://files.pythonhosted.org/packages/c8/fb/4532b0b0cefb3f06d201648715e03b0feb822907edab3935112b61b885e2/coverage-7.6.1-cp310-cp310-win32.whl", hash = "sha256:7bb65125fcbef8d989fa1dd0e8a060999497629ca5b0efbca209588a73356232", size = 209343 }, - { url = "https://files.pythonhosted.org/packages/5a/25/af337cc7421eca1c187cc9c315f0a755d48e755d2853715bfe8c418a45fa/coverage-7.6.1-cp310-cp310-win_amd64.whl", hash = "sha256:3115a95daa9bdba70aea750db7b96b37259a81a709223c8448fa97727d546fe0", size = 210136 }, - { url = "https://files.pythonhosted.org/packages/ad/5f/67af7d60d7e8ce61a4e2ddcd1bd5fb787180c8d0ae0fbd073f903b3dd95d/coverage-7.6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7dea0889685db8550f839fa202744652e87c60015029ce3f60e006f8c4462c93", size = 206796 }, - { url = "https://files.pythonhosted.org/packages/e1/0e/e52332389e057daa2e03be1fbfef25bb4d626b37d12ed42ae6281d0a274c/coverage-7.6.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ed37bd3c3b063412f7620464a9ac1314d33100329f39799255fb8d3027da50d3", size = 207244 }, - { url = "https://files.pythonhosted.org/packages/aa/cd/766b45fb6e090f20f8927d9c7cb34237d41c73a939358bc881883fd3a40d/coverage-7.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d85f5e9a5f8b73e2350097c3756ef7e785f55bd71205defa0bfdaf96c31616ff", size = 239279 }, - { url = "https://files.pythonhosted.org/packages/70/6c/a9ccd6fe50ddaf13442a1e2dd519ca805cbe0f1fcd377fba6d8339b98ccb/coverage-7.6.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9bc572be474cafb617672c43fe989d6e48d3c83af02ce8de73fff1c6bb3c198d", size = 236859 }, - { url = "https://files.pythonhosted.org/packages/14/6f/8351b465febb4dbc1ca9929505202db909c5a635c6fdf33e089bbc3d7d85/coverage-7.6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c0420b573964c760df9e9e86d1a9a622d0d27f417e1a949a8a66dd7bcee7bc6", size = 238549 }, - { url = "https://files.pythonhosted.org/packages/68/3c/289b81fa18ad72138e6d78c4c11a82b5378a312c0e467e2f6b495c260907/coverage-7.6.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1f4aa8219db826ce6be7099d559f8ec311549bfc4046f7f9fe9b5cea5c581c56", size = 237477 }, - { url = "https://files.pythonhosted.org/packages/ed/1c/aa1efa6459d822bd72c4abc0b9418cf268de3f60eeccd65dc4988553bd8d/coverage-7.6.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:fc5a77d0c516700ebad189b587de289a20a78324bc54baee03dd486f0855d234", size = 236134 }, - { url = "https://files.pythonhosted.org/packages/fb/c8/521c698f2d2796565fe9c789c2ee1ccdae610b3aa20b9b2ef980cc253640/coverage-7.6.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b48f312cca9621272ae49008c7f613337c53fadca647d6384cc129d2996d1133", size = 236910 }, - { url = "https://files.pythonhosted.org/packages/7d/30/033e663399ff17dca90d793ee8a2ea2890e7fdf085da58d82468b4220bf7/coverage-7.6.1-cp311-cp311-win32.whl", hash = "sha256:1125ca0e5fd475cbbba3bb67ae20bd2c23a98fac4e32412883f9bcbaa81c314c", size = 209348 }, - { url = "https://files.pythonhosted.org/packages/20/05/0d1ccbb52727ccdadaa3ff37e4d2dc1cd4d47f0c3df9eb58d9ec8508ca88/coverage-7.6.1-cp311-cp311-win_amd64.whl", hash = "sha256:8ae539519c4c040c5ffd0632784e21b2f03fc1340752af711f33e5be83a9d6c6", size = 210230 }, - { url = "https://files.pythonhosted.org/packages/7e/d4/300fc921dff243cd518c7db3a4c614b7e4b2431b0d1145c1e274fd99bd70/coverage-7.6.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:95cae0efeb032af8458fc27d191f85d1717b1d4e49f7cb226cf526ff28179778", size = 206983 }, - { url = "https://files.pythonhosted.org/packages/e1/ab/6bf00de5327ecb8db205f9ae596885417a31535eeda6e7b99463108782e1/coverage-7.6.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5621a9175cf9d0b0c84c2ef2b12e9f5f5071357c4d2ea6ca1cf01814f45d2391", size = 207221 }, - { url = "https://files.pythonhosted.org/packages/92/8f/2ead05e735022d1a7f3a0a683ac7f737de14850395a826192f0288703472/coverage-7.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:260933720fdcd75340e7dbe9060655aff3af1f0c5d20f46b57f262ab6c86a5e8", size = 240342 }, - { url = "https://files.pythonhosted.org/packages/0f/ef/94043e478201ffa85b8ae2d2c79b4081e5a1b73438aafafccf3e9bafb6b5/coverage-7.6.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07e2ca0ad381b91350c0ed49d52699b625aab2b44b65e1b4e02fa9df0e92ad2d", size = 237371 }, - { url = "https://files.pythonhosted.org/packages/1f/0f/c890339dd605f3ebc269543247bdd43b703cce6825b5ed42ff5f2d6122c7/coverage-7.6.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c44fee9975f04b33331cb8eb272827111efc8930cfd582e0320613263ca849ca", size = 239455 }, - { url = "https://files.pythonhosted.org/packages/d1/04/7fd7b39ec7372a04efb0f70c70e35857a99b6a9188b5205efb4c77d6a57a/coverage-7.6.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:877abb17e6339d96bf08e7a622d05095e72b71f8afd8a9fefc82cf30ed944163", size = 238924 }, - { url = "https://files.pythonhosted.org/packages/ed/bf/73ce346a9d32a09cf369f14d2a06651329c984e106f5992c89579d25b27e/coverage-7.6.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3e0cadcf6733c09154b461f1ca72d5416635e5e4ec4e536192180d34ec160f8a", size = 237252 }, - { url = "https://files.pythonhosted.org/packages/86/74/1dc7a20969725e917b1e07fe71a955eb34bc606b938316bcc799f228374b/coverage-7.6.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c3c02d12f837d9683e5ab2f3d9844dc57655b92c74e286c262e0fc54213c216d", size = 238897 }, - { url = "https://files.pythonhosted.org/packages/b6/e9/d9cc3deceb361c491b81005c668578b0dfa51eed02cd081620e9a62f24ec/coverage-7.6.1-cp312-cp312-win32.whl", hash = "sha256:e05882b70b87a18d937ca6768ff33cc3f72847cbc4de4491c8e73880766718e5", size = 209606 }, - { url = "https://files.pythonhosted.org/packages/47/c8/5a2e41922ea6740f77d555c4d47544acd7dc3f251fe14199c09c0f5958d3/coverage-7.6.1-cp312-cp312-win_amd64.whl", hash = "sha256:b5d7b556859dd85f3a541db6a4e0167b86e7273e1cdc973e5b175166bb634fdb", size = 210373 }, - { url = "https://files.pythonhosted.org/packages/8c/f9/9aa4dfb751cb01c949c990d136a0f92027fbcc5781c6e921df1cb1563f20/coverage-7.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a4acd025ecc06185ba2b801f2de85546e0b8ac787cf9d3b06e7e2a69f925b106", size = 207007 }, - { url = "https://files.pythonhosted.org/packages/b9/67/e1413d5a8591622a46dd04ff80873b04c849268831ed5c304c16433e7e30/coverage-7.6.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a6d3adcf24b624a7b778533480e32434a39ad8fa30c315208f6d3e5542aeb6e9", size = 207269 }, - { url = "https://files.pythonhosted.org/packages/14/5b/9dec847b305e44a5634d0fb8498d135ab1d88330482b74065fcec0622224/coverage-7.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d0c212c49b6c10e6951362f7c6df3329f04c2b1c28499563d4035d964ab8e08c", size = 239886 }, - { url = "https://files.pythonhosted.org/packages/7b/b7/35760a67c168e29f454928f51f970342d23cf75a2bb0323e0f07334c85f3/coverage-7.6.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e81d7a3e58882450ec4186ca59a3f20a5d4440f25b1cff6f0902ad890e6748a", size = 237037 }, - { url = "https://files.pythonhosted.org/packages/f7/95/d2fd31f1d638df806cae59d7daea5abf2b15b5234016a5ebb502c2f3f7ee/coverage-7.6.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78b260de9790fd81e69401c2dc8b17da47c8038176a79092a89cb2b7d945d060", size = 239038 }, - { url = "https://files.pythonhosted.org/packages/6e/bd/110689ff5752b67924efd5e2aedf5190cbbe245fc81b8dec1abaffba619d/coverage-7.6.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a78d169acd38300060b28d600344a803628c3fd585c912cacc9ea8790fe96862", size = 238690 }, - { url = "https://files.pythonhosted.org/packages/d3/a8/08d7b38e6ff8df52331c83130d0ab92d9c9a8b5462f9e99c9f051a4ae206/coverage-7.6.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2c09f4ce52cb99dd7505cd0fc8e0e37c77b87f46bc9c1eb03fe3bc9991085388", size = 236765 }, - { url = "https://files.pythonhosted.org/packages/d6/6a/9cf96839d3147d55ae713eb2d877f4d777e7dc5ba2bce227167d0118dfe8/coverage-7.6.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6878ef48d4227aace338d88c48738a4258213cd7b74fd9a3d4d7582bb1d8a155", size = 238611 }, - { url = "https://files.pythonhosted.org/packages/74/e4/7ff20d6a0b59eeaab40b3140a71e38cf52547ba21dbcf1d79c5a32bba61b/coverage-7.6.1-cp313-cp313-win32.whl", hash = "sha256:44df346d5215a8c0e360307d46ffaabe0f5d3502c8a1cefd700b34baf31d411a", size = 209671 }, - { url = "https://files.pythonhosted.org/packages/35/59/1812f08a85b57c9fdb6d0b383d779e47b6f643bc278ed682859512517e83/coverage-7.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:8284cf8c0dd272a247bc154eb6c95548722dce90d098c17a883ed36e67cdb129", size = 210368 }, - { url = "https://files.pythonhosted.org/packages/9c/15/08913be1c59d7562a3e39fce20661a98c0a3f59d5754312899acc6cb8a2d/coverage-7.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:d3296782ca4eab572a1a4eca686d8bfb00226300dcefdf43faa25b5242ab8a3e", size = 207758 }, - { url = "https://files.pythonhosted.org/packages/c4/ae/b5d58dff26cade02ada6ca612a76447acd69dccdbb3a478e9e088eb3d4b9/coverage-7.6.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:502753043567491d3ff6d08629270127e0c31d4184c4c8d98f92c26f65019962", size = 208035 }, - { url = "https://files.pythonhosted.org/packages/b8/d7/62095e355ec0613b08dfb19206ce3033a0eedb6f4a67af5ed267a8800642/coverage-7.6.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6a89ecca80709d4076b95f89f308544ec8f7b4727e8a547913a35f16717856cb", size = 250839 }, - { url = "https://files.pythonhosted.org/packages/7c/1e/c2967cb7991b112ba3766df0d9c21de46b476d103e32bb401b1b2adf3380/coverage-7.6.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a318d68e92e80af8b00fa99609796fdbcdfef3629c77c6283566c6f02c6d6704", size = 246569 }, - { url = "https://files.pythonhosted.org/packages/8b/61/a7a6a55dd266007ed3b1df7a3386a0d760d014542d72f7c2c6938483b7bd/coverage-7.6.1-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13b0a73a0896988f053e4fbb7de6d93388e6dd292b0d87ee51d106f2c11b465b", size = 248927 }, - { url = "https://files.pythonhosted.org/packages/c8/fa/13a6f56d72b429f56ef612eb3bc5ce1b75b7ee12864b3bd12526ab794847/coverage-7.6.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4421712dbfc5562150f7554f13dde997a2e932a6b5f352edcce948a815efee6f", size = 248401 }, - { url = "https://files.pythonhosted.org/packages/75/06/0429c652aa0fb761fc60e8c6b291338c9173c6aa0f4e40e1902345b42830/coverage-7.6.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:166811d20dfea725e2e4baa71fffd6c968a958577848d2131f39b60043400223", size = 246301 }, - { url = "https://files.pythonhosted.org/packages/52/76/1766bb8b803a88f93c3a2d07e30ffa359467810e5cbc68e375ebe6906efb/coverage-7.6.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:225667980479a17db1048cb2bf8bfb39b8e5be8f164b8f6628b64f78a72cf9d3", size = 247598 }, - { url = "https://files.pythonhosted.org/packages/66/8b/f54f8db2ae17188be9566e8166ac6df105c1c611e25da755738025708d54/coverage-7.6.1-cp313-cp313t-win32.whl", hash = "sha256:170d444ab405852903b7d04ea9ae9b98f98ab6d7e63e1115e82620807519797f", size = 210307 }, - { url = "https://files.pythonhosted.org/packages/9f/b0/e0dca6da9170aefc07515cce067b97178cefafb512d00a87a1c717d2efd5/coverage-7.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:b9f222de8cded79c49bf184bdbc06630d4c58eec9459b939b4a690c82ed05657", size = 211453 }, - { url = "https://files.pythonhosted.org/packages/81/d0/d9e3d554e38beea5a2e22178ddb16587dbcbe9a1ef3211f55733924bf7fa/coverage-7.6.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6db04803b6c7291985a761004e9060b2bca08da6d04f26a7f2294b8623a0c1a0", size = 206674 }, - { url = "https://files.pythonhosted.org/packages/38/ea/cab2dc248d9f45b2b7f9f1f596a4d75a435cb364437c61b51d2eb33ceb0e/coverage-7.6.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:f1adfc8ac319e1a348af294106bc6a8458a0f1633cc62a1446aebc30c5fa186a", size = 207101 }, - { url = "https://files.pythonhosted.org/packages/ca/6f/f82f9a500c7c5722368978a5390c418d2a4d083ef955309a8748ecaa8920/coverage-7.6.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a95324a9de9650a729239daea117df21f4b9868ce32e63f8b650ebe6cef5595b", size = 236554 }, - { url = "https://files.pythonhosted.org/packages/a6/94/d3055aa33d4e7e733d8fa309d9adf147b4b06a82c1346366fc15a2b1d5fa/coverage-7.6.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b43c03669dc4618ec25270b06ecd3ee4fa94c7f9b3c14bae6571ca00ef98b0d3", size = 234440 }, - { url = "https://files.pythonhosted.org/packages/e4/6e/885bcd787d9dd674de4a7d8ec83faf729534c63d05d51d45d4fa168f7102/coverage-7.6.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8929543a7192c13d177b770008bc4e8119f2e1f881d563fc6b6305d2d0ebe9de", size = 235889 }, - { url = "https://files.pythonhosted.org/packages/f4/63/df50120a7744492710854860783d6819ff23e482dee15462c9a833cc428a/coverage-7.6.1-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:a09ece4a69cf399510c8ab25e0950d9cf2b42f7b3cb0374f95d2e2ff594478a6", size = 235142 }, - { url = "https://files.pythonhosted.org/packages/3a/5d/9d0acfcded2b3e9ce1c7923ca52ccc00c78a74e112fc2aee661125b7843b/coverage-7.6.1-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:9054a0754de38d9dbd01a46621636689124d666bad1936d76c0341f7d71bf569", size = 233805 }, - { url = "https://files.pythonhosted.org/packages/c4/56/50abf070cb3cd9b1dd32f2c88f083aab561ecbffbcd783275cb51c17f11d/coverage-7.6.1-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0dbde0f4aa9a16fa4d754356a8f2e36296ff4d83994b2c9d8398aa32f222f989", size = 234655 }, - { url = "https://files.pythonhosted.org/packages/25/ee/b4c246048b8485f85a2426ef4abab88e48c6e80c74e964bea5cd4cd4b115/coverage-7.6.1-cp38-cp38-win32.whl", hash = "sha256:da511e6ad4f7323ee5702e6633085fb76c2f893aaf8ce4c51a0ba4fc07580ea7", size = 209296 }, - { url = "https://files.pythonhosted.org/packages/5c/1c/96cf86b70b69ea2b12924cdf7cabb8ad10e6130eab8d767a1099fbd2a44f/coverage-7.6.1-cp38-cp38-win_amd64.whl", hash = "sha256:3f1156e3e8f2872197af3840d8ad307a9dd18e615dc64d9ee41696f287c57ad8", size = 210137 }, - { url = "https://files.pythonhosted.org/packages/19/d3/d54c5aa83268779d54c86deb39c1c4566e5d45c155369ca152765f8db413/coverage-7.6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:abd5fd0db5f4dc9289408aaf34908072f805ff7792632250dcb36dc591d24255", size = 206688 }, - { url = "https://files.pythonhosted.org/packages/a5/fe/137d5dca72e4a258b1bc17bb04f2e0196898fe495843402ce826a7419fe3/coverage-7.6.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:547f45fa1a93154bd82050a7f3cddbc1a7a4dd2a9bf5cb7d06f4ae29fe94eaf8", size = 207120 }, - { url = "https://files.pythonhosted.org/packages/78/5b/a0a796983f3201ff5485323b225d7c8b74ce30c11f456017e23d8e8d1945/coverage-7.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:645786266c8f18a931b65bfcefdbf6952dd0dea98feee39bd188607a9d307ed2", size = 235249 }, - { url = "https://files.pythonhosted.org/packages/4e/e1/76089d6a5ef9d68f018f65411fcdaaeb0141b504587b901d74e8587606ad/coverage-7.6.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9e0b2df163b8ed01d515807af24f63de04bebcecbd6c3bfeff88385789fdf75a", size = 233237 }, - { url = "https://files.pythonhosted.org/packages/9a/6f/eef79b779a540326fee9520e5542a8b428cc3bfa8b7c8f1022c1ee4fc66c/coverage-7.6.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:609b06f178fe8e9f89ef676532760ec0b4deea15e9969bf754b37f7c40326dbc", size = 234311 }, - { url = "https://files.pythonhosted.org/packages/75/e1/656d65fb126c29a494ef964005702b012f3498db1a30dd562958e85a4049/coverage-7.6.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:702855feff378050ae4f741045e19a32d57d19f3e0676d589df0575008ea5004", size = 233453 }, - { url = "https://files.pythonhosted.org/packages/68/6a/45f108f137941a4a1238c85f28fd9d048cc46b5466d6b8dda3aba1bb9d4f/coverage-7.6.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2bdb062ea438f22d99cba0d7829c2ef0af1d768d1e4a4f528087224c90b132cb", size = 231958 }, - { url = "https://files.pythonhosted.org/packages/9b/e7/47b809099168b8b8c72ae311efc3e88c8d8a1162b3ba4b8da3cfcdb85743/coverage-7.6.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:9c56863d44bd1c4fe2abb8a4d6f5371d197f1ac0ebdee542f07f35895fc07f36", size = 232938 }, - { url = "https://files.pythonhosted.org/packages/52/80/052222ba7058071f905435bad0ba392cc12006380731c37afaf3fe749b88/coverage-7.6.1-cp39-cp39-win32.whl", hash = "sha256:6e2cd258d7d927d09493c8df1ce9174ad01b381d4729a9d8d4e38670ca24774c", size = 209352 }, - { url = "https://files.pythonhosted.org/packages/b8/d8/1b92e0b3adcf384e98770a00ca095da1b5f7b483e6563ae4eb5e935d24a1/coverage-7.6.1-cp39-cp39-win_amd64.whl", hash = "sha256:06a737c882bd26d0d6ee7269b20b12f14a8704807a01056c80bb881a4b2ce6ca", size = 210153 }, - { url = "https://files.pythonhosted.org/packages/a5/2b/0354ed096bca64dc8e32a7cbcae28b34cb5ad0b1fe2125d6d99583313ac0/coverage-7.6.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:e9a6e0eb86070e8ccaedfbd9d38fec54864f3125ab95419970575b42af7541df", size = 198926 }, + { url = "https://files.pythonhosted.org/packages/e5/6c/3a3f7a46888e69d18abe3ccc6fe4cb16cccb1e6a2f99698931dafca489e6/coverage-7.10.7-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:fc04cc7a3db33664e0c2d10eb8990ff6b3536f6842c9590ae8da4c614b9ed05a", size = 217987, upload-time = "2025-09-21T20:00:57.218Z" }, + { url = "https://files.pythonhosted.org/packages/03/94/952d30f180b1a916c11a56f5c22d3535e943aa22430e9e3322447e520e1c/coverage-7.10.7-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e201e015644e207139f7e2351980feb7040e6f4b2c2978892f3e3789d1c125e5", size = 218388, upload-time = "2025-09-21T20:01:00.081Z" }, + { url = "https://files.pythonhosted.org/packages/50/2b/9e0cf8ded1e114bcd8b2fd42792b57f1c4e9e4ea1824cde2af93a67305be/coverage-7.10.7-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:240af60539987ced2c399809bd34f7c78e8abe0736af91c3d7d0e795df633d17", size = 245148, upload-time = "2025-09-21T20:01:01.768Z" }, + { url = "https://files.pythonhosted.org/packages/19/20/d0384ac06a6f908783d9b6aa6135e41b093971499ec488e47279f5b846e6/coverage-7.10.7-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8421e088bc051361b01c4b3a50fd39a4b9133079a2229978d9d30511fd05231b", size = 246958, upload-time = "2025-09-21T20:01:03.355Z" }, + { url = "https://files.pythonhosted.org/packages/60/83/5c283cff3d41285f8eab897651585db908a909c572bdc014bcfaf8a8b6ae/coverage-7.10.7-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6be8ed3039ae7f7ac5ce058c308484787c86e8437e72b30bf5e88b8ea10f3c87", size = 248819, upload-time = "2025-09-21T20:01:04.968Z" }, + { url = "https://files.pythonhosted.org/packages/60/22/02eb98fdc5ff79f423e990d877693e5310ae1eab6cb20ae0b0b9ac45b23b/coverage-7.10.7-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e28299d9f2e889e6d51b1f043f58d5f997c373cc12e6403b90df95b8b047c13e", size = 245754, upload-time = "2025-09-21T20:01:06.321Z" }, + { url = "https://files.pythonhosted.org/packages/b4/bc/25c83bcf3ad141b32cd7dc45485ef3c01a776ca3aa8ef0a93e77e8b5bc43/coverage-7.10.7-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:c4e16bd7761c5e454f4efd36f345286d6f7c5fa111623c355691e2755cae3b9e", size = 246860, upload-time = "2025-09-21T20:01:07.605Z" }, + { url = "https://files.pythonhosted.org/packages/3c/b7/95574702888b58c0928a6e982038c596f9c34d52c5e5107f1eef729399b5/coverage-7.10.7-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:b1c81d0e5e160651879755c9c675b974276f135558cf4ba79fee7b8413a515df", size = 244877, upload-time = "2025-09-21T20:01:08.829Z" }, + { url = "https://files.pythonhosted.org/packages/47/b6/40095c185f235e085df0e0b158f6bd68cc6e1d80ba6c7721dc81d97ec318/coverage-7.10.7-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:606cc265adc9aaedcc84f1f064f0e8736bc45814f15a357e30fca7ecc01504e0", size = 245108, upload-time = "2025-09-21T20:01:10.527Z" }, + { url = "https://files.pythonhosted.org/packages/c8/50/4aea0556da7a4b93ec9168420d170b55e2eb50ae21b25062513d020c6861/coverage-7.10.7-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:10b24412692df990dbc34f8fb1b6b13d236ace9dfdd68df5b28c2e39cafbba13", size = 245752, upload-time = "2025-09-21T20:01:11.857Z" }, + { url = "https://files.pythonhosted.org/packages/6a/28/ea1a84a60828177ae3b100cb6723838523369a44ec5742313ed7db3da160/coverage-7.10.7-cp310-cp310-win32.whl", hash = "sha256:b51dcd060f18c19290d9b8a9dd1e0181538df2ce0717f562fff6cf74d9fc0b5b", size = 220497, upload-time = "2025-09-21T20:01:13.459Z" }, + { url = "https://files.pythonhosted.org/packages/fc/1a/a81d46bbeb3c3fd97b9602ebaa411e076219a150489bcc2c025f151bd52d/coverage-7.10.7-cp310-cp310-win_amd64.whl", hash = "sha256:3a622ac801b17198020f09af3eaf45666b344a0d69fc2a6ffe2ea83aeef1d807", size = 221392, upload-time = "2025-09-21T20:01:14.722Z" }, + { url = "https://files.pythonhosted.org/packages/d2/5d/c1a17867b0456f2e9ce2d8d4708a4c3a089947d0bec9c66cdf60c9e7739f/coverage-7.10.7-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a609f9c93113be646f44c2a0256d6ea375ad047005d7f57a5c15f614dc1b2f59", size = 218102, upload-time = "2025-09-21T20:01:16.089Z" }, + { url = "https://files.pythonhosted.org/packages/54/f0/514dcf4b4e3698b9a9077f084429681bf3aad2b4a72578f89d7f643eb506/coverage-7.10.7-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:65646bb0359386e07639c367a22cf9b5bf6304e8630b565d0626e2bdf329227a", size = 218505, upload-time = "2025-09-21T20:01:17.788Z" }, + { url = "https://files.pythonhosted.org/packages/20/f6/9626b81d17e2a4b25c63ac1b425ff307ecdeef03d67c9a147673ae40dc36/coverage-7.10.7-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:5f33166f0dfcce728191f520bd2692914ec70fac2713f6bf3ce59c3deacb4699", size = 248898, upload-time = "2025-09-21T20:01:19.488Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ef/bd8e719c2f7417ba03239052e099b76ea1130ac0cbb183ee1fcaa58aaff3/coverage-7.10.7-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:35f5e3f9e455bb17831876048355dca0f758b6df22f49258cb5a91da23ef437d", size = 250831, upload-time = "2025-09-21T20:01:20.817Z" }, + { url = "https://files.pythonhosted.org/packages/a5/b6/bf054de41ec948b151ae2b79a55c107f5760979538f5fb80c195f2517718/coverage-7.10.7-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4da86b6d62a496e908ac2898243920c7992499c1712ff7c2b6d837cc69d9467e", size = 252937, upload-time = "2025-09-21T20:01:22.171Z" }, + { url = "https://files.pythonhosted.org/packages/0f/e5/3860756aa6f9318227443c6ce4ed7bf9e70bb7f1447a0353f45ac5c7974b/coverage-7.10.7-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6b8b09c1fad947c84bbbc95eca841350fad9cbfa5a2d7ca88ac9f8d836c92e23", size = 249021, upload-time = "2025-09-21T20:01:23.907Z" }, + { url = "https://files.pythonhosted.org/packages/26/0f/bd08bd042854f7fd07b45808927ebcce99a7ed0f2f412d11629883517ac2/coverage-7.10.7-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:4376538f36b533b46f8971d3a3e63464f2c7905c9800db97361c43a2b14792ab", size = 250626, upload-time = "2025-09-21T20:01:25.721Z" }, + { url = "https://files.pythonhosted.org/packages/8e/a7/4777b14de4abcc2e80c6b1d430f5d51eb18ed1d75fca56cbce5f2db9b36e/coverage-7.10.7-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:121da30abb574f6ce6ae09840dae322bef734480ceafe410117627aa54f76d82", size = 248682, upload-time = "2025-09-21T20:01:27.105Z" }, + { url = "https://files.pythonhosted.org/packages/34/72/17d082b00b53cd45679bad682fac058b87f011fd8b9fe31d77f5f8d3a4e4/coverage-7.10.7-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:88127d40df529336a9836870436fc2751c339fbaed3a836d42c93f3e4bd1d0a2", size = 248402, upload-time = "2025-09-21T20:01:28.629Z" }, + { url = "https://files.pythonhosted.org/packages/81/7a/92367572eb5bdd6a84bfa278cc7e97db192f9f45b28c94a9ca1a921c3577/coverage-7.10.7-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ba58bbcd1b72f136080c0bccc2400d66cc6115f3f906c499013d065ac33a4b61", size = 249320, upload-time = "2025-09-21T20:01:30.004Z" }, + { url = "https://files.pythonhosted.org/packages/2f/88/a23cc185f6a805dfc4fdf14a94016835eeb85e22ac3a0e66d5e89acd6462/coverage-7.10.7-cp311-cp311-win32.whl", hash = "sha256:972b9e3a4094b053a4e46832b4bc829fc8a8d347160eb39d03f1690316a99c14", size = 220536, upload-time = "2025-09-21T20:01:32.184Z" }, + { url = "https://files.pythonhosted.org/packages/fe/ef/0b510a399dfca17cec7bc2f05ad8bd78cf55f15c8bc9a73ab20c5c913c2e/coverage-7.10.7-cp311-cp311-win_amd64.whl", hash = "sha256:a7b55a944a7f43892e28ad4bc0561dfd5f0d73e605d1aa5c3c976b52aea121d2", size = 221425, upload-time = "2025-09-21T20:01:33.557Z" }, + { url = "https://files.pythonhosted.org/packages/51/7f/023657f301a276e4ba1850f82749bc136f5a7e8768060c2e5d9744a22951/coverage-7.10.7-cp311-cp311-win_arm64.whl", hash = "sha256:736f227fb490f03c6488f9b6d45855f8e0fd749c007f9303ad30efab0e73c05a", size = 220103, upload-time = "2025-09-21T20:01:34.929Z" }, + { url = "https://files.pythonhosted.org/packages/13/e4/eb12450f71b542a53972d19117ea5a5cea1cab3ac9e31b0b5d498df1bd5a/coverage-7.10.7-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7bb3b9ddb87ef7725056572368040c32775036472d5a033679d1fa6c8dc08417", size = 218290, upload-time = "2025-09-21T20:01:36.455Z" }, + { url = "https://files.pythonhosted.org/packages/37/66/593f9be12fc19fb36711f19a5371af79a718537204d16ea1d36f16bd78d2/coverage-7.10.7-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:18afb24843cbc175687225cab1138c95d262337f5473512010e46831aa0c2973", size = 218515, upload-time = "2025-09-21T20:01:37.982Z" }, + { url = "https://files.pythonhosted.org/packages/66/80/4c49f7ae09cafdacc73fbc30949ffe77359635c168f4e9ff33c9ebb07838/coverage-7.10.7-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:399a0b6347bcd3822be369392932884b8216d0944049ae22925631a9b3d4ba4c", size = 250020, upload-time = "2025-09-21T20:01:39.617Z" }, + { url = "https://files.pythonhosted.org/packages/a6/90/a64aaacab3b37a17aaedd83e8000142561a29eb262cede42d94a67f7556b/coverage-7.10.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:314f2c326ded3f4b09be11bc282eb2fc861184bc95748ae67b360ac962770be7", size = 252769, upload-time = "2025-09-21T20:01:41.341Z" }, + { url = "https://files.pythonhosted.org/packages/98/2e/2dda59afd6103b342e096f246ebc5f87a3363b5412609946c120f4e7750d/coverage-7.10.7-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c41e71c9cfb854789dee6fc51e46743a6d138b1803fab6cb860af43265b42ea6", size = 253901, upload-time = "2025-09-21T20:01:43.042Z" }, + { url = "https://files.pythonhosted.org/packages/53/dc/8d8119c9051d50f3119bb4a75f29f1e4a6ab9415cd1fa8bf22fcc3fb3b5f/coverage-7.10.7-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc01f57ca26269c2c706e838f6422e2a8788e41b3e3c65e2f41148212e57cd59", size = 250413, upload-time = "2025-09-21T20:01:44.469Z" }, + { url = "https://files.pythonhosted.org/packages/98/b3/edaff9c5d79ee4d4b6d3fe046f2b1d799850425695b789d491a64225d493/coverage-7.10.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a6442c59a8ac8b85812ce33bc4d05bde3fb22321fa8294e2a5b487c3505f611b", size = 251820, upload-time = "2025-09-21T20:01:45.915Z" }, + { url = "https://files.pythonhosted.org/packages/11/25/9a0728564bb05863f7e513e5a594fe5ffef091b325437f5430e8cfb0d530/coverage-7.10.7-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:78a384e49f46b80fb4c901d52d92abe098e78768ed829c673fbb53c498bef73a", size = 249941, upload-time = "2025-09-21T20:01:47.296Z" }, + { url = "https://files.pythonhosted.org/packages/e0/fd/ca2650443bfbef5b0e74373aac4df67b08180d2f184b482c41499668e258/coverage-7.10.7-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:5e1e9802121405ede4b0133aa4340ad8186a1d2526de5b7c3eca519db7bb89fb", size = 249519, upload-time = "2025-09-21T20:01:48.73Z" }, + { url = "https://files.pythonhosted.org/packages/24/79/f692f125fb4299b6f963b0745124998ebb8e73ecdfce4ceceb06a8c6bec5/coverage-7.10.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d41213ea25a86f69efd1575073d34ea11aabe075604ddf3d148ecfec9e1e96a1", size = 251375, upload-time = "2025-09-21T20:01:50.529Z" }, + { url = "https://files.pythonhosted.org/packages/5e/75/61b9bbd6c7d24d896bfeec57acba78e0f8deac68e6baf2d4804f7aae1f88/coverage-7.10.7-cp312-cp312-win32.whl", hash = "sha256:77eb4c747061a6af8d0f7bdb31f1e108d172762ef579166ec84542f711d90256", size = 220699, upload-time = "2025-09-21T20:01:51.941Z" }, + { url = "https://files.pythonhosted.org/packages/ca/f3/3bf7905288b45b075918d372498f1cf845b5b579b723c8fd17168018d5f5/coverage-7.10.7-cp312-cp312-win_amd64.whl", hash = "sha256:f51328ffe987aecf6d09f3cd9d979face89a617eacdaea43e7b3080777f647ba", size = 221512, upload-time = "2025-09-21T20:01:53.481Z" }, + { url = "https://files.pythonhosted.org/packages/5c/44/3e32dbe933979d05cf2dac5e697c8599cfe038aaf51223ab901e208d5a62/coverage-7.10.7-cp312-cp312-win_arm64.whl", hash = "sha256:bda5e34f8a75721c96085903c6f2197dc398c20ffd98df33f866a9c8fd95f4bf", size = 220147, upload-time = "2025-09-21T20:01:55.2Z" }, + { url = "https://files.pythonhosted.org/packages/9a/94/b765c1abcb613d103b64fcf10395f54d69b0ef8be6a0dd9c524384892cc7/coverage-7.10.7-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:981a651f543f2854abd3b5fcb3263aac581b18209be49863ba575de6edf4c14d", size = 218320, upload-time = "2025-09-21T20:01:56.629Z" }, + { url = "https://files.pythonhosted.org/packages/72/4f/732fff31c119bb73b35236dd333030f32c4bfe909f445b423e6c7594f9a2/coverage-7.10.7-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:73ab1601f84dc804f7812dc297e93cd99381162da39c47040a827d4e8dafe63b", size = 218575, upload-time = "2025-09-21T20:01:58.203Z" }, + { url = "https://files.pythonhosted.org/packages/87/02/ae7e0af4b674be47566707777db1aa375474f02a1d64b9323e5813a6cdd5/coverage-7.10.7-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a8b6f03672aa6734e700bbcd65ff050fd19cddfec4b031cc8cf1c6967de5a68e", size = 249568, upload-time = "2025-09-21T20:01:59.748Z" }, + { url = "https://files.pythonhosted.org/packages/a2/77/8c6d22bf61921a59bce5471c2f1f7ac30cd4ac50aadde72b8c48d5727902/coverage-7.10.7-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:10b6ba00ab1132a0ce4428ff68cf50a25efd6840a42cdf4239c9b99aad83be8b", size = 252174, upload-time = "2025-09-21T20:02:01.192Z" }, + { url = "https://files.pythonhosted.org/packages/b1/20/b6ea4f69bbb52dac0aebd62157ba6a9dddbfe664f5af8122dac296c3ee15/coverage-7.10.7-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c79124f70465a150e89340de5963f936ee97097d2ef76c869708c4248c63ca49", size = 253447, upload-time = "2025-09-21T20:02:02.701Z" }, + { url = "https://files.pythonhosted.org/packages/f9/28/4831523ba483a7f90f7b259d2018fef02cb4d5b90bc7c1505d6e5a84883c/coverage-7.10.7-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:69212fbccdbd5b0e39eac4067e20a4a5256609e209547d86f740d68ad4f04911", size = 249779, upload-time = "2025-09-21T20:02:04.185Z" }, + { url = "https://files.pythonhosted.org/packages/a7/9f/4331142bc98c10ca6436d2d620c3e165f31e6c58d43479985afce6f3191c/coverage-7.10.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:7ea7c6c9d0d286d04ed3541747e6597cbe4971f22648b68248f7ddcd329207f0", size = 251604, upload-time = "2025-09-21T20:02:06.034Z" }, + { url = "https://files.pythonhosted.org/packages/ce/60/bda83b96602036b77ecf34e6393a3836365481b69f7ed7079ab85048202b/coverage-7.10.7-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:b9be91986841a75042b3e3243d0b3cb0b2434252b977baaf0cd56e960fe1e46f", size = 249497, upload-time = "2025-09-21T20:02:07.619Z" }, + { url = "https://files.pythonhosted.org/packages/5f/af/152633ff35b2af63977edd835d8e6430f0caef27d171edf2fc76c270ef31/coverage-7.10.7-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:b281d5eca50189325cfe1f365fafade89b14b4a78d9b40b05ddd1fc7d2a10a9c", size = 249350, upload-time = "2025-09-21T20:02:10.34Z" }, + { url = "https://files.pythonhosted.org/packages/9d/71/d92105d122bd21cebba877228990e1646d862e34a98bb3374d3fece5a794/coverage-7.10.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:99e4aa63097ab1118e75a848a28e40d68b08a5e19ce587891ab7fd04475e780f", size = 251111, upload-time = "2025-09-21T20:02:12.122Z" }, + { url = "https://files.pythonhosted.org/packages/a2/9e/9fdb08f4bf476c912f0c3ca292e019aab6712c93c9344a1653986c3fd305/coverage-7.10.7-cp313-cp313-win32.whl", hash = "sha256:dc7c389dce432500273eaf48f410b37886be9208b2dd5710aaf7c57fd442c698", size = 220746, upload-time = "2025-09-21T20:02:13.919Z" }, + { url = "https://files.pythonhosted.org/packages/b1/b1/a75fd25df44eab52d1931e89980d1ada46824c7a3210be0d3c88a44aaa99/coverage-7.10.7-cp313-cp313-win_amd64.whl", hash = "sha256:cac0fdca17b036af3881a9d2729a850b76553f3f716ccb0360ad4dbc06b3b843", size = 221541, upload-time = "2025-09-21T20:02:15.57Z" }, + { url = "https://files.pythonhosted.org/packages/14/3a/d720d7c989562a6e9a14b2c9f5f2876bdb38e9367126d118495b89c99c37/coverage-7.10.7-cp313-cp313-win_arm64.whl", hash = "sha256:4b6f236edf6e2f9ae8fcd1332da4e791c1b6ba0dc16a2dc94590ceccb482e546", size = 220170, upload-time = "2025-09-21T20:02:17.395Z" }, + { url = "https://files.pythonhosted.org/packages/bb/22/e04514bf2a735d8b0add31d2b4ab636fc02370730787c576bb995390d2d5/coverage-7.10.7-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:a0ec07fd264d0745ee396b666d47cef20875f4ff2375d7c4f58235886cc1ef0c", size = 219029, upload-time = "2025-09-21T20:02:18.936Z" }, + { url = "https://files.pythonhosted.org/packages/11/0b/91128e099035ece15da3445d9015e4b4153a6059403452d324cbb0a575fa/coverage-7.10.7-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:dd5e856ebb7bfb7672b0086846db5afb4567a7b9714b8a0ebafd211ec7ce6a15", size = 219259, upload-time = "2025-09-21T20:02:20.44Z" }, + { url = "https://files.pythonhosted.org/packages/8b/51/66420081e72801536a091a0c8f8c1f88a5c4bf7b9b1bdc6222c7afe6dc9b/coverage-7.10.7-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f57b2a3c8353d3e04acf75b3fed57ba41f5c0646bbf1d10c7c282291c97936b4", size = 260592, upload-time = "2025-09-21T20:02:22.313Z" }, + { url = "https://files.pythonhosted.org/packages/5d/22/9b8d458c2881b22df3db5bb3e7369e63d527d986decb6c11a591ba2364f7/coverage-7.10.7-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1ef2319dd15a0b009667301a3f84452a4dc6fddfd06b0c5c53ea472d3989fbf0", size = 262768, upload-time = "2025-09-21T20:02:24.287Z" }, + { url = "https://files.pythonhosted.org/packages/f7/08/16bee2c433e60913c610ea200b276e8eeef084b0d200bdcff69920bd5828/coverage-7.10.7-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:83082a57783239717ceb0ad584de3c69cf581b2a95ed6bf81ea66034f00401c0", size = 264995, upload-time = "2025-09-21T20:02:26.133Z" }, + { url = "https://files.pythonhosted.org/packages/20/9d/e53eb9771d154859b084b90201e5221bca7674ba449a17c101a5031d4054/coverage-7.10.7-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50aa94fb1fb9a397eaa19c0d5ec15a5edd03a47bf1a3a6111a16b36e190cff65", size = 259546, upload-time = "2025-09-21T20:02:27.716Z" }, + { url = "https://files.pythonhosted.org/packages/ad/b0/69bc7050f8d4e56a89fb550a1577d5d0d1db2278106f6f626464067b3817/coverage-7.10.7-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:2120043f147bebb41c85b97ac45dd173595ff14f2a584f2963891cbcc3091541", size = 262544, upload-time = "2025-09-21T20:02:29.216Z" }, + { url = "https://files.pythonhosted.org/packages/ef/4b/2514b060dbd1bc0aaf23b852c14bb5818f244c664cb16517feff6bb3a5ab/coverage-7.10.7-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2fafd773231dd0378fdba66d339f84904a8e57a262f583530f4f156ab83863e6", size = 260308, upload-time = "2025-09-21T20:02:31.226Z" }, + { url = "https://files.pythonhosted.org/packages/54/78/7ba2175007c246d75e496f64c06e94122bdb914790a1285d627a918bd271/coverage-7.10.7-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:0b944ee8459f515f28b851728ad224fa2d068f1513ef6b7ff1efafeb2185f999", size = 258920, upload-time = "2025-09-21T20:02:32.823Z" }, + { url = "https://files.pythonhosted.org/packages/c0/b3/fac9f7abbc841409b9a410309d73bfa6cfb2e51c3fada738cb607ce174f8/coverage-7.10.7-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4b583b97ab2e3efe1b3e75248a9b333bd3f8b0b1b8e5b45578e05e5850dfb2c2", size = 261434, upload-time = "2025-09-21T20:02:34.86Z" }, + { url = "https://files.pythonhosted.org/packages/ee/51/a03bec00d37faaa891b3ff7387192cef20f01604e5283a5fabc95346befa/coverage-7.10.7-cp313-cp313t-win32.whl", hash = "sha256:2a78cd46550081a7909b3329e2266204d584866e8d97b898cd7fb5ac8d888b1a", size = 221403, upload-time = "2025-09-21T20:02:37.034Z" }, + { url = "https://files.pythonhosted.org/packages/53/22/3cf25d614e64bf6d8e59c7c669b20d6d940bb337bdee5900b9ca41c820bb/coverage-7.10.7-cp313-cp313t-win_amd64.whl", hash = "sha256:33a5e6396ab684cb43dc7befa386258acb2d7fae7f67330ebb85ba4ea27938eb", size = 222469, upload-time = "2025-09-21T20:02:39.011Z" }, + { url = "https://files.pythonhosted.org/packages/49/a1/00164f6d30d8a01c3c9c48418a7a5be394de5349b421b9ee019f380df2a0/coverage-7.10.7-cp313-cp313t-win_arm64.whl", hash = "sha256:86b0e7308289ddde73d863b7683f596d8d21c7d8664ce1dee061d0bcf3fbb4bb", size = 220731, upload-time = "2025-09-21T20:02:40.939Z" }, + { url = "https://files.pythonhosted.org/packages/23/9c/5844ab4ca6a4dd97a1850e030a15ec7d292b5c5cb93082979225126e35dd/coverage-7.10.7-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:b06f260b16ead11643a5a9f955bd4b5fd76c1a4c6796aeade8520095b75de520", size = 218302, upload-time = "2025-09-21T20:02:42.527Z" }, + { url = "https://files.pythonhosted.org/packages/f0/89/673f6514b0961d1f0e20ddc242e9342f6da21eaba3489901b565c0689f34/coverage-7.10.7-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:212f8f2e0612778f09c55dd4872cb1f64a1f2b074393d139278ce902064d5b32", size = 218578, upload-time = "2025-09-21T20:02:44.468Z" }, + { url = "https://files.pythonhosted.org/packages/05/e8/261cae479e85232828fb17ad536765c88dd818c8470aca690b0ac6feeaa3/coverage-7.10.7-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3445258bcded7d4aa630ab8296dea4d3f15a255588dd535f980c193ab6b95f3f", size = 249629, upload-time = "2025-09-21T20:02:46.503Z" }, + { url = "https://files.pythonhosted.org/packages/82/62/14ed6546d0207e6eda876434e3e8475a3e9adbe32110ce896c9e0c06bb9a/coverage-7.10.7-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:bb45474711ba385c46a0bfe696c695a929ae69ac636cda8f532be9e8c93d720a", size = 252162, upload-time = "2025-09-21T20:02:48.689Z" }, + { url = "https://files.pythonhosted.org/packages/ff/49/07f00db9ac6478e4358165a08fb41b469a1b053212e8a00cb02f0d27a05f/coverage-7.10.7-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:813922f35bd800dca9994c5971883cbc0d291128a5de6b167c7aa697fcf59360", size = 253517, upload-time = "2025-09-21T20:02:50.31Z" }, + { url = "https://files.pythonhosted.org/packages/a2/59/c5201c62dbf165dfbc91460f6dbbaa85a8b82cfa6131ac45d6c1bfb52deb/coverage-7.10.7-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:93c1b03552081b2a4423091d6fb3787265b8f86af404cff98d1b5342713bdd69", size = 249632, upload-time = "2025-09-21T20:02:51.971Z" }, + { url = "https://files.pythonhosted.org/packages/07/ae/5920097195291a51fb00b3a70b9bbd2edbfe3c84876a1762bd1ef1565ebc/coverage-7.10.7-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:cc87dd1b6eaf0b848eebb1c86469b9f72a1891cb42ac7adcfbce75eadb13dd14", size = 251520, upload-time = "2025-09-21T20:02:53.858Z" }, + { url = "https://files.pythonhosted.org/packages/b9/3c/a815dde77a2981f5743a60b63df31cb322c944843e57dbd579326625a413/coverage-7.10.7-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:39508ffda4f343c35f3236fe8d1a6634a51f4581226a1262769d7f970e73bffe", size = 249455, upload-time = "2025-09-21T20:02:55.807Z" }, + { url = "https://files.pythonhosted.org/packages/aa/99/f5cdd8421ea656abefb6c0ce92556709db2265c41e8f9fc6c8ae0f7824c9/coverage-7.10.7-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:925a1edf3d810537c5a3abe78ec5530160c5f9a26b1f4270b40e62cc79304a1e", size = 249287, upload-time = "2025-09-21T20:02:57.784Z" }, + { url = "https://files.pythonhosted.org/packages/c3/7a/e9a2da6a1fc5d007dd51fca083a663ab930a8c4d149c087732a5dbaa0029/coverage-7.10.7-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2c8b9a0636f94c43cd3576811e05b89aa9bc2d0a85137affc544ae5cb0e4bfbd", size = 250946, upload-time = "2025-09-21T20:02:59.431Z" }, + { url = "https://files.pythonhosted.org/packages/ef/5b/0b5799aa30380a949005a353715095d6d1da81927d6dbed5def2200a4e25/coverage-7.10.7-cp314-cp314-win32.whl", hash = "sha256:b7b8288eb7cdd268b0304632da8cb0bb93fadcfec2fe5712f7b9cc8f4d487be2", size = 221009, upload-time = "2025-09-21T20:03:01.324Z" }, + { url = "https://files.pythonhosted.org/packages/da/b0/e802fbb6eb746de006490abc9bb554b708918b6774b722bb3a0e6aa1b7de/coverage-7.10.7-cp314-cp314-win_amd64.whl", hash = "sha256:1ca6db7c8807fb9e755d0379ccc39017ce0a84dcd26d14b5a03b78563776f681", size = 221804, upload-time = "2025-09-21T20:03:03.4Z" }, + { url = "https://files.pythonhosted.org/packages/9e/e8/71d0c8e374e31f39e3389bb0bd19e527d46f00ea8571ec7ec8fd261d8b44/coverage-7.10.7-cp314-cp314-win_arm64.whl", hash = "sha256:097c1591f5af4496226d5783d036bf6fd6cd0cbc132e071b33861de756efb880", size = 220384, upload-time = "2025-09-21T20:03:05.111Z" }, + { url = "https://files.pythonhosted.org/packages/62/09/9a5608d319fa3eba7a2019addeacb8c746fb50872b57a724c9f79f146969/coverage-7.10.7-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:a62c6ef0d50e6de320c270ff91d9dd0a05e7250cac2a800b7784bae474506e63", size = 219047, upload-time = "2025-09-21T20:03:06.795Z" }, + { url = "https://files.pythonhosted.org/packages/f5/6f/f58d46f33db9f2e3647b2d0764704548c184e6f5e014bef528b7f979ef84/coverage-7.10.7-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:9fa6e4dd51fe15d8738708a973470f67a855ca50002294852e9571cdbd9433f2", size = 219266, upload-time = "2025-09-21T20:03:08.495Z" }, + { url = "https://files.pythonhosted.org/packages/74/5c/183ffc817ba68e0b443b8c934c8795553eb0c14573813415bd59941ee165/coverage-7.10.7-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8fb190658865565c549b6b4706856d6a7b09302c797eb2cf8e7fe9dabb043f0d", size = 260767, upload-time = "2025-09-21T20:03:10.172Z" }, + { url = "https://files.pythonhosted.org/packages/0f/48/71a8abe9c1ad7e97548835e3cc1adbf361e743e9d60310c5f75c9e7bf847/coverage-7.10.7-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:affef7c76a9ef259187ef31599a9260330e0335a3011732c4b9effa01e1cd6e0", size = 262931, upload-time = "2025-09-21T20:03:11.861Z" }, + { url = "https://files.pythonhosted.org/packages/84/fd/193a8fb132acfc0a901f72020e54be5e48021e1575bb327d8ee1097a28fd/coverage-7.10.7-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e16e07d85ca0cf8bafe5f5d23a0b850064e8e945d5677492b06bbe6f09cc699", size = 265186, upload-time = "2025-09-21T20:03:13.539Z" }, + { url = "https://files.pythonhosted.org/packages/b1/8f/74ecc30607dd95ad50e3034221113ccb1c6d4e8085cc761134782995daae/coverage-7.10.7-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:03ffc58aacdf65d2a82bbeb1ffe4d01ead4017a21bfd0454983b88ca73af94b9", size = 259470, upload-time = "2025-09-21T20:03:15.584Z" }, + { url = "https://files.pythonhosted.org/packages/0f/55/79ff53a769f20d71b07023ea115c9167c0bb56f281320520cf64c5298a96/coverage-7.10.7-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1b4fd784344d4e52647fd7857b2af5b3fbe6c239b0b5fa63e94eb67320770e0f", size = 262626, upload-time = "2025-09-21T20:03:17.673Z" }, + { url = "https://files.pythonhosted.org/packages/88/e2/dac66c140009b61ac3fc13af673a574b00c16efdf04f9b5c740703e953c0/coverage-7.10.7-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:0ebbaddb2c19b71912c6f2518e791aa8b9f054985a0769bdb3a53ebbc765c6a1", size = 260386, upload-time = "2025-09-21T20:03:19.36Z" }, + { url = "https://files.pythonhosted.org/packages/a2/f1/f48f645e3f33bb9ca8a496bc4a9671b52f2f353146233ebd7c1df6160440/coverage-7.10.7-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:a2d9a3b260cc1d1dbdb1c582e63ddcf5363426a1a68faa0f5da28d8ee3c722a0", size = 258852, upload-time = "2025-09-21T20:03:21.007Z" }, + { url = "https://files.pythonhosted.org/packages/bb/3b/8442618972c51a7affeead957995cfa8323c0c9bcf8fa5a027421f720ff4/coverage-7.10.7-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:a3cc8638b2480865eaa3926d192e64ce6c51e3d29c849e09d5b4ad95efae5399", size = 261534, upload-time = "2025-09-21T20:03:23.12Z" }, + { url = "https://files.pythonhosted.org/packages/b2/dc/101f3fa3a45146db0cb03f5b4376e24c0aac818309da23e2de0c75295a91/coverage-7.10.7-cp314-cp314t-win32.whl", hash = "sha256:67f8c5cbcd3deb7a60b3345dffc89a961a484ed0af1f6f73de91705cc6e31235", size = 221784, upload-time = "2025-09-21T20:03:24.769Z" }, + { url = "https://files.pythonhosted.org/packages/4c/a1/74c51803fc70a8a40d7346660379e144be772bab4ac7bb6e6b905152345c/coverage-7.10.7-cp314-cp314t-win_amd64.whl", hash = "sha256:e1ed71194ef6dea7ed2d5cb5f7243d4bcd334bfb63e59878519be558078f848d", size = 222905, upload-time = "2025-09-21T20:03:26.93Z" }, + { url = "https://files.pythonhosted.org/packages/12/65/f116a6d2127df30bcafbceef0302d8a64ba87488bf6f73a6d8eebf060873/coverage-7.10.7-cp314-cp314t-win_arm64.whl", hash = "sha256:7fe650342addd8524ca63d77b2362b02345e5f1a093266787d210c70a50b471a", size = 220922, upload-time = "2025-09-21T20:03:28.672Z" }, + { url = "https://files.pythonhosted.org/packages/a3/ad/d1c25053764b4c42eb294aae92ab617d2e4f803397f9c7c8295caa77a260/coverage-7.10.7-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fff7b9c3f19957020cac546c70025331113d2e61537f6e2441bc7657913de7d3", size = 217978, upload-time = "2025-09-21T20:03:30.362Z" }, + { url = "https://files.pythonhosted.org/packages/52/2f/b9f9daa39b80ece0b9548bbb723381e29bc664822d9a12c2135f8922c22b/coverage-7.10.7-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:bc91b314cef27742da486d6839b677b3f2793dfe52b51bbbb7cf736d5c29281c", size = 218370, upload-time = "2025-09-21T20:03:32.147Z" }, + { url = "https://files.pythonhosted.org/packages/dd/6e/30d006c3b469e58449650642383dddf1c8fb63d44fdf92994bfd46570695/coverage-7.10.7-cp39-cp39-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:567f5c155eda8df1d3d439d40a45a6a5f029b429b06648235f1e7e51b522b396", size = 244802, upload-time = "2025-09-21T20:03:33.919Z" }, + { url = "https://files.pythonhosted.org/packages/b0/49/8a070782ce7e6b94ff6a0b6d7c65ba6bc3091d92a92cef4cd4eb0767965c/coverage-7.10.7-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:2af88deffcc8a4d5974cf2d502251bc3b2db8461f0b66d80a449c33757aa9f40", size = 246625, upload-time = "2025-09-21T20:03:36.09Z" }, + { url = "https://files.pythonhosted.org/packages/6a/92/1c1c5a9e8677ce56d42b97bdaca337b2d4d9ebe703d8c174ede52dbabd5f/coverage-7.10.7-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c7315339eae3b24c2d2fa1ed7d7a38654cba34a13ef19fbcb9425da46d3dc594", size = 248399, upload-time = "2025-09-21T20:03:38.342Z" }, + { url = "https://files.pythonhosted.org/packages/c0/54/b140edee7257e815de7426d5d9846b58505dffc29795fff2dfb7f8a1c5a0/coverage-7.10.7-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:912e6ebc7a6e4adfdbb1aec371ad04c68854cd3bf3608b3514e7ff9062931d8a", size = 245142, upload-time = "2025-09-21T20:03:40.591Z" }, + { url = "https://files.pythonhosted.org/packages/e4/9e/6d6b8295940b118e8b7083b29226c71f6154f7ff41e9ca431f03de2eac0d/coverage-7.10.7-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:f49a05acd3dfe1ce9715b657e28d138578bc40126760efb962322c56e9ca344b", size = 246284, upload-time = "2025-09-21T20:03:42.355Z" }, + { url = "https://files.pythonhosted.org/packages/db/e5/5e957ca747d43dbe4d9714358375c7546cb3cb533007b6813fc20fce37ad/coverage-7.10.7-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:cce2109b6219f22ece99db7644b9622f54a4e915dad65660ec435e89a3ea7cc3", size = 244353, upload-time = "2025-09-21T20:03:44.218Z" }, + { url = "https://files.pythonhosted.org/packages/9a/45/540fc5cc92536a1b783b7ef99450bd55a4b3af234aae35a18a339973ce30/coverage-7.10.7-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:f3c887f96407cea3916294046fc7dab611c2552beadbed4ea901cbc6a40cc7a0", size = 244430, upload-time = "2025-09-21T20:03:46.065Z" }, + { url = "https://files.pythonhosted.org/packages/75/0b/8287b2e5b38c8fe15d7e3398849bb58d382aedc0864ea0fa1820e8630491/coverage-7.10.7-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:635adb9a4507c9fd2ed65f39693fa31c9a3ee3a8e6dc64df033e8fdf52a7003f", size = 245311, upload-time = "2025-09-21T20:03:48.19Z" }, + { url = "https://files.pythonhosted.org/packages/0c/1d/29724999984740f0c86d03e6420b942439bf5bd7f54d4382cae386a9d1e9/coverage-7.10.7-cp39-cp39-win32.whl", hash = "sha256:5a02d5a850e2979b0a014c412573953995174743a3f7fa4ea5a6e9a3c5617431", size = 220500, upload-time = "2025-09-21T20:03:50.024Z" }, + { url = "https://files.pythonhosted.org/packages/43/11/4b1e6b129943f905ca54c339f343877b55b365ae2558806c1be4f7476ed5/coverage-7.10.7-cp39-cp39-win_amd64.whl", hash = "sha256:c134869d5ffe34547d14e174c866fd8fe2254918cc0a95e99052903bc1543e07", size = 221408, upload-time = "2025-09-21T20:03:51.803Z" }, + { url = "https://files.pythonhosted.org/packages/ec/16/114df1c291c22cac3b0c127a73e0af5c12ed7bbb6558d310429a0ae24023/coverage-7.10.7-py3-none-any.whl", hash = "sha256:f7941f6f2fe6dd6807a1208737b8a0cbcf1cc6d7b07d24998ad2d63590868260", size = 209952, upload-time = "2025-09-21T20:03:53.918Z" }, ] [[package]] name = "coverage" -version = "7.6.10" +version = "7.13.4" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.9'", + "python_full_version >= '3.10'", ] -sdist = { url = "https://files.pythonhosted.org/packages/84/ba/ac14d281f80aab516275012e8875991bb06203957aa1e19950139238d658/coverage-7.6.10.tar.gz", hash = "sha256:7fb105327c8f8f0682e29843e2ff96af9dcbe5bab8eeb4b398c6a33a16d80a23", size = 803868 } +sdist = { url = "https://files.pythonhosted.org/packages/24/56/95b7e30fa389756cb56630faa728da46a27b8c6eb46f9d557c68fff12b65/coverage-7.13.4.tar.gz", hash = "sha256:e5c8f6ed1e61a8b2dcdf31eb0b9bbf0130750ca79c1c49eb898e2ad86f5ccc91", size = 827239, upload-time = "2026-02-09T12:59:03.86Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c5/12/2a2a923edf4ddabdffed7ad6da50d96a5c126dae7b80a33df7310e329a1e/coverage-7.6.10-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5c912978f7fbf47ef99cec50c4401340436d200d41d714c7a4766f377c5b7b78", size = 207982 }, - { url = "https://files.pythonhosted.org/packages/ca/49/6985dbca9c7be3f3cb62a2e6e492a0c88b65bf40579e16c71ae9c33c6b23/coverage-7.6.10-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a01ec4af7dfeb96ff0078ad9a48810bb0cc8abcb0115180c6013a6b26237626c", size = 208414 }, - { url = "https://files.pythonhosted.org/packages/35/93/287e8f1d1ed2646f4e0b2605d14616c9a8a2697d0d1b453815eb5c6cebdb/coverage-7.6.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3b204c11e2b2d883946fe1d97f89403aa1811df28ce0447439178cc7463448a", size = 236860 }, - { url = "https://files.pythonhosted.org/packages/de/e1/cfdb5627a03567a10031acc629b75d45a4ca1616e54f7133ca1fa366050a/coverage-7.6.10-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32ee6d8491fcfc82652a37109f69dee9a830e9379166cb73c16d8dc5c2915165", size = 234758 }, - { url = "https://files.pythonhosted.org/packages/6d/85/fc0de2bcda3f97c2ee9fe8568f7d48f7279e91068958e5b2cc19e0e5f600/coverage-7.6.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:675cefc4c06e3b4c876b85bfb7c59c5e2218167bbd4da5075cbe3b5790a28988", size = 235920 }, - { url = "https://files.pythonhosted.org/packages/79/73/ef4ea0105531506a6f4cf4ba571a214b14a884630b567ed65b3d9c1975e1/coverage-7.6.10-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f4f620668dbc6f5e909a0946a877310fb3d57aea8198bde792aae369ee1c23b5", size = 234986 }, - { url = "https://files.pythonhosted.org/packages/c6/4d/75afcfe4432e2ad0405c6f27adeb109ff8976c5e636af8604f94f29fa3fc/coverage-7.6.10-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:4eea95ef275de7abaef630c9b2c002ffbc01918b726a39f5a4353916ec72d2f3", size = 233446 }, - { url = "https://files.pythonhosted.org/packages/86/5b/efee56a89c16171288cafff022e8af44f8f94075c2d8da563c3935212871/coverage-7.6.10-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e2f0280519e42b0a17550072861e0bc8a80a0870de260f9796157d3fca2733c5", size = 234566 }, - { url = "https://files.pythonhosted.org/packages/f2/db/67770cceb4a64d3198bf2aa49946f411b85ec6b0a9b489e61c8467a4253b/coverage-7.6.10-cp310-cp310-win32.whl", hash = "sha256:bc67deb76bc3717f22e765ab3e07ee9c7a5e26b9019ca19a3b063d9f4b874244", size = 210675 }, - { url = "https://files.pythonhosted.org/packages/8d/27/e8bfc43f5345ec2c27bc8a1fa77cdc5ce9dcf954445e11f14bb70b889d14/coverage-7.6.10-cp310-cp310-win_amd64.whl", hash = "sha256:0f460286cb94036455e703c66988851d970fdfd8acc2a1122ab7f4f904e4029e", size = 211518 }, - { url = "https://files.pythonhosted.org/packages/85/d2/5e175fcf6766cf7501a8541d81778fd2f52f4870100e791f5327fd23270b/coverage-7.6.10-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ea3c8f04b3e4af80e17bab607c386a830ffc2fb88a5484e1df756478cf70d1d3", size = 208088 }, - { url = "https://files.pythonhosted.org/packages/4b/6f/06db4dc8fca33c13b673986e20e466fd936235a6ec1f0045c3853ac1b593/coverage-7.6.10-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:507a20fc863cae1d5720797761b42d2d87a04b3e5aeb682ef3b7332e90598f43", size = 208536 }, - { url = "https://files.pythonhosted.org/packages/0d/62/c6a0cf80318c1c1af376d52df444da3608eafc913b82c84a4600d8349472/coverage-7.6.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d37a84878285b903c0fe21ac8794c6dab58150e9359f1aaebbeddd6412d53132", size = 240474 }, - { url = "https://files.pythonhosted.org/packages/a3/59/750adafc2e57786d2e8739a46b680d4fb0fbc2d57fbcb161290a9f1ecf23/coverage-7.6.10-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a534738b47b0de1995f85f582d983d94031dffb48ab86c95bdf88dc62212142f", size = 237880 }, - { url = "https://files.pythonhosted.org/packages/2c/f8/ef009b3b98e9f7033c19deb40d629354aab1d8b2d7f9cfec284dbedf5096/coverage-7.6.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0d7a2bf79378d8fb8afaa994f91bfd8215134f8631d27eba3e0e2c13546ce994", size = 239750 }, - { url = "https://files.pythonhosted.org/packages/a6/e2/6622f3b70f5f5b59f705e680dae6db64421af05a5d1e389afd24dae62e5b/coverage-7.6.10-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6713ba4b4ebc330f3def51df1d5d38fad60b66720948112f114968feb52d3f99", size = 238642 }, - { url = "https://files.pythonhosted.org/packages/2d/10/57ac3f191a3c95c67844099514ff44e6e19b2915cd1c22269fb27f9b17b6/coverage-7.6.10-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ab32947f481f7e8c763fa2c92fd9f44eeb143e7610c4ca9ecd6a36adab4081bd", size = 237266 }, - { url = "https://files.pythonhosted.org/packages/ee/2d/7016f4ad9d553cabcb7333ed78ff9d27248ec4eba8dd21fa488254dff894/coverage-7.6.10-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7bbd8c8f1b115b892e34ba66a097b915d3871db7ce0e6b9901f462ff3a975377", size = 238045 }, - { url = "https://files.pythonhosted.org/packages/a7/fe/45af5c82389a71e0cae4546413266d2195c3744849669b0bab4b5f2c75da/coverage-7.6.10-cp311-cp311-win32.whl", hash = "sha256:299e91b274c5c9cdb64cbdf1b3e4a8fe538a7a86acdd08fae52301b28ba297f8", size = 210647 }, - { url = "https://files.pythonhosted.org/packages/db/11/3f8e803a43b79bc534c6a506674da9d614e990e37118b4506faf70d46ed6/coverage-7.6.10-cp311-cp311-win_amd64.whl", hash = "sha256:489a01f94aa581dbd961f306e37d75d4ba16104bbfa2b0edb21d29b73be83609", size = 211508 }, - { url = "https://files.pythonhosted.org/packages/86/77/19d09ea06f92fdf0487499283b1b7af06bc422ea94534c8fe3a4cd023641/coverage-7.6.10-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:27c6e64726b307782fa5cbe531e7647aee385a29b2107cd87ba7c0105a5d3853", size = 208281 }, - { url = "https://files.pythonhosted.org/packages/b6/67/5479b9f2f99fcfb49c0d5cf61912a5255ef80b6e80a3cddba39c38146cf4/coverage-7.6.10-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c56e097019e72c373bae32d946ecf9858fda841e48d82df7e81c63ac25554078", size = 208514 }, - { url = "https://files.pythonhosted.org/packages/15/d1/febf59030ce1c83b7331c3546d7317e5120c5966471727aa7ac157729c4b/coverage-7.6.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c7827a5bc7bdb197b9e066cdf650b2887597ad124dd99777332776f7b7c7d0d0", size = 241537 }, - { url = "https://files.pythonhosted.org/packages/4b/7e/5ac4c90192130e7cf8b63153fe620c8bfd9068f89a6d9b5f26f1550f7a26/coverage-7.6.10-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:204a8238afe787323a8b47d8be4df89772d5c1e4651b9ffa808552bdf20e1d50", size = 238572 }, - { url = "https://files.pythonhosted.org/packages/dc/03/0334a79b26ecf59958f2fe9dd1f5ab3e2f88db876f5071933de39af09647/coverage-7.6.10-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e67926f51821b8e9deb6426ff3164870976fe414d033ad90ea75e7ed0c2e5022", size = 240639 }, - { url = "https://files.pythonhosted.org/packages/d7/45/8a707f23c202208d7b286d78ad6233f50dcf929319b664b6cc18a03c1aae/coverage-7.6.10-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e78b270eadb5702938c3dbe9367f878249b5ef9a2fcc5360ac7bff694310d17b", size = 240072 }, - { url = "https://files.pythonhosted.org/packages/66/02/603ce0ac2d02bc7b393279ef618940b4a0535b0868ee791140bda9ecfa40/coverage-7.6.10-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:714f942b9c15c3a7a5fe6876ce30af831c2ad4ce902410b7466b662358c852c0", size = 238386 }, - { url = "https://files.pythonhosted.org/packages/04/62/4e6887e9be060f5d18f1dd58c2838b2d9646faf353232dec4e2d4b1c8644/coverage-7.6.10-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:abb02e2f5a3187b2ac4cd46b8ced85a0858230b577ccb2c62c81482ca7d18852", size = 240054 }, - { url = "https://files.pythonhosted.org/packages/5c/74/83ae4151c170d8bd071924f212add22a0e62a7fe2b149edf016aeecad17c/coverage-7.6.10-cp312-cp312-win32.whl", hash = "sha256:55b201b97286cf61f5e76063f9e2a1d8d2972fc2fcfd2c1272530172fd28c359", size = 210904 }, - { url = "https://files.pythonhosted.org/packages/c3/54/de0893186a221478f5880283119fc40483bc460b27c4c71d1b8bba3474b9/coverage-7.6.10-cp312-cp312-win_amd64.whl", hash = "sha256:e4ae5ac5e0d1e4edfc9b4b57b4cbecd5bc266a6915c500f358817a8496739247", size = 211692 }, - { url = "https://files.pythonhosted.org/packages/25/6d/31883d78865529257bf847df5789e2ae80e99de8a460c3453dbfbe0db069/coverage-7.6.10-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:05fca8ba6a87aabdd2d30d0b6c838b50510b56cdcfc604d40760dae7153b73d9", size = 208308 }, - { url = "https://files.pythonhosted.org/packages/70/22/3f2b129cc08de00c83b0ad6252e034320946abfc3e4235c009e57cfeee05/coverage-7.6.10-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9e80eba8801c386f72e0712a0453431259c45c3249f0009aff537a517b52942b", size = 208565 }, - { url = "https://files.pythonhosted.org/packages/97/0a/d89bc2d1cc61d3a8dfe9e9d75217b2be85f6c73ebf1b9e3c2f4e797f4531/coverage-7.6.10-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a372c89c939d57abe09e08c0578c1d212e7a678135d53aa16eec4430adc5e690", size = 241083 }, - { url = "https://files.pythonhosted.org/packages/4c/81/6d64b88a00c7a7aaed3a657b8eaa0931f37a6395fcef61e53ff742b49c97/coverage-7.6.10-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ec22b5e7fe7a0fa8509181c4aac1db48f3dd4d3a566131b313d1efc102892c18", size = 238235 }, - { url = "https://files.pythonhosted.org/packages/9a/0b/7797d4193f5adb4b837207ed87fecf5fc38f7cc612b369a8e8e12d9fa114/coverage-7.6.10-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26bcf5c4df41cad1b19c84af71c22cbc9ea9a547fc973f1f2cc9a290002c8b3c", size = 240220 }, - { url = "https://files.pythonhosted.org/packages/65/4d/6f83ca1bddcf8e51bf8ff71572f39a1c73c34cf50e752a952c34f24d0a60/coverage-7.6.10-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4e4630c26b6084c9b3cb53b15bd488f30ceb50b73c35c5ad7871b869cb7365fd", size = 239847 }, - { url = "https://files.pythonhosted.org/packages/30/9d/2470df6aa146aff4c65fee0f87f58d2164a67533c771c9cc12ffcdb865d5/coverage-7.6.10-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2396e8116db77789f819d2bc8a7e200232b7a282c66e0ae2d2cd84581a89757e", size = 237922 }, - { url = "https://files.pythonhosted.org/packages/08/dd/723fef5d901e6a89f2507094db66c091449c8ba03272861eaefa773ad95c/coverage-7.6.10-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:79109c70cc0882e4d2d002fe69a24aa504dec0cc17169b3c7f41a1d341a73694", size = 239783 }, - { url = "https://files.pythonhosted.org/packages/3d/f7/64d3298b2baf261cb35466000628706ce20a82d42faf9b771af447cd2b76/coverage-7.6.10-cp313-cp313-win32.whl", hash = "sha256:9e1747bab246d6ff2c4f28b4d186b205adced9f7bd9dc362051cc37c4a0c7bd6", size = 210965 }, - { url = "https://files.pythonhosted.org/packages/d5/58/ec43499a7fc681212fe7742fe90b2bc361cdb72e3181ace1604247a5b24d/coverage-7.6.10-cp313-cp313-win_amd64.whl", hash = "sha256:254f1a3b1eef5f7ed23ef265eaa89c65c8c5b6b257327c149db1ca9d4a35f25e", size = 211719 }, - { url = "https://files.pythonhosted.org/packages/ab/c9/f2857a135bcff4330c1e90e7d03446b036b2363d4ad37eb5e3a47bbac8a6/coverage-7.6.10-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2ccf240eb719789cedbb9fd1338055de2761088202a9a0b73032857e53f612fe", size = 209050 }, - { url = "https://files.pythonhosted.org/packages/aa/b3/f840e5bd777d8433caa9e4a1eb20503495709f697341ac1a8ee6a3c906ad/coverage-7.6.10-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:0c807ca74d5a5e64427c8805de15b9ca140bba13572d6d74e262f46f50b13273", size = 209321 }, - { url = "https://files.pythonhosted.org/packages/85/7d/125a5362180fcc1c03d91850fc020f3831d5cda09319522bcfa6b2b70be7/coverage-7.6.10-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2bcfa46d7709b5a7ffe089075799b902020b62e7ee56ebaed2f4bdac04c508d8", size = 252039 }, - { url = "https://files.pythonhosted.org/packages/a9/9c/4358bf3c74baf1f9bddd2baf3756b54c07f2cfd2535f0a47f1e7757e54b3/coverage-7.6.10-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e0de1e902669dccbf80b0415fb6b43d27edca2fbd48c74da378923b05316098", size = 247758 }, - { url = "https://files.pythonhosted.org/packages/cf/c7/de3eb6fc5263b26fab5cda3de7a0f80e317597a4bad4781859f72885f300/coverage-7.6.10-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f7b444c42bbc533aaae6b5a2166fd1a797cdb5eb58ee51a92bee1eb94a1e1cb", size = 250119 }, - { url = "https://files.pythonhosted.org/packages/3e/e6/43de91f8ba2ec9140c6a4af1102141712949903dc732cf739167cfa7a3bc/coverage-7.6.10-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b330368cb99ef72fcd2dc3ed260adf67b31499584dc8a20225e85bfe6f6cfed0", size = 249597 }, - { url = "https://files.pythonhosted.org/packages/08/40/61158b5499aa2adf9e37bc6d0117e8f6788625b283d51e7e0c53cf340530/coverage-7.6.10-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:9a7cfb50515f87f7ed30bc882f68812fd98bc2852957df69f3003d22a2aa0abf", size = 247473 }, - { url = "https://files.pythonhosted.org/packages/50/69/b3f2416725621e9f112e74e8470793d5b5995f146f596f133678a633b77e/coverage-7.6.10-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6f93531882a5f68c28090f901b1d135de61b56331bba82028489bc51bdd818d2", size = 248737 }, - { url = "https://files.pythonhosted.org/packages/3c/6e/fe899fb937657db6df31cc3e61c6968cb56d36d7326361847440a430152e/coverage-7.6.10-cp313-cp313t-win32.whl", hash = "sha256:89d76815a26197c858f53c7f6a656686ec392b25991f9e409bcef020cd532312", size = 211611 }, - { url = "https://files.pythonhosted.org/packages/1c/55/52f5e66142a9d7bc93a15192eba7a78513d2abf6b3558d77b4ca32f5f424/coverage-7.6.10-cp313-cp313t-win_amd64.whl", hash = "sha256:54a5f0f43950a36312155dae55c505a76cd7f2b12d26abeebbe7a0b36dbc868d", size = 212781 }, - { url = "https://files.pythonhosted.org/packages/40/41/473617aadf9a1c15bc2d56be65d90d7c29bfa50a957a67ef96462f7ebf8e/coverage-7.6.10-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:656c82b8a0ead8bba147de9a89bda95064874c91a3ed43a00e687f23cc19d53a", size = 207978 }, - { url = "https://files.pythonhosted.org/packages/10/f6/480586607768b39a30e6910a3c4522139094ac0f1677028e1f4823688957/coverage-7.6.10-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ccc2b70a7ed475c68ceb548bf69cec1e27305c1c2606a5eb7c3afff56a1b3b27", size = 208415 }, - { url = "https://files.pythonhosted.org/packages/f1/af/439bb760f817deff6f4d38fe7da08d9dd7874a560241f1945bc3b4446550/coverage-7.6.10-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5e37dc41d57ceba70956fa2fc5b63c26dba863c946ace9705f8eca99daecdc4", size = 236452 }, - { url = "https://files.pythonhosted.org/packages/d0/13/481f4ceffcabe29ee2332e60efb52e4694f54a402f3ada2bcec10bb32e43/coverage-7.6.10-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0aa9692b4fdd83a4647eeb7db46410ea1322b5ed94cd1715ef09d1d5922ba87f", size = 234374 }, - { url = "https://files.pythonhosted.org/packages/c5/59/4607ea9d6b1b73e905c7656da08d0b00cdf6e59f2293ec259e8914160025/coverage-7.6.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa744da1820678b475e4ba3dfd994c321c5b13381d1041fe9c608620e6676e25", size = 235505 }, - { url = "https://files.pythonhosted.org/packages/85/60/d66365723b9b7f29464b11d024248ed3523ce5aab958e4ad8c43f3f4148b/coverage-7.6.10-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:c0b1818063dc9e9d838c09e3a473c1422f517889436dd980f5d721899e66f315", size = 234616 }, - { url = "https://files.pythonhosted.org/packages/74/f8/2cf7a38e7d81b266f47dfcf137fecd8fa66c7bdbd4228d611628d8ca3437/coverage-7.6.10-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:59af35558ba08b758aec4d56182b222976330ef8d2feacbb93964f576a7e7a90", size = 233099 }, - { url = "https://files.pythonhosted.org/packages/50/2b/bff6c1c6b63c4396ea7ecdbf8db1788b46046c681b8fcc6ec77db9f4ea49/coverage-7.6.10-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:7ed2f37cfce1ce101e6dffdfd1c99e729dd2ffc291d02d3e2d0af8b53d13840d", size = 234089 }, - { url = "https://files.pythonhosted.org/packages/bf/b5/baace1c754d546a67779358341aa8d2f7118baf58cac235db457e1001d1b/coverage-7.6.10-cp39-cp39-win32.whl", hash = "sha256:4bcc276261505d82f0ad426870c3b12cb177752834a633e737ec5ee79bbdff18", size = 210701 }, - { url = "https://files.pythonhosted.org/packages/b1/bf/9e1e95b8b20817398ecc5a1e8d3e05ff404e1b9fb2185cd71561698fe2a2/coverage-7.6.10-cp39-cp39-win_amd64.whl", hash = "sha256:457574f4599d2b00f7f637a0700a6422243b3565509457b2dbd3f50703e11f59", size = 211482 }, - { url = "https://files.pythonhosted.org/packages/a1/70/de81bfec9ed38a64fc44a77c7665e20ca507fc3265597c28b0d989e4082e/coverage-7.6.10-pp39.pp310-none-any.whl", hash = "sha256:fd34e7b3405f0cc7ab03d54a334c17a9e802897580d964bd8c2001f4b9fd488f", size = 200223 }, + { url = "https://files.pythonhosted.org/packages/44/d4/7827d9ffa34d5d4d752eec907022aa417120936282fc488306f5da08c292/coverage-7.13.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0fc31c787a84f8cd6027eba44010517020e0d18487064cd3d8968941856d1415", size = 219152, upload-time = "2026-02-09T12:56:11.974Z" }, + { url = "https://files.pythonhosted.org/packages/35/b0/d69df26607c64043292644dbb9dc54b0856fabaa2cbb1eeee3331cc9e280/coverage-7.13.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a32ebc02a1805adf637fc8dec324b5cdacd2e493515424f70ee33799573d661b", size = 219667, upload-time = "2026-02-09T12:56:13.33Z" }, + { url = "https://files.pythonhosted.org/packages/82/a4/c1523f7c9e47b2271dbf8c2a097e7a1f89ef0d66f5840bb59b7e8814157b/coverage-7.13.4-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:e24f9156097ff9dc286f2f913df3a7f63c0e333dcafa3c196f2c18b4175ca09a", size = 246425, upload-time = "2026-02-09T12:56:14.552Z" }, + { url = "https://files.pythonhosted.org/packages/f8/02/aa7ec01d1a5023c4b680ab7257f9bfde9defe8fdddfe40be096ac19e8177/coverage-7.13.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8041b6c5bfdc03257666e9881d33b1abc88daccaf73f7b6340fb7946655cd10f", size = 248229, upload-time = "2026-02-09T12:56:16.31Z" }, + { url = "https://files.pythonhosted.org/packages/35/98/85aba0aed5126d896162087ef3f0e789a225697245256fc6181b95f47207/coverage-7.13.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2a09cfa6a5862bc2fc6ca7c3def5b2926194a56b8ab78ffcf617d28911123012", size = 250106, upload-time = "2026-02-09T12:56:18.024Z" }, + { url = "https://files.pythonhosted.org/packages/96/72/1db59bd67494bc162e3e4cd5fbc7edba2c7026b22f7c8ef1496d58c2b94c/coverage-7.13.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:296f8b0af861d3970c2a4d8c91d48eb4dd4771bcef9baedec6a9b515d7de3def", size = 252021, upload-time = "2026-02-09T12:56:19.272Z" }, + { url = "https://files.pythonhosted.org/packages/9d/97/72899c59c7066961de6e3daa142d459d47d104956db43e057e034f015c8a/coverage-7.13.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e101609bcbbfb04605ea1027b10dc3735c094d12d40826a60f897b98b1c30256", size = 247114, upload-time = "2026-02-09T12:56:21.051Z" }, + { url = "https://files.pythonhosted.org/packages/39/1f/f1885573b5970235e908da4389176936c8933e86cb316b9620aab1585fa2/coverage-7.13.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:aa3feb8db2e87ff5e6d00d7e1480ae241876286691265657b500886c98f38bda", size = 248143, upload-time = "2026-02-09T12:56:22.585Z" }, + { url = "https://files.pythonhosted.org/packages/a8/cf/e80390c5b7480b722fa3e994f8202807799b85bc562aa4f1dde209fbb7be/coverage-7.13.4-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:4fc7fa81bbaf5a02801b65346c8b3e657f1d93763e58c0abdf7c992addd81a92", size = 246152, upload-time = "2026-02-09T12:56:23.748Z" }, + { url = "https://files.pythonhosted.org/packages/44/bf/f89a8350d85572f95412debb0fb9bb4795b1d5b5232bd652923c759e787b/coverage-7.13.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:33901f604424145c6e9c2398684b92e176c0b12df77d52db81c20abd48c3794c", size = 249959, upload-time = "2026-02-09T12:56:25.209Z" }, + { url = "https://files.pythonhosted.org/packages/f7/6e/612a02aece8178c818df273e8d1642190c4875402ca2ba74514394b27aba/coverage-7.13.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:bb28c0f2cf2782508a40cec377935829d5fcc3ad9a3681375af4e84eb34b6b58", size = 246416, upload-time = "2026-02-09T12:56:26.475Z" }, + { url = "https://files.pythonhosted.org/packages/cb/98/b5afc39af67c2fa6786b03c3a7091fc300947387ce8914b096db8a73d67a/coverage-7.13.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:9d107aff57a83222ddbd8d9ee705ede2af2cc926608b57abed8ef96b50b7e8f9", size = 247025, upload-time = "2026-02-09T12:56:27.727Z" }, + { url = "https://files.pythonhosted.org/packages/51/30/2bba8ef0682d5bd210c38fe497e12a06c9f8d663f7025e9f5c2c31ce847d/coverage-7.13.4-cp310-cp310-win32.whl", hash = "sha256:a6f94a7d00eb18f1b6d403c91a88fd58cfc92d4b16080dfdb774afc8294469bf", size = 221758, upload-time = "2026-02-09T12:56:29.051Z" }, + { url = "https://files.pythonhosted.org/packages/78/13/331f94934cf6c092b8ea59ff868eb587bc8fe0893f02c55bc6c0183a192e/coverage-7.13.4-cp310-cp310-win_amd64.whl", hash = "sha256:2cb0f1e000ebc419632bbe04366a8990b6e32c4e0b51543a6484ffe15eaeda95", size = 222693, upload-time = "2026-02-09T12:56:30.366Z" }, + { url = "https://files.pythonhosted.org/packages/b4/ad/b59e5b451cf7172b8d1043dc0fa718f23aab379bc1521ee13d4bd9bfa960/coverage-7.13.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d490ba50c3f35dd7c17953c68f3270e7ccd1c6642e2d2afe2d8e720b98f5a053", size = 219278, upload-time = "2026-02-09T12:56:31.673Z" }, + { url = "https://files.pythonhosted.org/packages/f1/17/0cb7ca3de72e5f4ef2ec2fa0089beafbcaaaead1844e8b8a63d35173d77d/coverage-7.13.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:19bc3c88078789f8ef36acb014d7241961dbf883fd2533d18cb1e7a5b4e28b11", size = 219783, upload-time = "2026-02-09T12:56:33.104Z" }, + { url = "https://files.pythonhosted.org/packages/ab/63/325d8e5b11e0eaf6d0f6a44fad444ae58820929a9b0de943fa377fe73e85/coverage-7.13.4-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3998e5a32e62fdf410c0dbd3115df86297995d6e3429af80b8798aad894ca7aa", size = 250200, upload-time = "2026-02-09T12:56:34.474Z" }, + { url = "https://files.pythonhosted.org/packages/76/53/c16972708cbb79f2942922571a687c52bd109a7bd51175aeb7558dff2236/coverage-7.13.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8e264226ec98e01a8e1054314af91ee6cde0eacac4f465cc93b03dbe0bce2fd7", size = 252114, upload-time = "2026-02-09T12:56:35.749Z" }, + { url = "https://files.pythonhosted.org/packages/eb/c2/7ab36d8b8cc412bec9ea2d07c83c48930eb4ba649634ba00cb7e4e0f9017/coverage-7.13.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a3aa4e7b9e416774b21797365b358a6e827ffadaaca81b69ee02946852449f00", size = 254220, upload-time = "2026-02-09T12:56:37.796Z" }, + { url = "https://files.pythonhosted.org/packages/d6/4d/cf52c9a3322c89a0e6febdfbc83bb45c0ed3c64ad14081b9503adee702e7/coverage-7.13.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:71ca20079dd8f27fcf808817e281e90220475cd75115162218d0e27549f95fef", size = 256164, upload-time = "2026-02-09T12:56:39.016Z" }, + { url = "https://files.pythonhosted.org/packages/78/e9/eb1dd17bd6de8289df3580e967e78294f352a5df8a57ff4671ee5fc3dcd0/coverage-7.13.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e2f25215f1a359ab17320b47bcdaca3e6e6356652e8256f2441e4ef972052903", size = 250325, upload-time = "2026-02-09T12:56:40.668Z" }, + { url = "https://files.pythonhosted.org/packages/71/07/8c1542aa873728f72267c07278c5cc0ec91356daf974df21335ccdb46368/coverage-7.13.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d65b2d373032411e86960604dc4edac91fdfb5dca539461cf2cbe78327d1e64f", size = 251913, upload-time = "2026-02-09T12:56:41.97Z" }, + { url = "https://files.pythonhosted.org/packages/74/d7/c62e2c5e4483a748e27868e4c32ad3daa9bdddbba58e1bc7a15e252baa74/coverage-7.13.4-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:94eb63f9b363180aff17de3e7c8760c3ba94664ea2695c52f10111244d16a299", size = 249974, upload-time = "2026-02-09T12:56:43.323Z" }, + { url = "https://files.pythonhosted.org/packages/98/9f/4c5c015a6e98ced54efd0f5cf8d31b88e5504ecb6857585fc0161bb1e600/coverage-7.13.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e856bf6616714c3a9fbc270ab54103f4e685ba236fa98c054e8f87f266c93505", size = 253741, upload-time = "2026-02-09T12:56:45.155Z" }, + { url = "https://files.pythonhosted.org/packages/bd/59/0f4eef89b9f0fcd9633b5d350016f54126ab49426a70ff4c4e87446cabdc/coverage-7.13.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:65dfcbe305c3dfe658492df2d85259e0d79ead4177f9ae724b6fb245198f55d6", size = 249695, upload-time = "2026-02-09T12:56:46.636Z" }, + { url = "https://files.pythonhosted.org/packages/b5/2c/b7476f938deb07166f3eb281a385c262675d688ff4659ad56c6c6b8e2e70/coverage-7.13.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b507778ae8a4c915436ed5c2e05b4a6cecfa70f734e19c22a005152a11c7b6a9", size = 250599, upload-time = "2026-02-09T12:56:48.13Z" }, + { url = "https://files.pythonhosted.org/packages/b8/34/c3420709d9846ee3785b9f2831b4d94f276f38884032dca1457fa83f7476/coverage-7.13.4-cp311-cp311-win32.whl", hash = "sha256:784fc3cf8be001197b652d51d3fd259b1e2262888693a4636e18879f613a62a9", size = 221780, upload-time = "2026-02-09T12:56:50.479Z" }, + { url = "https://files.pythonhosted.org/packages/61/08/3d9c8613079d2b11c185b865de9a4c1a68850cfda2b357fae365cf609f29/coverage-7.13.4-cp311-cp311-win_amd64.whl", hash = "sha256:2421d591f8ca05b308cf0092807308b2facbefe54af7c02ac22548b88b95c98f", size = 222715, upload-time = "2026-02-09T12:56:51.815Z" }, + { url = "https://files.pythonhosted.org/packages/18/1a/54c3c80b2f056164cc0a6cdcb040733760c7c4be9d780fe655f356f433e4/coverage-7.13.4-cp311-cp311-win_arm64.whl", hash = "sha256:79e73a76b854d9c6088fe5d8b2ebe745f8681c55f7397c3c0a016192d681045f", size = 221385, upload-time = "2026-02-09T12:56:53.194Z" }, + { url = "https://files.pythonhosted.org/packages/d1/81/4ce2fdd909c5a0ed1f6dedb88aa57ab79b6d1fbd9b588c1ac7ef45659566/coverage-7.13.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:02231499b08dabbe2b96612993e5fc34217cdae907a51b906ac7fca8027a4459", size = 219449, upload-time = "2026-02-09T12:56:54.889Z" }, + { url = "https://files.pythonhosted.org/packages/5d/96/5238b1efc5922ddbdc9b0db9243152c09777804fb7c02ad1741eb18a11c0/coverage-7.13.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40aa8808140e55dc022b15d8aa7f651b6b3d68b365ea0398f1441e0b04d859c3", size = 219810, upload-time = "2026-02-09T12:56:56.33Z" }, + { url = "https://files.pythonhosted.org/packages/78/72/2f372b726d433c9c35e56377cf1d513b4c16fe51841060d826b95caacec1/coverage-7.13.4-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:5b856a8ccf749480024ff3bd7310adaef57bf31fd17e1bfc404b7940b6986634", size = 251308, upload-time = "2026-02-09T12:56:57.858Z" }, + { url = "https://files.pythonhosted.org/packages/5d/a0/2ea570925524ef4e00bb6c82649f5682a77fac5ab910a65c9284de422600/coverage-7.13.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:2c048ea43875fbf8b45d476ad79f179809c590ec7b79e2035c662e7afa3192e3", size = 254052, upload-time = "2026-02-09T12:56:59.754Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ac/45dc2e19a1939098d783c846e130b8f862fbb50d09e0af663988f2f21973/coverage-7.13.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b7b38448866e83176e28086674fe7368ab8590e4610fb662b44e345b86d63ffa", size = 255165, upload-time = "2026-02-09T12:57:01.287Z" }, + { url = "https://files.pythonhosted.org/packages/2d/4d/26d236ff35abc3b5e63540d3386e4c3b192168c1d96da5cb2f43c640970f/coverage-7.13.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:de6defc1c9badbf8b9e67ae90fd00519186d6ab64e5cc5f3d21359c2a9b2c1d3", size = 257432, upload-time = "2026-02-09T12:57:02.637Z" }, + { url = "https://files.pythonhosted.org/packages/ec/55/14a966c757d1348b2e19caf699415a2a4c4f7feaa4bbc6326a51f5c7dd1b/coverage-7.13.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7eda778067ad7ffccd23ecffce537dface96212576a07924cbf0d8799d2ded5a", size = 251716, upload-time = "2026-02-09T12:57:04.056Z" }, + { url = "https://files.pythonhosted.org/packages/77/33/50116647905837c66d28b2af1321b845d5f5d19be9655cb84d4a0ea806b4/coverage-7.13.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e87f6c587c3f34356c3759f0420693e35e7eb0e2e41e4c011cb6ec6ecbbf1db7", size = 253089, upload-time = "2026-02-09T12:57:05.503Z" }, + { url = "https://files.pythonhosted.org/packages/c2/b4/8efb11a46e3665d92635a56e4f2d4529de6d33f2cb38afd47d779d15fc99/coverage-7.13.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:8248977c2e33aecb2ced42fef99f2d319e9904a36e55a8a68b69207fb7e43edc", size = 251232, upload-time = "2026-02-09T12:57:06.879Z" }, + { url = "https://files.pythonhosted.org/packages/51/24/8cd73dd399b812cc76bb0ac260e671c4163093441847ffe058ac9fda1e32/coverage-7.13.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:25381386e80ae727608e662474db537d4df1ecd42379b5ba33c84633a2b36d47", size = 255299, upload-time = "2026-02-09T12:57:08.245Z" }, + { url = "https://files.pythonhosted.org/packages/03/94/0a4b12f1d0e029ce1ccc1c800944a9984cbe7d678e470bb6d3c6bc38a0da/coverage-7.13.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:ee756f00726693e5ba94d6df2bdfd64d4852d23b09bb0bc700e3b30e6f333985", size = 250796, upload-time = "2026-02-09T12:57:10.142Z" }, + { url = "https://files.pythonhosted.org/packages/73/44/6002fbf88f6698ca034360ce474c406be6d5a985b3fdb3401128031eef6b/coverage-7.13.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fdfc1e28e7c7cdce44985b3043bc13bbd9c747520f94a4d7164af8260b3d91f0", size = 252673, upload-time = "2026-02-09T12:57:12.197Z" }, + { url = "https://files.pythonhosted.org/packages/de/c6/a0279f7c00e786be75a749a5674e6fa267bcbd8209cd10c9a450c655dfa7/coverage-7.13.4-cp312-cp312-win32.whl", hash = "sha256:01d4cbc3c283a17fc1e42d614a119f7f438eabb593391283adca8dc86eff1246", size = 221990, upload-time = "2026-02-09T12:57:14.085Z" }, + { url = "https://files.pythonhosted.org/packages/77/4e/c0a25a425fcf5557d9abd18419c95b63922e897bc86c1f327f155ef234a9/coverage-7.13.4-cp312-cp312-win_amd64.whl", hash = "sha256:9401ebc7ef522f01d01d45532c68c5ac40fb27113019b6b7d8b208f6e9baa126", size = 222800, upload-time = "2026-02-09T12:57:15.944Z" }, + { url = "https://files.pythonhosted.org/packages/47/ac/92da44ad9a6f4e3a7debd178949d6f3769bedca33830ce9b1dcdab589a37/coverage-7.13.4-cp312-cp312-win_arm64.whl", hash = "sha256:b1ec7b6b6e93255f952e27ab58fbc68dcc468844b16ecbee881aeb29b6ab4d8d", size = 221415, upload-time = "2026-02-09T12:57:17.497Z" }, + { url = "https://files.pythonhosted.org/packages/db/23/aad45061a31677d68e47499197a131eea55da4875d16c1f42021ab963503/coverage-7.13.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b66a2da594b6068b48b2692f043f35d4d3693fb639d5ea8b39533c2ad9ac3ab9", size = 219474, upload-time = "2026-02-09T12:57:19.332Z" }, + { url = "https://files.pythonhosted.org/packages/a5/70/9b8b67a0945f3dfec1fd896c5cefb7c19d5a3a6d74630b99a895170999ae/coverage-7.13.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3599eb3992d814d23b35c536c28df1a882caa950f8f507cef23d1cbf334995ac", size = 219844, upload-time = "2026-02-09T12:57:20.66Z" }, + { url = "https://files.pythonhosted.org/packages/97/fd/7e859f8fab324cef6c4ad7cff156ca7c489fef9179d5749b0c8d321281c2/coverage-7.13.4-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:93550784d9281e374fb5a12bf1324cc8a963fd63b2d2f223503ef0fd4aa339ea", size = 250832, upload-time = "2026-02-09T12:57:22.007Z" }, + { url = "https://files.pythonhosted.org/packages/e4/dc/b2442d10020c2f52617828862d8b6ee337859cd8f3a1f13d607dddda9cf7/coverage-7.13.4-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b720ce6a88a2755f7c697c23268ddc47a571b88052e6b155224347389fdf6a3b", size = 253434, upload-time = "2026-02-09T12:57:23.339Z" }, + { url = "https://files.pythonhosted.org/packages/5a/88/6728a7ad17428b18d836540630487231f5470fb82454871149502f5e5aa2/coverage-7.13.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7b322db1284a2ed3aa28ffd8ebe3db91c929b7a333c0820abec3d838ef5b3525", size = 254676, upload-time = "2026-02-09T12:57:24.774Z" }, + { url = "https://files.pythonhosted.org/packages/7c/bc/21244b1b8cedf0dff0a2b53b208015fe798d5f2a8d5348dbfece04224fff/coverage-7.13.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f4594c67d8a7c89cf922d9df0438c7c7bb022ad506eddb0fdb2863359ff78242", size = 256807, upload-time = "2026-02-09T12:57:26.125Z" }, + { url = "https://files.pythonhosted.org/packages/97/a0/ddba7ed3251cff51006737a727d84e05b61517d1784a9988a846ba508877/coverage-7.13.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:53d133df809c743eb8bce33b24bcababb371f4441340578cd406e084d94a6148", size = 251058, upload-time = "2026-02-09T12:57:27.614Z" }, + { url = "https://files.pythonhosted.org/packages/9b/55/e289addf7ff54d3a540526f33751951bf0878f3809b47f6dfb3def69c6f7/coverage-7.13.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:76451d1978b95ba6507a039090ba076105c87cc76fc3efd5d35d72093964d49a", size = 252805, upload-time = "2026-02-09T12:57:29.066Z" }, + { url = "https://files.pythonhosted.org/packages/13/4e/cc276b1fa4a59be56d96f1dabddbdc30f4ba22e3b1cd42504c37b3313255/coverage-7.13.4-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7f57b33491e281e962021de110b451ab8a24182589be17e12a22c79047935e23", size = 250766, upload-time = "2026-02-09T12:57:30.522Z" }, + { url = "https://files.pythonhosted.org/packages/94/44/1093b8f93018f8b41a8cf29636c9292502f05e4a113d4d107d14a3acd044/coverage-7.13.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1731dc33dc276dafc410a885cbf5992f1ff171393e48a21453b78727d090de80", size = 254923, upload-time = "2026-02-09T12:57:31.946Z" }, + { url = "https://files.pythonhosted.org/packages/8b/55/ea2796da2d42257f37dbea1aab239ba9263b31bd91d5527cdd6db5efe174/coverage-7.13.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:bd60d4fe2f6fa7dff9223ca1bbc9f05d2b6697bc5961072e5d3b952d46e1b1ea", size = 250591, upload-time = "2026-02-09T12:57:33.842Z" }, + { url = "https://files.pythonhosted.org/packages/d4/fa/7c4bb72aacf8af5020675aa633e59c1fbe296d22aed191b6a5b711eb2bc7/coverage-7.13.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9181a3ccead280b828fae232df12b16652702b49d41e99d657f46cc7b1f6ec7a", size = 252364, upload-time = "2026-02-09T12:57:35.743Z" }, + { url = "https://files.pythonhosted.org/packages/5c/38/a8d2ec0146479c20bbaa7181b5b455a0c41101eed57f10dd19a78ab44c80/coverage-7.13.4-cp313-cp313-win32.whl", hash = "sha256:f53d492307962561ac7de4cd1de3e363589b000ab69617c6156a16ba7237998d", size = 222010, upload-time = "2026-02-09T12:57:37.25Z" }, + { url = "https://files.pythonhosted.org/packages/e2/0c/dbfafbe90a185943dcfbc766fe0e1909f658811492d79b741523a414a6cc/coverage-7.13.4-cp313-cp313-win_amd64.whl", hash = "sha256:e6f70dec1cc557e52df5306d051ef56003f74d56e9c4dd7ddb07e07ef32a84dd", size = 222818, upload-time = "2026-02-09T12:57:38.734Z" }, + { url = "https://files.pythonhosted.org/packages/04/d1/934918a138c932c90d78301f45f677fb05c39a3112b96fd2c8e60503cdc7/coverage-7.13.4-cp313-cp313-win_arm64.whl", hash = "sha256:fb07dc5da7e849e2ad31a5d74e9bece81f30ecf5a42909d0a695f8bd1874d6af", size = 221438, upload-time = "2026-02-09T12:57:40.223Z" }, + { url = "https://files.pythonhosted.org/packages/52/57/ee93ced533bcb3e6df961c0c6e42da2fc6addae53fb95b94a89b1e33ebd7/coverage-7.13.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:40d74da8e6c4b9ac18b15331c4b5ebc35a17069410cad462ad4f40dcd2d50c0d", size = 220165, upload-time = "2026-02-09T12:57:41.639Z" }, + { url = "https://files.pythonhosted.org/packages/c5/e0/969fc285a6fbdda49d91af278488d904dcd7651b2693872f0ff94e40e84a/coverage-7.13.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4223b4230a376138939a9173f1bdd6521994f2aff8047fae100d6d94d50c5a12", size = 220516, upload-time = "2026-02-09T12:57:44.215Z" }, + { url = "https://files.pythonhosted.org/packages/b1/b8/9531944e16267e2735a30a9641ff49671f07e8138ecf1ca13db9fd2560c7/coverage-7.13.4-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1d4be36a5114c499f9f1f9195e95ebf979460dbe2d88e6816ea202010ba1c34b", size = 261804, upload-time = "2026-02-09T12:57:45.989Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f3/e63df6d500314a2a60390d1989240d5f27318a7a68fa30ad3806e2a9323e/coverage-7.13.4-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:200dea7d1e8095cc6e98cdabe3fd1d21ab17d3cee6dab00cadbb2fe35d9c15b9", size = 263885, upload-time = "2026-02-09T12:57:47.42Z" }, + { url = "https://files.pythonhosted.org/packages/f3/67/7654810de580e14b37670b60a09c599fa348e48312db5b216d730857ffe6/coverage-7.13.4-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8eb931ee8e6d8243e253e5ed7336deea6904369d2fd8ae6e43f68abbf167092", size = 266308, upload-time = "2026-02-09T12:57:49.345Z" }, + { url = "https://files.pythonhosted.org/packages/37/6f/39d41eca0eab3cc82115953ad41c4e77935286c930e8fad15eaed1389d83/coverage-7.13.4-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:75eab1ebe4f2f64d9509b984f9314d4aa788540368218b858dad56dc8f3e5eb9", size = 267452, upload-time = "2026-02-09T12:57:50.811Z" }, + { url = "https://files.pythonhosted.org/packages/50/6d/39c0fbb8fc5cd4d2090811e553c2108cf5112e882f82505ee7495349a6bf/coverage-7.13.4-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c35eb28c1d085eb7d8c9b3296567a1bebe03ce72962e932431b9a61f28facf26", size = 261057, upload-time = "2026-02-09T12:57:52.447Z" }, + { url = "https://files.pythonhosted.org/packages/a4/a2/60010c669df5fa603bb5a97fb75407e191a846510da70ac657eb696b7fce/coverage-7.13.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:eb88b316ec33760714a4720feb2816a3a59180fd58c1985012054fa7aebee4c2", size = 263875, upload-time = "2026-02-09T12:57:53.938Z" }, + { url = "https://files.pythonhosted.org/packages/3e/d9/63b22a6bdbd17f1f96e9ed58604c2a6b0e72a9133e37d663bef185877cf6/coverage-7.13.4-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:7d41eead3cc673cbd38a4417deb7fd0b4ca26954ff7dc6078e33f6ff97bed940", size = 261500, upload-time = "2026-02-09T12:57:56.012Z" }, + { url = "https://files.pythonhosted.org/packages/70/bf/69f86ba1ad85bc3ad240e4c0e57a2e620fbc0e1645a47b5c62f0e941ad7f/coverage-7.13.4-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:fb26a934946a6afe0e326aebe0730cdff393a8bc0bbb65a2f41e30feddca399c", size = 265212, upload-time = "2026-02-09T12:57:57.5Z" }, + { url = "https://files.pythonhosted.org/packages/ae/f2/5f65a278a8c2148731831574c73e42f57204243d33bedaaf18fa79c5958f/coverage-7.13.4-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:dae88bc0fc77edaa65c14be099bd57ee140cf507e6bfdeea7938457ab387efb0", size = 260398, upload-time = "2026-02-09T12:57:59.027Z" }, + { url = "https://files.pythonhosted.org/packages/ef/80/6e8280a350ee9fea92f14b8357448a242dcaa243cb2c72ab0ca591f66c8c/coverage-7.13.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:845f352911777a8e722bfce168958214951e07e47e5d5d9744109fa5fe77f79b", size = 262584, upload-time = "2026-02-09T12:58:01.129Z" }, + { url = "https://files.pythonhosted.org/packages/22/63/01ff182fc95f260b539590fb12c11ad3e21332c15f9799cb5e2386f71d9f/coverage-7.13.4-cp313-cp313t-win32.whl", hash = "sha256:2fa8d5f8de70688a28240de9e139fa16b153cc3cbb01c5f16d88d6505ebdadf9", size = 222688, upload-time = "2026-02-09T12:58:02.736Z" }, + { url = "https://files.pythonhosted.org/packages/a9/43/89de4ef5d3cd53b886afa114065f7e9d3707bdb3e5efae13535b46ae483d/coverage-7.13.4-cp313-cp313t-win_amd64.whl", hash = "sha256:9351229c8c8407645840edcc277f4a2d44814d1bc34a2128c11c2a031d45a5dd", size = 223746, upload-time = "2026-02-09T12:58:05.362Z" }, + { url = "https://files.pythonhosted.org/packages/35/39/7cf0aa9a10d470a5309b38b289b9bb07ddeac5d61af9b664fe9775a4cb3e/coverage-7.13.4-cp313-cp313t-win_arm64.whl", hash = "sha256:30b8d0512f2dc8c8747557e8fb459d6176a2c9e5731e2b74d311c03b78451997", size = 222003, upload-time = "2026-02-09T12:58:06.952Z" }, + { url = "https://files.pythonhosted.org/packages/92/11/a9cf762bb83386467737d32187756a42094927150c3e107df4cb078e8590/coverage-7.13.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:300deaee342f90696ed186e3a00c71b5b3d27bffe9e827677954f4ee56969601", size = 219522, upload-time = "2026-02-09T12:58:08.623Z" }, + { url = "https://files.pythonhosted.org/packages/d3/28/56e6d892b7b052236d67c95f1936b6a7cf7c3e2634bf27610b8cbd7f9c60/coverage-7.13.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:29e3220258d682b6226a9b0925bc563ed9a1ebcff3cad30f043eceea7eaf2689", size = 219855, upload-time = "2026-02-09T12:58:10.176Z" }, + { url = "https://files.pythonhosted.org/packages/e5/69/233459ee9eb0c0d10fcc2fe425a029b3fa5ce0f040c966ebce851d030c70/coverage-7.13.4-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:391ee8f19bef69210978363ca930f7328081c6a0152f1166c91f0b5fdd2a773c", size = 250887, upload-time = "2026-02-09T12:58:12.503Z" }, + { url = "https://files.pythonhosted.org/packages/06/90/2cdab0974b9b5bbc1623f7876b73603aecac11b8d95b85b5b86b32de5eab/coverage-7.13.4-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:0dd7ab8278f0d58a0128ba2fca25824321f05d059c1441800e934ff2efa52129", size = 253396, upload-time = "2026-02-09T12:58:14.615Z" }, + { url = "https://files.pythonhosted.org/packages/ac/15/ea4da0f85bf7d7b27635039e649e99deb8173fe551096ea15017f7053537/coverage-7.13.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:78cdf0d578b15148b009ccf18c686aa4f719d887e76e6b40c38ffb61d264a552", size = 254745, upload-time = "2026-02-09T12:58:16.162Z" }, + { url = "https://files.pythonhosted.org/packages/99/11/bb356e86920c655ca4d61daee4e2bbc7258f0a37de0be32d233b561134ff/coverage-7.13.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:48685fee12c2eb3b27c62f2658e7ea21e9c3239cba5a8a242801a0a3f6a8c62a", size = 257055, upload-time = "2026-02-09T12:58:17.892Z" }, + { url = "https://files.pythonhosted.org/packages/c9/0f/9ae1f8cb17029e09da06ca4e28c9e1d5c1c0a511c7074592e37e0836c915/coverage-7.13.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4e83efc079eb39480e6346a15a1bcb3e9b04759c5202d157e1dd4303cd619356", size = 250911, upload-time = "2026-02-09T12:58:19.495Z" }, + { url = "https://files.pythonhosted.org/packages/89/3a/adfb68558fa815cbc29747b553bc833d2150228f251b127f1ce97e48547c/coverage-7.13.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ecae9737b72408d6a950f7e525f30aca12d4bd8dd95e37342e5beb3a2a8c4f71", size = 252754, upload-time = "2026-02-09T12:58:21.064Z" }, + { url = "https://files.pythonhosted.org/packages/32/b1/540d0c27c4e748bd3cd0bd001076ee416eda993c2bae47a73b7cc9357931/coverage-7.13.4-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ae4578f8528569d3cf303fef2ea569c7f4c4059a38c8667ccef15c6e1f118aa5", size = 250720, upload-time = "2026-02-09T12:58:22.622Z" }, + { url = "https://files.pythonhosted.org/packages/c7/95/383609462b3ffb1fe133014a7c84fc0dd01ed55ac6140fa1093b5af7ebb1/coverage-7.13.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:6fdef321fdfbb30a197efa02d48fcd9981f0d8ad2ae8903ac318adc653f5df98", size = 254994, upload-time = "2026-02-09T12:58:24.548Z" }, + { url = "https://files.pythonhosted.org/packages/f7/ba/1761138e86c81680bfc3c49579d66312865457f9fe405b033184e5793cb3/coverage-7.13.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b0f6ccf3dbe577170bebfce1318707d0e8c3650003cb4b3a9dd744575daa8b5", size = 250531, upload-time = "2026-02-09T12:58:26.271Z" }, + { url = "https://files.pythonhosted.org/packages/f8/8e/05900df797a9c11837ab59c4d6fe94094e029582aab75c3309a93e6fb4e3/coverage-7.13.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:75fcd519f2a5765db3f0e391eb3b7d150cce1a771bf4c9f861aeab86c767a3c0", size = 252189, upload-time = "2026-02-09T12:58:27.807Z" }, + { url = "https://files.pythonhosted.org/packages/00/bd/29c9f2db9ea4ed2738b8a9508c35626eb205d51af4ab7bf56a21a2e49926/coverage-7.13.4-cp314-cp314-win32.whl", hash = "sha256:8e798c266c378da2bd819b0677df41ab46d78065fb2a399558f3f6cae78b2fbb", size = 222258, upload-time = "2026-02-09T12:58:29.441Z" }, + { url = "https://files.pythonhosted.org/packages/a7/4d/1f8e723f6829977410efeb88f73673d794075091c8c7c18848d273dc9d73/coverage-7.13.4-cp314-cp314-win_amd64.whl", hash = "sha256:245e37f664d89861cf2329c9afa2c1fe9e6d4e1a09d872c947e70718aeeac505", size = 223073, upload-time = "2026-02-09T12:58:31.026Z" }, + { url = "https://files.pythonhosted.org/packages/51/5b/84100025be913b44e082ea32abcf1afbf4e872f5120b7a1cab1d331b1e13/coverage-7.13.4-cp314-cp314-win_arm64.whl", hash = "sha256:ad27098a189e5838900ce4c2a99f2fe42a0bf0c2093c17c69b45a71579e8d4a2", size = 221638, upload-time = "2026-02-09T12:58:32.599Z" }, + { url = "https://files.pythonhosted.org/packages/a7/e4/c884a405d6ead1370433dad1e3720216b4f9fd8ef5b64bfd984a2a60a11a/coverage-7.13.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:85480adfb35ffc32d40918aad81b89c69c9cc5661a9b8a81476d3e645321a056", size = 220246, upload-time = "2026-02-09T12:58:34.181Z" }, + { url = "https://files.pythonhosted.org/packages/81/5c/4d7ed8b23b233b0fffbc9dfec53c232be2e695468523242ea9fd30f97ad2/coverage-7.13.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:79be69cf7f3bf9b0deeeb062eab7ac7f36cd4cc4c4dd694bd28921ba4d8596cc", size = 220514, upload-time = "2026-02-09T12:58:35.704Z" }, + { url = "https://files.pythonhosted.org/packages/2f/6f/3284d4203fd2f28edd73034968398cd2d4cb04ab192abc8cff007ea35679/coverage-7.13.4-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:caa421e2684e382c5d8973ac55e4f36bed6821a9bad5c953494de960c74595c9", size = 261877, upload-time = "2026-02-09T12:58:37.864Z" }, + { url = "https://files.pythonhosted.org/packages/09/aa/b672a647bbe1556a85337dc95bfd40d146e9965ead9cc2fe81bde1e5cbce/coverage-7.13.4-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:14375934243ee05f56c45393fe2ce81fe5cc503c07cee2bdf1725fb8bef3ffaf", size = 264004, upload-time = "2026-02-09T12:58:39.492Z" }, + { url = "https://files.pythonhosted.org/packages/79/a1/aa384dbe9181f98bba87dd23dda436f0c6cf2e148aecbb4e50fc51c1a656/coverage-7.13.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:25a41c3104d08edb094d9db0d905ca54d0cd41c928bb6be3c4c799a54753af55", size = 266408, upload-time = "2026-02-09T12:58:41.852Z" }, + { url = "https://files.pythonhosted.org/packages/53/5e/5150bf17b4019bc600799f376bb9606941e55bd5a775dc1e096b6ffea952/coverage-7.13.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6f01afcff62bf9a08fb32b2c1d6e924236c0383c02c790732b6537269e466a72", size = 267544, upload-time = "2026-02-09T12:58:44.093Z" }, + { url = "https://files.pythonhosted.org/packages/e0/ed/f1de5c675987a4a7a672250d2c5c9d73d289dbf13410f00ed7181d8017dd/coverage-7.13.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eb9078108fbf0bcdde37c3f4779303673c2fa1fe8f7956e68d447d0dd426d38a", size = 260980, upload-time = "2026-02-09T12:58:45.721Z" }, + { url = "https://files.pythonhosted.org/packages/b3/e3/fe758d01850aa172419a6743fe76ba8b92c29d181d4f676ffe2dae2ba631/coverage-7.13.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0e086334e8537ddd17e5f16a344777c1ab8194986ec533711cbe6c41cde841b6", size = 263871, upload-time = "2026-02-09T12:58:47.334Z" }, + { url = "https://files.pythonhosted.org/packages/b6/76/b829869d464115e22499541def9796b25312b8cf235d3bb00b39f1675395/coverage-7.13.4-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:725d985c5ab621268b2edb8e50dfe57633dc69bda071abc470fed55a14935fd3", size = 261472, upload-time = "2026-02-09T12:58:48.995Z" }, + { url = "https://files.pythonhosted.org/packages/14/9e/caedb1679e73e2f6ad240173f55218488bfe043e38da577c4ec977489915/coverage-7.13.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:3c06f0f1337c667b971ca2f975523347e63ec5e500b9aa5882d91931cd3ef750", size = 265210, upload-time = "2026-02-09T12:58:51.178Z" }, + { url = "https://files.pythonhosted.org/packages/3a/10/0dd02cb009b16ede425b49ec344aba13a6ae1dc39600840ea6abcb085ac4/coverage-7.13.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:590c0ed4bf8e85f745e6b805b2e1c457b2e33d5255dd9729743165253bc9ad39", size = 260319, upload-time = "2026-02-09T12:58:53.081Z" }, + { url = "https://files.pythonhosted.org/packages/92/8e/234d2c927af27c6d7a5ffad5bd2cf31634c46a477b4c7adfbfa66baf7ebb/coverage-7.13.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:eb30bf180de3f632cd043322dad5751390e5385108b2807368997d1a92a509d0", size = 262638, upload-time = "2026-02-09T12:58:55.258Z" }, + { url = "https://files.pythonhosted.org/packages/2f/64/e5547c8ff6964e5965c35a480855911b61509cce544f4d442caa759a0702/coverage-7.13.4-cp314-cp314t-win32.whl", hash = "sha256:c4240e7eded42d131a2d2c4dec70374b781b043ddc79a9de4d55ca71f8e98aea", size = 223040, upload-time = "2026-02-09T12:58:56.936Z" }, + { url = "https://files.pythonhosted.org/packages/c7/96/38086d58a181aac86d503dfa9c47eb20715a79c3e3acbdf786e92e5c09a8/coverage-7.13.4-cp314-cp314t-win_amd64.whl", hash = "sha256:4c7d3cc01e7350f2f0f6f7036caaf5673fb56b6998889ccfe9e1c1fe75a9c932", size = 224148, upload-time = "2026-02-09T12:58:58.645Z" }, + { url = "https://files.pythonhosted.org/packages/ce/72/8d10abd3740a0beb98c305e0c3faf454366221c0f37a8bcf8f60020bb65a/coverage-7.13.4-cp314-cp314t-win_arm64.whl", hash = "sha256:23e3f687cf945070d1c90f85db66d11e3025665d8dafa831301a0e0038f3db9b", size = 222172, upload-time = "2026-02-09T12:59:00.396Z" }, + { url = "https://files.pythonhosted.org/packages/0d/4a/331fe2caf6799d591109bb9c08083080f6de90a823695d412a935622abb2/coverage-7.13.4-py3-none-any.whl", hash = "sha256:1af1641e57cf7ba1bd67d677c9abdbcd6cc2ab7da3bca7fa1e2b7e50e65f2ad0", size = 211242, upload-time = "2026-02-09T12:59:02.032Z" }, ] [[package]] name = "exceptiongroup" -version = "1.2.2" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.1.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/09/35/2495c4ac46b980e4ca1f6ad6db102322ef3ad2410b79fdde159a4b0f3b92/exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc", size = 28883 } +resolution-markers = [ + "python_full_version < '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793, upload-time = "2025-03-19T20:09:59.721Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b", size = 16453 }, + { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050, upload-time = "2025-03-19T20:10:01.071Z" }, ] [[package]] name = "iniconfig" -version = "2.0.0" +version = "2.3.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3", size = 4646 } +resolution-markers = [ + "python_full_version >= '3.10'", +] +sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374", size = 5892 }, + { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, ] [[package]] name = "packaging" -version = "24.2" +version = "26.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 } +sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 }, + { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" }, ] [[package]] name = "pluggy" -version = "1.5.0" +version = "1.6.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1", size = 67955 } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669", size = 20556 }, + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, ] [[package]] name = "pydantic" -version = "2.10.5" +version = "2.12.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-types" }, { name = "pydantic-core" }, { name = "typing-extensions" }, + { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/6a/c7/ca334c2ef6f2e046b1144fe4bb2a5da8a4c574e7f2ebf7e16b34a6a2fa92/pydantic-2.10.5.tar.gz", hash = "sha256:278b38dbbaec562011d659ee05f63346951b3a248a6f3642e1bc68894ea2b4ff", size = 761287 } +sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591, upload-time = "2025-11-26T15:11:46.471Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/58/26/82663c79010b28eddf29dcdd0ea723439535fa917fce5905885c0e9ba562/pydantic-2.10.5-py3-none-any.whl", hash = "sha256:4dd4e322dbe55472cb7ca7e73f4b63574eecccf2835ffa2af9021ce113c83c53", size = 431426 }, + { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580, upload-time = "2025-11-26T15:11:44.605Z" }, ] [[package]] name = "pydantic-core" -version = "2.27.2" +version = "2.41.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fc/01/f3e5ac5e7c25833db5eb555f7b7ab24cd6f8c322d3a3ad2d67a952dc0abc/pydantic_core-2.27.2.tar.gz", hash = "sha256:eb026e5a4c1fee05726072337ff51d1efb6f59090b7da90d30ea58625b1ffb39", size = 413443 } +sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952, upload-time = "2025-11-04T13:43:49.098Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c6/90/32c9941e728d564b411d574d8ee0cf09b12ec978cb22b294995bae5549a5/pydantic_core-2.41.5-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:77b63866ca88d804225eaa4af3e664c5faf3568cea95360d21f4725ab6e07146", size = 2107298, upload-time = "2025-11-04T13:39:04.116Z" }, + { url = "https://files.pythonhosted.org/packages/fb/a8/61c96a77fe28993d9a6fb0f4127e05430a267b235a124545d79fea46dd65/pydantic_core-2.41.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:dfa8a0c812ac681395907e71e1274819dec685fec28273a28905df579ef137e2", size = 1901475, upload-time = "2025-11-04T13:39:06.055Z" }, + { url = "https://files.pythonhosted.org/packages/5d/b6/338abf60225acc18cdc08b4faef592d0310923d19a87fba1faf05af5346e/pydantic_core-2.41.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5921a4d3ca3aee735d9fd163808f5e8dd6c6972101e4adbda9a4667908849b97", size = 1918815, upload-time = "2025-11-04T13:39:10.41Z" }, + { url = "https://files.pythonhosted.org/packages/d1/1c/2ed0433e682983d8e8cba9c8d8ef274d4791ec6a6f24c58935b90e780e0a/pydantic_core-2.41.5-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e25c479382d26a2a41b7ebea1043564a937db462816ea07afa8a44c0866d52f9", size = 2065567, upload-time = "2025-11-04T13:39:12.244Z" }, + { url = "https://files.pythonhosted.org/packages/b3/24/cf84974ee7d6eae06b9e63289b7b8f6549d416b5c199ca2d7ce13bbcf619/pydantic_core-2.41.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f547144f2966e1e16ae626d8ce72b4cfa0caedc7fa28052001c94fb2fcaa1c52", size = 2230442, upload-time = "2025-11-04T13:39:13.962Z" }, + { url = "https://files.pythonhosted.org/packages/fd/21/4e287865504b3edc0136c89c9c09431be326168b1eb7841911cbc877a995/pydantic_core-2.41.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6f52298fbd394f9ed112d56f3d11aabd0d5bd27beb3084cc3d8ad069483b8941", size = 2350956, upload-time = "2025-11-04T13:39:15.889Z" }, + { url = "https://files.pythonhosted.org/packages/a8/76/7727ef2ffa4b62fcab916686a68a0426b9b790139720e1934e8ba797e238/pydantic_core-2.41.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:100baa204bb412b74fe285fb0f3a385256dad1d1879f0a5cb1499ed2e83d132a", size = 2068253, upload-time = "2025-11-04T13:39:17.403Z" }, + { url = "https://files.pythonhosted.org/packages/d5/8c/a4abfc79604bcb4c748e18975c44f94f756f08fb04218d5cb87eb0d3a63e/pydantic_core-2.41.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:05a2c8852530ad2812cb7914dc61a1125dc4e06252ee98e5638a12da6cc6fb6c", size = 2177050, upload-time = "2025-11-04T13:39:19.351Z" }, + { url = "https://files.pythonhosted.org/packages/67/b1/de2e9a9a79b480f9cb0b6e8b6ba4c50b18d4e89852426364c66aa82bb7b3/pydantic_core-2.41.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:29452c56df2ed968d18d7e21f4ab0ac55e71dc59524872f6fc57dcf4a3249ed2", size = 2147178, upload-time = "2025-11-04T13:39:21Z" }, + { url = "https://files.pythonhosted.org/packages/16/c1/dfb33f837a47b20417500efaa0378adc6635b3c79e8369ff7a03c494b4ac/pydantic_core-2.41.5-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:d5160812ea7a8a2ffbe233d8da666880cad0cbaf5d4de74ae15c313213d62556", size = 2341833, upload-time = "2025-11-04T13:39:22.606Z" }, + { url = "https://files.pythonhosted.org/packages/47/36/00f398642a0f4b815a9a558c4f1dca1b4020a7d49562807d7bc9ff279a6c/pydantic_core-2.41.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:df3959765b553b9440adfd3c795617c352154e497a4eaf3752555cfb5da8fc49", size = 2321156, upload-time = "2025-11-04T13:39:25.843Z" }, + { url = "https://files.pythonhosted.org/packages/7e/70/cad3acd89fde2010807354d978725ae111ddf6d0ea46d1ea1775b5c1bd0c/pydantic_core-2.41.5-cp310-cp310-win32.whl", hash = "sha256:1f8d33a7f4d5a7889e60dc39856d76d09333d8a6ed0f5f1190635cbec70ec4ba", size = 1989378, upload-time = "2025-11-04T13:39:27.92Z" }, + { url = "https://files.pythonhosted.org/packages/76/92/d338652464c6c367e5608e4488201702cd1cbb0f33f7b6a85a60fe5f3720/pydantic_core-2.41.5-cp310-cp310-win_amd64.whl", hash = "sha256:62de39db01b8d593e45871af2af9e497295db8d73b085f6bfd0b18c83c70a8f9", size = 2013622, upload-time = "2025-11-04T13:39:29.848Z" }, + { url = "https://files.pythonhosted.org/packages/e8/72/74a989dd9f2084b3d9530b0915fdda64ac48831c30dbf7c72a41a5232db8/pydantic_core-2.41.5-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a3a52f6156e73e7ccb0f8cced536adccb7042be67cb45f9562e12b319c119da6", size = 2105873, upload-time = "2025-11-04T13:39:31.373Z" }, + { url = "https://files.pythonhosted.org/packages/12/44/37e403fd9455708b3b942949e1d7febc02167662bf1a7da5b78ee1ea2842/pydantic_core-2.41.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7f3bf998340c6d4b0c9a2f02d6a400e51f123b59565d74dc60d252ce888c260b", size = 1899826, upload-time = "2025-11-04T13:39:32.897Z" }, + { url = "https://files.pythonhosted.org/packages/33/7f/1d5cab3ccf44c1935a359d51a8a2a9e1a654b744b5e7f80d41b88d501eec/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378bec5c66998815d224c9ca994f1e14c0c21cb95d2f52b6021cc0b2a58f2a5a", size = 1917869, upload-time = "2025-11-04T13:39:34.469Z" }, + { url = "https://files.pythonhosted.org/packages/6e/6a/30d94a9674a7fe4f4744052ed6c5e083424510be1e93da5bc47569d11810/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e7b576130c69225432866fe2f4a469a85a54ade141d96fd396dffcf607b558f8", size = 2063890, upload-time = "2025-11-04T13:39:36.053Z" }, + { url = "https://files.pythonhosted.org/packages/50/be/76e5d46203fcb2750e542f32e6c371ffa9b8ad17364cf94bb0818dbfb50c/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6cb58b9c66f7e4179a2d5e0f849c48eff5c1fca560994d6eb6543abf955a149e", size = 2229740, upload-time = "2025-11-04T13:39:37.753Z" }, + { url = "https://files.pythonhosted.org/packages/d3/ee/fed784df0144793489f87db310a6bbf8118d7b630ed07aa180d6067e653a/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:88942d3a3dff3afc8288c21e565e476fc278902ae4d6d134f1eeda118cc830b1", size = 2350021, upload-time = "2025-11-04T13:39:40.94Z" }, + { url = "https://files.pythonhosted.org/packages/c8/be/8fed28dd0a180dca19e72c233cbf58efa36df055e5b9d90d64fd1740b828/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f31d95a179f8d64d90f6831d71fa93290893a33148d890ba15de25642c5d075b", size = 2066378, upload-time = "2025-11-04T13:39:42.523Z" }, + { url = "https://files.pythonhosted.org/packages/b0/3b/698cf8ae1d536a010e05121b4958b1257f0b5522085e335360e53a6b1c8b/pydantic_core-2.41.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c1df3d34aced70add6f867a8cf413e299177e0c22660cc767218373d0779487b", size = 2175761, upload-time = "2025-11-04T13:39:44.553Z" }, + { url = "https://files.pythonhosted.org/packages/b8/ba/15d537423939553116dea94ce02f9c31be0fa9d0b806d427e0308ec17145/pydantic_core-2.41.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:4009935984bd36bd2c774e13f9a09563ce8de4abaa7226f5108262fa3e637284", size = 2146303, upload-time = "2025-11-04T13:39:46.238Z" }, + { url = "https://files.pythonhosted.org/packages/58/7f/0de669bf37d206723795f9c90c82966726a2ab06c336deba4735b55af431/pydantic_core-2.41.5-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:34a64bc3441dc1213096a20fe27e8e128bd3ff89921706e83c0b1ac971276594", size = 2340355, upload-time = "2025-11-04T13:39:48.002Z" }, + { url = "https://files.pythonhosted.org/packages/e5/de/e7482c435b83d7e3c3ee5ee4451f6e8973cff0eb6007d2872ce6383f6398/pydantic_core-2.41.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:c9e19dd6e28fdcaa5a1de679aec4141f691023916427ef9bae8584f9c2fb3b0e", size = 2319875, upload-time = "2025-11-04T13:39:49.705Z" }, + { url = "https://files.pythonhosted.org/packages/fe/e6/8c9e81bb6dd7560e33b9053351c29f30c8194b72f2d6932888581f503482/pydantic_core-2.41.5-cp311-cp311-win32.whl", hash = "sha256:2c010c6ded393148374c0f6f0bf89d206bf3217f201faa0635dcd56bd1520f6b", size = 1987549, upload-time = "2025-11-04T13:39:51.842Z" }, + { url = "https://files.pythonhosted.org/packages/11/66/f14d1d978ea94d1bc21fc98fcf570f9542fe55bfcc40269d4e1a21c19bf7/pydantic_core-2.41.5-cp311-cp311-win_amd64.whl", hash = "sha256:76ee27c6e9c7f16f47db7a94157112a2f3a00e958bc626e2f4ee8bec5c328fbe", size = 2011305, upload-time = "2025-11-04T13:39:53.485Z" }, + { url = "https://files.pythonhosted.org/packages/56/d8/0e271434e8efd03186c5386671328154ee349ff0354d83c74f5caaf096ed/pydantic_core-2.41.5-cp311-cp311-win_arm64.whl", hash = "sha256:4bc36bbc0b7584de96561184ad7f012478987882ebf9f9c389b23f432ea3d90f", size = 1972902, upload-time = "2025-11-04T13:39:56.488Z" }, + { url = "https://files.pythonhosted.org/packages/5f/5d/5f6c63eebb5afee93bcaae4ce9a898f3373ca23df3ccaef086d0233a35a7/pydantic_core-2.41.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:f41a7489d32336dbf2199c8c0a215390a751c5b014c2c1c5366e817202e9cdf7", size = 2110990, upload-time = "2025-11-04T13:39:58.079Z" }, + { url = "https://files.pythonhosted.org/packages/aa/32/9c2e8ccb57c01111e0fd091f236c7b371c1bccea0fa85247ac55b1e2b6b6/pydantic_core-2.41.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:070259a8818988b9a84a449a2a7337c7f430a22acc0859c6b110aa7212a6d9c0", size = 1896003, upload-time = "2025-11-04T13:39:59.956Z" }, + { url = "https://files.pythonhosted.org/packages/68/b8/a01b53cb0e59139fbc9e4fda3e9724ede8de279097179be4ff31f1abb65a/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e96cea19e34778f8d59fe40775a7a574d95816eb150850a85a7a4c8f4b94ac69", size = 1919200, upload-time = "2025-11-04T13:40:02.241Z" }, + { url = "https://files.pythonhosted.org/packages/38/de/8c36b5198a29bdaade07b5985e80a233a5ac27137846f3bc2d3b40a47360/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ed2e99c456e3fadd05c991f8f437ef902e00eedf34320ba2b0842bd1c3ca3a75", size = 2052578, upload-time = "2025-11-04T13:40:04.401Z" }, + { url = "https://files.pythonhosted.org/packages/00/b5/0e8e4b5b081eac6cb3dbb7e60a65907549a1ce035a724368c330112adfdd/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:65840751b72fbfd82c3c640cff9284545342a4f1eb1586ad0636955b261b0b05", size = 2208504, upload-time = "2025-11-04T13:40:06.072Z" }, + { url = "https://files.pythonhosted.org/packages/77/56/87a61aad59c7c5b9dc8caad5a41a5545cba3810c3e828708b3d7404f6cef/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e536c98a7626a98feb2d3eaf75944ef6f3dbee447e1f841eae16f2f0a72d8ddc", size = 2335816, upload-time = "2025-11-04T13:40:07.835Z" }, + { url = "https://files.pythonhosted.org/packages/0d/76/941cc9f73529988688a665a5c0ecff1112b3d95ab48f81db5f7606f522d3/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eceb81a8d74f9267ef4081e246ffd6d129da5d87e37a77c9bde550cb04870c1c", size = 2075366, upload-time = "2025-11-04T13:40:09.804Z" }, + { url = "https://files.pythonhosted.org/packages/d3/43/ebef01f69baa07a482844faaa0a591bad1ef129253ffd0cdaa9d8a7f72d3/pydantic_core-2.41.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d38548150c39b74aeeb0ce8ee1d8e82696f4a4e16ddc6de7b1d8823f7de4b9b5", size = 2171698, upload-time = "2025-11-04T13:40:12.004Z" }, + { url = "https://files.pythonhosted.org/packages/b1/87/41f3202e4193e3bacfc2c065fab7706ebe81af46a83d3e27605029c1f5a6/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:c23e27686783f60290e36827f9c626e63154b82b116d7fe9adba1fda36da706c", size = 2132603, upload-time = "2025-11-04T13:40:13.868Z" }, + { url = "https://files.pythonhosted.org/packages/49/7d/4c00df99cb12070b6bccdef4a195255e6020a550d572768d92cc54dba91a/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:482c982f814460eabe1d3bb0adfdc583387bd4691ef00b90575ca0d2b6fe2294", size = 2329591, upload-time = "2025-11-04T13:40:15.672Z" }, + { url = "https://files.pythonhosted.org/packages/cc/6a/ebf4b1d65d458f3cda6a7335d141305dfa19bdc61140a884d165a8a1bbc7/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:bfea2a5f0b4d8d43adf9d7b8bf019fb46fdd10a2e5cde477fbcb9d1fa08c68e1", size = 2319068, upload-time = "2025-11-04T13:40:17.532Z" }, + { url = "https://files.pythonhosted.org/packages/49/3b/774f2b5cd4192d5ab75870ce4381fd89cf218af999515baf07e7206753f0/pydantic_core-2.41.5-cp312-cp312-win32.whl", hash = "sha256:b74557b16e390ec12dca509bce9264c3bbd128f8a2c376eaa68003d7f327276d", size = 1985908, upload-time = "2025-11-04T13:40:19.309Z" }, + { url = "https://files.pythonhosted.org/packages/86/45/00173a033c801cacf67c190fef088789394feaf88a98a7035b0e40d53dc9/pydantic_core-2.41.5-cp312-cp312-win_amd64.whl", hash = "sha256:1962293292865bca8e54702b08a4f26da73adc83dd1fcf26fbc875b35d81c815", size = 2020145, upload-time = "2025-11-04T13:40:21.548Z" }, + { url = "https://files.pythonhosted.org/packages/f9/22/91fbc821fa6d261b376a3f73809f907cec5ca6025642c463d3488aad22fb/pydantic_core-2.41.5-cp312-cp312-win_arm64.whl", hash = "sha256:1746d4a3d9a794cacae06a5eaaccb4b8643a131d45fbc9af23e353dc0a5ba5c3", size = 1976179, upload-time = "2025-11-04T13:40:23.393Z" }, + { url = "https://files.pythonhosted.org/packages/87/06/8806241ff1f70d9939f9af039c6c35f2360cf16e93c2ca76f184e76b1564/pydantic_core-2.41.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:941103c9be18ac8daf7b7adca8228f8ed6bb7a1849020f643b3a14d15b1924d9", size = 2120403, upload-time = "2025-11-04T13:40:25.248Z" }, + { url = "https://files.pythonhosted.org/packages/94/02/abfa0e0bda67faa65fef1c84971c7e45928e108fe24333c81f3bfe35d5f5/pydantic_core-2.41.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:112e305c3314f40c93998e567879e887a3160bb8689ef3d2c04b6cc62c33ac34", size = 1896206, upload-time = "2025-11-04T13:40:27.099Z" }, + { url = "https://files.pythonhosted.org/packages/15/df/a4c740c0943e93e6500f9eb23f4ca7ec9bf71b19e608ae5b579678c8d02f/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbaad15cb0c90aa221d43c00e77bb33c93e8d36e0bf74760cd00e732d10a6a0", size = 1919307, upload-time = "2025-11-04T13:40:29.806Z" }, + { url = "https://files.pythonhosted.org/packages/9a/e3/6324802931ae1d123528988e0e86587c2072ac2e5394b4bc2bc34b61ff6e/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:03ca43e12fab6023fc79d28ca6b39b05f794ad08ec2feccc59a339b02f2b3d33", size = 2063258, upload-time = "2025-11-04T13:40:33.544Z" }, + { url = "https://files.pythonhosted.org/packages/c9/d4/2230d7151d4957dd79c3044ea26346c148c98fbf0ee6ebd41056f2d62ab5/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dc799088c08fa04e43144b164feb0c13f9a0bc40503f8df3e9fde58a3c0c101e", size = 2214917, upload-time = "2025-11-04T13:40:35.479Z" }, + { url = "https://files.pythonhosted.org/packages/e6/9f/eaac5df17a3672fef0081b6c1bb0b82b33ee89aa5cec0d7b05f52fd4a1fa/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:97aeba56665b4c3235a0e52b2c2f5ae9cd071b8a8310ad27bddb3f7fb30e9aa2", size = 2332186, upload-time = "2025-11-04T13:40:37.436Z" }, + { url = "https://files.pythonhosted.org/packages/cf/4e/35a80cae583a37cf15604b44240e45c05e04e86f9cfd766623149297e971/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:406bf18d345822d6c21366031003612b9c77b3e29ffdb0f612367352aab7d586", size = 2073164, upload-time = "2025-11-04T13:40:40.289Z" }, + { url = "https://files.pythonhosted.org/packages/bf/e3/f6e262673c6140dd3305d144d032f7bd5f7497d3871c1428521f19f9efa2/pydantic_core-2.41.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b93590ae81f7010dbe380cdeab6f515902ebcbefe0b9327cc4804d74e93ae69d", size = 2179146, upload-time = "2025-11-04T13:40:42.809Z" }, + { url = "https://files.pythonhosted.org/packages/75/c7/20bd7fc05f0c6ea2056a4565c6f36f8968c0924f19b7d97bbfea55780e73/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:01a3d0ab748ee531f4ea6c3e48ad9dac84ddba4b0d82291f87248f2f9de8d740", size = 2137788, upload-time = "2025-11-04T13:40:44.752Z" }, + { url = "https://files.pythonhosted.org/packages/3a/8d/34318ef985c45196e004bc46c6eab2eda437e744c124ef0dbe1ff2c9d06b/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:6561e94ba9dacc9c61bce40e2d6bdc3bfaa0259d3ff36ace3b1e6901936d2e3e", size = 2340133, upload-time = "2025-11-04T13:40:46.66Z" }, + { url = "https://files.pythonhosted.org/packages/9c/59/013626bf8c78a5a5d9350d12e7697d3d4de951a75565496abd40ccd46bee/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:915c3d10f81bec3a74fbd4faebe8391013ba61e5a1a8d48c4455b923bdda7858", size = 2324852, upload-time = "2025-11-04T13:40:48.575Z" }, + { url = "https://files.pythonhosted.org/packages/1a/d9/c248c103856f807ef70c18a4f986693a46a8ffe1602e5d361485da502d20/pydantic_core-2.41.5-cp313-cp313-win32.whl", hash = "sha256:650ae77860b45cfa6e2cdafc42618ceafab3a2d9a3811fcfbd3bbf8ac3c40d36", size = 1994679, upload-time = "2025-11-04T13:40:50.619Z" }, + { url = "https://files.pythonhosted.org/packages/9e/8b/341991b158ddab181cff136acd2552c9f35bd30380422a639c0671e99a91/pydantic_core-2.41.5-cp313-cp313-win_amd64.whl", hash = "sha256:79ec52ec461e99e13791ec6508c722742ad745571f234ea6255bed38c6480f11", size = 2019766, upload-time = "2025-11-04T13:40:52.631Z" }, + { url = "https://files.pythonhosted.org/packages/73/7d/f2f9db34af103bea3e09735bb40b021788a5e834c81eedb541991badf8f5/pydantic_core-2.41.5-cp313-cp313-win_arm64.whl", hash = "sha256:3f84d5c1b4ab906093bdc1ff10484838aca54ef08de4afa9de0f5f14d69639cd", size = 1981005, upload-time = "2025-11-04T13:40:54.734Z" }, + { url = "https://files.pythonhosted.org/packages/ea/28/46b7c5c9635ae96ea0fbb779e271a38129df2550f763937659ee6c5dbc65/pydantic_core-2.41.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:3f37a19d7ebcdd20b96485056ba9e8b304e27d9904d233d7b1015db320e51f0a", size = 2119622, upload-time = "2025-11-04T13:40:56.68Z" }, + { url = "https://files.pythonhosted.org/packages/74/1a/145646e5687e8d9a1e8d09acb278c8535ebe9e972e1f162ed338a622f193/pydantic_core-2.41.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d1d9764366c73f996edd17abb6d9d7649a7eb690006ab6adbda117717099b14", size = 1891725, upload-time = "2025-11-04T13:40:58.807Z" }, + { url = "https://files.pythonhosted.org/packages/23/04/e89c29e267b8060b40dca97bfc64a19b2a3cf99018167ea1677d96368273/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25e1c2af0fce638d5f1988b686f3b3ea8cd7de5f244ca147c777769e798a9cd1", size = 1915040, upload-time = "2025-11-04T13:41:00.853Z" }, + { url = "https://files.pythonhosted.org/packages/84/a3/15a82ac7bd97992a82257f777b3583d3e84bdb06ba6858f745daa2ec8a85/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:506d766a8727beef16b7adaeb8ee6217c64fc813646b424d0804d67c16eddb66", size = 2063691, upload-time = "2025-11-04T13:41:03.504Z" }, + { url = "https://files.pythonhosted.org/packages/74/9b/0046701313c6ef08c0c1cf0e028c67c770a4e1275ca73131563c5f2a310a/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4819fa52133c9aa3c387b3328f25c1facc356491e6135b459f1de698ff64d869", size = 2213897, upload-time = "2025-11-04T13:41:05.804Z" }, + { url = "https://files.pythonhosted.org/packages/8a/cd/6bac76ecd1b27e75a95ca3a9a559c643b3afcd2dd62086d4b7a32a18b169/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2b761d210c9ea91feda40d25b4efe82a1707da2ef62901466a42492c028553a2", size = 2333302, upload-time = "2025-11-04T13:41:07.809Z" }, + { url = "https://files.pythonhosted.org/packages/4c/d2/ef2074dc020dd6e109611a8be4449b98cd25e1b9b8a303c2f0fca2f2bcf7/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22f0fb8c1c583a3b6f24df2470833b40207e907b90c928cc8d3594b76f874375", size = 2064877, upload-time = "2025-11-04T13:41:09.827Z" }, + { url = "https://files.pythonhosted.org/packages/18/66/e9db17a9a763d72f03de903883c057b2592c09509ccfe468187f2a2eef29/pydantic_core-2.41.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c870e99878c634505236d81e5443092fba820f0373997ff75f90f68cd553", size = 2180680, upload-time = "2025-11-04T13:41:12.379Z" }, + { url = "https://files.pythonhosted.org/packages/d3/9e/3ce66cebb929f3ced22be85d4c2399b8e85b622db77dad36b73c5387f8f8/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0177272f88ab8312479336e1d777f6b124537d47f2123f89cb37e0accea97f90", size = 2138960, upload-time = "2025-11-04T13:41:14.627Z" }, + { url = "https://files.pythonhosted.org/packages/a6/62/205a998f4327d2079326b01abee48e502ea739d174f0a89295c481a2272e/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:63510af5e38f8955b8ee5687740d6ebf7c2a0886d15a6d65c32814613681bc07", size = 2339102, upload-time = "2025-11-04T13:41:16.868Z" }, + { url = "https://files.pythonhosted.org/packages/3c/0d/f05e79471e889d74d3d88f5bd20d0ed189ad94c2423d81ff8d0000aab4ff/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:e56ba91f47764cc14f1daacd723e3e82d1a89d783f0f5afe9c364b8bb491ccdb", size = 2326039, upload-time = "2025-11-04T13:41:18.934Z" }, + { url = "https://files.pythonhosted.org/packages/ec/e1/e08a6208bb100da7e0c4b288eed624a703f4d129bde2da475721a80cab32/pydantic_core-2.41.5-cp314-cp314-win32.whl", hash = "sha256:aec5cf2fd867b4ff45b9959f8b20ea3993fc93e63c7363fe6851424c8a7e7c23", size = 1995126, upload-time = "2025-11-04T13:41:21.418Z" }, + { url = "https://files.pythonhosted.org/packages/48/5d/56ba7b24e9557f99c9237e29f5c09913c81eeb2f3217e40e922353668092/pydantic_core-2.41.5-cp314-cp314-win_amd64.whl", hash = "sha256:8e7c86f27c585ef37c35e56a96363ab8de4e549a95512445b85c96d3e2f7c1bf", size = 2015489, upload-time = "2025-11-04T13:41:24.076Z" }, + { url = "https://files.pythonhosted.org/packages/4e/bb/f7a190991ec9e3e0ba22e4993d8755bbc4a32925c0b5b42775c03e8148f9/pydantic_core-2.41.5-cp314-cp314-win_arm64.whl", hash = "sha256:e672ba74fbc2dc8eea59fb6d4aed6845e6905fc2a8afe93175d94a83ba2a01a0", size = 1977288, upload-time = "2025-11-04T13:41:26.33Z" }, + { url = "https://files.pythonhosted.org/packages/92/ed/77542d0c51538e32e15afe7899d79efce4b81eee631d99850edc2f5e9349/pydantic_core-2.41.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8566def80554c3faa0e65ac30ab0932b9e3a5cd7f8323764303d468e5c37595a", size = 2120255, upload-time = "2025-11-04T13:41:28.569Z" }, + { url = "https://files.pythonhosted.org/packages/bb/3d/6913dde84d5be21e284439676168b28d8bbba5600d838b9dca99de0fad71/pydantic_core-2.41.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b80aa5095cd3109962a298ce14110ae16b8c1aece8b72f9dafe81cf597ad80b3", size = 1863760, upload-time = "2025-11-04T13:41:31.055Z" }, + { url = "https://files.pythonhosted.org/packages/5a/f0/e5e6b99d4191da102f2b0eb9687aaa7f5bea5d9964071a84effc3e40f997/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3006c3dd9ba34b0c094c544c6006cc79e87d8612999f1a5d43b769b89181f23c", size = 1878092, upload-time = "2025-11-04T13:41:33.21Z" }, + { url = "https://files.pythonhosted.org/packages/71/48/36fb760642d568925953bcc8116455513d6e34c4beaa37544118c36aba6d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:72f6c8b11857a856bcfa48c86f5368439f74453563f951e473514579d44aa612", size = 2053385, upload-time = "2025-11-04T13:41:35.508Z" }, + { url = "https://files.pythonhosted.org/packages/20/25/92dc684dd8eb75a234bc1c764b4210cf2646479d54b47bf46061657292a8/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cb1b2f9742240e4bb26b652a5aeb840aa4b417c7748b6f8387927bc6e45e40d", size = 2218832, upload-time = "2025-11-04T13:41:37.732Z" }, + { url = "https://files.pythonhosted.org/packages/e2/09/f53e0b05023d3e30357d82eb35835d0f6340ca344720a4599cd663dca599/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd3d54f38609ff308209bd43acea66061494157703364ae40c951f83ba99a1a9", size = 2327585, upload-time = "2025-11-04T13:41:40Z" }, + { url = "https://files.pythonhosted.org/packages/aa/4e/2ae1aa85d6af35a39b236b1b1641de73f5a6ac4d5a7509f77b814885760c/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ff4321e56e879ee8d2a879501c8e469414d948f4aba74a2d4593184eb326660", size = 2041078, upload-time = "2025-11-04T13:41:42.323Z" }, + { url = "https://files.pythonhosted.org/packages/cd/13/2e215f17f0ef326fc72afe94776edb77525142c693767fc347ed6288728d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d2568a8c11bf8225044aa94409e21da0cb09dcdafe9ecd10250b2baad531a9", size = 2173914, upload-time = "2025-11-04T13:41:45.221Z" }, + { url = "https://files.pythonhosted.org/packages/02/7a/f999a6dcbcd0e5660bc348a3991c8915ce6599f4f2c6ac22f01d7a10816c/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:a39455728aabd58ceabb03c90e12f71fd30fa69615760a075b9fec596456ccc3", size = 2129560, upload-time = "2025-11-04T13:41:47.474Z" }, + { url = "https://files.pythonhosted.org/packages/3a/b1/6c990ac65e3b4c079a4fb9f5b05f5b013afa0f4ed6780a3dd236d2cbdc64/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:239edca560d05757817c13dc17c50766136d21f7cd0fac50295499ae24f90fdf", size = 2329244, upload-time = "2025-11-04T13:41:49.992Z" }, + { url = "https://files.pythonhosted.org/packages/d9/02/3c562f3a51afd4d88fff8dffb1771b30cfdfd79befd9883ee094f5b6c0d8/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:2a5e06546e19f24c6a96a129142a75cee553cc018ffee48a460059b1185f4470", size = 2331955, upload-time = "2025-11-04T13:41:54.079Z" }, + { url = "https://files.pythonhosted.org/packages/5c/96/5fb7d8c3c17bc8c62fdb031c47d77a1af698f1d7a406b0f79aaa1338f9ad/pydantic_core-2.41.5-cp314-cp314t-win32.whl", hash = "sha256:b4ececa40ac28afa90871c2cc2b9ffd2ff0bf749380fbdf57d165fd23da353aa", size = 1988906, upload-time = "2025-11-04T13:41:56.606Z" }, + { url = "https://files.pythonhosted.org/packages/22/ed/182129d83032702912c2e2d8bbe33c036f342cc735737064668585dac28f/pydantic_core-2.41.5-cp314-cp314t-win_amd64.whl", hash = "sha256:80aa89cad80b32a912a65332f64a4450ed00966111b6615ca6816153d3585a8c", size = 1981607, upload-time = "2025-11-04T13:41:58.889Z" }, + { url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" }, + { url = "https://files.pythonhosted.org/packages/54/db/160dffb57ed9a3705c4cbcbff0ac03bdae45f1ca7d58ab74645550df3fbd/pydantic_core-2.41.5-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:8bfeaf8735be79f225f3fefab7f941c712aaca36f1128c9d7e2352ee1aa87bdf", size = 2107999, upload-time = "2025-11-04T13:42:03.885Z" }, + { url = "https://files.pythonhosted.org/packages/a3/7d/88e7de946f60d9263cc84819f32513520b85c0f8322f9b8f6e4afc938383/pydantic_core-2.41.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:346285d28e4c8017da95144c7f3acd42740d637ff41946af5ce6e5e420502dd5", size = 1929745, upload-time = "2025-11-04T13:42:06.075Z" }, + { url = "https://files.pythonhosted.org/packages/d5/c2/aef51e5b283780e85e99ff19db0f05842d2d4a8a8cd15e63b0280029b08f/pydantic_core-2.41.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a75dafbf87d6276ddc5b2bf6fae5254e3d0876b626eb24969a574fff9149ee5d", size = 1920220, upload-time = "2025-11-04T13:42:08.457Z" }, + { url = "https://files.pythonhosted.org/packages/c7/97/492ab10f9ac8695cd76b2fdb24e9e61f394051df71594e9bcc891c9f586e/pydantic_core-2.41.5-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7b93a4d08587e2b7e7882de461e82b6ed76d9026ce91ca7915e740ecc7855f60", size = 2067296, upload-time = "2025-11-04T13:42:10.817Z" }, + { url = "https://files.pythonhosted.org/packages/ec/23/984149650e5269c59a2a4c41d234a9570adc68ab29981825cfaf4cfad8f4/pydantic_core-2.41.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e8465ab91a4bd96d36dde3263f06caa6a8a6019e4113f24dc753d79a8b3a3f82", size = 2231548, upload-time = "2025-11-04T13:42:13.843Z" }, + { url = "https://files.pythonhosted.org/packages/71/0c/85bcbb885b9732c28bec67a222dbed5ed2d77baee1f8bba2002e8cd00c5c/pydantic_core-2.41.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:299e0a22e7ae2b85c1a57f104538b2656e8ab1873511fd718a1c1c6f149b77b5", size = 2362571, upload-time = "2025-11-04T13:42:16.208Z" }, + { url = "https://files.pythonhosted.org/packages/c0/4a/412d2048be12c334003e9b823a3fa3d038e46cc2d64dd8aab50b31b65499/pydantic_core-2.41.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:707625ef0983fcfb461acfaf14de2067c5942c6bb0f3b4c99158bed6fedd3cf3", size = 2068175, upload-time = "2025-11-04T13:42:18.911Z" }, + { url = "https://files.pythonhosted.org/packages/73/f4/c58b6a776b502d0a5540ad02e232514285513572060f0d78f7832ca3c98b/pydantic_core-2.41.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f41eb9797986d6ebac5e8edff36d5cef9de40def462311b3eb3eeded1431e425", size = 2177203, upload-time = "2025-11-04T13:42:22.578Z" }, + { url = "https://files.pythonhosted.org/packages/ed/ae/f06ea4c7e7a9eead3d165e7623cd2ea0cb788e277e4f935af63fc98fa4e6/pydantic_core-2.41.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0384e2e1021894b1ff5a786dbf94771e2986ebe2869533874d7e43bc79c6f504", size = 2148191, upload-time = "2025-11-04T13:42:24.89Z" }, + { url = "https://files.pythonhosted.org/packages/c1/57/25a11dcdc656bf5f8b05902c3c2934ac3ea296257cc4a3f79a6319e61856/pydantic_core-2.41.5-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:f0cd744688278965817fd0839c4a4116add48d23890d468bc436f78beb28abf5", size = 2343907, upload-time = "2025-11-04T13:42:27.683Z" }, + { url = "https://files.pythonhosted.org/packages/96/82/e33d5f4933d7a03327c0c43c65d575e5919d4974ffc026bc917a5f7b9f61/pydantic_core-2.41.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:753e230374206729bf0a807954bcc6c150d3743928a73faffee51ac6557a03c3", size = 2322174, upload-time = "2025-11-04T13:42:30.776Z" }, + { url = "https://files.pythonhosted.org/packages/81/45/4091be67ce9f469e81656f880f3506f6a5624121ec5eb3eab37d7581897d/pydantic_core-2.41.5-cp39-cp39-win32.whl", hash = "sha256:873e0d5b4fb9b89ef7c2d2a963ea7d02879d9da0da8d9d4933dee8ee86a8b460", size = 1990353, upload-time = "2025-11-04T13:42:33.111Z" }, + { url = "https://files.pythonhosted.org/packages/44/8a/a98aede18db6e9cd5d66bcacd8a409fcf8134204cdede2e7de35c5a2c5ef/pydantic_core-2.41.5-cp39-cp39-win_amd64.whl", hash = "sha256:e4f4a984405e91527a0d62649ee21138f8e3d0ef103be488c1dc11a80d7f184b", size = 2015698, upload-time = "2025-11-04T13:42:35.484Z" }, + { url = "https://files.pythonhosted.org/packages/11/72/90fda5ee3b97e51c494938a4a44c3a35a9c96c19bba12372fb9c634d6f57/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:b96d5f26b05d03cc60f11a7761a5ded1741da411e7fe0909e27a5e6a0cb7b034", size = 2115441, upload-time = "2025-11-04T13:42:39.557Z" }, + { url = "https://files.pythonhosted.org/packages/1f/53/8942f884fa33f50794f119012dc6a1a02ac43a56407adaac20463df8e98f/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:634e8609e89ceecea15e2d61bc9ac3718caaaa71963717bf3c8f38bfde64242c", size = 1930291, upload-time = "2025-11-04T13:42:42.169Z" }, + { url = "https://files.pythonhosted.org/packages/79/c8/ecb9ed9cd942bce09fc888ee960b52654fbdbede4ba6c2d6e0d3b1d8b49c/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:93e8740d7503eb008aa2df04d3b9735f845d43ae845e6dcd2be0b55a2da43cd2", size = 1948632, upload-time = "2025-11-04T13:42:44.564Z" }, + { url = "https://files.pythonhosted.org/packages/2e/1b/687711069de7efa6af934e74f601e2a4307365e8fdc404703afc453eab26/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f15489ba13d61f670dcc96772e733aad1a6f9c429cc27574c6cdaed82d0146ad", size = 2138905, upload-time = "2025-11-04T13:42:47.156Z" }, + { url = "https://files.pythonhosted.org/packages/09/32/59b0c7e63e277fa7911c2fc70ccfb45ce4b98991e7ef37110663437005af/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:7da7087d756b19037bc2c06edc6c170eeef3c3bafcb8f532ff17d64dc427adfd", size = 2110495, upload-time = "2025-11-04T13:42:49.689Z" }, + { url = "https://files.pythonhosted.org/packages/aa/81/05e400037eaf55ad400bcd318c05bb345b57e708887f07ddb2d20e3f0e98/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:aabf5777b5c8ca26f7824cb4a120a740c9588ed58df9b2d196ce92fba42ff8dc", size = 1915388, upload-time = "2025-11-04T13:42:52.215Z" }, + { url = "https://files.pythonhosted.org/packages/6e/0d/e3549b2399f71d56476b77dbf3cf8937cec5cd70536bdc0e374a421d0599/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c007fe8a43d43b3969e8469004e9845944f1a80e6acd47c150856bb87f230c56", size = 1942879, upload-time = "2025-11-04T13:42:56.483Z" }, + { url = "https://files.pythonhosted.org/packages/f7/07/34573da085946b6a313d7c42f82f16e8920bfd730665de2d11c0c37a74b5/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:76d0819de158cd855d1cbb8fcafdf6f5cf1eb8e470abe056d5d161106e38062b", size = 2139017, upload-time = "2025-11-04T13:42:59.471Z" }, + { url = "https://files.pythonhosted.org/packages/e6/b0/1a2aa41e3b5a4ba11420aba2d091b2d17959c8d1519ece3627c371951e73/pydantic_core-2.41.5-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:b5819cd790dbf0c5eb9f82c73c16b39a65dd6dd4d1439dcdea7816ec9adddab8", size = 2103351, upload-time = "2025-11-04T13:43:02.058Z" }, + { url = "https://files.pythonhosted.org/packages/a4/ee/31b1f0020baaf6d091c87900ae05c6aeae101fa4e188e1613c80e4f1ea31/pydantic_core-2.41.5-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:5a4e67afbc95fa5c34cf27d9089bca7fcab4e51e57278d710320a70b956d1b9a", size = 1925363, upload-time = "2025-11-04T13:43:05.159Z" }, + { url = "https://files.pythonhosted.org/packages/e1/89/ab8e86208467e467a80deaca4e434adac37b10a9d134cd2f99b28a01e483/pydantic_core-2.41.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ece5c59f0ce7d001e017643d8d24da587ea1f74f6993467d85ae8a5ef9d4f42b", size = 2135615, upload-time = "2025-11-04T13:43:08.116Z" }, + { url = "https://files.pythonhosted.org/packages/99/0a/99a53d06dd0348b2008f2f30884b34719c323f16c3be4e6cc1203b74a91d/pydantic_core-2.41.5-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:16f80f7abe3351f8ea6858914ddc8c77e02578544a0ebc15b4c2e1a0e813b0b2", size = 2175369, upload-time = "2025-11-04T13:43:12.49Z" }, + { url = "https://files.pythonhosted.org/packages/6d/94/30ca3b73c6d485b9bb0bc66e611cff4a7138ff9736b7e66bcf0852151636/pydantic_core-2.41.5-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:33cb885e759a705b426baada1fe68cbb0a2e68e34c5d0d0289a364cf01709093", size = 2144218, upload-time = "2025-11-04T13:43:15.431Z" }, + { url = "https://files.pythonhosted.org/packages/87/57/31b4f8e12680b739a91f472b5671294236b82586889ef764b5fbc6669238/pydantic_core-2.41.5-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:c8d8b4eb992936023be7dee581270af5c6e0697a8559895f527f5b7105ecd36a", size = 2329951, upload-time = "2025-11-04T13:43:18.062Z" }, + { url = "https://files.pythonhosted.org/packages/7d/73/3c2c8edef77b8f7310e6fb012dbc4b8551386ed575b9eb6fb2506e28a7eb/pydantic_core-2.41.5-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:242a206cd0318f95cd21bdacff3fcc3aab23e79bba5cac3db5a841c9ef9c6963", size = 2318428, upload-time = "2025-11-04T13:43:20.679Z" }, + { url = "https://files.pythonhosted.org/packages/2f/02/8559b1f26ee0d502c74f9cca5c0d2fd97e967e083e006bbbb4e97f3a043a/pydantic_core-2.41.5-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:d3a978c4f57a597908b7e697229d996d77a6d3c94901e9edee593adada95ce1a", size = 2147009, upload-time = "2025-11-04T13:43:23.286Z" }, + { url = "https://files.pythonhosted.org/packages/5f/9b/1b3f0e9f9305839d7e84912f9e8bfbd191ed1b1ef48083609f0dabde978c/pydantic_core-2.41.5-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:b2379fa7ed44ddecb5bfe4e48577d752db9fc10be00a6b7446e9663ba143de26", size = 2101980, upload-time = "2025-11-04T13:43:25.97Z" }, + { url = "https://files.pythonhosted.org/packages/a4/ed/d71fefcb4263df0da6a85b5d8a7508360f2f2e9b3bf5814be9c8bccdccc1/pydantic_core-2.41.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:266fb4cbf5e3cbd0b53669a6d1b039c45e3ce651fd5442eff4d07c2cc8d66808", size = 1923865, upload-time = "2025-11-04T13:43:28.763Z" }, + { url = "https://files.pythonhosted.org/packages/ce/3a/626b38db460d675f873e4444b4bb030453bbe7b4ba55df821d026a0493c4/pydantic_core-2.41.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58133647260ea01e4d0500089a8c4f07bd7aa6ce109682b1426394988d8aaacc", size = 2134256, upload-time = "2025-11-04T13:43:31.71Z" }, + { url = "https://files.pythonhosted.org/packages/83/d9/8412d7f06f616bbc053d30cb4e5f76786af3221462ad5eee1f202021eb4e/pydantic_core-2.41.5-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:287dad91cfb551c363dc62899a80e9e14da1f0e2b6ebde82c806612ca2a13ef1", size = 2174762, upload-time = "2025-11-04T13:43:34.744Z" }, + { url = "https://files.pythonhosted.org/packages/55/4c/162d906b8e3ba3a99354e20faa1b49a85206c47de97a639510a0e673f5da/pydantic_core-2.41.5-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:03b77d184b9eb40240ae9fd676ca364ce1085f203e1b1256f8ab9984dca80a84", size = 2143141, upload-time = "2025-11-04T13:43:37.701Z" }, + { url = "https://files.pythonhosted.org/packages/1f/f2/f11dd73284122713f5f89fc940f370d035fa8e1e078d446b3313955157fe/pydantic_core-2.41.5-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:a668ce24de96165bb239160b3d854943128f4334822900534f2fe947930e5770", size = 2330317, upload-time = "2025-11-04T13:43:40.406Z" }, + { url = "https://files.pythonhosted.org/packages/88/9d/b06ca6acfe4abb296110fb1273a4d848a0bfb2ff65f3ee92127b3244e16b/pydantic_core-2.41.5-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f14f8f046c14563f8eb3f45f499cc658ab8d10072961e07225e507adb700e93f", size = 2316992, upload-time = "2025-11-04T13:43:43.602Z" }, + { url = "https://files.pythonhosted.org/packages/36/c7/cfc8e811f061c841d7990b0201912c3556bfeb99cdcb7ed24adc8d6f8704/pydantic_core-2.41.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:56121965f7a4dc965bff783d70b907ddf3d57f6eba29b6d2e5dabfaf07799c51", size = 2145302, upload-time = "2025-11-04T13:43:46.64Z" }, +] + +[[package]] +name = "pygments" +version = "2.19.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" }, +] + +[[package]] +name = "pytest" +version = "8.4.2" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.10'", +] +dependencies = [ + { name = "colorama", marker = "python_full_version < '3.10' and sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version < '3.10'" }, + { name = "iniconfig", version = "2.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, + { name = "packaging", marker = "python_full_version < '3.10'" }, + { name = "pluggy", marker = "python_full_version < '3.10'" }, + { name = "pygments", marker = "python_full_version < '3.10'" }, + { name = "tomli", marker = "python_full_version < '3.10'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a3/5c/00a0e072241553e1a7496d638deababa67c5058571567b92a7eaa258397c/pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01", size = 1519618, upload-time = "2025-09-04T14:34:22.711Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3a/bc/fed5f74b5d802cf9a03e83f60f18864e90e3aed7223adaca5ffb7a8d8d64/pydantic_core-2.27.2-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2d367ca20b2f14095a8f4fa1210f5a7b78b8a20009ecced6b12818f455b1e9fa", size = 1895938 }, - { url = "https://files.pythonhosted.org/packages/71/2a/185aff24ce844e39abb8dd680f4e959f0006944f4a8a0ea372d9f9ae2e53/pydantic_core-2.27.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:491a2b73db93fab69731eaee494f320faa4e093dbed776be1a829c2eb222c34c", size = 1815684 }, - { url = "https://files.pythonhosted.org/packages/c3/43/fafabd3d94d159d4f1ed62e383e264f146a17dd4d48453319fd782e7979e/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7969e133a6f183be60e9f6f56bfae753585680f3b7307a8e555a948d443cc05a", size = 1829169 }, - { url = "https://files.pythonhosted.org/packages/a2/d1/f2dfe1a2a637ce6800b799aa086d079998959f6f1215eb4497966efd2274/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3de9961f2a346257caf0aa508a4da705467f53778e9ef6fe744c038119737ef5", size = 1867227 }, - { url = "https://files.pythonhosted.org/packages/7d/39/e06fcbcc1c785daa3160ccf6c1c38fea31f5754b756e34b65f74e99780b5/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e2bb4d3e5873c37bb3dd58714d4cd0b0e6238cebc4177ac8fe878f8b3aa8e74c", size = 2037695 }, - { url = "https://files.pythonhosted.org/packages/7a/67/61291ee98e07f0650eb756d44998214231f50751ba7e13f4f325d95249ab/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:280d219beebb0752699480fe8f1dc61ab6615c2046d76b7ab7ee38858de0a4e7", size = 2741662 }, - { url = "https://files.pythonhosted.org/packages/32/90/3b15e31b88ca39e9e626630b4c4a1f5a0dfd09076366f4219429e6786076/pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47956ae78b6422cbd46f772f1746799cbb862de838fd8d1fbd34a82e05b0983a", size = 1993370 }, - { url = "https://files.pythonhosted.org/packages/ff/83/c06d333ee3a67e2e13e07794995c1535565132940715931c1c43bfc85b11/pydantic_core-2.27.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:14d4a5c49d2f009d62a2a7140d3064f686d17a5d1a268bc641954ba181880236", size = 1996813 }, - { url = "https://files.pythonhosted.org/packages/7c/f7/89be1c8deb6e22618a74f0ca0d933fdcb8baa254753b26b25ad3acff8f74/pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:337b443af21d488716f8d0b6164de833e788aa6bd7e3a39c005febc1284f4962", size = 2005287 }, - { url = "https://files.pythonhosted.org/packages/b7/7d/8eb3e23206c00ef7feee17b83a4ffa0a623eb1a9d382e56e4aa46fd15ff2/pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:03d0f86ea3184a12f41a2d23f7ccb79cdb5a18e06993f8a45baa8dfec746f0e9", size = 2128414 }, - { url = "https://files.pythonhosted.org/packages/4e/99/fe80f3ff8dd71a3ea15763878d464476e6cb0a2db95ff1c5c554133b6b83/pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7041c36f5680c6e0f08d922aed302e98b3745d97fe1589db0a3eebf6624523af", size = 2155301 }, - { url = "https://files.pythonhosted.org/packages/2b/a3/e50460b9a5789ca1451b70d4f52546fa9e2b420ba3bfa6100105c0559238/pydantic_core-2.27.2-cp310-cp310-win32.whl", hash = "sha256:50a68f3e3819077be2c98110c1f9dcb3817e93f267ba80a2c05bb4f8799e2ff4", size = 1816685 }, - { url = "https://files.pythonhosted.org/packages/57/4c/a8838731cb0f2c2a39d3535376466de6049034d7b239c0202a64aaa05533/pydantic_core-2.27.2-cp310-cp310-win_amd64.whl", hash = "sha256:e0fd26b16394ead34a424eecf8a31a1f5137094cabe84a1bcb10fa6ba39d3d31", size = 1982876 }, - { url = "https://files.pythonhosted.org/packages/c2/89/f3450af9d09d44eea1f2c369f49e8f181d742f28220f88cc4dfaae91ea6e/pydantic_core-2.27.2-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:8e10c99ef58cfdf2a66fc15d66b16c4a04f62bca39db589ae8cba08bc55331bc", size = 1893421 }, - { url = "https://files.pythonhosted.org/packages/9e/e3/71fe85af2021f3f386da42d291412e5baf6ce7716bd7101ea49c810eda90/pydantic_core-2.27.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:26f32e0adf166a84d0cb63be85c562ca8a6fa8de28e5f0d92250c6b7e9e2aff7", size = 1814998 }, - { url = "https://files.pythonhosted.org/packages/a6/3c/724039e0d848fd69dbf5806894e26479577316c6f0f112bacaf67aa889ac/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8c19d1ea0673cd13cc2f872f6c9ab42acc4e4f492a7ca9d3795ce2b112dd7e15", size = 1826167 }, - { url = "https://files.pythonhosted.org/packages/2b/5b/1b29e8c1fb5f3199a9a57c1452004ff39f494bbe9bdbe9a81e18172e40d3/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5e68c4446fe0810e959cdff46ab0a41ce2f2c86d227d96dc3847af0ba7def306", size = 1865071 }, - { url = "https://files.pythonhosted.org/packages/89/6c/3985203863d76bb7d7266e36970d7e3b6385148c18a68cc8915fd8c84d57/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d9640b0059ff4f14d1f37321b94061c6db164fbe49b334b31643e0528d100d99", size = 2036244 }, - { url = "https://files.pythonhosted.org/packages/0e/41/f15316858a246b5d723f7d7f599f79e37493b2e84bfc789e58d88c209f8a/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:40d02e7d45c9f8af700f3452f329ead92da4c5f4317ca9b896de7ce7199ea459", size = 2737470 }, - { url = "https://files.pythonhosted.org/packages/a8/7c/b860618c25678bbd6d1d99dbdfdf0510ccb50790099b963ff78a124b754f/pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c1fd185014191700554795c99b347d64f2bb637966c4cfc16998a0ca700d048", size = 1992291 }, - { url = "https://files.pythonhosted.org/packages/bf/73/42c3742a391eccbeab39f15213ecda3104ae8682ba3c0c28069fbcb8c10d/pydantic_core-2.27.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d81d2068e1c1228a565af076598f9e7451712700b673de8f502f0334f281387d", size = 1994613 }, - { url = "https://files.pythonhosted.org/packages/94/7a/941e89096d1175d56f59340f3a8ebaf20762fef222c298ea96d36a6328c5/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:1a4207639fb02ec2dbb76227d7c751a20b1a6b4bc52850568e52260cae64ca3b", size = 2002355 }, - { url = "https://files.pythonhosted.org/packages/6e/95/2359937a73d49e336a5a19848713555605d4d8d6940c3ec6c6c0ca4dcf25/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:3de3ce3c9ddc8bbd88f6e0e304dea0e66d843ec9de1b0042b0911c1663ffd474", size = 2126661 }, - { url = "https://files.pythonhosted.org/packages/2b/4c/ca02b7bdb6012a1adef21a50625b14f43ed4d11f1fc237f9d7490aa5078c/pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:30c5f68ded0c36466acede341551106821043e9afaad516adfb6e8fa80a4e6a6", size = 2153261 }, - { url = "https://files.pythonhosted.org/packages/72/9d/a241db83f973049a1092a079272ffe2e3e82e98561ef6214ab53fe53b1c7/pydantic_core-2.27.2-cp311-cp311-win32.whl", hash = "sha256:c70c26d2c99f78b125a3459f8afe1aed4d9687c24fd677c6a4436bc042e50d6c", size = 1812361 }, - { url = "https://files.pythonhosted.org/packages/e8/ef/013f07248041b74abd48a385e2110aa3a9bbfef0fbd97d4e6d07d2f5b89a/pydantic_core-2.27.2-cp311-cp311-win_amd64.whl", hash = "sha256:08e125dbdc505fa69ca7d9c499639ab6407cfa909214d500897d02afb816e7cc", size = 1982484 }, - { url = "https://files.pythonhosted.org/packages/10/1c/16b3a3e3398fd29dca77cea0a1d998d6bde3902fa2706985191e2313cc76/pydantic_core-2.27.2-cp311-cp311-win_arm64.whl", hash = "sha256:26f0d68d4b235a2bae0c3fc585c585b4ecc51382db0e3ba402a22cbc440915e4", size = 1867102 }, - { url = "https://files.pythonhosted.org/packages/d6/74/51c8a5482ca447871c93e142d9d4a92ead74de6c8dc5e66733e22c9bba89/pydantic_core-2.27.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9e0c8cfefa0ef83b4da9588448b6d8d2a2bf1a53c3f1ae5fca39eb3061e2f0b0", size = 1893127 }, - { url = "https://files.pythonhosted.org/packages/d3/f3/c97e80721735868313c58b89d2de85fa80fe8dfeeed84dc51598b92a135e/pydantic_core-2.27.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:83097677b8e3bd7eaa6775720ec8e0405f1575015a463285a92bfdfe254529ef", size = 1811340 }, - { url = "https://files.pythonhosted.org/packages/9e/91/840ec1375e686dbae1bd80a9e46c26a1e0083e1186abc610efa3d9a36180/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:172fce187655fece0c90d90a678424b013f8fbb0ca8b036ac266749c09438cb7", size = 1822900 }, - { url = "https://files.pythonhosted.org/packages/f6/31/4240bc96025035500c18adc149aa6ffdf1a0062a4b525c932065ceb4d868/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:519f29f5213271eeeeb3093f662ba2fd512b91c5f188f3bb7b27bc5973816934", size = 1869177 }, - { url = "https://files.pythonhosted.org/packages/fa/20/02fbaadb7808be578317015c462655c317a77a7c8f0ef274bc016a784c54/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:05e3a55d124407fffba0dd6b0c0cd056d10e983ceb4e5dbd10dda135c31071d6", size = 2038046 }, - { url = "https://files.pythonhosted.org/packages/06/86/7f306b904e6c9eccf0668248b3f272090e49c275bc488a7b88b0823444a4/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9c3ed807c7b91de05e63930188f19e921d1fe90de6b4f5cd43ee7fcc3525cb8c", size = 2685386 }, - { url = "https://files.pythonhosted.org/packages/8d/f0/49129b27c43396581a635d8710dae54a791b17dfc50c70164866bbf865e3/pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6fb4aadc0b9a0c063206846d603b92030eb6f03069151a625667f982887153e2", size = 1997060 }, - { url = "https://files.pythonhosted.org/packages/0d/0f/943b4af7cd416c477fd40b187036c4f89b416a33d3cc0ab7b82708a667aa/pydantic_core-2.27.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:28ccb213807e037460326424ceb8b5245acb88f32f3d2777427476e1b32c48c4", size = 2004870 }, - { url = "https://files.pythonhosted.org/packages/35/40/aea70b5b1a63911c53a4c8117c0a828d6790483f858041f47bab0b779f44/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:de3cd1899e2c279b140adde9357c4495ed9d47131b4a4eaff9052f23398076b3", size = 1999822 }, - { url = "https://files.pythonhosted.org/packages/f2/b3/807b94fd337d58effc5498fd1a7a4d9d59af4133e83e32ae39a96fddec9d/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:220f892729375e2d736b97d0e51466252ad84c51857d4d15f5e9692f9ef12be4", size = 2130364 }, - { url = "https://files.pythonhosted.org/packages/fc/df/791c827cd4ee6efd59248dca9369fb35e80a9484462c33c6649a8d02b565/pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a0fcd29cd6b4e74fe8ddd2c90330fd8edf2e30cb52acda47f06dd615ae72da57", size = 2158303 }, - { url = "https://files.pythonhosted.org/packages/9b/67/4e197c300976af185b7cef4c02203e175fb127e414125916bf1128b639a9/pydantic_core-2.27.2-cp312-cp312-win32.whl", hash = "sha256:1e2cb691ed9834cd6a8be61228471d0a503731abfb42f82458ff27be7b2186fc", size = 1834064 }, - { url = "https://files.pythonhosted.org/packages/1f/ea/cd7209a889163b8dcca139fe32b9687dd05249161a3edda62860430457a5/pydantic_core-2.27.2-cp312-cp312-win_amd64.whl", hash = "sha256:cc3f1a99a4f4f9dd1de4fe0312c114e740b5ddead65bb4102884b384c15d8bc9", size = 1989046 }, - { url = "https://files.pythonhosted.org/packages/bc/49/c54baab2f4658c26ac633d798dab66b4c3a9bbf47cff5284e9c182f4137a/pydantic_core-2.27.2-cp312-cp312-win_arm64.whl", hash = "sha256:3911ac9284cd8a1792d3cb26a2da18f3ca26c6908cc434a18f730dc0db7bfa3b", size = 1885092 }, - { url = "https://files.pythonhosted.org/packages/41/b1/9bc383f48f8002f99104e3acff6cba1231b29ef76cfa45d1506a5cad1f84/pydantic_core-2.27.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7d14bd329640e63852364c306f4d23eb744e0f8193148d4044dd3dacdaacbd8b", size = 1892709 }, - { url = "https://files.pythonhosted.org/packages/10/6c/e62b8657b834f3eb2961b49ec8e301eb99946245e70bf42c8817350cbefc/pydantic_core-2.27.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82f91663004eb8ed30ff478d77c4d1179b3563df6cdb15c0817cd1cdaf34d154", size = 1811273 }, - { url = "https://files.pythonhosted.org/packages/ba/15/52cfe49c8c986e081b863b102d6b859d9defc63446b642ccbbb3742bf371/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:71b24c7d61131bb83df10cc7e687433609963a944ccf45190cfc21e0887b08c9", size = 1823027 }, - { url = "https://files.pythonhosted.org/packages/b1/1c/b6f402cfc18ec0024120602bdbcebc7bdd5b856528c013bd4d13865ca473/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fa8e459d4954f608fa26116118bb67f56b93b209c39b008277ace29937453dc9", size = 1868888 }, - { url = "https://files.pythonhosted.org/packages/bd/7b/8cb75b66ac37bc2975a3b7de99f3c6f355fcc4d89820b61dffa8f1e81677/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ce8918cbebc8da707ba805b7fd0b382816858728ae7fe19a942080c24e5b7cd1", size = 2037738 }, - { url = "https://files.pythonhosted.org/packages/c8/f1/786d8fe78970a06f61df22cba58e365ce304bf9b9f46cc71c8c424e0c334/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eda3f5c2a021bbc5d976107bb302e0131351c2ba54343f8a496dc8783d3d3a6a", size = 2685138 }, - { url = "https://files.pythonhosted.org/packages/a6/74/d12b2cd841d8724dc8ffb13fc5cef86566a53ed358103150209ecd5d1999/pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bd8086fa684c4775c27f03f062cbb9eaa6e17f064307e86b21b9e0abc9c0f02e", size = 1997025 }, - { url = "https://files.pythonhosted.org/packages/a0/6e/940bcd631bc4d9a06c9539b51f070b66e8f370ed0933f392db6ff350d873/pydantic_core-2.27.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8d9b3388db186ba0c099a6d20f0604a44eabdeef1777ddd94786cdae158729e4", size = 2004633 }, - { url = "https://files.pythonhosted.org/packages/50/cc/a46b34f1708d82498c227d5d80ce615b2dd502ddcfd8376fc14a36655af1/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7a66efda2387de898c8f38c0cf7f14fca0b51a8ef0b24bfea5849f1b3c95af27", size = 1999404 }, - { url = "https://files.pythonhosted.org/packages/ca/2d/c365cfa930ed23bc58c41463bae347d1005537dc8db79e998af8ba28d35e/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:18a101c168e4e092ab40dbc2503bdc0f62010e95d292b27827871dc85450d7ee", size = 2130130 }, - { url = "https://files.pythonhosted.org/packages/f4/d7/eb64d015c350b7cdb371145b54d96c919d4db516817f31cd1c650cae3b21/pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ba5dd002f88b78a4215ed2f8ddbdf85e8513382820ba15ad5ad8955ce0ca19a1", size = 2157946 }, - { url = "https://files.pythonhosted.org/packages/a4/99/bddde3ddde76c03b65dfd5a66ab436c4e58ffc42927d4ff1198ffbf96f5f/pydantic_core-2.27.2-cp313-cp313-win32.whl", hash = "sha256:1ebaf1d0481914d004a573394f4be3a7616334be70261007e47c2a6fe7e50130", size = 1834387 }, - { url = "https://files.pythonhosted.org/packages/71/47/82b5e846e01b26ac6f1893d3c5f9f3a2eb6ba79be26eef0b759b4fe72946/pydantic_core-2.27.2-cp313-cp313-win_amd64.whl", hash = "sha256:953101387ecf2f5652883208769a79e48db18c6df442568a0b5ccd8c2723abee", size = 1990453 }, - { url = "https://files.pythonhosted.org/packages/51/b2/b2b50d5ecf21acf870190ae5d093602d95f66c9c31f9d5de6062eb329ad1/pydantic_core-2.27.2-cp313-cp313-win_arm64.whl", hash = "sha256:ac4dbfd1691affb8f48c2c13241a2e3b60ff23247cbcf981759c768b6633cf8b", size = 1885186 }, - { url = "https://files.pythonhosted.org/packages/43/53/13e9917fc69c0a4aea06fd63ed6a8d6cda9cf140ca9584d49c1650b0ef5e/pydantic_core-2.27.2-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:d3e8d504bdd3f10835468f29008d72fc8359d95c9c415ce6e767203db6127506", size = 1899595 }, - { url = "https://files.pythonhosted.org/packages/f4/20/26c549249769ed84877f862f7bb93f89a6ee08b4bee1ed8781616b7fbb5e/pydantic_core-2.27.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:521eb9b7f036c9b6187f0b47318ab0d7ca14bd87f776240b90b21c1f4f149320", size = 1775010 }, - { url = "https://files.pythonhosted.org/packages/35/eb/8234e05452d92d2b102ffa1b56d801c3567e628fdc63f02080fdfc68fd5e/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:85210c4d99a0114f5a9481b44560d7d1e35e32cc5634c656bc48e590b669b145", size = 1830727 }, - { url = "https://files.pythonhosted.org/packages/8f/df/59f915c8b929d5f61e5a46accf748a87110ba145156f9326d1a7d28912b2/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d716e2e30c6f140d7560ef1538953a5cd1a87264c737643d481f2779fc247fe1", size = 1868393 }, - { url = "https://files.pythonhosted.org/packages/d5/52/81cf4071dca654d485c277c581db368b0c95b2b883f4d7b736ab54f72ddf/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f66d89ba397d92f840f8654756196d93804278457b5fbede59598a1f9f90b228", size = 2040300 }, - { url = "https://files.pythonhosted.org/packages/9c/00/05197ce1614f5c08d7a06e1d39d5d8e704dc81971b2719af134b844e2eaf/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:669e193c1c576a58f132e3158f9dfa9662969edb1a250c54d8fa52590045f046", size = 2738785 }, - { url = "https://files.pythonhosted.org/packages/f7/a3/5f19bc495793546825ab160e530330c2afcee2281c02b5ffafd0b32ac05e/pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fdbe7629b996647b99c01b37f11170a57ae675375b14b8c13b8518b8320ced5", size = 1996493 }, - { url = "https://files.pythonhosted.org/packages/ed/e8/e0102c2ec153dc3eed88aea03990e1b06cfbca532916b8a48173245afe60/pydantic_core-2.27.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d262606bf386a5ba0b0af3b97f37c83d7011439e3dc1a9298f21efb292e42f1a", size = 1998544 }, - { url = "https://files.pythonhosted.org/packages/fb/a3/4be70845b555bd80aaee9f9812a7cf3df81550bce6dadb3cfee9c5d8421d/pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:cabb9bcb7e0d97f74df8646f34fc76fbf793b7f6dc2438517d7a9e50eee4f14d", size = 2007449 }, - { url = "https://files.pythonhosted.org/packages/e3/9f/b779ed2480ba355c054e6d7ea77792467631d674b13d8257085a4bc7dcda/pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_armv7l.whl", hash = "sha256:d2d63f1215638d28221f664596b1ccb3944f6e25dd18cd3b86b0a4c408d5ebb9", size = 2129460 }, - { url = "https://files.pythonhosted.org/packages/a0/f0/a6ab0681f6e95260c7fbf552874af7302f2ea37b459f9b7f00698f875492/pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:bca101c00bff0adb45a833f8451b9105d9df18accb8743b08107d7ada14bd7da", size = 2159609 }, - { url = "https://files.pythonhosted.org/packages/8a/2b/e1059506795104349712fbca647b18b3f4a7fd541c099e6259717441e1e0/pydantic_core-2.27.2-cp38-cp38-win32.whl", hash = "sha256:f6f8e111843bbb0dee4cb6594cdc73e79b3329b526037ec242a3e49012495b3b", size = 1819886 }, - { url = "https://files.pythonhosted.org/packages/aa/6d/df49c17f024dfc58db0bacc7b03610058018dd2ea2eaf748ccbada4c3d06/pydantic_core-2.27.2-cp38-cp38-win_amd64.whl", hash = "sha256:fd1aea04935a508f62e0d0ef1f5ae968774a32afc306fb8545e06f5ff5cdf3ad", size = 1980773 }, - { url = "https://files.pythonhosted.org/packages/27/97/3aef1ddb65c5ccd6eda9050036c956ff6ecbfe66cb7eb40f280f121a5bb0/pydantic_core-2.27.2-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:c10eb4f1659290b523af58fa7cffb452a61ad6ae5613404519aee4bfbf1df993", size = 1896475 }, - { url = "https://files.pythonhosted.org/packages/ad/d3/5668da70e373c9904ed2f372cb52c0b996426f302e0dee2e65634c92007d/pydantic_core-2.27.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ef592d4bad47296fb11f96cd7dc898b92e795032b4894dfb4076cfccd43a9308", size = 1772279 }, - { url = "https://files.pythonhosted.org/packages/8a/9e/e44b8cb0edf04a2f0a1f6425a65ee089c1d6f9c4c2dcab0209127b6fdfc2/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c61709a844acc6bf0b7dce7daae75195a10aac96a596ea1b776996414791ede4", size = 1829112 }, - { url = "https://files.pythonhosted.org/packages/1c/90/1160d7ac700102effe11616e8119e268770f2a2aa5afb935f3ee6832987d/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:42c5f762659e47fdb7b16956c71598292f60a03aa92f8b6351504359dbdba6cf", size = 1866780 }, - { url = "https://files.pythonhosted.org/packages/ee/33/13983426df09a36d22c15980008f8d9c77674fc319351813b5a2739b70f3/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4c9775e339e42e79ec99c441d9730fccf07414af63eac2f0e48e08fd38a64d76", size = 2037943 }, - { url = "https://files.pythonhosted.org/packages/01/d7/ced164e376f6747e9158c89988c293cd524ab8d215ae4e185e9929655d5c/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:57762139821c31847cfb2df63c12f725788bd9f04bc2fb392790959b8f70f118", size = 2740492 }, - { url = "https://files.pythonhosted.org/packages/8b/1f/3dc6e769d5b7461040778816aab2b00422427bcaa4b56cc89e9c653b2605/pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0d1e85068e818c73e048fe28cfc769040bb1f475524f4745a5dc621f75ac7630", size = 1995714 }, - { url = "https://files.pythonhosted.org/packages/07/d7/a0bd09bc39283530b3f7c27033a814ef254ba3bd0b5cfd040b7abf1fe5da/pydantic_core-2.27.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:097830ed52fd9e427942ff3b9bc17fab52913b2f50f2880dc4a5611446606a54", size = 1997163 }, - { url = "https://files.pythonhosted.org/packages/2d/bb/2db4ad1762e1c5699d9b857eeb41959191980de6feb054e70f93085e1bcd/pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:044a50963a614ecfae59bb1eaf7ea7efc4bc62f49ed594e18fa1e5d953c40e9f", size = 2005217 }, - { url = "https://files.pythonhosted.org/packages/53/5f/23a5a3e7b8403f8dd8fc8a6f8b49f6b55c7d715b77dcf1f8ae919eeb5628/pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:4e0b4220ba5b40d727c7f879eac379b822eee5d8fff418e9d3381ee45b3b0362", size = 2127899 }, - { url = "https://files.pythonhosted.org/packages/c2/ae/aa38bb8dd3d89c2f1d8362dd890ee8f3b967330821d03bbe08fa01ce3766/pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5e4f4bb20d75e9325cc9696c6802657b58bc1dbbe3022f32cc2b2b632c3fbb96", size = 2155726 }, - { url = "https://files.pythonhosted.org/packages/98/61/4f784608cc9e98f70839187117ce840480f768fed5d386f924074bf6213c/pydantic_core-2.27.2-cp39-cp39-win32.whl", hash = "sha256:cca63613e90d001b9f2f9a9ceb276c308bfa2a43fafb75c8031c4f66039e8c6e", size = 1817219 }, - { url = "https://files.pythonhosted.org/packages/57/82/bb16a68e4a1a858bb3768c2c8f1ff8d8978014e16598f001ea29a25bf1d1/pydantic_core-2.27.2-cp39-cp39-win_amd64.whl", hash = "sha256:77d1bca19b0f7021b3a982e6f903dcd5b2b06076def36a652e3907f596e29f67", size = 1985382 }, - { url = "https://files.pythonhosted.org/packages/46/72/af70981a341500419e67d5cb45abe552a7c74b66326ac8877588488da1ac/pydantic_core-2.27.2-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:2bf14caea37e91198329b828eae1618c068dfb8ef17bb33287a7ad4b61ac314e", size = 1891159 }, - { url = "https://files.pythonhosted.org/packages/ad/3d/c5913cccdef93e0a6a95c2d057d2c2cba347815c845cda79ddd3c0f5e17d/pydantic_core-2.27.2-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:b0cb791f5b45307caae8810c2023a184c74605ec3bcbb67d13846c28ff731ff8", size = 1768331 }, - { url = "https://files.pythonhosted.org/packages/f6/f0/a3ae8fbee269e4934f14e2e0e00928f9346c5943174f2811193113e58252/pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:688d3fd9fcb71f41c4c015c023d12a79d1c4c0732ec9eb35d96e3388a120dcf3", size = 1822467 }, - { url = "https://files.pythonhosted.org/packages/d7/7a/7bbf241a04e9f9ea24cd5874354a83526d639b02674648af3f350554276c/pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d591580c34f4d731592f0e9fe40f9cc1b430d297eecc70b962e93c5c668f15f", size = 1979797 }, - { url = "https://files.pythonhosted.org/packages/4f/5f/4784c6107731f89e0005a92ecb8a2efeafdb55eb992b8e9d0a2be5199335/pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:82f986faf4e644ffc189a7f1aafc86e46ef70372bb153e7001e8afccc6e54133", size = 1987839 }, - { url = "https://files.pythonhosted.org/packages/6d/a7/61246562b651dff00de86a5f01b6e4befb518df314c54dec187a78d81c84/pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:bec317a27290e2537f922639cafd54990551725fc844249e64c523301d0822fc", size = 1998861 }, - { url = "https://files.pythonhosted.org/packages/86/aa/837821ecf0c022bbb74ca132e117c358321e72e7f9702d1b6a03758545e2/pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:0296abcb83a797db256b773f45773da397da75a08f5fcaef41f2044adec05f50", size = 2116582 }, - { url = "https://files.pythonhosted.org/packages/81/b0/5e74656e95623cbaa0a6278d16cf15e10a51f6002e3ec126541e95c29ea3/pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:0d75070718e369e452075a6017fbf187f788e17ed67a3abd47fa934d001863d9", size = 2151985 }, - { url = "https://files.pythonhosted.org/packages/63/37/3e32eeb2a451fddaa3898e2163746b0cffbbdbb4740d38372db0490d67f3/pydantic_core-2.27.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:7e17b560be3c98a8e3aa66ce828bdebb9e9ac6ad5466fba92eb74c4c95cb1151", size = 2004715 }, - { url = "https://files.pythonhosted.org/packages/29/0e/dcaea00c9dbd0348b723cae82b0e0c122e0fa2b43fa933e1622fd237a3ee/pydantic_core-2.27.2-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c33939a82924da9ed65dab5a65d427205a73181d8098e79b6b426bdf8ad4e656", size = 1891733 }, - { url = "https://files.pythonhosted.org/packages/86/d3/e797bba8860ce650272bda6383a9d8cad1d1c9a75a640c9d0e848076f85e/pydantic_core-2.27.2-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:00bad2484fa6bda1e216e7345a798bd37c68fb2d97558edd584942aa41b7d278", size = 1768375 }, - { url = "https://files.pythonhosted.org/packages/41/f7/f847b15fb14978ca2b30262548f5fc4872b2724e90f116393eb69008299d/pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c817e2b40aba42bac6f457498dacabc568c3b7a986fc9ba7c8d9d260b71485fb", size = 1822307 }, - { url = "https://files.pythonhosted.org/packages/9c/63/ed80ec8255b587b2f108e514dc03eed1546cd00f0af281e699797f373f38/pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:251136cdad0cb722e93732cb45ca5299fb56e1344a833640bf93b2803f8d1bfd", size = 1979971 }, - { url = "https://files.pythonhosted.org/packages/a9/6d/6d18308a45454a0de0e975d70171cadaf454bc7a0bf86b9c7688e313f0bb/pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d2088237af596f0a524d3afc39ab3b036e8adb054ee57cbb1dcf8e09da5b29cc", size = 1987616 }, - { url = "https://files.pythonhosted.org/packages/82/8a/05f8780f2c1081b800a7ca54c1971e291c2d07d1a50fb23c7e4aef4ed403/pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:d4041c0b966a84b4ae7a09832eb691a35aec90910cd2dbe7a208de59be77965b", size = 1998943 }, - { url = "https://files.pythonhosted.org/packages/5e/3e/fe5b6613d9e4c0038434396b46c5303f5ade871166900b357ada4766c5b7/pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:8083d4e875ebe0b864ffef72a4304827015cff328a1be6e22cc850753bfb122b", size = 2116654 }, - { url = "https://files.pythonhosted.org/packages/db/ad/28869f58938fad8cc84739c4e592989730bfb69b7c90a8fff138dff18e1e/pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f141ee28a0ad2123b6611b6ceff018039df17f32ada8b534e6aa039545a3efb2", size = 2152292 }, - { url = "https://files.pythonhosted.org/packages/a1/0c/c5c5cd3689c32ed1fe8c5d234b079c12c281c051759770c05b8bed6412b5/pydantic_core-2.27.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7d0c8399fcc1848491f00e0314bd59fb34a9c008761bcb422a057670c3f65e35", size = 2004961 }, + { url = "https://files.pythonhosted.org/packages/a8/a4/20da314d277121d6534b3a980b29035dcd51e6744bd79075a6ce8fa4eb8d/pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79", size = 365750, upload-time = "2025-09-04T14:34:20.226Z" }, ] [[package]] name = "pytest" -version = "8.3.4" +version = "9.0.2" source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.10'", +] dependencies = [ - { name = "colorama", marker = "sys_platform == 'win32'" }, - { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, - { name = "iniconfig" }, - { name = "packaging" }, - { name = "pluggy" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/05/35/30e0d83068951d90a01852cb1cef56e5d8a09d20c7f511634cc2f7e0372a/pytest-8.3.4.tar.gz", hash = "sha256:965370d062bce11e73868e0335abac31b4d3de0e82f4007408d242b4f8610761", size = 1445919 } + { name = "colorama", marker = "python_full_version >= '3.10' and sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version == '3.10.*'" }, + { name = "iniconfig", version = "2.3.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, + { name = "packaging", marker = "python_full_version >= '3.10'" }, + { name = "pluggy", marker = "python_full_version >= '3.10'" }, + { name = "pygments", marker = "python_full_version >= '3.10'" }, + { name = "tomli", marker = "python_full_version == '3.10.*'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d1/db/7ef3487e0fb0049ddb5ce41d3a49c235bf9ad299b6a25d5780a89f19230f/pytest-9.0.2.tar.gz", hash = "sha256:75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11", size = 1568901, upload-time = "2025-12-06T21:30:51.014Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl", hash = "sha256:50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6", size = 343083 }, + { url = "https://files.pythonhosted.org/packages/3b/ab/b3226f0bd7cdcf710fbede2b3548584366da3b19b5021e74f5bde2a8fa3f/pytest-9.0.2-py3-none-any.whl", hash = "sha256:711ffd45bf766d5264d487b917733b453d917afd2b0ad65223959f59089f875b", size = 374801, upload-time = "2025-12-06T21:30:49.154Z" }, ] [[package]] @@ -407,88 +555,100 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "six" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432 } +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892 }, + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, ] [[package]] name = "six" version = "1.17.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031 } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050 }, + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, ] [[package]] name = "tomli" -version = "2.2.1" +version = "2.4.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175 } +sdist = { url = "https://files.pythonhosted.org/packages/82/30/31573e9457673ab10aa432461bee537ce6cef177667deca369efb79df071/tomli-2.4.0.tar.gz", hash = "sha256:aa89c3f6c277dd275d8e243ad24f3b5e701491a860d5121f2cdd399fbb31fc9c", size = 17477, upload-time = "2026-01-11T11:22:38.165Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077 }, - { url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429 }, - { url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067 }, - { url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030 }, - { url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898 }, - { url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894 }, - { url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319 }, - { url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273 }, - { url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310 }, - { url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309 }, - { url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762 }, - { url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453 }, - { url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486 }, - { url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349 }, - { url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159 }, - { url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243 }, - { url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645 }, - { url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584 }, - { url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875 }, - { url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418 }, - { url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708 }, - { url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582 }, - { url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543 }, - { url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691 }, - { url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170 }, - { url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530 }, - { url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666 }, - { url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954 }, - { url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724 }, - { url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383 }, - { url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257 }, + { url = "https://files.pythonhosted.org/packages/3c/d9/3dc2289e1f3b32eb19b9785b6a006b28ee99acb37d1d47f78d4c10e28bf8/tomli-2.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b5ef256a3fd497d4973c11bf142e9ed78b150d36f5773f1ca6088c230ffc5867", size = 153663, upload-time = "2026-01-11T11:21:45.27Z" }, + { url = "https://files.pythonhosted.org/packages/51/32/ef9f6845e6b9ca392cd3f64f9ec185cc6f09f0a2df3db08cbe8809d1d435/tomli-2.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5572e41282d5268eb09a697c89a7bee84fae66511f87533a6f88bd2f7b652da9", size = 148469, upload-time = "2026-01-11T11:21:46.873Z" }, + { url = "https://files.pythonhosted.org/packages/d6/c2/506e44cce89a8b1b1e047d64bd495c22c9f71f21e05f380f1a950dd9c217/tomli-2.4.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:551e321c6ba03b55676970b47cb1b73f14a0a4dce6a3e1a9458fd6d921d72e95", size = 236039, upload-time = "2026-01-11T11:21:48.503Z" }, + { url = "https://files.pythonhosted.org/packages/b3/40/e1b65986dbc861b7e986e8ec394598187fa8aee85b1650b01dd925ca0be8/tomli-2.4.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5e3f639a7a8f10069d0e15408c0b96a2a828cfdec6fca05296ebcdcc28ca7c76", size = 243007, upload-time = "2026-01-11T11:21:49.456Z" }, + { url = "https://files.pythonhosted.org/packages/9c/6f/6e39ce66b58a5b7ae572a0f4352ff40c71e8573633deda43f6a379d56b3e/tomli-2.4.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1b168f2731796b045128c45982d3a4874057626da0e2ef1fdd722848b741361d", size = 240875, upload-time = "2026-01-11T11:21:50.755Z" }, + { url = "https://files.pythonhosted.org/packages/aa/ad/cb089cb190487caa80204d503c7fd0f4d443f90b95cf4ef5cf5aa0f439b0/tomli-2.4.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:133e93646ec4300d651839d382d63edff11d8978be23da4cc106f5a18b7d0576", size = 246271, upload-time = "2026-01-11T11:21:51.81Z" }, + { url = "https://files.pythonhosted.org/packages/0b/63/69125220e47fd7a3a27fd0de0c6398c89432fec41bc739823bcc66506af6/tomli-2.4.0-cp311-cp311-win32.whl", hash = "sha256:b6c78bdf37764092d369722d9946cb65b8767bfa4110f902a1b2542d8d173c8a", size = 96770, upload-time = "2026-01-11T11:21:52.647Z" }, + { url = "https://files.pythonhosted.org/packages/1e/0d/a22bb6c83f83386b0008425a6cd1fa1c14b5f3dd4bad05e98cf3dbbf4a64/tomli-2.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:d3d1654e11d724760cdb37a3d7691f0be9db5fbdaef59c9f532aabf87006dbaa", size = 107626, upload-time = "2026-01-11T11:21:53.459Z" }, + { url = "https://files.pythonhosted.org/packages/2f/6d/77be674a3485e75cacbf2ddba2b146911477bd887dda9d8c9dfb2f15e871/tomli-2.4.0-cp311-cp311-win_arm64.whl", hash = "sha256:cae9c19ed12d4e8f3ebf46d1a75090e4c0dc16271c5bce1c833ac168f08fb614", size = 94842, upload-time = "2026-01-11T11:21:54.831Z" }, + { url = "https://files.pythonhosted.org/packages/3c/43/7389a1869f2f26dba52404e1ef13b4784b6b37dac93bac53457e3ff24ca3/tomli-2.4.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:920b1de295e72887bafa3ad9f7a792f811847d57ea6b1215154030cf131f16b1", size = 154894, upload-time = "2026-01-11T11:21:56.07Z" }, + { url = "https://files.pythonhosted.org/packages/e9/05/2f9bf110b5294132b2edf13fe6ca6ae456204f3d749f623307cbb7a946f2/tomli-2.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7d6d9a4aee98fac3eab4952ad1d73aee87359452d1c086b5ceb43ed02ddb16b8", size = 149053, upload-time = "2026-01-11T11:21:57.467Z" }, + { url = "https://files.pythonhosted.org/packages/e8/41/1eda3ca1abc6f6154a8db4d714a4d35c4ad90adc0bcf700657291593fbf3/tomli-2.4.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:36b9d05b51e65b254ea6c2585b59d2c4cb91c8a3d91d0ed0f17591a29aaea54a", size = 243481, upload-time = "2026-01-11T11:21:58.661Z" }, + { url = "https://files.pythonhosted.org/packages/d2/6d/02ff5ab6c8868b41e7d4b987ce2b5f6a51d3335a70aa144edd999e055a01/tomli-2.4.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1c8a885b370751837c029ef9bc014f27d80840e48bac415f3412e6593bbc18c1", size = 251720, upload-time = "2026-01-11T11:22:00.178Z" }, + { url = "https://files.pythonhosted.org/packages/7b/57/0405c59a909c45d5b6f146107c6d997825aa87568b042042f7a9c0afed34/tomli-2.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8768715ffc41f0008abe25d808c20c3d990f42b6e2e58305d5da280ae7d1fa3b", size = 247014, upload-time = "2026-01-11T11:22:01.238Z" }, + { url = "https://files.pythonhosted.org/packages/2c/0e/2e37568edd944b4165735687cbaf2fe3648129e440c26d02223672ee0630/tomli-2.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7b438885858efd5be02a9a133caf5812b8776ee0c969fea02c45e8e3f296ba51", size = 251820, upload-time = "2026-01-11T11:22:02.727Z" }, + { url = "https://files.pythonhosted.org/packages/5a/1c/ee3b707fdac82aeeb92d1a113f803cf6d0f37bdca0849cb489553e1f417a/tomli-2.4.0-cp312-cp312-win32.whl", hash = "sha256:0408e3de5ec77cc7f81960c362543cbbd91ef883e3138e81b729fc3eea5b9729", size = 97712, upload-time = "2026-01-11T11:22:03.777Z" }, + { url = "https://files.pythonhosted.org/packages/69/13/c07a9177d0b3bab7913299b9278845fc6eaaca14a02667c6be0b0a2270c8/tomli-2.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:685306e2cc7da35be4ee914fd34ab801a6acacb061b6a7abca922aaf9ad368da", size = 108296, upload-time = "2026-01-11T11:22:04.86Z" }, + { url = "https://files.pythonhosted.org/packages/18/27/e267a60bbeeee343bcc279bb9e8fbed0cbe224bc7b2a3dc2975f22809a09/tomli-2.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:5aa48d7c2356055feef06a43611fc401a07337d5b006be13a30f6c58f869e3c3", size = 94553, upload-time = "2026-01-11T11:22:05.854Z" }, + { url = "https://files.pythonhosted.org/packages/34/91/7f65f9809f2936e1f4ce6268ae1903074563603b2a2bd969ebbda802744f/tomli-2.4.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:84d081fbc252d1b6a982e1870660e7330fb8f90f676f6e78b052ad4e64714bf0", size = 154915, upload-time = "2026-01-11T11:22:06.703Z" }, + { url = "https://files.pythonhosted.org/packages/20/aa/64dd73a5a849c2e8f216b755599c511badde80e91e9bc2271baa7b2cdbb1/tomli-2.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9a08144fa4cba33db5255f9b74f0b89888622109bd2776148f2597447f92a94e", size = 149038, upload-time = "2026-01-11T11:22:07.56Z" }, + { url = "https://files.pythonhosted.org/packages/9e/8a/6d38870bd3d52c8d1505ce054469a73f73a0fe62c0eaf5dddf61447e32fa/tomli-2.4.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c73add4bb52a206fd0c0723432db123c0c75c280cbd67174dd9d2db228ebb1b4", size = 242245, upload-time = "2026-01-11T11:22:08.344Z" }, + { url = "https://files.pythonhosted.org/packages/59/bb/8002fadefb64ab2669e5b977df3f5e444febea60e717e755b38bb7c41029/tomli-2.4.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1fb2945cbe303b1419e2706e711b7113da57b7db31ee378d08712d678a34e51e", size = 250335, upload-time = "2026-01-11T11:22:09.951Z" }, + { url = "https://files.pythonhosted.org/packages/a5/3d/4cdb6f791682b2ea916af2de96121b3cb1284d7c203d97d92d6003e91c8d/tomli-2.4.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bbb1b10aa643d973366dc2cb1ad94f99c1726a02343d43cbc011edbfac579e7c", size = 245962, upload-time = "2026-01-11T11:22:11.27Z" }, + { url = "https://files.pythonhosted.org/packages/f2/4a/5f25789f9a460bd858ba9756ff52d0830d825b458e13f754952dd15fb7bb/tomli-2.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4cbcb367d44a1f0c2be408758b43e1ffb5308abe0ea222897d6bfc8e8281ef2f", size = 250396, upload-time = "2026-01-11T11:22:12.325Z" }, + { url = "https://files.pythonhosted.org/packages/aa/2f/b73a36fea58dfa08e8b3a268750e6853a6aac2a349241a905ebd86f3047a/tomli-2.4.0-cp313-cp313-win32.whl", hash = "sha256:7d49c66a7d5e56ac959cb6fc583aff0651094ec071ba9ad43df785abc2320d86", size = 97530, upload-time = "2026-01-11T11:22:13.865Z" }, + { url = "https://files.pythonhosted.org/packages/3b/af/ca18c134b5d75de7e8dc551c5234eaba2e8e951f6b30139599b53de9c187/tomli-2.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:3cf226acb51d8f1c394c1b310e0e0e61fecdd7adcb78d01e294ac297dd2e7f87", size = 108227, upload-time = "2026-01-11T11:22:15.224Z" }, + { url = "https://files.pythonhosted.org/packages/22/c3/b386b832f209fee8073c8138ec50f27b4460db2fdae9ffe022df89a57f9b/tomli-2.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:d20b797a5c1ad80c516e41bc1fb0443ddb5006e9aaa7bda2d71978346aeb9132", size = 94748, upload-time = "2026-01-11T11:22:16.009Z" }, + { url = "https://files.pythonhosted.org/packages/f3/c4/84047a97eb1004418bc10bdbcfebda209fca6338002eba2dc27cc6d13563/tomli-2.4.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:26ab906a1eb794cd4e103691daa23d95c6919cc2fa9160000ac02370cc9dd3f6", size = 154725, upload-time = "2026-01-11T11:22:17.269Z" }, + { url = "https://files.pythonhosted.org/packages/a8/5d/d39038e646060b9d76274078cddf146ced86dc2b9e8bbf737ad5983609a0/tomli-2.4.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:20cedb4ee43278bc4f2fee6cb50daec836959aadaf948db5172e776dd3d993fc", size = 148901, upload-time = "2026-01-11T11:22:18.287Z" }, + { url = "https://files.pythonhosted.org/packages/73/e5/383be1724cb30f4ce44983d249645684a48c435e1cd4f8b5cded8a816d3c/tomli-2.4.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:39b0b5d1b6dd03684b3fb276407ebed7090bbec989fa55838c98560c01113b66", size = 243375, upload-time = "2026-01-11T11:22:19.154Z" }, + { url = "https://files.pythonhosted.org/packages/31/f0/bea80c17971c8d16d3cc109dc3585b0f2ce1036b5f4a8a183789023574f2/tomli-2.4.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a26d7ff68dfdb9f87a016ecfd1e1c2bacbe3108f4e0f8bcd2228ef9a766c787d", size = 250639, upload-time = "2026-01-11T11:22:20.168Z" }, + { url = "https://files.pythonhosted.org/packages/2c/8f/2853c36abbb7608e3f945d8a74e32ed3a74ee3a1f468f1ffc7d1cb3abba6/tomli-2.4.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:20ffd184fb1df76a66e34bd1b36b4a4641bd2b82954befa32fe8163e79f1a702", size = 246897, upload-time = "2026-01-11T11:22:21.544Z" }, + { url = "https://files.pythonhosted.org/packages/49/f0/6c05e3196ed5337b9fe7ea003e95fd3819a840b7a0f2bf5a408ef1dad8ed/tomli-2.4.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:75c2f8bbddf170e8effc98f5e9084a8751f8174ea6ccf4fca5398436e0320bc8", size = 254697, upload-time = "2026-01-11T11:22:23.058Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f5/2922ef29c9f2951883525def7429967fc4d8208494e5ab524234f06b688b/tomli-2.4.0-cp314-cp314-win32.whl", hash = "sha256:31d556d079d72db7c584c0627ff3a24c5d3fb4f730221d3444f3efb1b2514776", size = 98567, upload-time = "2026-01-11T11:22:24.033Z" }, + { url = "https://files.pythonhosted.org/packages/7b/31/22b52e2e06dd2a5fdbc3ee73226d763b184ff21fc24e20316a44ccc4d96b/tomli-2.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:43e685b9b2341681907759cf3a04e14d7104b3580f808cfde1dfdb60ada85475", size = 108556, upload-time = "2026-01-11T11:22:25.378Z" }, + { url = "https://files.pythonhosted.org/packages/48/3d/5058dff3255a3d01b705413f64f4306a141a8fd7a251e5a495e3f192a998/tomli-2.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:3d895d56bd3f82ddd6faaff993c275efc2ff38e52322ea264122d72729dca2b2", size = 96014, upload-time = "2026-01-11T11:22:26.138Z" }, + { url = "https://files.pythonhosted.org/packages/b8/4e/75dab8586e268424202d3a1997ef6014919c941b50642a1682df43204c22/tomli-2.4.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:5b5807f3999fb66776dbce568cc9a828544244a8eb84b84b9bafc080c99597b9", size = 163339, upload-time = "2026-01-11T11:22:27.143Z" }, + { url = "https://files.pythonhosted.org/packages/06/e3/b904d9ab1016829a776d97f163f183a48be6a4deb87304d1e0116a349519/tomli-2.4.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c084ad935abe686bd9c898e62a02a19abfc9760b5a79bc29644463eaf2840cb0", size = 159490, upload-time = "2026-01-11T11:22:28.399Z" }, + { url = "https://files.pythonhosted.org/packages/e3/5a/fc3622c8b1ad823e8ea98a35e3c632ee316d48f66f80f9708ceb4f2a0322/tomli-2.4.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0f2e3955efea4d1cfbcb87bc321e00dc08d2bcb737fd1d5e398af111d86db5df", size = 269398, upload-time = "2026-01-11T11:22:29.345Z" }, + { url = "https://files.pythonhosted.org/packages/fd/33/62bd6152c8bdd4c305ad9faca48f51d3acb2df1f8791b1477d46ff86e7f8/tomli-2.4.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0e0fe8a0b8312acf3a88077a0802565cb09ee34107813bba1c7cd591fa6cfc8d", size = 276515, upload-time = "2026-01-11T11:22:30.327Z" }, + { url = "https://files.pythonhosted.org/packages/4b/ff/ae53619499f5235ee4211e62a8d7982ba9e439a0fb4f2f351a93d67c1dd2/tomli-2.4.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:413540dce94673591859c4c6f794dfeaa845e98bf35d72ed59636f869ef9f86f", size = 273806, upload-time = "2026-01-11T11:22:32.56Z" }, + { url = "https://files.pythonhosted.org/packages/47/71/cbca7787fa68d4d0a9f7072821980b39fbb1b6faeb5f5cf02f4a5559fa28/tomli-2.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0dc56fef0e2c1c470aeac5b6ca8cc7b640bb93e92d9803ddaf9ea03e198f5b0b", size = 281340, upload-time = "2026-01-11T11:22:33.505Z" }, + { url = "https://files.pythonhosted.org/packages/f5/00/d595c120963ad42474cf6ee7771ad0d0e8a49d0f01e29576ee9195d9ecdf/tomli-2.4.0-cp314-cp314t-win32.whl", hash = "sha256:d878f2a6707cc9d53a1be1414bbb419e629c3d6e67f69230217bb663e76b5087", size = 108106, upload-time = "2026-01-11T11:22:34.451Z" }, + { url = "https://files.pythonhosted.org/packages/de/69/9aa0c6a505c2f80e519b43764f8b4ba93b5a0bbd2d9a9de6e2b24271b9a5/tomli-2.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:2add28aacc7425117ff6364fe9e06a183bb0251b03f986df0e78e974047571fd", size = 120504, upload-time = "2026-01-11T11:22:35.764Z" }, + { url = "https://files.pythonhosted.org/packages/b3/9f/f1668c281c58cfae01482f7114a4b88d345e4c140386241a1a24dcc9e7bc/tomli-2.4.0-cp314-cp314t-win_arm64.whl", hash = "sha256:2b1e3b80e1d5e52e40e9b924ec43d81570f0e7d09d11081b797bc4692765a3d4", size = 99561, upload-time = "2026-01-11T11:22:36.624Z" }, + { url = "https://files.pythonhosted.org/packages/23/d1/136eb2cb77520a31e1f64cbae9d33ec6df0d78bdf4160398e86eec8a8754/tomli-2.4.0-py3-none-any.whl", hash = "sha256:1f776e7d669ebceb01dee46484485f43a4048746235e683bcdffacdf1fb4785a", size = 14477, upload-time = "2026-01-11T11:22:37.446Z" }, ] [[package]] name = "typing-extensions" -version = "4.12.2" +version = "4.15.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 } +sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 }, + { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, ] [[package]] -name = "urllib3" -version = "2.2.3" +name = "typing-inspection" +version = "0.4.2" source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version < '3.9'", +dependencies = [ + { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/ed/63/22ba4ebfe7430b76388e7cd448d5478814d3032121827c12a2cc287e2260/urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9", size = 300677 } +sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac", size = 126338 }, + { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" }, ] [[package]] name = "urllib3" -version = "2.3.0" +version = "2.6.3" source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.9'", -] -sdist = { url = "https://files.pythonhosted.org/packages/aa/63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66/urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d", size = 307268 } +sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c8/19/4ec628951a74043532ca2cf5d97b7b14863931476d117c471e8e2b1eb39f/urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df", size = 128369 }, + { url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" }, ] From 6d0ebaa945cbbd60724d5b0a5b466894f8a2cb87 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 20 Feb 2026 12:38:56 +0000 Subject: [PATCH 42/46] Bump version to 1.10.0 --- .openapi-generator/FILES | 9 +- README.md | 5 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 5 +- cloudbeds_pms_v1_3/api/guest_api.py | 72 ++-- cloudbeds_pms_v1_3/api/payment_api.py | 36 +- cloudbeds_pms_v1_3/api/room_api.py | 24 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- ...esponseDataInnerAllotmentIntervalsInner.md | 1 + .../docs/GetReservationsResponseDataInner.md | 4 +- ...rvationsResponseDataInnerGuestListValue.md | 8 +- ...vationsWithRateDetailsResponseDataInner.md | 12 +- ...eDetailsResponseDataInnerGuestListValue.md | 65 +++ .../docs/GetRoomBlocksResponseDataInner.md | 2 +- ...etRoomBlocksResponseDataInnerRoomsInner.md | 32 ++ .../docs/GetTaxesAndFeesResponseDataInner.md | 2 +- cloudbeds_pms_v1_3/docs/GuestApi.md | 24 +- cloudbeds_pms_v1_3/docs/PaymentApi.md | 14 +- ...mentBlockRequestAllotmentIntervalsInner.md | 1 + ...llotmentIntervalsInnerAvailabilityInner.md | 1 + ...esponseDataInnerAllotmentIntervalsInner.md | 1 + ...nnerAllotmentIntervalsInnerAvailability.md | 1 + .../docs/PostRoomBlockResponse.md | 2 +- .../docs/PostRoomBlockResponseRoomsInner.md | 2 + ...mentBlockRequestAllotmentIntervalsInner.md | 1 + ...llotmentIntervalsInnerAvailabilityInner.md | 3 +- ...rvalsInnerAvailabilityInnerRestrictions.md | 35 -- ...esponseDataInnerAllotmentIntervalsInner.md | 1 + .../docs/PutRoomBlockResponse.md | 4 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 8 +- cloudbeds_pms_v1_3/models/__init__.py | 3 +- ...se_data_inner_allotment_intervals_inner.py | 4 +- .../get_reservations_response_data_inner.py | 4 +- ...ns_response_data_inner_guest_list_value.py | 8 +- ...s_with_rate_details_response_data_inner.py | 16 +- ...ls_response_data_inner_guest_list_value.py | 380 ++++++++++++++++++ .../get_room_blocks_response_data_inner.py | 6 +- ...blocks_response_data_inner_rooms_inner.py} | 62 +-- .../get_taxes_and_fees_response_data_inner.py | 2 +- ...block_request_allotment_intervals_inner.py | 11 +- ...ment_intervals_inner_availability_inner.py | 11 +- ...se_data_inner_allotment_intervals_inner.py | 4 +- ..._allotment_intervals_inner_availability.py | 6 +- .../models/post_room_block_response.py | 2 +- .../post_room_block_response_rooms_inner.py | 10 +- ...block_request_allotment_intervals_inner.py | 9 +- ...ment_intervals_inner_availability_inner.py | 15 +- ...se_data_inner_allotment_intervals_inner.py | 4 +- .../models/put_room_block_response.py | 4 +- .../test_get_allotment_blocks_response.py | 1 + ...et_allotment_blocks_response_data_inner.py | 1 + ...se_data_inner_allotment_intervals_inner.py | 1 + .../test/test_get_reservations_response.py | 12 +- ...st_get_reservations_response_data_inner.py | 12 +- ...ns_response_data_inner_guest_list_value.py | 8 +- ...reservations_with_rate_details_response.py | 20 +- ...s_with_rate_details_response_data_inner.py | 20 +- ...ls_response_data_inner_guest_list_value.py | 114 ++++++ .../test/test_get_room_blocks_response.py | 6 +- ...est_get_room_blocks_response_data_inner.py | 6 +- ...blocks_response_data_inner_rooms_inner.py} | 32 +- ...block_request_allotment_intervals_inner.py | 6 +- ...ment_intervals_inner_availability_inner.py | 5 +- ...st_post_create_allotment_block_response.py | 6 +- ...ate_allotment_block_response_data_inner.py | 6 +- ...se_data_inner_allotment_intervals_inner.py | 6 +- ..._allotment_intervals_inner_availability.py | 5 +- .../test/test_post_room_block_response.py | 4 +- ...st_post_room_block_response_rooms_inner.py | 4 +- ...block_request_allotment_intervals_inner.py | 8 +- ...ment_intervals_inner_availability_inner.py | 7 +- ...st_post_update_allotment_block_response.py | 6 +- ...ate_allotment_block_response_data_inner.py | 6 +- ...se_data_inner_allotment_intervals_inner.py | 6 +- .../test/test_put_room_block_response.py | 4 +- openapitools.json | 2 +- 77 files changed, 958 insertions(+), 298 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md create mode 100644 cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md delete mode 100644 cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md create mode 100644 cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py rename cloudbeds_pms_v1_3/models/{post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py => get_room_blocks_response_data_inner_rooms_inner.py} (53%) create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py rename cloudbeds_pms_v1_3/test/{test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py => test_get_room_blocks_response_data_inner_rooms_inner.py} (61%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 39ff9bb..3a58c33 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -176,10 +176,12 @@ cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md +cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md cloudbeds_pms_v1_3/docs/GetRoomTypesResponseDataInner.md cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponse.md @@ -336,7 +338,6 @@ cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockNotesResponseData.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md -cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAutoRelease.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponse.md cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md @@ -507,10 +508,12 @@ cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py cloudbeds_pms_v1_3/models/get_room_blocks_response.py cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_room_types_response.py cloudbeds_pms_v1_3/models/get_room_types_response_data_inner.py cloudbeds_pms_v1_3/models/get_rooms_fees_and_taxes_response.py @@ -658,7 +661,6 @@ cloudbeds_pms_v1_3/models/post_update_allotment_block_notes_response_data.py cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py cloudbeds_pms_v1_3/models/post_update_allotment_block_request_auto_release.py cloudbeds_pms_v1_3/models/post_update_allotment_block_response.py cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner.py @@ -832,10 +834,12 @@ cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_room_types_response.py cloudbeds_pms_v1_3/test/test_get_room_types_response_data_inner.py cloudbeds_pms_v1_3/test/test_get_rooms_fees_and_taxes_response.py @@ -992,7 +996,6 @@ cloudbeds_pms_v1_3/test/test_post_update_allotment_block_notes_response_data.py cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing.py -cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_auto_release.py cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py diff --git a/README.md b/README.md index 0319458..b81ac11 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.9.0 +- Package version: 1.10.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -339,10 +339,12 @@ Class | Method | HTTP request | Description - [GetReservationsWithRateDetailsResponse](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md) - [GetReservationsWithRateDetailsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md) - [GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) + - [GetReservationsWithRateDetailsResponseDataInnerGuestListValue](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md) - [GetReservationsWithRateDetailsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) - [GetReservationsWithRateDetailsResponseDataInnerSource](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md) - [GetRoomBlocksResponse](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md) - [GetRoomBlocksResponseDataInner](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md) + - [GetRoomBlocksResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md) - [GetRoomTypesResponse](cloudbeds_pms_v1_3/docs/GetRoomTypesResponse.md) - [GetRoomTypesResponseDataInner](cloudbeds_pms_v1_3/docs/GetRoomTypesResponseDataInner.md) - [GetRoomsFeesAndTaxesResponse](cloudbeds_pms_v1_3/docs/GetRoomsFeesAndTaxesResponse.md) @@ -490,7 +492,6 @@ Class | Method | HTTP request | Description - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md) - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) - - [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) - [PostUpdateAllotmentBlockRequestAutoRelease](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAutoRelease.md) - [PostUpdateAllotmentBlockResponse](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponse.md) - [PostUpdateAllotmentBlockResponseDataInner](cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInner.md) diff --git a/VERSION b/VERSION index f8e233b..81c871d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.9.0 +1.10.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index bb28ff9..535ab38 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.9.0" +__version__ = "1.10.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -194,10 +194,12 @@ from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner import GetRoomBlocksResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse @@ -345,7 +347,6 @@ from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner diff --git a/cloudbeds_pms_v1_3/api/guest_api.py b/cloudbeds_pms_v1_3/api/guest_api.py index a929b3e..a31a053 100644 --- a/cloudbeds_pms_v1_3/api/guest_api.py +++ b/cloudbeds_pms_v1_3/api/guest_api.py @@ -3797,11 +3797,11 @@ def post_guest_post( guest_state: Optional[StrictStr] = None, guest_zip: Optional[StrictStr] = None, guest_birth_date: Optional[date] = None, - guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
cpf - Brazilian Tax ID
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or CPF)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF)")] = None, guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, @@ -3856,15 +3856,15 @@ def post_guest_post( :type guest_zip: str :param guest_birth_date: :type guest_birth_date: date - :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
+ :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
cpf - Brazilian Tax ID
:type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI or CPF) :type guest_document_issue_date: date :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) :type guest_document_expiration_date: date :param guest_requirements: Object with guest requirements information. :type guest_requirements: List[object] @@ -3968,11 +3968,11 @@ def post_guest_post_with_http_info( guest_state: Optional[StrictStr] = None, guest_zip: Optional[StrictStr] = None, guest_birth_date: Optional[date] = None, - guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
cpf - Brazilian Tax ID
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or CPF)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF)")] = None, guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, @@ -4027,15 +4027,15 @@ def post_guest_post_with_http_info( :type guest_zip: str :param guest_birth_date: :type guest_birth_date: date - :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
+ :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
cpf - Brazilian Tax ID
:type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI or CPF) :type guest_document_issue_date: date :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) :type guest_document_expiration_date: date :param guest_requirements: Object with guest requirements information. :type guest_requirements: List[object] @@ -4139,11 +4139,11 @@ def post_guest_post_without_preload_content( guest_state: Optional[StrictStr] = None, guest_zip: Optional[StrictStr] = None, guest_birth_date: Optional[date] = None, - guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
")] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="Document Type
dni - Identity card
nie - Residence permit
na - non selection
cpf - Brazilian Tax ID
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or CPF)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF)")] = None, guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, custom_fields: Annotated[Optional[List[PostGuestRequestCustomFieldsInner]], Field(description="Only guest custom fields are allowed.")] = None, guest_note: Annotated[Optional[StrictStr], Field(description="Note to be added to the Guest")] = None, @@ -4198,15 +4198,15 @@ def post_guest_post_without_preload_content( :type guest_zip: str :param guest_birth_date: :type guest_birth_date: date - :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
+ :param guest_document_type: Document Type
dni - Identity card
nie - Residence permit
na - non selection
cpf - Brazilian Tax ID
:type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI or CPF) :type guest_document_issue_date: date :param guest_document_issuing_country: Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) :type guest_document_expiration_date: date :param guest_requirements: Object with guest requirements information. :type guest_requirements: List[object] @@ -5149,11 +5149,11 @@ def put_guest_put( guest_state: Optional[StrictStr] = None, guest_zip: Optional[StrictStr] = None, guest_birth_date: Optional[date] = None, - guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
cpf - Brazilian Tax ID
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or CPF)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF)")] = None, guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, @@ -5206,15 +5206,15 @@ def put_guest_put( :type guest_zip: str :param guest_birth_date: :type guest_birth_date: date - :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
+ :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
cpf - Brazilian Tax ID
:type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI or CPF) :type guest_document_issue_date: date :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) :type guest_document_expiration_date: date :param guest_requirements: Object with guest requirements information. :type guest_requirements: List[object] @@ -5312,11 +5312,11 @@ def put_guest_put_with_http_info( guest_state: Optional[StrictStr] = None, guest_zip: Optional[StrictStr] = None, guest_birth_date: Optional[date] = None, - guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
cpf - Brazilian Tax ID
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or CPF)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF)")] = None, guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, @@ -5369,15 +5369,15 @@ def put_guest_put_with_http_info( :type guest_zip: str :param guest_birth_date: :type guest_birth_date: date - :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
+ :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
cpf - Brazilian Tax ID
:type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI or CPF) :type guest_document_issue_date: date :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) :type guest_document_expiration_date: date :param guest_requirements: Object with guest requirements information. :type guest_requirements: List[object] @@ -5475,11 +5475,11 @@ def put_guest_put_without_preload_content( guest_state: Optional[StrictStr] = None, guest_zip: Optional[StrictStr] = None, guest_birth_date: Optional[date] = None, - guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
")] = None, + guest_document_type: Annotated[Optional[StrictStr], Field(description="It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
cpf - Brazilian Tax ID
")] = None, guest_document_number: Annotated[Optional[StrictStr], Field(description="(mandatory when guestDocumentType is sent)")] = None, - guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI)")] = None, + guest_document_issue_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or CPF)")] = None, guest_document_issuing_country: Annotated[Optional[StrictStr], Field(description="ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent)")] = None, - guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI or NIE)")] = None, + guest_document_expiration_date: Annotated[Optional[date], Field(description="(mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF)")] = None, guest_requirements: Annotated[Optional[List[Dict[str, Any]]], Field(description="Object with guest requirements information.")] = None, guest_custom_fields: Optional[List[PutGuestRequestGuestCustomFieldsInner]] = None, guest_company_name: Annotated[Optional[StrictStr], Field(description="Guest company name")] = None, @@ -5532,15 +5532,15 @@ def put_guest_put_without_preload_content( :type guest_zip: str :param guest_birth_date: :type guest_birth_date: date - :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
+ :param guest_document_type: It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
cpf - Brazilian Tax ID
:type guest_document_type: str :param guest_document_number: (mandatory when guestDocumentType is sent) :type guest_document_number: str - :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI) + :param guest_document_issue_date: (mandatory when guestDocumentType is sent and is not DNI or CPF) :type guest_document_issue_date: date :param guest_document_issuing_country: ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) :type guest_document_issuing_country: str - :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI or NIE) + :param guest_document_expiration_date: (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) :type guest_document_expiration_date: date :param guest_requirements: Object with guest requirements information. :type guest_requirements: List[object] diff --git a/cloudbeds_pms_v1_3/api/payment_api.py b/cloudbeds_pms_v1_3/api/payment_api.py index 798cc8b..852075a 100644 --- a/cloudbeds_pms_v1_3/api/payment_api.py +++ b/cloudbeds_pms_v1_3/api/payment_api.py @@ -601,6 +601,7 @@ def post_charge_post( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -637,6 +638,8 @@ def post_charge_post( :type currency: str :param description: Description of the payment to display on folio :type description: str + :param card_token: cardToken provided by Cloudbeds vault + :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -674,6 +677,7 @@ def post_charge_post( amount=amount, currency=currency, description=description, + card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -708,6 +712,7 @@ def post_charge_post_with_http_info( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -744,6 +749,8 @@ def post_charge_post_with_http_info( :type currency: str :param description: Description of the payment to display on folio :type description: str + :param card_token: cardToken provided by Cloudbeds vault + :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -781,6 +788,7 @@ def post_charge_post_with_http_info( amount=amount, currency=currency, description=description, + card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -815,6 +823,7 @@ def post_charge_post_without_preload_content( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -851,6 +860,8 @@ def post_charge_post_without_preload_content( :type currency: str :param description: Description of the payment to display on folio :type description: str + :param card_token: cardToken provided by Cloudbeds vault + :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -888,6 +899,7 @@ def post_charge_post_without_preload_content( amount=amount, currency=currency, description=description, + card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -917,6 +929,7 @@ def _post_charge_post_serialize( amount, currency, description, + card_token, payment_method_id, is_deposit, redirect_url, @@ -960,6 +973,8 @@ def _post_charge_post_serialize( _form_params.append(('currency', currency)) if description is not None: _form_params.append(('description', description)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) if payment_method_id is not None: _form_params.append(('paymentMethodId', payment_method_id)) if is_deposit is not None: @@ -1661,6 +1676,7 @@ def post_payment_post( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1682,7 +1698,7 @@ def post_payment_post( ) -> PostPaymentResponse: """postPayment - Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. :param property_id: Property ID :type property_id: str @@ -1690,6 +1706,8 @@ def post_payment_post( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str + :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent + :type group_code: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1728,6 +1746,7 @@ def post_payment_post( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, + group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1760,6 +1779,7 @@ def post_payment_post_with_http_info( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1781,7 +1801,7 @@ def post_payment_post_with_http_info( ) -> ApiResponse[PostPaymentResponse]: """postPayment - Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. :param property_id: Property ID :type property_id: str @@ -1789,6 +1809,8 @@ def post_payment_post_with_http_info( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str + :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent + :type group_code: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1827,6 +1849,7 @@ def post_payment_post_with_http_info( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, + group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1859,6 +1882,7 @@ def post_payment_post_without_preload_content( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1880,7 +1904,7 @@ def post_payment_post_without_preload_content( ) -> RESTResponseType: """postPayment - Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. :param property_id: Property ID :type property_id: str @@ -1888,6 +1912,8 @@ def post_payment_post_without_preload_content( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str + :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent + :type group_code: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1926,6 +1952,7 @@ def post_payment_post_without_preload_content( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, + group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1953,6 +1980,7 @@ def _post_payment_post_serialize( property_id, reservation_id, house_account_id, + group_code, sub_reservation_id, type, amount, @@ -1989,6 +2017,8 @@ def _post_payment_post_serialize( _form_params.append(('reservationID', reservation_id)) if house_account_id is not None: _form_params.append(('houseAccountID', house_account_id)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) if sub_reservation_id is not None: _form_params.append(('subReservationID', sub_reservation_id)) if type is not None: diff --git a/cloudbeds_pms_v1_3/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py index b50aa01..28e8502 100644 --- a/cloudbeds_pms_v1_3/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -3475,7 +3475,7 @@ def post_room_block_post( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3508,7 +3508,7 @@ def post_room_block_post( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -3582,7 +3582,7 @@ def post_room_block_post_with_http_info( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3615,7 +3615,7 @@ def post_room_block_post_with_http_info( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -3689,7 +3689,7 @@ def post_room_block_post_without_preload_content( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3722,7 +3722,7 @@ def post_room_block_post_without_preload_content( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4541,7 +4541,7 @@ def put_room_block_put( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4574,7 +4574,7 @@ def put_room_block_put( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4648,7 +4648,7 @@ def put_room_block_put_with_http_info( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4681,7 +4681,7 @@ def put_room_block_put_with_http_info( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4755,7 +4755,7 @@ def put_room_block_put_without_preload_content( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4788,7 +4788,7 @@ def put_room_block_put_without_preload_content( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index aa899ff..5a8a533 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.9.0/python' + self.user_agent = 'OpenAPI-Generator/1.10.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 6d837f6..712e7b0 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.9.0".\ + "SDK Package Version: 1.10.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md index bcd225f..f7648b2 100644 --- a/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**policy_id** | **str** | Policy ID associated with the interval | [optional] **room_type_id** | **str** | Room type ID | [optional] **start_date** | **date** | Interval start date | [optional] **end_date** | **date** | Interval end date | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md index 1d95d17..0262f7f 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInner.md @@ -17,8 +17,8 @@ Name | Type | Description | Notes **end_date** | **date** | | [optional] **allotment_block_code** | **str** | Allotment block code | [optional] **group_code** | **str** | Group profile code | [optional] -**adults** | **int** | | [optional] -**children** | **int** | | [optional] +**adults** | **str** | | [optional] +**children** | **str** | | [optional] **balance** | **float** | | [optional] **source_name** | **str** | Source of reservation | [optional] **source_id** | **str** | Booking source unique id | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md index 60a86aa..02de020 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md @@ -19,19 +19,19 @@ Name | Type | Description | Notes **guest_state** | **str** | | [optional] **guest_country** | **str** | | [optional] **guest_zip** | **str** | | [optional] -**guest_birthdate** | **date** | | [optional] +**guest_birthdate** | **str** | | [optional] **guest_document_type** | **str** | | [optional] **guest_document_number** | **str** | | [optional] -**guest_document_issue_date** | **date** | | [optional] +**guest_document_issue_date** | **str** | | [optional] **guest_document_issuing_country** | **str** | | [optional] -**guest_document_expiration_date** | **date** | | [optional] +**guest_document_expiration_date** | **str** | | [optional] **tax_id** | **str** | Guest's tax ID | [optional] **company_tax_id** | **str** | Guest's company tax ID | [optional] **company_name** | **str** | Guest's company name | [optional] **sub_reservation_id** | **str** | | [optional] **start_date** | **date** | | [optional] **end_date** | **date** | | [optional] -**assigned_room** | **str** | Returns true if guest has roomed assigned, false if not | [optional] +**assigned_room** | **bool** | Returns true if guest has roomed assigned, false if not | [optional] **room_id** | **str** | Room ID where guest is assigned | [optional] **room_name** | **str** | Room Name where guest is assigned | [optional] **room_type_name** | **str** | Room Name where guest is assigned | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md index feef90f..a08ed26 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md @@ -19,18 +19,18 @@ Name | Type | Description | Notes **reservation_check_out** | **datetime** | | [optional] **guest_id** | **str** | Main guest ID | [optional] **profile_id** | **str** | Main guest profile ID | [optional] -**guest_country** | **int** | Main guest Country | [optional] +**guest_country** | **str** | Main guest Country | [optional] **source_name** | **str** | Reservation source | [optional] **source** | [**GetReservationsWithRateDetailsResponseDataInnerSource**](GetReservationsWithRateDetailsResponseDataInnerSource.md) | | [optional] -**source_category** | **int** | Reservation source category | [optional] -**source_reservation_id** | **int** | Reservation ID on the source | [optional] -**property_currency** | **int** | Property currency ISO-formatted (3 characters) | [optional] +**source_category** | **str** | Reservation source category | [optional] +**source_reservation_id** | **str** | Reservation ID on the source | [optional] +**property_currency** | **str** | Property currency ISO-formatted (3 characters) | [optional] **balance_detailed** | [**GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed**](GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) | | [optional] -**detailed_rates** | **List[object]** | Associative object, where key is the date, and value is the total rate for that date. | [optional] +**detailed_rates** | **object** | Associative object, where key is the date, and value is the total rate for that date. | [optional] **rooms** | [**List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]**](GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) | Array with rooms information | [optional] **origin** | **str** | Reservation origin | [optional] **meal_plans** | **str** | Reservation meal plans | [optional] -**guest_list** | [**Dict[str, GetReservationsResponseDataInnerGuestListValue]**](GetReservationsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] +**guest_list** | [**Dict[str, GetReservationsWithRateDetailsResponseDataInnerGuestListValue]**](GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] **third_party_identifier** | **str** | | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of reservation custom fields. Only returned if \"includeCustomFields\" is true | [optional] **estimated_arrival_time** | **str** | Estimated arrival time, 24-hour format. | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md new file mode 100644 index 0000000..4b2b44d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md @@ -0,0 +1,65 @@ +# GetReservationsWithRateDetailsResponseDataInnerGuestListValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | ID of the guest | [optional] +**guest_name** | **str** | | [optional] +**guest_first_name** | **str** | | [optional] +**guest_last_name** | **str** | | [optional] +**guest_gender** | **str** | | [optional] +**guest_email** | **str** | | [optional] +**guest_phone** | **str** | | [optional] +**guest_cell_phone** | **str** | | [optional] +**guest_address** | **str** | | [optional] +**guest_address2** | **str** | | [optional] +**guest_city** | **str** | | [optional] +**guest_state** | **str** | | [optional] +**guest_country** | **str** | | [optional] +**guest_zip** | **str** | | [optional] +**guest_birthdate** | **date** | | [optional] +**guest_document_type** | **str** | | [optional] +**guest_document_number** | **str** | | [optional] +**guest_document_issue_date** | **str** | | [optional] +**guest_document_issuing_country** | **str** | | [optional] +**guest_document_expiration_date** | **str** | | [optional] +**tax_id** | **str** | Guest's tax ID | [optional] +**company_tax_id** | **str** | Guest's company tax ID | [optional] +**company_name** | **str** | Guest's company name | [optional] +**sub_reservation_id** | **str** | | [optional] +**start_date** | **date** | | [optional] +**end_date** | **date** | | [optional] +**assigned_room** | **bool** | Returns true if guest has roomed assigned, false if not | [optional] +**room_id** | **str** | Room ID where guest is assigned | [optional] +**room_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**rooms** | [**List[GetReservationsResponseDataInnerGuestListValueRoomsInner]**](GetReservationsResponseDataInnerGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] +**unassigned_rooms** | [**List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]**](GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) | List of all unassigned rooms | [optional] +**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`. | [optional] +**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of guest custom fields | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**is_main_guest** | **bool** | Flag indicating the guest is the main guest on the reservation | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a JSON string +get_reservations_with_rate_details_response_data_inner_guest_list_value_instance = GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponseDataInnerGuestListValue.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_data_inner_guest_list_value_dict = get_reservations_with_rate_details_response_data_inner_guest_list_value_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a dict +get_reservations_with_rate_details_response_data_inner_guest_list_value_from_dict = GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_dict(get_reservations_with_rate_details_response_data_inner_guest_list_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md index 47d88e3..024a7aa 100644 --- a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md) | All rooms for Block ID | [optional] +**rooms** | [**List[GetRoomBlocksResponseDataInnerRoomsInner]**](GetRoomBlocksResponseDataInnerRoomsInner.md) | All rooms for Block ID. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] **count** | **int** | Number of results (properties) returned. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md new file mode 100644 index 0000000..c829c88 --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md @@ -0,0 +1,32 @@ +# GetRoomBlocksResponseDataInnerRoomsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**event_id** | **str** | Event ID (unique identifier for this specific room's block entry) | [optional] +**room_id** | **str** | Room ID | [optional] +**room_type_id** | **str** | Room type ID | [optional] +**is_source** | **bool** | Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room. | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner import GetRoomBlocksResponseDataInnerRoomsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GetRoomBlocksResponseDataInnerRoomsInner from a JSON string +get_room_blocks_response_data_inner_rooms_inner_instance = GetRoomBlocksResponseDataInnerRoomsInner.from_json(json) +# print the JSON string representation of the object +print(GetRoomBlocksResponseDataInnerRoomsInner.to_json()) + +# convert the object into a dict +get_room_blocks_response_data_inner_rooms_inner_dict = get_room_blocks_response_data_inner_rooms_inner_instance.to_dict() +# create an instance of GetRoomBlocksResponseDataInnerRoomsInner from a dict +get_room_blocks_response_data_inner_rooms_inner_from_dict = GetRoomBlocksResponseDataInnerRoomsInner.from_dict(get_room_blocks_response_data_inner_rooms_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md index 01a07dd..a7e66cc 100644 --- a/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetTaxesAndFeesResponseDataInner.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **tax_id** | **str** | Tax's unique identifier. Only exists if type = tax. | [optional] **name** | **str** | Name | [optional] **code** | **str** | Code | [optional] -**kind** | **str** | Tax kind. Currently supports \"vat\" or null. Only exists if type = tax. | [optional] +**kind** | **str** | Tax kind. Currently supports \"vat\", \"municipal_tax\" or null. Only exists if type = tax. | [optional] **amount** | **str** | Amount | [optional] **amount_adult** | [**GetTaxesAndFeesResponseDataInnerAmountAdult**](GetTaxesAndFeesResponseDataInnerAmountAdult.md) | | [optional] **amount_child** | [**GetTaxesAndFeesResponseDataInnerAmountChild**](GetTaxesAndFeesResponseDataInnerAmountChild.md) | | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GuestApi.md b/cloudbeds_pms_v1_3/docs/GuestApi.md index 225aa8e..c8d23e8 100644 --- a/cloudbeds_pms_v1_3/docs/GuestApi.md +++ b/cloudbeds_pms_v1_3/docs/GuestApi.md @@ -1003,11 +1003,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: guest_state = 'guest_state_example' # str | (optional) guest_zip = 'guest_zip_example' # str | (optional) guest_birth_date = '2013-10-20' # date | (optional) - guest_document_type = 'guest_document_type_example' # str | Document Type
dni - Identity card
nie - Residence permit
na - non selection
(optional) + guest_document_type = 'guest_document_type_example' # str | Document Type
dni - Identity card
nie - Residence permit
na - non selection
cpf - Brazilian Tax ID
(optional) guest_document_number = 'guest_document_number_example' # str | (mandatory when guestDocumentType is sent) (optional) - guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) + guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or CPF) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) - guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) + guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) (optional) guest_requirements = None # List[object] | Object with guest requirements information. (optional) custom_fields = [cloudbeds_pms_v1_3.PostGuestRequestCustomFieldsInner()] # List[PostGuestRequestCustomFieldsInner] | Only guest custom fields are allowed. (optional) guest_note = 'guest_note_example' # str | Note to be added to the Guest (optional) @@ -1047,11 +1047,11 @@ Name | Type | Description | Notes **guest_state** | **str**| | [optional] **guest_zip** | **str**| | [optional] **guest_birth_date** | **date**| | [optional] - **guest_document_type** | **str**| Document Type<br /> dni - Identity card<br /> nie - Residence permit<br /> na - non selection<br /> | [optional] + **guest_document_type** | **str**| Document Type<br /> dni - Identity card<br /> nie - Residence permit<br /> na - non selection<br /> cpf - Brazilian Tax ID<br /> | [optional] **guest_document_number** | **str**| (mandatory when guestDocumentType is sent) | [optional] - **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI) | [optional] + **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or CPF) | [optional] **guest_document_issuing_country** | **str**| Valid ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] - **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or NIE) | [optional] + **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) | [optional] **guest_requirements** | [**List[object]**](object.md)| Object with guest requirements information. | [optional] **custom_fields** | [**List[PostGuestRequestCustomFieldsInner]**](PostGuestRequestCustomFieldsInner.md)| Only guest custom fields are allowed. | [optional] **guest_note** | **str**| Note to be added to the Guest | [optional] @@ -1320,11 +1320,11 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: guest_state = 'guest_state_example' # str | (optional) guest_zip = 'guest_zip_example' # str | (optional) guest_birth_date = '2013-10-20' # date | (optional) - guest_document_type = 'guest_document_type_example' # str | It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
(optional) + guest_document_type = 'guest_document_type_example' # str | It is mandatory to send all document information
na - non selection
dni - Identity card
nie - Residence permit
cpf - Brazilian Tax ID
(optional) guest_document_number = 'guest_document_number_example' # str | (mandatory when guestDocumentType is sent) (optional) - guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI) (optional) + guest_document_issue_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or CPF) (optional) guest_document_issuing_country = 'guest_document_issuing_country_example' # str | ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) (optional) - guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI or NIE) (optional) + guest_document_expiration_date = '2013-10-20' # date | (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) (optional) guest_requirements = None # List[object] | Object with guest requirements information. (optional) guest_custom_fields = [cloudbeds_pms_v1_3.PutGuestRequestGuestCustomFieldsInner()] # List[PutGuestRequestGuestCustomFieldsInner] | (optional) guest_company_name = 'guest_company_name_example' # str | Guest company name (optional) @@ -1362,11 +1362,11 @@ Name | Type | Description | Notes **guest_state** | **str**| | [optional] **guest_zip** | **str**| | [optional] **guest_birth_date** | **date**| | [optional] - **guest_document_type** | **str**| It is mandatory to send all document information<br /> na - non selection<br /> dni - Identity card<br /> nie - Residence permit<br /> | [optional] + **guest_document_type** | **str**| It is mandatory to send all document information<br /> na - non selection<br /> dni - Identity card<br /> nie - Residence permit<br /> cpf - Brazilian Tax ID<br /> | [optional] **guest_document_number** | **str**| (mandatory when guestDocumentType is sent) | [optional] - **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI) | [optional] + **guest_document_issue_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or CPF) | [optional] **guest_document_issuing_country** | **str**| ISO-Code for Country (2 characters) (mandatory when guestDocumentType is sent) | [optional] - **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI or NIE) | [optional] + **guest_document_expiration_date** | **date**| (mandatory when guestDocumentType is sent and is not DNI, NIE, or CPF) | [optional] **guest_requirements** | [**List[object]**](object.md)| Object with guest requirements information. | [optional] **guest_custom_fields** | [**List[PutGuestRequestGuestCustomFieldsInner]**](PutGuestRequestGuestCustomFieldsInner.md)| | [optional] **guest_company_name** | **str**| Guest company name | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PaymentApi.md b/cloudbeds_pms_v1_3/docs/PaymentApi.md index 4752246..1561968 100644 --- a/cloudbeds_pms_v1_3/docs/PaymentApi.md +++ b/cloudbeds_pms_v1_3/docs/PaymentApi.md @@ -180,7 +180,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_charge_post** -> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) +> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) postCharge @@ -228,13 +228,14 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: amount = 'amount_example' # str | Amount to charge (optional) currency = 'currency_example' # str | Currency to charge (optional) description = 'description_example' # str | Description of the payment to display on folio (optional) + card_token = 'card_token_example' # str | cardToken provided by Cloudbeds vault (optional) payment_method_id = 'payment_method_id_example' # str | Payment method UUID (optional) is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) redirect_url = 'redirect_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) try: # postCharge - api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) + api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) print("The response of PaymentApi->post_charge_post:\n") pprint(api_response) except Exception as e: @@ -256,6 +257,7 @@ Name | Type | Description | Notes **amount** | **str**| Amount to charge | [optional] **currency** | **str**| Currency to charge | [optional] **description** | **str**| Description of the payment to display on folio | [optional] + **card_token** | **str**| cardToken provided by Cloudbeds vault | [optional] **payment_method_id** | **str**| Payment method UUID | [optional] **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] **redirect_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] @@ -458,11 +460,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_payment_post** -> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) +> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) postPayment -Add a payment to a specified reservation or house account. If both Reservation ID and HouseAccountID are informed, only the former is taken in consideration. +Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. ### Example @@ -501,6 +503,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) + group_code = 'group_code_example' # str | Group Code. Required if neither reservationID nor houseAccountID is sent (optional) sub_reservation_id = 'sub_reservation_id_example' # str | The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. (optional) type = 'type_example' # str | Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. (optional) amount = 3.4 # float | Amount paid on this transaction (optional) @@ -510,7 +513,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # postPayment - api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) + api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) print("The response of PaymentApi->post_payment_post:\n") pprint(api_response) except Exception as e: @@ -527,6 +530,7 @@ Name | Type | Description | Notes **property_id** | **str**| Property ID | [optional] **reservation_id** | **str**| Reservation identifier | [optional] **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] + **group_code** | **str**| Group Code. Required if neither reservationID nor houseAccountID is sent | [optional] **sub_reservation_id** | **str**| The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. | [optional] **type** | **str**| Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] **amount** | **float**| Amount paid on this transaction | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md index 7987c77..0cc3bee 100644 --- a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**policy_id** | **str** | Policy ID to associate with the interval | [optional] **availability** | [**List[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) | | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md index b24224b..9bb3d0e 100644 --- a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **rate** | **str** | the price if applicable | [optional] **guest_pricing** | [**PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) | | [optional] **restrictions** | [**PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) | | [optional] +**rooms** | **List[str]** | Array of room IDs assigned to this date | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md index ec04b7f..e70a29b 100644 --- a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**policy_id** | **str** | Policy ID associated with the interval | [optional] **room_type_id** | **str** | Room type ID | [optional] **start_date** | **date** | Interval start date | [optional] **end_date** | **date** | Interval end date | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md index a8df6fe..2e3e7b7 100644 --- a/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md +++ b/cloudbeds_pms_v1_3/docs/PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **block_confirmed** | **int** | Number of units booked for the room type for this day | [optional] **rate** | **str** | the price | [optional] **guest_pricing** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.md) | | [optional] +**rooms** | **List[str]** | Array of room IDs assigned to this date | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md index 111fa86..6d5f529 100644 --- a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md index 173e1f4..0ee62b1 100644 --- a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**event_id** | **str** | Event ID (unique identifier for this specific room's block entry) | [optional] **room_id** | **str** | Room ID | [optional] **room_type_id** | **str** | Room Type ID | [optional] +**is_source** | **bool** | Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md index 079570f..878e4a9 100644 --- a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**policy_id** | **str** | Policy ID to associate with the interval | [optional] **room_type_id** | **str** | Room type id | [optional] **availability** | [**List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]**](PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md) | Interval availability data by day in interval | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md index 2c15f18..11bc804 100644 --- a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.md @@ -9,7 +9,8 @@ Name | Type | Description | Notes **var_date** | **date** | the day within the interval (YYYY-MM-DD) | [optional] **rate** | **str** | the price if applicable | [optional] **guest_pricing** | [**PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing**](PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.md) | | [optional] -**restrictions** | [**PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions**](PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) | | [optional] +**restrictions** | [**PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions**](PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md) | | [optional] +**rooms** | **List[str]** | Array of room IDs assigned to this date the number of applicable keys varies here based on the occupancy settings for the room type. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md deleted file mode 100644 index 540ba0e..0000000 --- a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.md +++ /dev/null @@ -1,35 +0,0 @@ -# PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions - -Interval restrictions if applicable - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min_los** | **int** | Minimum length of stay requirement | [optional] -**max_los** | **int** | Maximum length of stay requirement | [optional] -**cut_off_days** | **int** | How many days before arrival should guests be required to book | [optional] -**last_minute_booking_days** | **int** | How many days before the arrival guests are allowed to book | [optional] -**closed_to_arrival** | **int** | If the interval dates are closed for arrival | [optional] -**closed_to_departure** | **int** | If the interval dates are closed for departure the number of applicable keys varies here based on the occupancy settings for the room type. | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions - -# TODO update the JSON string below -json = "{}" -# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a JSON string -post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_instance = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_json(json) -# print the JSON string representation of the object -print(PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.to_json()) - -# convert the object into a dict -post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_dict = post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_instance.to_dict() -# create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a dict -post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_from_dict = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md index 6dec284..9f41480 100644 --- a/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**policy_id** | **str** | Policy ID associated with the interval | [optional] **room_type_id** | **str** | Room type ID | [optional] **availability** | [**PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability**](PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.md) | | [optional] **restrictions** | [**PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions**](PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.md) | | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md index cf1c419..108681b 100644 --- a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **success** | **bool** | Returns if the request could be completed | [optional] **property_id** | **str** | Property ID | [optional] **room_block_id** | **str** | Room block ID | [optional] -**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] +**room_block_type** | **str** | Room block type. 'blocked' - Room block. 'out_of_service' - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index c449181..66cc088 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -916,7 +916,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). (optional) first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) @@ -944,7 +944,7 @@ Name | Type | Description | Notes **room_block_reason** | **str**| Room block reason | [optional] **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] - **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). | [optional] **first_name** | **str**| First name - for courtesy hold updates | [optional] **last_name** | **str**| Last name - for courtesy hold updates | [optional] **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] @@ -1195,7 +1195,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. (optional) first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) @@ -1223,7 +1223,7 @@ Name | Type | Description | Notes **room_block_reason** | **str**| Room block reason | [optional] **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] - **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. | [optional] **first_name** | **str**| First name - for courtesy hold updates | [optional] **last_name** | **str**| Last name - for courtesy hold updates | [optional] **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index f86c1f7..909e47a 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -156,10 +156,12 @@ from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner import GetRoomBlocksResponseDataInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner import GetRoomBlocksResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_room_types_response import GetRoomTypesResponse from cloudbeds_pms_v1_3.models.get_room_types_response_data_inner import GetRoomTypesResponseDataInner from cloudbeds_pms_v1_3.models.get_rooms_fees_and_taxes_response import GetRoomsFeesAndTaxesResponse @@ -307,7 +309,6 @@ from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInner from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_auto_release import PostUpdateAllotmentBlockRequestAutoRelease from cloudbeds_pms_v1_3.models.post_update_allotment_block_response import PostUpdateAllotmentBlockResponse from cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner import PostUpdateAllotmentBlockResponseDataInner diff --git a/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py index 6adfee3..742745d 100644 --- a/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -29,12 +29,13 @@ class GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner(BaseModel): """ GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner """ # noqa: E501 + policy_id: Optional[StrictStr] = Field(default=None, description="Policy ID associated with the interval", alias="policyId") room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") availability: Optional[List[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerAvailabilityInner]] = Field(default=None, description="Interval availability data by day in interval") restrictions: Optional[GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInnerRestrictions] = None - __properties: ClassVar[List[str]] = ["roomTypeId", "startDate", "endDate", "availability", "restrictions"] + __properties: ClassVar[List[str]] = ["policyId", "roomTypeId", "startDate", "endDate", "availability", "restrictions"] model_config = ConfigDict( populate_by_name=True, @@ -97,6 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "policyId": obj.get("policyId"), "roomTypeId": obj.get("roomTypeId"), "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py index c20c683..fb100d3 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner.py @@ -43,8 +43,8 @@ class GetReservationsResponseDataInner(BaseModel): end_date: Optional[date] = Field(default=None, alias="endDate") allotment_block_code: Optional[StrictStr] = Field(default=None, description="Allotment block code", alias="allotmentBlockCode") group_code: Optional[StrictStr] = Field(default=None, description="Group profile code", alias="groupCode") - adults: Optional[StrictInt] = None - children: Optional[StrictInt] = None + adults: Optional[StrictStr] = None + children: Optional[StrictStr] = None balance: Optional[Union[StrictFloat, StrictInt]] = None source_name: Optional[StrictStr] = Field(default=None, description="Source of reservation", alias="sourceName") source_id: Optional[StrictStr] = Field(default=None, description="Booking source unique id", alias="sourceID") diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py index 773486c..df13b92 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py @@ -44,19 +44,19 @@ class GetReservationsResponseDataInnerGuestListValue(BaseModel): guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") - guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") + guest_birthdate: Optional[StrictStr] = Field(default=None, alias="guestBirthdate") guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") - guest_document_issue_date: Optional[date] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issue_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssueDate") guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") - guest_document_expiration_date: Optional[date] = Field(default=None, alias="guestDocumentExpirationDate") + guest_document_expiration_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentExpirationDate") tax_id: Optional[StrictStr] = Field(default=None, description="Guest's tax ID", alias="taxID") company_tax_id: Optional[StrictStr] = Field(default=None, description="Guest's company tax ID", alias="companyTaxID") company_name: Optional[StrictStr] = Field(default=None, description="Guest's company name", alias="companyName") sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") start_date: Optional[date] = Field(default=None, alias="startDate") end_date: Optional[date] = Field(default=None, alias="endDate") - assigned_room: Optional[StrictStr] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + assigned_room: Optional[StrictBool] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomTypeName") diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py index 9fd5bb0..ef9e0f6 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from typing import Optional, Set @@ -46,18 +46,18 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): reservation_check_out: Optional[datetime] = Field(default=None, alias="reservationCheckOut") guest_id: Optional[StrictStr] = Field(default=None, description="Main guest ID", alias="guestID") profile_id: Optional[StrictStr] = Field(default=None, description="Main guest profile ID", alias="profileID") - guest_country: Optional[StrictInt] = Field(default=None, description="Main guest Country", alias="guestCountry") + guest_country: Optional[StrictStr] = Field(default=None, description="Main guest Country", alias="guestCountry") source_name: Optional[StrictStr] = Field(default=None, description="Reservation source", alias="sourceName") source: Optional[GetReservationsWithRateDetailsResponseDataInnerSource] = None - source_category: Optional[StrictInt] = Field(default=None, description="Reservation source category", alias="sourceCategory") - source_reservation_id: Optional[StrictInt] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") - property_currency: Optional[StrictInt] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") + source_category: Optional[StrictStr] = Field(default=None, description="Reservation source category", alias="sourceCategory") + source_reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") + property_currency: Optional[StrictStr] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") balance_detailed: Optional[GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed] = Field(default=None, alias="balanceDetailed") - detailed_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") + detailed_rates: Optional[Dict[str, Any]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") rooms: Optional[List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation meal plans", alias="mealPlans") - guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") + guest_list: Optional[Dict[str, GetReservationsWithRateDetailsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") third_party_identifier: Optional[StrictStr] = Field(default=None, alias="thirdPartyIdentifier") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of reservation custom fields. Only returned if \"includeCustomFields\" is true", alias="customFields") estimated_arrival_time: Optional[StrictStr] = Field(default=None, description="Estimated arrival time, 24-hour format.", alias="estimatedArrivalTime") @@ -221,7 +221,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "origin": obj.get("origin"), "mealPlans": obj.get("mealPlans"), "guestList": dict( - (_k, GetReservationsResponseDataInnerGuestListValue.from_dict(_v)) + (_k, GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_dict(_v)) for _k, _v in obj["guestList"].items() ) if obj.get("guestList") is not None diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py new file mode 100644 index 0000000..03b06ce --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py @@ -0,0 +1,380 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponseDataInnerGuestListValue(BaseModel): + """ + GetReservationsWithRateDetailsResponseDataInnerGuestListValue + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="ID of the guest", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, alias="guestName") + guest_first_name: Optional[StrictStr] = Field(default=None, alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, alias="guestEmail") + guest_phone: Optional[StrictStr] = Field(default=None, alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, alias="guestCellPhone") + guest_address: Optional[StrictStr] = Field(default=None, alias="guestAddress") + guest_address2: Optional[StrictStr] = Field(default=None, alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") + guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") + guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") + guest_document_issue_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentExpirationDate") + tax_id: Optional[StrictStr] = Field(default=None, description="Guest's tax ID", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Guest's company tax ID", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Guest's company name", alias="companyName") + sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") + start_date: Optional[date] = Field(default=None, alias="startDate") + end_date: Optional[date] = Field(default=None, alias="endDate") + assigned_room: Optional[StrictBool] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") + unassigned_rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of all unassigned rooms", alias="unassignedRooms") + guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`.", alias="guestRequirements") + custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of guest custom fields", alias="customFields") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + is_main_guest: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest is the main guest on the reservation", alias="isMainGuest") + __properties: ClassVar[List[str]] = ["guestID", "guestName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "subReservationID", "startDate", "endDate", "assignedRoom", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "rooms", "unassignedRooms", "guestRequirements", "customFields", "isAnonymized", "isMainGuest"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum, returning unknown_default_open_api for unrecognized values""" + if value is None: + return value + + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in unassigned_rooms (list) + _items = [] + if self.unassigned_rooms: + for _item_unassigned_rooms in self.unassigned_rooms: + if _item_unassigned_rooms: + _items.append(_item_unassigned_rooms.to_dict()) + _dict['unassignedRooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # set to None if guest_id (nullable) is None + # and model_fields_set contains the field + if self.guest_id is None and "guest_id" in self.model_fields_set: + _dict['guestID'] = None + + # set to None if guest_name (nullable) is None + # and model_fields_set contains the field + if self.guest_name is None and "guest_name" in self.model_fields_set: + _dict['guestName'] = None + + # set to None if guest_first_name (nullable) is None + # and model_fields_set contains the field + if self.guest_first_name is None and "guest_first_name" in self.model_fields_set: + _dict['guestFirstName'] = None + + # set to None if guest_last_name (nullable) is None + # and model_fields_set contains the field + if self.guest_last_name is None and "guest_last_name" in self.model_fields_set: + _dict['guestLastName'] = None + + # set to None if guest_gender (nullable) is None + # and model_fields_set contains the field + if self.guest_gender is None and "guest_gender" in self.model_fields_set: + _dict['guestGender'] = None + + # set to None if guest_email (nullable) is None + # and model_fields_set contains the field + if self.guest_email is None and "guest_email" in self.model_fields_set: + _dict['guestEmail'] = None + + # set to None if guest_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_phone is None and "guest_phone" in self.model_fields_set: + _dict['guestPhone'] = None + + # set to None if guest_cell_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_cell_phone is None and "guest_cell_phone" in self.model_fields_set: + _dict['guestCellPhone'] = None + + # set to None if guest_address (nullable) is None + # and model_fields_set contains the field + if self.guest_address is None and "guest_address" in self.model_fields_set: + _dict['guestAddress'] = None + + # set to None if guest_address2 (nullable) is None + # and model_fields_set contains the field + if self.guest_address2 is None and "guest_address2" in self.model_fields_set: + _dict['guestAddress2'] = None + + # set to None if guest_city (nullable) is None + # and model_fields_set contains the field + if self.guest_city is None and "guest_city" in self.model_fields_set: + _dict['guestCity'] = None + + # set to None if guest_state (nullable) is None + # and model_fields_set contains the field + if self.guest_state is None and "guest_state" in self.model_fields_set: + _dict['guestState'] = None + + # set to None if guest_country (nullable) is None + # and model_fields_set contains the field + if self.guest_country is None and "guest_country" in self.model_fields_set: + _dict['guestCountry'] = None + + # set to None if guest_zip (nullable) is None + # and model_fields_set contains the field + if self.guest_zip is None and "guest_zip" in self.model_fields_set: + _dict['guestZip'] = None + + # set to None if guest_birthdate (nullable) is None + # and model_fields_set contains the field + if self.guest_birthdate is None and "guest_birthdate" in self.model_fields_set: + _dict['guestBirthdate'] = None + + # set to None if guest_document_type (nullable) is None + # and model_fields_set contains the field + if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: + _dict['guestDocumentType'] = None + + # set to None if guest_document_number (nullable) is None + # and model_fields_set contains the field + if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: + _dict['guestDocumentNumber'] = None + + # set to None if guest_document_issue_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: + _dict['guestDocumentIssueDate'] = None + + # set to None if guest_document_issuing_country (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: + _dict['guestDocumentIssuingCountry'] = None + + # set to None if guest_document_expiration_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: + _dict['guestDocumentExpirationDate'] = None + + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if start_date (nullable) is None + # and model_fields_set contains the field + if self.start_date is None and "start_date" in self.model_fields_set: + _dict['startDate'] = None + + # set to None if end_date (nullable) is None + # and model_fields_set contains the field + if self.end_date is None and "end_date" in self.model_fields_set: + _dict['endDate'] = None + + # set to None if assigned_room (nullable) is None + # and model_fields_set contains the field + if self.assigned_room is None and "assigned_room" in self.model_fields_set: + _dict['assignedRoom'] = None + + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + # set to None if rooms (nullable) is None + # and model_fields_set contains the field + if self.rooms is None and "rooms" in self.model_fields_set: + _dict['rooms'] = None + + # set to None if unassigned_rooms (nullable) is None + # and model_fields_set contains the field + if self.unassigned_rooms is None and "unassigned_rooms" in self.model_fields_set: + _dict['unassignedRooms'] = None + + # set to None if guest_requirements (nullable) is None + # and model_fields_set contains the field + if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: + _dict['guestRequirements'] = None + + # set to None if custom_fields (nullable) is None + # and model_fields_set contains the field + if self.custom_fields is None and "custom_fields" in self.model_fields_set: + _dict['customFields'] = None + + # set to None if is_anonymized (nullable) is None + # and model_fields_set contains the field + if self.is_anonymized is None and "is_anonymized" in self.model_fields_set: + _dict['isAnonymized'] = None + + # set to None if is_main_guest (nullable) is None + # and model_fields_set contains the field + if self.is_main_guest is None and "is_main_guest" in self.model_fields_set: + _dict['isMainGuest'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress": obj.get("guestAddress"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestBirthdate": obj.get("guestBirthdate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "subReservationID": obj.get("subReservationID"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "assignedRoom": obj.get("assignedRoom"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "rooms": [GetReservationsResponseDataInnerGuestListValueRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "unassignedRooms": [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.from_dict(_item) for _item in obj["unassignedRooms"]] if obj.get("unassignedRooms") is not None else None, + "guestRequirements": obj.get("guestRequirements"), + "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "isAnonymized": obj.get("isAnonymized"), + "isMainGuest": obj.get("isMainGuest") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py index 5a8c89f..2c5aea6 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py @@ -20,7 +20,7 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner import PostRoomBlockRequestRoomsInner +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner import GetRoomBlocksResponseDataInnerRoomsInner from typing import Optional, Set from typing_extensions import Self @@ -32,7 +32,7 @@ class GetRoomBlocksResponseDataInner(BaseModel): room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[PostRoomBlockRequestRoomsInner]] = Field(default=None, description="All rooms for Block ID") + rooms: Optional[List[GetRoomBlocksResponseDataInnerRoomsInner]] = Field(default=None, description="All rooms for Block ID. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned.") __properties: ClassVar[List[str]] = ["roomBlockID", "roomBlockReason", "startDate", "endDate", "rooms", "count"] @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "roomBlockReason": obj.get("roomBlockReason"), "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), - "rooms": [PostRoomBlockRequestRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "rooms": [GetRoomBlocksResponseDataInnerRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, "count": obj.get("count") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py similarity index 53% rename from cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py rename to cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py index f0da860..3c12cdf 100644 --- a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self -class PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(BaseModel): +class GetRoomBlocksResponseDataInnerRoomsInner(BaseModel): """ - Interval restrictions if applicable + GetRoomBlocksResponseDataInnerRoomsInner """ # noqa: E501 - min_los: Optional[StrictInt] = Field(default=None, description="Minimum length of stay requirement", alias="minLos") - max_los: Optional[StrictInt] = Field(default=None, description="Maximum length of stay requirement", alias="maxLos") - cut_off_days: Optional[StrictInt] = Field(default=None, description="How many days before arrival should guests be required to book", alias="cutOffDays") - last_minute_booking_days: Optional[StrictInt] = Field(default=None, description="How many days before the arrival guests are allowed to book", alias="lastMinuteBookingDays") - closed_to_arrival: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for arrival", alias="closedToArrival") - closed_to_departure: Optional[StrictInt] = Field(default=None, description="If the interval dates are closed for departure the number of applicable keys varies here based on the occupancy settings for the room type.", alias="closedToDeparture") - __properties: ClassVar[List[str]] = ["minLos", "maxLos", "cutOffDays", "lastMinuteBookingDays", "closedToArrival", "closedToDeparture"] + event_id: Optional[StrictStr] = Field(default=None, description="Event ID (unique identifier for this specific room's block entry)", alias="eventID") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") + room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") + is_source: Optional[StrictBool] = Field(default=None, description="Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room.", alias="isSource") + __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID", "isSource"] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a JSON string""" + """Create an instance of GetRoomBlocksResponseDataInnerRoomsInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,41 +71,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if min_los (nullable) is None - # and model_fields_set contains the field - if self.min_los is None and "min_los" in self.model_fields_set: - _dict['minLos'] = None - - # set to None if max_los (nullable) is None - # and model_fields_set contains the field - if self.max_los is None and "max_los" in self.model_fields_set: - _dict['maxLos'] = None - - # set to None if cut_off_days (nullable) is None - # and model_fields_set contains the field - if self.cut_off_days is None and "cut_off_days" in self.model_fields_set: - _dict['cutOffDays'] = None - - # set to None if last_minute_booking_days (nullable) is None - # and model_fields_set contains the field - if self.last_minute_booking_days is None and "last_minute_booking_days" in self.model_fields_set: - _dict['lastMinuteBookingDays'] = None - - # set to None if closed_to_arrival (nullable) is None - # and model_fields_set contains the field - if self.closed_to_arrival is None and "closed_to_arrival" in self.model_fields_set: - _dict['closedToArrival'] = None - - # set to None if closed_to_departure (nullable) is None - # and model_fields_set contains the field - if self.closed_to_departure is None and "closed_to_departure" in self.model_fields_set: - _dict['closedToDeparture'] = None - return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from a dict""" + """Create an instance of GetRoomBlocksResponseDataInnerRoomsInner from a dict""" if obj is None: return None @@ -115,12 +83,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "minLos": obj.get("minLos"), - "maxLos": obj.get("maxLos"), - "cutOffDays": obj.get("cutOffDays"), - "lastMinuteBookingDays": obj.get("lastMinuteBookingDays"), - "closedToArrival": obj.get("closedToArrival"), - "closedToDeparture": obj.get("closedToDeparture") + "eventID": obj.get("eventID"), + "roomID": obj.get("roomID"), + "roomTypeID": obj.get("roomTypeID"), + "isSource": obj.get("isSource") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py index c6b23ab..d1953b2 100644 --- a/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_taxes_and_fees_response_data_inner.py @@ -37,7 +37,7 @@ class GetTaxesAndFeesResponseDataInner(BaseModel): tax_id: Optional[StrictStr] = Field(default=None, description="Tax's unique identifier. Only exists if type = tax.", alias="taxID") name: Optional[StrictStr] = Field(default=None, description="Name") code: Optional[StrictStr] = Field(default=None, description="Code") - kind: Optional[StrictStr] = Field(default=None, description="Tax kind. Currently supports \"vat\" or null. Only exists if type = tax.") + kind: Optional[StrictStr] = Field(default=None, description="Tax kind. Currently supports \"vat\", \"municipal_tax\" or null. Only exists if type = tax.") amount: Optional[StrictStr] = Field(default=None, description="Amount") amount_adult: Optional[GetTaxesAndFeesResponseDataInnerAmountAdult] = Field(default=None, alias="amountAdult") amount_child: Optional[GetTaxesAndFeesResponseDataInnerAmountChild] = Field(default=None, alias="amountChild") diff --git a/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py index 6e29f1a..3253904 100644 --- a/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner from typing import Optional, Set @@ -27,8 +27,9 @@ class PostCreateAllotmentBlockRequestAllotmentIntervalsInner(BaseModel): """ PostCreateAllotmentBlockRequestAllotmentIntervalsInner """ # noqa: E501 + policy_id: Optional[StrictStr] = Field(default=None, description="Policy ID to associate with the interval", alias="policyId") availability: Optional[List[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]] = None - __properties: ClassVar[List[str]] = ["availability"] + __properties: ClassVar[List[str]] = ["policyId", "availability"] model_config = ConfigDict( populate_by_name=True, @@ -76,6 +77,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_availability: _items.append(_item_availability.to_dict()) _dict['availability'] = _items + # set to None if policy_id (nullable) is None + # and model_fields_set contains the field + if self.policy_id is None and "policy_id" in self.model_fields_set: + _dict['policyId'] = None + return _dict @classmethod @@ -88,6 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "policyId": obj.get("policyId"), "availability": [PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_dict(_item) for _item in obj["availability"]] if obj.get("availability") is not None else None }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py index fd0ab6b..b5f6988 100644 --- a/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -34,7 +34,8 @@ class PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(Ba rate: Optional[StrictStr] = Field(default=None, description="the price if applicable") guest_pricing: Optional[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing] = Field(default=None, alias="guestPricing") restrictions: Optional[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions] = None - __properties: ClassVar[List[str]] = ["date", "blockAllotted", "rate", "guestPricing", "restrictions"] + rooms: Optional[List[StrictStr]] = Field(default=None, description="Array of room IDs assigned to this date") + __properties: ClassVar[List[str]] = ["date", "blockAllotted", "rate", "guestPricing", "restrictions", "rooms"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +97,11 @@ def to_dict(self) -> Dict[str, Any]: if self.restrictions is None and "restrictions" in self.model_fields_set: _dict['restrictions'] = None + # set to None if rooms (nullable) is None + # and model_fields_set contains the field + if self.rooms is None and "rooms" in self.model_fields_set: + _dict['rooms'] = None + return _dict @classmethod @@ -112,7 +118,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "blockAllotted": obj.get("blockAllotted"), "rate": obj.get("rate"), "guestPricing": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None, - "restrictions": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + "restrictions": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None, + "rooms": obj.get("rooms") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py index dc572f0..bd4d32e 100644 --- a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -29,12 +29,13 @@ class PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(BaseModel """ PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner """ # noqa: E501 + policy_id: Optional[StrictStr] = Field(default=None, description="Policy ID associated with the interval", alias="policyId") room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") start_date: Optional[date] = Field(default=None, description="Interval start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Interval end date", alias="endDate") availability: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability] = None restrictions: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions] = None - __properties: ClassVar[List[str]] = ["roomTypeId", "startDate", "endDate", "availability", "restrictions"] + __properties: ClassVar[List[str]] = ["policyId", "roomTypeId", "startDate", "endDate", "availability", "restrictions"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "policyId": obj.get("policyId"), "roomTypeId": obj.get("roomTypeId"), "startDate": obj.get("startDate"), "endDate": obj.get("endDate"), diff --git a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py index f701bbd..eeedce4 100644 --- a/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +++ b/cloudbeds_pms_v1_3/models/post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py @@ -34,7 +34,8 @@ class PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabili block_confirmed: Optional[StrictInt] = Field(default=None, description="Number of units booked for the room type for this day", alias="blockConfirmed") rate: Optional[StrictStr] = Field(default=None, description="the price") guest_pricing: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing] = Field(default=None, alias="guestPricing") - __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing"] + rooms: Optional[List[StrictStr]] = Field(default=None, description="Array of room IDs assigned to this date") + __properties: ClassVar[List[str]] = ["date", "blockRemaining", "blockAllotted", "blockConfirmed", "rate", "guestPricing", "rooms"] model_config = ConfigDict( populate_by_name=True, @@ -95,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "blockAllotted": obj.get("blockAllotted"), "blockConfirmed": obj.get("blockConfirmed"), "rate": obj.get("rate"), - "guestPricing": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None + "guestPricing": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailabilityGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None, + "rooms": obj.get("rooms") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response.py b/cloudbeds_pms_v1_3/models/post_room_block_response.py index fe5daa7..40ded62 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response.py @@ -35,7 +35,7 @@ class PostRoomBlockResponse(BaseModel): room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py index c7f734d..5e9df3a 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,11 @@ class PostRoomBlockResponseRoomsInner(BaseModel): """ PostRoomBlockResponseRoomsInner """ # noqa: E501 + event_id: Optional[StrictStr] = Field(default=None, description="Event ID (unique identifier for this specific room's block entry)", alias="eventID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") - __properties: ClassVar[List[str]] = ["roomID", "roomTypeID"] + is_source: Optional[StrictBool] = Field(default=None, description="Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room.", alias="isSource") + __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID", "isSource"] model_config = ConfigDict( populate_by_name=True, @@ -81,8 +83,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "eventID": obj.get("eventID"), "roomID": obj.get("roomID"), - "roomTypeID": obj.get("roomTypeID") + "roomTypeID": obj.get("roomTypeID"), + "isSource": obj.get("isSource") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py index cfbea74..97f2e0e 100644 --- a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner.py @@ -27,9 +27,10 @@ class PostUpdateAllotmentBlockRequestAllotmentIntervalsInner(BaseModel): """ PostUpdateAllotmentBlockRequestAllotmentIntervalsInner """ # noqa: E501 + policy_id: Optional[StrictStr] = Field(default=None, description="Policy ID to associate with the interval", alias="policyId") room_type_id: Optional[StrictStr] = Field(default=None, description="Room type id", alias="roomTypeId") availability: Optional[List[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner]] = Field(default=None, description="Interval availability data by day in interval") - __properties: ClassVar[List[str]] = ["roomTypeId", "availability"] + __properties: ClassVar[List[str]] = ["policyId", "roomTypeId", "availability"] model_config = ConfigDict( populate_by_name=True, @@ -77,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: if _item_availability: _items.append(_item_availability.to_dict()) _dict['availability'] = _items + # set to None if policy_id (nullable) is None + # and model_fields_set contains the field + if self.policy_id is None and "policy_id" in self.model_fields_set: + _dict['policyId'] = None + # set to None if room_type_id (nullable) is None # and model_fields_set contains the field if self.room_type_id is None and "room_type_id" in self.model_fields_set: @@ -99,6 +105,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "policyId": obj.get("policyId"), "roomTypeId": obj.get("roomTypeId"), "availability": [PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner.from_dict(_item) for _item in obj["availability"]] if obj.get("availability") is not None else None }) diff --git a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py index a9231de..02ae53d 100644 --- a/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -20,8 +20,8 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_guest_pricing import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions from typing import Optional, Set from typing_extensions import Self @@ -33,8 +33,9 @@ class PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner(Ba var_date: Optional[date] = Field(default=None, description="the day within the interval (YYYY-MM-DD)", alias="date") rate: Optional[StrictStr] = Field(default=None, description="the price if applicable") guest_pricing: Optional[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing] = Field(default=None, alias="guestPricing") - restrictions: Optional[PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions] = None - __properties: ClassVar[List[str]] = ["blockAllotted", "date", "rate", "guestPricing", "restrictions"] + restrictions: Optional[PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions] = None + rooms: Optional[List[StrictStr]] = Field(default=None, description="Array of room IDs assigned to this date the number of applicable keys varies here based on the occupancy settings for the room type.") + __properties: ClassVar[List[str]] = ["blockAllotted", "date", "rate", "guestPricing", "restrictions", "rooms"] model_config = ConfigDict( populate_by_name=True, @@ -106,6 +107,11 @@ def to_dict(self) -> Dict[str, Any]: if self.restrictions is None and "restrictions" in self.model_fields_set: _dict['restrictions'] = None + # set to None if rooms (nullable) is None + # and model_fields_set contains the field + if self.rooms is None and "rooms" in self.model_fields_set: + _dict['rooms'] = None + return _dict @classmethod @@ -122,7 +128,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "date": obj.get("date"), "rate": obj.get("rate"), "guestPricing": PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerGuestPricing.from_dict(obj["guestPricing"]) if obj.get("guestPricing") is not None else None, - "restrictions": PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None + "restrictions": PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None, + "rooms": obj.get("rooms") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py index 3874dde..01de76c 100644 --- a/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/models/post_update_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -28,10 +28,11 @@ class PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner(BaseModel """ PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner """ # noqa: E501 + policy_id: Optional[StrictStr] = Field(default=None, description="Policy ID associated with the interval", alias="policyId") room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeId") availability: Optional[PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability] = None restrictions: Optional[PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions] = None - __properties: ClassVar[List[str]] = ["roomTypeId", "availability", "restrictions"] + __properties: ClassVar[List[str]] = ["policyId", "roomTypeId", "availability", "restrictions"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "policyId": obj.get("policyId"), "roomTypeId": obj.get("roomTypeId"), "availability": PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability.from_dict(obj["availability"]) if obj.get("availability") is not None else None, "restrictions": PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerRestrictions.from_dict(obj["restrictions"]) if obj.get("restrictions") is not None else None diff --git a/cloudbeds_pms_v1_3/models/put_room_block_response.py b/cloudbeds_pms_v1_3/models/put_room_block_response.py index 2dbde8f..7c9be2a 100644 --- a/cloudbeds_pms_v1_3/models/put_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_response.py @@ -31,11 +31,11 @@ class PutRoomBlockResponse(BaseModel): success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") - room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. 'blocked' - Room block. 'out_of_service' - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType") room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] diff --git a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py index e291f13..edcc92a 100644 --- a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response.py @@ -71,6 +71,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponse: rooms_remaining = 56, allotment_intervals = [ cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( + policy_id = '', room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py index 1e7fa0a..cbbeb6f 100644 --- a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner.py @@ -66,6 +66,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner rooms_remaining = 56, allotment_intervals = [ cloudbeds_pms_v1_3.models.get_allotment_blocks_response_data_inner_allotment_intervals_inner.GetAllotmentBlocksResponse_data_inner_allotmentIntervals_inner( + policy_id = '', room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py index 47234c8..4d1c1ee 100644 --- a/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_allotment_blocks_response_data_inner_allotment_intervals_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> GetAllotmentBlocksResponseDataInner model = GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner() if include_optional: return GetAllotmentBlocksResponseDataInnerAllotmentIntervalsInner( + policy_id = '', room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py index 4e7fa47..d2576fa 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py @@ -50,8 +50,8 @@ def make_instance(self, include_optional) -> GetReservationsResponse: end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), allotment_block_code = '', group_code = '', - adults = 56, - children = 56, + adults = '', + children = '', balance = 1.337, source_name = '', source_id = '', @@ -104,19 +104,19 @@ def make_instance(self, include_optional) -> GetReservationsResponse: guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = '', guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py index 5e24f7f..a76da28 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py @@ -47,8 +47,8 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), allotment_block_code = '', group_code = '', - adults = 56, - children = 56, + adults = '', + children = '', balance = 1.337, source_name = '', source_id = '', @@ -101,19 +101,19 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = '', guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py index 55cb051..4fb7fba 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py @@ -49,19 +49,19 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = '', guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py index e0766b6..e97f48c 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py @@ -52,16 +52,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), guest_id = '', profile_id = '', - guest_country = 56, + guest_country = '', source_name = '', source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( name = '', payment_collect = 'hotel', source_id = '', category = '', ), - source_category = 56, - source_reservation_id = 56, - property_currency = 56, + source_category = '', + source_reservation_id = '', + property_currency = '', balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( suggested_deposit = '', sub_total = 1.337, @@ -69,9 +69,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo taxes_fees = 1.337, grand_total = 1.337, paid = 1.337, ), - detailed_rates = [ - None - ], + detailed_rates = cloudbeds_pms_v1_3.models.detailed_rates.detailedRates(), rooms = [ cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', @@ -99,7 +97,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo origin = '', meal_plans = '', guest_list = { - 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value.GetReservationsWithRateDetailsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -117,16 +115,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py index 5d03a79..d84833d 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -49,16 +49,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), guest_id = '', profile_id = '', - guest_country = 56, + guest_country = '', source_name = '', source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( name = '', payment_collect = 'hotel', source_id = '', category = '', ), - source_category = 56, - source_reservation_id = 56, - property_currency = 56, + source_category = '', + source_reservation_id = '', + property_currency = '', balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( suggested_deposit = '', sub_total = 1.337, @@ -66,9 +66,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo taxes_fees = 1.337, grand_total = 1.337, paid = 1.337, ), - detailed_rates = [ - None - ], + detailed_rates = cloudbeds_pms_v1_3.models.detailed_rates.detailedRates(), rooms = [ cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', @@ -96,7 +94,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo origin = '', meal_plans = '', guest_list = { - 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value.GetReservationsWithRateDetailsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -114,16 +112,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py new file mode 100644 index 0000000..d9c998b --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue + +class TestGetReservationsWithRateDetailsResponseDataInnerGuestListValue(unittest.TestCase): + """GetReservationsWithRateDetailsResponseDataInnerGuestListValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerGuestListValue: + """Test GetReservationsWithRateDetailsResponseDataInnerGuestListValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerGuestListValue` + """ + model = GetReservationsWithRateDetailsResponseDataInnerGuestListValue() + if include_optional: + return GetReservationsWithRateDetailsResponseDataInnerGuestListValue( + guest_id = '', + guest_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = '', + guest_document_issuing_country = '', + guest_document_expiration_date = '', + tax_id = '', + company_tax_id = '', + company_name = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + assigned_room = True, + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + rooms = [ + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + reservation_room_id = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + room_status = 'in_house', + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + reservation_room_id = '', + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '', ) + ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), + custom_fields = [ + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + is_anonymized = True, + is_main_guest = True + ) + else: + return GetReservationsWithRateDetailsResponseDataInnerGuestListValue( + ) + """ + + def testGetReservationsWithRateDetailsResponseDataInnerGuestListValue(self): + """Test GetReservationsWithRateDetailsResponseDataInnerGuestListValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py index 7091d5d..6c9c94e 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py @@ -43,9 +43,11 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponse: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ - cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( + cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner.GetRoomBlocksResponse_data_inner_rooms_inner( + event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], count = 56, ) ], diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py index 081f8ff..4f6c90a 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py @@ -40,9 +40,11 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInner: start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ - cloudbeds_pms_v1_3.models.post_room_block_request_rooms_inner.PostRoomBlockRequest_rooms_inner( + cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner.GetRoomBlocksResponse_data_inner_rooms_inner( + event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], count = 56 ) diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py similarity index 61% rename from cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py rename to cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py index 488a041..3affc2a 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py @@ -14,10 +14,10 @@ import unittest -from cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions import PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions +from cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner import GetRoomBlocksResponseDataInnerRoomsInner -class TestPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(unittest.TestCase): - """PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions unit test stubs""" +class TestGetRoomBlocksResponseDataInnerRoomsInner(unittest.TestCase): + """GetRoomBlocksResponseDataInnerRoomsInner unit test stubs""" def setUp(self): pass @@ -25,30 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions: - """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions + def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInnerRoomsInner: + """Test GetRoomBlocksResponseDataInnerRoomsInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions` + # uncomment below to create an instance of `GetRoomBlocksResponseDataInnerRoomsInner` """ - model = PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions() + model = GetRoomBlocksResponseDataInnerRoomsInner() if include_optional: - return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions( - min_los = 56, - max_los = 56, - cut_off_days = 56, - last_minute_booking_days = 56, - closed_to_arrival = 56, - closed_to_departure = 56 + return GetRoomBlocksResponseDataInnerRoomsInner( + event_id = '', + room_id = '', + room_type_id = '', + is_source = True ) else: - return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions( + return GetRoomBlocksResponseDataInnerRoomsInner( ) """ - def testPostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions(self): - """Test PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInnerRestrictions""" + def testGetRoomBlocksResponseDataInnerRoomsInner(self): + """Test GetRoomBlocksResponseDataInnerRoomsInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py index 5eebc7c..43d17f3 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllo model = PostCreateAllotmentBlockRequestAllotmentIntervalsInner() if include_optional: return PostCreateAllotmentBlockRequestAllotmentIntervalsInner( + policy_id = '', availability = [ cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -53,7 +54,10 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllo cut_off_days = 56, last_minute_booking_days = 56, closed_to_arrival = 56, - closed_to_departure = 56, ), ) + closed_to_departure = 56, ), + rooms = [ + '' + ], ) ] ) else: diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py index af57ba2..83ce346 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -51,7 +51,10 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockRequestAllo cut_off_days = 56, last_minute_booking_days = 56, closed_to_arrival = 56, - closed_to_departure = 56, ) + closed_to_departure = 56, ), + rooms = [ + '' + ] ) else: return PostCreateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner( diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py index 3581671..fc9a7e2 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response.py @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponse: release_time = '', ), allotment_intervals = [ cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + policy_id = '', room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -74,7 +75,10 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponse: adult3 = '', child1 = '', child2 = '', - child3 = '', ), ), + child3 = '', ), + rooms = [ + '' + ], ), restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py index 2e63e9f..7b1c8c2 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner.py @@ -54,6 +54,7 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat release_time = '', ), allotment_intervals = [ cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + policy_id = '', room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -69,7 +70,10 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat adult3 = '', child1 = '', child2 = '', - child3 = '', ), ), + child3 = '', ), + rooms = [ + '' + ], ), restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py index cdf6fdb..0b9bc93 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat model = PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner() if include_optional: return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInner( + policy_id = '', room_type_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -50,7 +51,10 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat adult3 = '', child1 = '', child2 = '', - child3 = '', ), ), + child3 = '', ), + rooms = [ + '' + ], ), restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, diff --git a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py index 366bad2..d4923a6 100644 --- a/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py +++ b/cloudbeds_pms_v1_3/test/test_post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.py @@ -46,7 +46,10 @@ def make_instance(self, include_optional) -> PostCreateAllotmentBlockResponseDat adult3 = '', child1 = '', child2 = '', - child3 = '', ) + child3 = '', ), + rooms = [ + '' + ] ) else: return PostCreateAllotmentBlockResponseDataInnerAllotmentIntervalsInnerAvailability( diff --git a/cloudbeds_pms_v1_3/test/test_post_room_block_response.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py index e1d8580..63c687b 100644 --- a/cloudbeds_pms_v1_3/test/test_post_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py @@ -44,8 +44,10 @@ def make_instance(self, include_optional) -> PostRoomBlockResponse: end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( + event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], message = '' ) diff --git a/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py index 920ae09..98e34c4 100644 --- a/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py @@ -35,8 +35,10 @@ def make_instance(self, include_optional) -> PostRoomBlockResponseRoomsInner: model = PostRoomBlockResponseRoomsInner() if include_optional: return PostRoomBlockResponseRoomsInner( + event_id = '', room_id = '', - room_type_id = '' + room_type_id = '', + is_source = True ) else: return PostRoomBlockResponseRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py index 228a436..ed2b552 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllo model = PostUpdateAllotmentBlockRequestAllotmentIntervalsInner() if include_optional: return PostUpdateAllotmentBlockRequestAllotmentIntervalsInner( + policy_id = '', room_type_id = '', availability = [ cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner( @@ -48,13 +49,16 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllo child1 = '', child2 = '', child3 = '', ), - restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, last_minute_booking_days = 56, closed_to_arrival = 56, - closed_to_departure = 56, ), ) + closed_to_departure = 56, ), + rooms = [ + '' + ], ) ] ) else: diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py index a278923..27e7cff 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_request_allotment_intervals_inner_availability_inner.py @@ -45,13 +45,16 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockRequestAllo child1 = '', child2 = '', child3 = '', ), - restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostUpdateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( + restrictions = cloudbeds_pms_v1_3.models.post_create_allotment_block_request_allotment_intervals_inner_availability_inner_restrictions.PostCreateAllotmentBlockRequest_allotmentIntervals_inner_availability_inner_restrictions( min_los = 56, max_los = 56, cut_off_days = 56, last_minute_booking_days = 56, closed_to_arrival = 56, - closed_to_departure = 56, ) + closed_to_departure = 56, ), + rooms = [ + '' + ] ) else: return PostUpdateAllotmentBlockRequestAllotmentIntervalsInnerAvailabilityInner( diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py index dcc1118..571baad 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response.py @@ -57,6 +57,7 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponse: release_time = '', ), allotment_intervals = [ cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + policy_id = '', room_type_id = '', availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -70,7 +71,10 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponse: adult3 = '', child1 = '', child2 = '', - child3 = '', ), ), + child3 = '', ), + rooms = [ + '' + ], ), restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py index 9e42450..3efc61e 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner.py @@ -54,6 +54,7 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDat release_time = '', ), allotment_intervals = [ cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner( + policy_id = '', room_type_id = '', availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -67,7 +68,10 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDat adult3 = '', child1 = '', child2 = '', - child3 = '', ), ), + child3 = '', ), + rooms = [ + '' + ], ), restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, diff --git a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py index 557ffd4..ded65e9 100644 --- a/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_update_allotment_block_response_data_inner_allotment_intervals_inner.py @@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDat model = PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner() if include_optional: return PostUpdateAllotmentBlockResponseDataInnerAllotmentIntervalsInner( + policy_id = '', room_type_id = '', availability = cloudbeds_pms_v1_3.models.post_create_allotment_block_response_data_inner_allotment_intervals_inner_availability.PostCreateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_availability( date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), @@ -48,7 +49,10 @@ def make_instance(self, include_optional) -> PostUpdateAllotmentBlockResponseDat adult3 = '', child1 = '', child2 = '', - child3 = '', ), ), + child3 = '', ), + rooms = [ + '' + ], ), restrictions = cloudbeds_pms_v1_3.models.post_update_allotment_block_response_data_inner_allotment_intervals_inner_restrictions.PostUpdateAllotmentBlockResponse_data_inner_allotmentIntervals_inner_restrictions( min_los = 56, max_los = 56, diff --git a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py index 915c189..df9b0cb 100644 --- a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py @@ -44,8 +44,10 @@ def make_instance(self, include_optional) -> PutRoomBlockResponse: end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), rooms = [ cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( + event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], message = '' ) diff --git a/openapitools.json b/openapitools.json index 84984b7..6795569 100644 --- a/openapitools.json +++ b/openapitools.json @@ -10,7 +10,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.9.0", + "packageVersion": "1.10.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1", From 90c656e8c0fa48a4416a0c132876c050d64439cb Mon Sep 17 00:00:00 2001 From: Dimitrios Klimis Date: Fri, 20 Feb 2026 15:16:46 +0200 Subject: [PATCH 43/46] chore: change workflow input labels for clarity --- .github/workflows/publish.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1e5a4ae..29b786d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,8 +7,8 @@ on: description: 'Optional version to use (bypasses version bump and git commits if provided)' required: false default: "" - mfd-tag: - description: 'The MFD tag to use for API docs' + mfd-ref: + description: 'The MFD ref (branch, tag, or SHA) to use for API docs' required: false default: "" @@ -63,12 +63,12 @@ jobs: env: GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} run: | - MFD_TAG='${{ inputs.mfd-tag }}' - if [[ -z "${MFD_TAG}" ]]; then - MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name') + MFD_REF='${{ inputs.mfd-ref }}' + if [[ -z "${MFD_REF}" ]]; then + MFD_REF=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name') fi - echo "Latest MFD tag: $MFD_TAG" - gh api /repos/cloudbeds/mfd/tarball/$MFD_TAG | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api' + echo "Using MFD ref: $MFD_REF" + gh api /repos/cloudbeds/mfd/tarball/$MFD_REF | tar --strip-components=1 --wildcards -zxf - '*/public_accessa/api' - name: Get next version run: | From e493c1f93903c01f4b76ea5f39d7f9d0f03b1d3a Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 24 Feb 2026 04:10:25 +0000 Subject: [PATCH 44/46] Bump version to 1.11.0 --- .openapi-generator/FILES | 3 - README.md | 3 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 3 +- cloudbeds_pms_v1_3/api/payment_api.py | 51 +-- cloudbeds_pms_v1_3/api/room_api.py | 24 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- ...rvationsResponseDataInnerGuestListValue.md | 8 +- ...vationsWithRateDetailsResponseDataInner.md | 12 +- ...eDetailsResponseDataInnerGuestListValue.md | 65 --- .../docs/GetRoomBlocksResponseDataInner.md | 2 +- ...etRoomBlocksResponseDataInnerRoomsInner.md | 1 - cloudbeds_pms_v1_3/docs/PaymentApi.md | 16 +- .../docs/PostRoomBlockResponse.md | 2 +- .../docs/PostRoomBlockResponseRoomsInner.md | 1 - .../docs/PutRoomBlockResponse.md | 4 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 8 +- cloudbeds_pms_v1_3/models/__init__.py | 1 - ...ns_response_data_inner_guest_list_value.py | 8 +- ...s_with_rate_details_response_data_inner.py | 16 +- ...ls_response_data_inner_guest_list_value.py | 380 ------------------ .../get_room_blocks_response_data_inner.py | 2 +- ..._blocks_response_data_inner_rooms_inner.py | 8 +- .../models/post_room_block_response.py | 2 +- .../post_room_block_response_rooms_inner.py | 8 +- .../models/put_room_block_response.py | 4 +- .../test/test_get_reservations_response.py | 8 +- ...st_get_reservations_response_data_inner.py | 8 +- ...ns_response_data_inner_guest_list_value.py | 8 +- ...reservations_with_rate_details_response.py | 20 +- ...s_with_rate_details_response_data_inner.py | 20 +- ...ls_response_data_inner_guest_list_value.py | 114 ------ .../test/test_get_room_blocks_response.py | 3 +- ...est_get_room_blocks_response_data_inner.py | 3 +- ..._blocks_response_data_inner_rooms_inner.py | 3 +- .../test/test_post_room_block_response.py | 3 +- ...st_post_room_block_response_rooms_inner.py | 3 +- .../test/test_put_room_block_response.py | 3 +- openapitools.json | 2 +- 40 files changed, 123 insertions(+), 713 deletions(-) delete mode 100644 cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md delete mode 100644 cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py delete mode 100644 cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 3a58c33..76e8172 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -176,7 +176,6 @@ cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md -cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md @@ -508,7 +507,6 @@ cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py -cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py cloudbeds_pms_v1_3/models/get_room_blocks_response.py @@ -834,7 +832,6 @@ cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py -cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py diff --git a/README.md b/README.md index b81ac11..cae143b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.10.0 +- Package version: 1.11.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -339,7 +339,6 @@ Class | Method | HTTP request | Description - [GetReservationsWithRateDetailsResponse](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md) - [GetReservationsWithRateDetailsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md) - [GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) - - [GetReservationsWithRateDetailsResponseDataInnerGuestListValue](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md) - [GetReservationsWithRateDetailsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) - [GetReservationsWithRateDetailsResponseDataInnerSource](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md) - [GetRoomBlocksResponse](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md) diff --git a/VERSION b/VERSION index 81c871d..1cac385 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.10.0 +1.11.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 535ab38..b376e0c 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.10.0" +__version__ = "1.11.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -194,7 +194,6 @@ from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse diff --git a/cloudbeds_pms_v1_3/api/payment_api.py b/cloudbeds_pms_v1_3/api/payment_api.py index 852075a..8c1f28b 100644 --- a/cloudbeds_pms_v1_3/api/payment_api.py +++ b/cloudbeds_pms_v1_3/api/payment_api.py @@ -601,7 +601,6 @@ def post_charge_post( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -638,8 +637,6 @@ def post_charge_post( :type currency: str :param description: Description of the payment to display on folio :type description: str - :param card_token: cardToken provided by Cloudbeds vault - :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -677,7 +674,6 @@ def post_charge_post( amount=amount, currency=currency, description=description, - card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -712,7 +708,6 @@ def post_charge_post_with_http_info( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -749,8 +744,6 @@ def post_charge_post_with_http_info( :type currency: str :param description: Description of the payment to display on folio :type description: str - :param card_token: cardToken provided by Cloudbeds vault - :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -788,7 +781,6 @@ def post_charge_post_with_http_info( amount=amount, currency=currency, description=description, - card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -823,7 +815,6 @@ def post_charge_post_without_preload_content( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, - card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -860,8 +851,6 @@ def post_charge_post_without_preload_content( :type currency: str :param description: Description of the payment to display on folio :type description: str - :param card_token: cardToken provided by Cloudbeds vault - :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -899,7 +888,6 @@ def post_charge_post_without_preload_content( amount=amount, currency=currency, description=description, - card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -929,7 +917,6 @@ def _post_charge_post_serialize( amount, currency, description, - card_token, payment_method_id, is_deposit, redirect_url, @@ -973,8 +960,6 @@ def _post_charge_post_serialize( _form_params.append(('currency', currency)) if description is not None: _form_params.append(('description', description)) - if card_token is not None: - _form_params.append(('cardToken', card_token)) if payment_method_id is not None: _form_params.append(('paymentMethodId', payment_method_id)) if is_deposit is not None: @@ -1676,7 +1661,7 @@ def post_payment_post( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1698,7 +1683,7 @@ def post_payment_post( ) -> PostPaymentResponse: """postPayment - Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. :param property_id: Property ID :type property_id: str @@ -1706,8 +1691,8 @@ def post_payment_post( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str - :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent - :type group_code: str + :param group_id: Group ID. Required if neither reservationID nor houseAccountID is sent + :type group_id: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1746,7 +1731,7 @@ def post_payment_post( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - group_code=group_code, + group_id=group_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1779,7 +1764,7 @@ def post_payment_post_with_http_info( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1801,7 +1786,7 @@ def post_payment_post_with_http_info( ) -> ApiResponse[PostPaymentResponse]: """postPayment - Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. :param property_id: Property ID :type property_id: str @@ -1809,8 +1794,8 @@ def post_payment_post_with_http_info( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str - :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent - :type group_code: str + :param group_id: Group ID. Required if neither reservationID nor houseAccountID is sent + :type group_id: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1849,7 +1834,7 @@ def post_payment_post_with_http_info( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - group_code=group_code, + group_id=group_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1882,7 +1867,7 @@ def post_payment_post_without_preload_content( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="Group ID. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1904,7 +1889,7 @@ def post_payment_post_without_preload_content( ) -> RESTResponseType: """postPayment - Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. :param property_id: Property ID :type property_id: str @@ -1912,8 +1897,8 @@ def post_payment_post_without_preload_content( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str - :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent - :type group_code: str + :param group_id: Group ID. Required if neither reservationID nor houseAccountID is sent + :type group_id: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1952,7 +1937,7 @@ def post_payment_post_without_preload_content( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - group_code=group_code, + group_id=group_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1980,7 +1965,7 @@ def _post_payment_post_serialize( property_id, reservation_id, house_account_id, - group_code, + group_id, sub_reservation_id, type, amount, @@ -2017,8 +2002,8 @@ def _post_payment_post_serialize( _form_params.append(('reservationID', reservation_id)) if house_account_id is not None: _form_params.append(('houseAccountID', house_account_id)) - if group_code is not None: - _form_params.append(('groupCode', group_code)) + if group_id is not None: + _form_params.append(('groupID', group_id)) if sub_reservation_id is not None: _form_params.append(('subReservationID', sub_reservation_id)) if type is not None: diff --git a/cloudbeds_pms_v1_3/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py index 28e8502..b50aa01 100644 --- a/cloudbeds_pms_v1_3/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -3475,7 +3475,7 @@ def post_room_block_post( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3508,7 +3508,7 @@ def post_room_block_post( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -3582,7 +3582,7 @@ def post_room_block_post_with_http_info( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3615,7 +3615,7 @@ def post_room_block_post_with_http_info( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -3689,7 +3689,7 @@ def post_room_block_post_without_preload_content( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3722,7 +3722,7 @@ def post_room_block_post_without_preload_content( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4541,7 +4541,7 @@ def put_room_block_put( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4574,7 +4574,7 @@ def put_room_block_put( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4648,7 +4648,7 @@ def put_room_block_put_with_http_info( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4681,7 +4681,7 @@ def put_room_block_put_with_http_info( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4755,7 +4755,7 @@ def put_room_block_put_without_preload_content( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4788,7 +4788,7 @@ def put_room_block_put_without_preload_content( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 5a8a533..9df6988 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.10.0/python' + self.user_agent = 'OpenAPI-Generator/1.11.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 712e7b0..a2ffa11 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.10.0".\ + "SDK Package Version: 1.11.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md index 02de020..60a86aa 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md @@ -19,19 +19,19 @@ Name | Type | Description | Notes **guest_state** | **str** | | [optional] **guest_country** | **str** | | [optional] **guest_zip** | **str** | | [optional] -**guest_birthdate** | **str** | | [optional] +**guest_birthdate** | **date** | | [optional] **guest_document_type** | **str** | | [optional] **guest_document_number** | **str** | | [optional] -**guest_document_issue_date** | **str** | | [optional] +**guest_document_issue_date** | **date** | | [optional] **guest_document_issuing_country** | **str** | | [optional] -**guest_document_expiration_date** | **str** | | [optional] +**guest_document_expiration_date** | **date** | | [optional] **tax_id** | **str** | Guest's tax ID | [optional] **company_tax_id** | **str** | Guest's company tax ID | [optional] **company_name** | **str** | Guest's company name | [optional] **sub_reservation_id** | **str** | | [optional] **start_date** | **date** | | [optional] **end_date** | **date** | | [optional] -**assigned_room** | **bool** | Returns true if guest has roomed assigned, false if not | [optional] +**assigned_room** | **str** | Returns true if guest has roomed assigned, false if not | [optional] **room_id** | **str** | Room ID where guest is assigned | [optional] **room_name** | **str** | Room Name where guest is assigned | [optional] **room_type_name** | **str** | Room Name where guest is assigned | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md index a08ed26..feef90f 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md @@ -19,18 +19,18 @@ Name | Type | Description | Notes **reservation_check_out** | **datetime** | | [optional] **guest_id** | **str** | Main guest ID | [optional] **profile_id** | **str** | Main guest profile ID | [optional] -**guest_country** | **str** | Main guest Country | [optional] +**guest_country** | **int** | Main guest Country | [optional] **source_name** | **str** | Reservation source | [optional] **source** | [**GetReservationsWithRateDetailsResponseDataInnerSource**](GetReservationsWithRateDetailsResponseDataInnerSource.md) | | [optional] -**source_category** | **str** | Reservation source category | [optional] -**source_reservation_id** | **str** | Reservation ID on the source | [optional] -**property_currency** | **str** | Property currency ISO-formatted (3 characters) | [optional] +**source_category** | **int** | Reservation source category | [optional] +**source_reservation_id** | **int** | Reservation ID on the source | [optional] +**property_currency** | **int** | Property currency ISO-formatted (3 characters) | [optional] **balance_detailed** | [**GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed**](GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) | | [optional] -**detailed_rates** | **object** | Associative object, where key is the date, and value is the total rate for that date. | [optional] +**detailed_rates** | **List[object]** | Associative object, where key is the date, and value is the total rate for that date. | [optional] **rooms** | [**List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]**](GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) | Array with rooms information | [optional] **origin** | **str** | Reservation origin | [optional] **meal_plans** | **str** | Reservation meal plans | [optional] -**guest_list** | [**Dict[str, GetReservationsWithRateDetailsResponseDataInnerGuestListValue]**](GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] +**guest_list** | [**Dict[str, GetReservationsResponseDataInnerGuestListValue]**](GetReservationsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] **third_party_identifier** | **str** | | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of reservation custom fields. Only returned if \"includeCustomFields\" is true | [optional] **estimated_arrival_time** | **str** | Estimated arrival time, 24-hour format. | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md deleted file mode 100644 index 4b2b44d..0000000 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md +++ /dev/null @@ -1,65 +0,0 @@ -# GetReservationsWithRateDetailsResponseDataInnerGuestListValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**guest_id** | **str** | ID of the guest | [optional] -**guest_name** | **str** | | [optional] -**guest_first_name** | **str** | | [optional] -**guest_last_name** | **str** | | [optional] -**guest_gender** | **str** | | [optional] -**guest_email** | **str** | | [optional] -**guest_phone** | **str** | | [optional] -**guest_cell_phone** | **str** | | [optional] -**guest_address** | **str** | | [optional] -**guest_address2** | **str** | | [optional] -**guest_city** | **str** | | [optional] -**guest_state** | **str** | | [optional] -**guest_country** | **str** | | [optional] -**guest_zip** | **str** | | [optional] -**guest_birthdate** | **date** | | [optional] -**guest_document_type** | **str** | | [optional] -**guest_document_number** | **str** | | [optional] -**guest_document_issue_date** | **str** | | [optional] -**guest_document_issuing_country** | **str** | | [optional] -**guest_document_expiration_date** | **str** | | [optional] -**tax_id** | **str** | Guest's tax ID | [optional] -**company_tax_id** | **str** | Guest's company tax ID | [optional] -**company_name** | **str** | Guest's company name | [optional] -**sub_reservation_id** | **str** | | [optional] -**start_date** | **date** | | [optional] -**end_date** | **date** | | [optional] -**assigned_room** | **bool** | Returns true if guest has roomed assigned, false if not | [optional] -**room_id** | **str** | Room ID where guest is assigned | [optional] -**room_name** | **str** | Room Name where guest is assigned | [optional] -**room_type_name** | **str** | Room Name where guest is assigned | [optional] -**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] -**rooms** | [**List[GetReservationsResponseDataInnerGuestListValueRoomsInner]**](GetReservationsResponseDataInnerGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] -**unassigned_rooms** | [**List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]**](GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) | List of all unassigned rooms | [optional] -**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`. | [optional] -**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of guest custom fields | [optional] -**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] -**is_main_guest** | **bool** | Flag indicating the guest is the main guest on the reservation | [optional] - -## Example - -```python -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue - -# TODO update the JSON string below -json = "{}" -# create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a JSON string -get_reservations_with_rate_details_response_data_inner_guest_list_value_instance = GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_json(json) -# print the JSON string representation of the object -print(GetReservationsWithRateDetailsResponseDataInnerGuestListValue.to_json()) - -# convert the object into a dict -get_reservations_with_rate_details_response_data_inner_guest_list_value_dict = get_reservations_with_rate_details_response_data_inner_guest_list_value_instance.to_dict() -# create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a dict -get_reservations_with_rate_details_response_data_inner_guest_list_value_from_dict = GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_dict(get_reservations_with_rate_details_response_data_inner_guest_list_value_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md index 024a7aa..cafd8d0 100644 --- a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[GetRoomBlocksResponseDataInnerRoomsInner]**](GetRoomBlocksResponseDataInnerRoomsInner.md) | All rooms for Block ID. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] +**rooms** | [**List[GetRoomBlocksResponseDataInnerRoomsInner]**](GetRoomBlocksResponseDataInnerRoomsInner.md) | All rooms for Block ID | [optional] **count** | **int** | Number of results (properties) returned. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md index c829c88..41038c7 100644 --- a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **event_id** | **str** | Event ID (unique identifier for this specific room's block entry) | [optional] **room_id** | **str** | Room ID | [optional] **room_type_id** | **str** | Room type ID | [optional] -**is_source** | **bool** | Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PaymentApi.md b/cloudbeds_pms_v1_3/docs/PaymentApi.md index 1561968..8bb0912 100644 --- a/cloudbeds_pms_v1_3/docs/PaymentApi.md +++ b/cloudbeds_pms_v1_3/docs/PaymentApi.md @@ -180,7 +180,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_charge_post** -> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) +> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) postCharge @@ -228,14 +228,13 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: amount = 'amount_example' # str | Amount to charge (optional) currency = 'currency_example' # str | Currency to charge (optional) description = 'description_example' # str | Description of the payment to display on folio (optional) - card_token = 'card_token_example' # str | cardToken provided by Cloudbeds vault (optional) payment_method_id = 'payment_method_id_example' # str | Payment method UUID (optional) is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) redirect_url = 'redirect_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) try: # postCharge - api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) + api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) print("The response of PaymentApi->post_charge_post:\n") pprint(api_response) except Exception as e: @@ -257,7 +256,6 @@ Name | Type | Description | Notes **amount** | **str**| Amount to charge | [optional] **currency** | **str**| Currency to charge | [optional] **description** | **str**| Description of the payment to display on folio | [optional] - **card_token** | **str**| cardToken provided by Cloudbeds vault | [optional] **payment_method_id** | **str**| Payment method UUID | [optional] **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] **redirect_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] @@ -460,11 +458,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_payment_post** -> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) +> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) postPayment -Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. +Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. ### Example @@ -503,7 +501,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) - group_code = 'group_code_example' # str | Group Code. Required if neither reservationID nor houseAccountID is sent (optional) + group_id = 'group_id_example' # str | Group ID. Required if neither reservationID nor houseAccountID is sent (optional) sub_reservation_id = 'sub_reservation_id_example' # str | The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. (optional) type = 'type_example' # str | Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. (optional) amount = 3.4 # float | Amount paid on this transaction (optional) @@ -513,7 +511,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # postPayment - api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) + api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) print("The response of PaymentApi->post_payment_post:\n") pprint(api_response) except Exception as e: @@ -530,7 +528,7 @@ Name | Type | Description | Notes **property_id** | **str**| Property ID | [optional] **reservation_id** | **str**| Reservation identifier | [optional] **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] - **group_code** | **str**| Group Code. Required if neither reservationID nor houseAccountID is sent | [optional] + **group_id** | **str**| Group ID. Required if neither reservationID nor houseAccountID is sent | [optional] **sub_reservation_id** | **str**| The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. | [optional] **type** | **str**| Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] **amount** | **float**| Amount paid on this transaction | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md index 6d5f529..111fa86 100644 --- a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md index 0ee62b1..20b3da8 100644 --- a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **event_id** | **str** | Event ID (unique identifier for this specific room's block entry) | [optional] **room_id** | **str** | Room ID | [optional] **room_type_id** | **str** | Room Type ID | [optional] -**is_source** | **bool** | Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md index 108681b..cf1c419 100644 --- a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **success** | **bool** | Returns if the request could be completed | [optional] **property_id** | **str** | Property ID | [optional] **room_block_id** | **str** | Room block ID | [optional] -**room_block_type** | **str** | Room block type. 'blocked' - Room block. 'out_of_service' - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] +**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index 66cc088..c449181 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -916,7 +916,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). (optional) + rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) @@ -944,7 +944,7 @@ Name | Type | Description | Notes **room_block_reason** | **str**| Room block reason | [optional] **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] - **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). | [optional] + **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] **first_name** | **str**| First name - for courtesy hold updates | [optional] **last_name** | **str**| Last name - for courtesy hold updates | [optional] **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] @@ -1195,7 +1195,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. (optional) + rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) @@ -1223,7 +1223,7 @@ Name | Type | Description | Notes **room_block_reason** | **str**| Room block reason | [optional] **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] - **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. | [optional] + **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] **first_name** | **str**| First name - for courtesy hold updates | [optional] **last_name** | **str**| Last name - for courtesy hold updates | [optional] **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index 909e47a..de09fe6 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -156,7 +156,6 @@ from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py index df13b92..773486c 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py @@ -44,19 +44,19 @@ class GetReservationsResponseDataInnerGuestListValue(BaseModel): guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") - guest_birthdate: Optional[StrictStr] = Field(default=None, alias="guestBirthdate") + guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") - guest_document_issue_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issue_date: Optional[date] = Field(default=None, alias="guestDocumentIssueDate") guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") - guest_document_expiration_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentExpirationDate") + guest_document_expiration_date: Optional[date] = Field(default=None, alias="guestDocumentExpirationDate") tax_id: Optional[StrictStr] = Field(default=None, description="Guest's tax ID", alias="taxID") company_tax_id: Optional[StrictStr] = Field(default=None, description="Guest's company tax ID", alias="companyTaxID") company_name: Optional[StrictStr] = Field(default=None, description="Guest's company name", alias="companyName") sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") start_date: Optional[date] = Field(default=None, alias="startDate") end_date: Optional[date] = Field(default=None, alias="endDate") - assigned_room: Optional[StrictBool] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + assigned_room: Optional[StrictStr] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomTypeName") diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py index ef9e0f6..9fd5bb0 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from typing import Optional, Set @@ -46,18 +46,18 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): reservation_check_out: Optional[datetime] = Field(default=None, alias="reservationCheckOut") guest_id: Optional[StrictStr] = Field(default=None, description="Main guest ID", alias="guestID") profile_id: Optional[StrictStr] = Field(default=None, description="Main guest profile ID", alias="profileID") - guest_country: Optional[StrictStr] = Field(default=None, description="Main guest Country", alias="guestCountry") + guest_country: Optional[StrictInt] = Field(default=None, description="Main guest Country", alias="guestCountry") source_name: Optional[StrictStr] = Field(default=None, description="Reservation source", alias="sourceName") source: Optional[GetReservationsWithRateDetailsResponseDataInnerSource] = None - source_category: Optional[StrictStr] = Field(default=None, description="Reservation source category", alias="sourceCategory") - source_reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") - property_currency: Optional[StrictStr] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") + source_category: Optional[StrictInt] = Field(default=None, description="Reservation source category", alias="sourceCategory") + source_reservation_id: Optional[StrictInt] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") + property_currency: Optional[StrictInt] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") balance_detailed: Optional[GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed] = Field(default=None, alias="balanceDetailed") - detailed_rates: Optional[Dict[str, Any]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") + detailed_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") rooms: Optional[List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation meal plans", alias="mealPlans") - guest_list: Optional[Dict[str, GetReservationsWithRateDetailsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") + guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") third_party_identifier: Optional[StrictStr] = Field(default=None, alias="thirdPartyIdentifier") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of reservation custom fields. Only returned if \"includeCustomFields\" is true", alias="customFields") estimated_arrival_time: Optional[StrictStr] = Field(default=None, description="Estimated arrival time, 24-hour format.", alias="estimatedArrivalTime") @@ -221,7 +221,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "origin": obj.get("origin"), "mealPlans": obj.get("mealPlans"), "guestList": dict( - (_k, GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_dict(_v)) + (_k, GetReservationsResponseDataInnerGuestListValue.from_dict(_v)) for _k, _v in obj["guestList"].items() ) if obj.get("guestList") is not None diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py deleted file mode 100644 index 03b06ce..0000000 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py +++ /dev/null @@ -1,380 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner -from typing import Optional, Set -from typing_extensions import Self - -class GetReservationsWithRateDetailsResponseDataInnerGuestListValue(BaseModel): - """ - GetReservationsWithRateDetailsResponseDataInnerGuestListValue - """ # noqa: E501 - guest_id: Optional[StrictStr] = Field(default=None, description="ID of the guest", alias="guestID") - guest_name: Optional[StrictStr] = Field(default=None, alias="guestName") - guest_first_name: Optional[StrictStr] = Field(default=None, alias="guestFirstName") - guest_last_name: Optional[StrictStr] = Field(default=None, alias="guestLastName") - guest_gender: Optional[StrictStr] = Field(default=None, alias="guestGender") - guest_email: Optional[StrictStr] = Field(default=None, alias="guestEmail") - guest_phone: Optional[StrictStr] = Field(default=None, alias="guestPhone") - guest_cell_phone: Optional[StrictStr] = Field(default=None, alias="guestCellPhone") - guest_address: Optional[StrictStr] = Field(default=None, alias="guestAddress") - guest_address2: Optional[StrictStr] = Field(default=None, alias="guestAddress2") - guest_city: Optional[StrictStr] = Field(default=None, alias="guestCity") - guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") - guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") - guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") - guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") - guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") - guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") - guest_document_issue_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssueDate") - guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") - guest_document_expiration_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentExpirationDate") - tax_id: Optional[StrictStr] = Field(default=None, description="Guest's tax ID", alias="taxID") - company_tax_id: Optional[StrictStr] = Field(default=None, description="Guest's company tax ID", alias="companyTaxID") - company_name: Optional[StrictStr] = Field(default=None, description="Guest's company name", alias="companyName") - sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") - start_date: Optional[date] = Field(default=None, alias="startDate") - end_date: Optional[date] = Field(default=None, alias="endDate") - assigned_room: Optional[StrictBool] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") - room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") - room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") - room_type_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomTypeName") - room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") - rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") - unassigned_rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of all unassigned rooms", alias="unassignedRooms") - guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`.", alias="guestRequirements") - custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of guest custom fields", alias="customFields") - is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") - is_main_guest: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest is the main guest on the reservation", alias="isMainGuest") - __properties: ClassVar[List[str]] = ["guestID", "guestName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "subReservationID", "startDate", "endDate", "assignedRoom", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "rooms", "unassignedRooms", "guestRequirements", "customFields", "isAnonymized", "isMainGuest"] - - @field_validator('guest_gender') - def guest_gender_validate_enum(cls, value): - """Validates the enum, returning unknown_default_open_api for unrecognized values""" - if value is None: - return value - - _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) - if value not in _allowed_values: - return 'unknown_default_open_api' - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) - _items = [] - if self.rooms: - for _item_rooms in self.rooms: - if _item_rooms: - _items.append(_item_rooms.to_dict()) - _dict['rooms'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in unassigned_rooms (list) - _items = [] - if self.unassigned_rooms: - for _item_unassigned_rooms in self.unassigned_rooms: - if _item_unassigned_rooms: - _items.append(_item_unassigned_rooms.to_dict()) - _dict['unassignedRooms'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item_custom_fields in self.custom_fields: - if _item_custom_fields: - _items.append(_item_custom_fields.to_dict()) - _dict['customFields'] = _items - # set to None if guest_id (nullable) is None - # and model_fields_set contains the field - if self.guest_id is None and "guest_id" in self.model_fields_set: - _dict['guestID'] = None - - # set to None if guest_name (nullable) is None - # and model_fields_set contains the field - if self.guest_name is None and "guest_name" in self.model_fields_set: - _dict['guestName'] = None - - # set to None if guest_first_name (nullable) is None - # and model_fields_set contains the field - if self.guest_first_name is None and "guest_first_name" in self.model_fields_set: - _dict['guestFirstName'] = None - - # set to None if guest_last_name (nullable) is None - # and model_fields_set contains the field - if self.guest_last_name is None and "guest_last_name" in self.model_fields_set: - _dict['guestLastName'] = None - - # set to None if guest_gender (nullable) is None - # and model_fields_set contains the field - if self.guest_gender is None and "guest_gender" in self.model_fields_set: - _dict['guestGender'] = None - - # set to None if guest_email (nullable) is None - # and model_fields_set contains the field - if self.guest_email is None and "guest_email" in self.model_fields_set: - _dict['guestEmail'] = None - - # set to None if guest_phone (nullable) is None - # and model_fields_set contains the field - if self.guest_phone is None and "guest_phone" in self.model_fields_set: - _dict['guestPhone'] = None - - # set to None if guest_cell_phone (nullable) is None - # and model_fields_set contains the field - if self.guest_cell_phone is None and "guest_cell_phone" in self.model_fields_set: - _dict['guestCellPhone'] = None - - # set to None if guest_address (nullable) is None - # and model_fields_set contains the field - if self.guest_address is None and "guest_address" in self.model_fields_set: - _dict['guestAddress'] = None - - # set to None if guest_address2 (nullable) is None - # and model_fields_set contains the field - if self.guest_address2 is None and "guest_address2" in self.model_fields_set: - _dict['guestAddress2'] = None - - # set to None if guest_city (nullable) is None - # and model_fields_set contains the field - if self.guest_city is None and "guest_city" in self.model_fields_set: - _dict['guestCity'] = None - - # set to None if guest_state (nullable) is None - # and model_fields_set contains the field - if self.guest_state is None and "guest_state" in self.model_fields_set: - _dict['guestState'] = None - - # set to None if guest_country (nullable) is None - # and model_fields_set contains the field - if self.guest_country is None and "guest_country" in self.model_fields_set: - _dict['guestCountry'] = None - - # set to None if guest_zip (nullable) is None - # and model_fields_set contains the field - if self.guest_zip is None and "guest_zip" in self.model_fields_set: - _dict['guestZip'] = None - - # set to None if guest_birthdate (nullable) is None - # and model_fields_set contains the field - if self.guest_birthdate is None and "guest_birthdate" in self.model_fields_set: - _dict['guestBirthdate'] = None - - # set to None if guest_document_type (nullable) is None - # and model_fields_set contains the field - if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: - _dict['guestDocumentType'] = None - - # set to None if guest_document_number (nullable) is None - # and model_fields_set contains the field - if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: - _dict['guestDocumentNumber'] = None - - # set to None if guest_document_issue_date (nullable) is None - # and model_fields_set contains the field - if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: - _dict['guestDocumentIssueDate'] = None - - # set to None if guest_document_issuing_country (nullable) is None - # and model_fields_set contains the field - if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: - _dict['guestDocumentIssuingCountry'] = None - - # set to None if guest_document_expiration_date (nullable) is None - # and model_fields_set contains the field - if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: - _dict['guestDocumentExpirationDate'] = None - - # set to None if tax_id (nullable) is None - # and model_fields_set contains the field - if self.tax_id is None and "tax_id" in self.model_fields_set: - _dict['taxID'] = None - - # set to None if company_tax_id (nullable) is None - # and model_fields_set contains the field - if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: - _dict['companyTaxID'] = None - - # set to None if company_name (nullable) is None - # and model_fields_set contains the field - if self.company_name is None and "company_name" in self.model_fields_set: - _dict['companyName'] = None - - # set to None if sub_reservation_id (nullable) is None - # and model_fields_set contains the field - if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: - _dict['subReservationID'] = None - - # set to None if start_date (nullable) is None - # and model_fields_set contains the field - if self.start_date is None and "start_date" in self.model_fields_set: - _dict['startDate'] = None - - # set to None if end_date (nullable) is None - # and model_fields_set contains the field - if self.end_date is None and "end_date" in self.model_fields_set: - _dict['endDate'] = None - - # set to None if assigned_room (nullable) is None - # and model_fields_set contains the field - if self.assigned_room is None and "assigned_room" in self.model_fields_set: - _dict['assignedRoom'] = None - - # set to None if room_id (nullable) is None - # and model_fields_set contains the field - if self.room_id is None and "room_id" in self.model_fields_set: - _dict['roomID'] = None - - # set to None if room_name (nullable) is None - # and model_fields_set contains the field - if self.room_name is None and "room_name" in self.model_fields_set: - _dict['roomName'] = None - - # set to None if room_type_name (nullable) is None - # and model_fields_set contains the field - if self.room_type_name is None and "room_type_name" in self.model_fields_set: - _dict['roomTypeName'] = None - - # set to None if room_type_is_virtual (nullable) is None - # and model_fields_set contains the field - if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: - _dict['roomTypeIsVirtual'] = None - - # set to None if rooms (nullable) is None - # and model_fields_set contains the field - if self.rooms is None and "rooms" in self.model_fields_set: - _dict['rooms'] = None - - # set to None if unassigned_rooms (nullable) is None - # and model_fields_set contains the field - if self.unassigned_rooms is None and "unassigned_rooms" in self.model_fields_set: - _dict['unassignedRooms'] = None - - # set to None if guest_requirements (nullable) is None - # and model_fields_set contains the field - if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: - _dict['guestRequirements'] = None - - # set to None if custom_fields (nullable) is None - # and model_fields_set contains the field - if self.custom_fields is None and "custom_fields" in self.model_fields_set: - _dict['customFields'] = None - - # set to None if is_anonymized (nullable) is None - # and model_fields_set contains the field - if self.is_anonymized is None and "is_anonymized" in self.model_fields_set: - _dict['isAnonymized'] = None - - # set to None if is_main_guest (nullable) is None - # and model_fields_set contains the field - if self.is_main_guest is None and "is_main_guest" in self.model_fields_set: - _dict['isMainGuest'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "guestID": obj.get("guestID"), - "guestName": obj.get("guestName"), - "guestFirstName": obj.get("guestFirstName"), - "guestLastName": obj.get("guestLastName"), - "guestGender": obj.get("guestGender"), - "guestEmail": obj.get("guestEmail"), - "guestPhone": obj.get("guestPhone"), - "guestCellPhone": obj.get("guestCellPhone"), - "guestAddress": obj.get("guestAddress"), - "guestAddress2": obj.get("guestAddress2"), - "guestCity": obj.get("guestCity"), - "guestState": obj.get("guestState"), - "guestCountry": obj.get("guestCountry"), - "guestZip": obj.get("guestZip"), - "guestBirthdate": obj.get("guestBirthdate"), - "guestDocumentType": obj.get("guestDocumentType"), - "guestDocumentNumber": obj.get("guestDocumentNumber"), - "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), - "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), - "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), - "taxID": obj.get("taxID"), - "companyTaxID": obj.get("companyTaxID"), - "companyName": obj.get("companyName"), - "subReservationID": obj.get("subReservationID"), - "startDate": obj.get("startDate"), - "endDate": obj.get("endDate"), - "assignedRoom": obj.get("assignedRoom"), - "roomID": obj.get("roomID"), - "roomName": obj.get("roomName"), - "roomTypeName": obj.get("roomTypeName"), - "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), - "rooms": [GetReservationsResponseDataInnerGuestListValueRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, - "unassignedRooms": [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.from_dict(_item) for _item in obj["unassignedRooms"]] if obj.get("unassignedRooms") is not None else None, - "guestRequirements": obj.get("guestRequirements"), - "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, - "isAnonymized": obj.get("isAnonymized"), - "isMainGuest": obj.get("isMainGuest") - }) - return _obj - - diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py index 2c5aea6..e2bec14 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py @@ -32,7 +32,7 @@ class GetRoomBlocksResponseDataInner(BaseModel): room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[GetRoomBlocksResponseDataInnerRoomsInner]] = Field(default=None, description="All rooms for Block ID. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") + rooms: Optional[List[GetRoomBlocksResponseDataInnerRoomsInner]] = Field(default=None, description="All rooms for Block ID") count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned.") __properties: ClassVar[List[str]] = ["roomBlockID", "roomBlockReason", "startDate", "endDate", "rooms", "count"] diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py index 3c12cdf..415d431 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,8 +29,7 @@ class GetRoomBlocksResponseDataInnerRoomsInner(BaseModel): event_id: Optional[StrictStr] = Field(default=None, description="Event ID (unique identifier for this specific room's block entry)", alias="eventID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") - is_source: Optional[StrictBool] = Field(default=None, description="Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room.", alias="isSource") - __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID", "isSource"] + __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID"] model_config = ConfigDict( populate_by_name=True, @@ -85,8 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "eventID": obj.get("eventID"), "roomID": obj.get("roomID"), - "roomTypeID": obj.get("roomTypeID"), - "isSource": obj.get("isSource") + "roomTypeID": obj.get("roomTypeID") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response.py b/cloudbeds_pms_v1_3/models/post_room_block_response.py index 40ded62..fe5daa7 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response.py @@ -35,7 +35,7 @@ class PostRoomBlockResponse(BaseModel): room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py index 5e9df3a..22c5d33 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,8 +29,7 @@ class PostRoomBlockResponseRoomsInner(BaseModel): event_id: Optional[StrictStr] = Field(default=None, description="Event ID (unique identifier for this specific room's block entry)", alias="eventID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") - is_source: Optional[StrictBool] = Field(default=None, description="Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room.", alias="isSource") - __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID", "isSource"] + __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID"] model_config = ConfigDict( populate_by_name=True, @@ -85,8 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "eventID": obj.get("eventID"), "roomID": obj.get("roomID"), - "roomTypeID": obj.get("roomTypeID"), - "isSource": obj.get("isSource") + "roomTypeID": obj.get("roomTypeID") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/put_room_block_response.py b/cloudbeds_pms_v1_3/models/put_room_block_response.py index 7c9be2a..2dbde8f 100644 --- a/cloudbeds_pms_v1_3/models/put_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_response.py @@ -31,11 +31,11 @@ class PutRoomBlockResponse(BaseModel): success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") - room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. 'blocked' - Room block. 'out_of_service' - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType") room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py index d2576fa..ef622c2 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py @@ -104,19 +104,19 @@ def make_instance(self, include_optional) -> GetReservationsResponse: guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_issuing_country = '', - guest_document_expiration_date = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = True, + assigned_room = '', room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py index a76da28..51952a5 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py @@ -101,19 +101,19 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_issuing_country = '', - guest_document_expiration_date = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = True, + assigned_room = '', room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py index 4fb7fba..55cb051 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py @@ -49,19 +49,19 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_issuing_country = '', - guest_document_expiration_date = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = True, + assigned_room = '', room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py index e97f48c..e0766b6 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py @@ -52,16 +52,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), guest_id = '', profile_id = '', - guest_country = '', + guest_country = 56, source_name = '', source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( name = '', payment_collect = 'hotel', source_id = '', category = '', ), - source_category = '', - source_reservation_id = '', - property_currency = '', + source_category = 56, + source_reservation_id = 56, + property_currency = 56, balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( suggested_deposit = '', sub_total = 1.337, @@ -69,7 +69,9 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo taxes_fees = 1.337, grand_total = 1.337, paid = 1.337, ), - detailed_rates = cloudbeds_pms_v1_3.models.detailed_rates.detailedRates(), + detailed_rates = [ + None + ], rooms = [ cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', @@ -97,7 +99,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo origin = '', meal_plans = '', guest_list = { - 'key' : cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value.GetReservationsWithRateDetailsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -115,16 +117,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_issuing_country = '', - guest_document_expiration_date = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = True, + assigned_room = '', room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py index d84833d..5d03a79 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -49,16 +49,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), guest_id = '', profile_id = '', - guest_country = '', + guest_country = 56, source_name = '', source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( name = '', payment_collect = 'hotel', source_id = '', category = '', ), - source_category = '', - source_reservation_id = '', - property_currency = '', + source_category = 56, + source_reservation_id = 56, + property_currency = 56, balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( suggested_deposit = '', sub_total = 1.337, @@ -66,7 +66,9 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo taxes_fees = 1.337, grand_total = 1.337, paid = 1.337, ), - detailed_rates = cloudbeds_pms_v1_3.models.detailed_rates.detailedRates(), + detailed_rates = [ + None + ], rooms = [ cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', @@ -94,7 +96,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo origin = '', meal_plans = '', guest_list = { - 'key' : cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value.GetReservationsWithRateDetailsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -112,16 +114,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = '', + guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_issuing_country = '', - guest_document_expiration_date = '', + guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = True, + assigned_room = '', room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py deleted file mode 100644 index d9c998b..0000000 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Cloudbeds API - -

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

- - The version of the OpenAPI document: v1.3 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue - -class TestGetReservationsWithRateDetailsResponseDataInnerGuestListValue(unittest.TestCase): - """GetReservationsWithRateDetailsResponseDataInnerGuestListValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerGuestListValue: - """Test GetReservationsWithRateDetailsResponseDataInnerGuestListValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerGuestListValue` - """ - model = GetReservationsWithRateDetailsResponseDataInnerGuestListValue() - if include_optional: - return GetReservationsWithRateDetailsResponseDataInnerGuestListValue( - guest_id = '', - guest_name = '', - guest_first_name = '', - guest_last_name = '', - guest_gender = 'M', - guest_email = '', - guest_phone = '', - guest_cell_phone = '', - guest_address = '', - guest_address2 = '', - guest_city = '', - guest_state = '', - guest_country = '', - guest_zip = '', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - guest_document_type = '', - guest_document_number = '', - guest_document_issue_date = '', - guest_document_issuing_country = '', - guest_document_expiration_date = '', - tax_id = '', - company_tax_id = '', - company_name = '', - sub_reservation_id = '', - start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = True, - room_id = '', - room_name = '', - room_type_name = '', - room_type_is_virtual = True, - rooms = [ - cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( - reservation_room_id = '', - room_id = '', - room_name = '', - room_type_name = '', - room_type_is_virtual = True, - room_type_id = '', - room_type_name_short = '', - rate_id = '', - rate_plan_name = '', - room_status = 'in_house', - sub_reservation_id = '', ) - ], - unassigned_rooms = [ - cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( - reservation_room_id = '', - room_type_id = '', - room_type_name = '', - room_type_is_virtual = True, - room_type_name_short = '', - rate_id = '', - rate_plan_name = '', - sub_reservation_id = '', ) - ], - guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), - custom_fields = [ - cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( - custom_field_name = '', - custom_field_value = '', ) - ], - is_anonymized = True, - is_main_guest = True - ) - else: - return GetReservationsWithRateDetailsResponseDataInnerGuestListValue( - ) - """ - - def testGetReservationsWithRateDetailsResponseDataInnerGuestListValue(self): - """Test GetReservationsWithRateDetailsResponseDataInnerGuestListValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py index 6c9c94e..47f855c 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py @@ -46,8 +46,7 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponse: cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner.GetRoomBlocksResponse_data_inner_rooms_inner( event_id = '', room_id = '', - room_type_id = '', - is_source = True, ) + room_type_id = '', ) ], count = 56, ) ], diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py index 4f6c90a..2e2bd9b 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py @@ -43,8 +43,7 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInner: cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner.GetRoomBlocksResponse_data_inner_rooms_inner( event_id = '', room_id = '', - room_type_id = '', - is_source = True, ) + room_type_id = '', ) ], count = 56 ) diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py index 3affc2a..280d366 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py @@ -37,8 +37,7 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInnerRooms return GetRoomBlocksResponseDataInnerRoomsInner( event_id = '', room_id = '', - room_type_id = '', - is_source = True + room_type_id = '' ) else: return GetRoomBlocksResponseDataInnerRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_post_room_block_response.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py index 63c687b..215f981 100644 --- a/cloudbeds_pms_v1_3/test/test_post_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py @@ -46,8 +46,7 @@ def make_instance(self, include_optional) -> PostRoomBlockResponse: cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( event_id = '', room_id = '', - room_type_id = '', - is_source = True, ) + room_type_id = '', ) ], message = '' ) diff --git a/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py index 98e34c4..be17885 100644 --- a/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py @@ -37,8 +37,7 @@ def make_instance(self, include_optional) -> PostRoomBlockResponseRoomsInner: return PostRoomBlockResponseRoomsInner( event_id = '', room_id = '', - room_type_id = '', - is_source = True + room_type_id = '' ) else: return PostRoomBlockResponseRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py index df9b0cb..2061650 100644 --- a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py @@ -46,8 +46,7 @@ def make_instance(self, include_optional) -> PutRoomBlockResponse: cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( event_id = '', room_id = '', - room_type_id = '', - is_source = True, ) + room_type_id = '', ) ], message = '' ) diff --git a/openapitools.json b/openapitools.json index 6795569..3bff1c1 100644 --- a/openapitools.json +++ b/openapitools.json @@ -10,7 +10,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.10.0", + "packageVersion": "1.11.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1", From 25a140cd689101580231b52bb06eb884b45c87dd Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 24 Feb 2026 04:31:59 +0000 Subject: [PATCH 45/46] Bump version to 1.12.0 --- .openapi-generator/FILES | 3 + README.md | 3 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 3 +- cloudbeds_pms_v1_3/api/guest_api.py | 12 +- cloudbeds_pms_v1_3/api/hotel_api.py | 12 +- cloudbeds_pms_v1_3/api/payment_api.py | 51 ++- cloudbeds_pms_v1_3/api/reservation_api.py | 12 +- cloudbeds_pms_v1_3/api/room_api.py | 24 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- ...rvationsResponseDataInnerGuestListValue.md | 8 +- ...vationsWithRateDetailsResponseDataInner.md | 12 +- ...eDetailsResponseDataInnerGuestListValue.md | 65 +++ .../docs/GetRoomBlocksResponseDataInner.md | 2 +- ...etRoomBlocksResponseDataInnerRoomsInner.md | 1 + cloudbeds_pms_v1_3/docs/GuestApi.md | 4 +- cloudbeds_pms_v1_3/docs/HotelApi.md | 4 +- cloudbeds_pms_v1_3/docs/PaymentApi.md | 16 +- .../docs/PostRoomBlockResponse.md | 2 +- .../docs/PostRoomBlockResponseRoomsInner.md | 1 + .../docs/PutRoomBlockResponse.md | 4 +- cloudbeds_pms_v1_3/docs/ReservationApi.md | 4 +- cloudbeds_pms_v1_3/docs/RoomApi.md | 8 +- cloudbeds_pms_v1_3/models/__init__.py | 1 + ...ns_response_data_inner_guest_list_value.py | 8 +- ...s_with_rate_details_response_data_inner.py | 16 +- ...ls_response_data_inner_guest_list_value.py | 380 ++++++++++++++++++ .../get_room_blocks_response_data_inner.py | 2 +- ..._blocks_response_data_inner_rooms_inner.py | 8 +- .../models/post_room_block_response.py | 2 +- .../post_room_block_response_rooms_inner.py | 8 +- .../models/put_room_block_response.py | 4 +- .../test/test_get_reservations_response.py | 8 +- ...st_get_reservations_response_data_inner.py | 8 +- ...ns_response_data_inner_guest_list_value.py | 8 +- ...reservations_with_rate_details_response.py | 20 +- ...s_with_rate_details_response_data_inner.py | 20 +- ...ls_response_data_inner_guest_list_value.py | 114 ++++++ .../test/test_get_room_blocks_response.py | 3 +- ...est_get_room_blocks_response_data_inner.py | 3 +- ..._blocks_response_data_inner_rooms_inner.py | 3 +- .../test/test_post_room_block_response.py | 3 +- ...st_post_room_block_response_rooms_inner.py | 3 +- .../test/test_put_room_block_response.py | 3 +- openapitools.json | 2 +- 46 files changed, 737 insertions(+), 147 deletions(-) create mode 100644 cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md create mode 100644 cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py create mode 100644 cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 76e8172..3a58c33 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -176,6 +176,7 @@ cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md +cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md @@ -507,6 +508,7 @@ cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_balance_detailed.py +cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_source.py cloudbeds_pms_v1_3/models/get_room_blocks_response.py @@ -832,6 +834,7 @@ cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_balance_detailed.py +cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_source.py cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py diff --git a/README.md b/README.md index cae143b..42cbb0a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.11.0 +- Package version: 1.12.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -339,6 +339,7 @@ Class | Method | HTTP request | Description - [GetReservationsWithRateDetailsResponse](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponse.md) - [GetReservationsWithRateDetailsResponseDataInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md) - [GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) + - [GetReservationsWithRateDetailsResponseDataInnerGuestListValue](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md) - [GetReservationsWithRateDetailsResponseDataInnerRoomsInner](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) - [GetReservationsWithRateDetailsResponseDataInnerSource](cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerSource.md) - [GetRoomBlocksResponse](cloudbeds_pms_v1_3/docs/GetRoomBlocksResponse.md) diff --git a/VERSION b/VERSION index 1cac385..0eed1a2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.0 +1.12.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index b376e0c..9c29f0a 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.11.0" +__version__ = "1.12.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi @@ -194,6 +194,7 @@ from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse diff --git a/cloudbeds_pms_v1_3/api/guest_api.py b/cloudbeds_pms_v1_3/api/guest_api.py index a31a053..d0223cc 100644 --- a/cloudbeds_pms_v1_3/api/guest_api.py +++ b/cloudbeds_pms_v1_3/api/guest_api.py @@ -2869,7 +2869,7 @@ def post_guest_document_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2891,7 +2891,7 @@ def post_guest_document_post( :type property_id: str :param guest_id: Guest Unique Identifier :type guest_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2944,7 +2944,7 @@ def post_guest_document_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2966,7 +2966,7 @@ def post_guest_document_post_with_http_info( :type property_id: str :param guest_id: Guest Unique Identifier :type guest_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3019,7 +3019,7 @@ def post_guest_document_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, guest_id: Annotated[Optional[StrictStr], Field(description="Guest Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3041,7 +3041,7 @@ def post_guest_document_post_without_preload_content( :type property_id: str :param guest_id: Guest Unique Identifier :type guest_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/cloudbeds_pms_v1_3/api/hotel_api.py b/cloudbeds_pms_v1_3/api/hotel_api.py index 32d8ef0..84658e0 100644 --- a/cloudbeds_pms_v1_3/api/hotel_api.py +++ b/cloudbeds_pms_v1_3/api/hotel_api.py @@ -1008,7 +1008,7 @@ def _get_hotels_get_serialize( def post_file_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, group_code: Annotated[Optional[StrictStr], Field(description="optional - the group code if the file is to be attached to a group profile")] = None, _request_timeout: Union[ None, @@ -1029,7 +1029,7 @@ def post_file_post( :param property_id: Property ID :type property_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param group_code: optional - the group code if the file is to be attached to a group profile :type group_code: str @@ -1083,7 +1083,7 @@ def post_file_post( def post_file_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, group_code: Annotated[Optional[StrictStr], Field(description="optional - the group code if the file is to be attached to a group profile")] = None, _request_timeout: Union[ None, @@ -1104,7 +1104,7 @@ def post_file_post_with_http_info( :param property_id: Property ID :type property_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param group_code: optional - the group code if the file is to be attached to a group profile :type group_code: str @@ -1158,7 +1158,7 @@ def post_file_post_with_http_info( def post_file_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, group_code: Annotated[Optional[StrictStr], Field(description="optional - the group code if the file is to be attached to a group profile")] = None, _request_timeout: Union[ None, @@ -1179,7 +1179,7 @@ def post_file_post_without_preload_content( :param property_id: Property ID :type property_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param group_code: optional - the group code if the file is to be attached to a group profile :type group_code: str diff --git a/cloudbeds_pms_v1_3/api/payment_api.py b/cloudbeds_pms_v1_3/api/payment_api.py index 8c1f28b..852075a 100644 --- a/cloudbeds_pms_v1_3/api/payment_api.py +++ b/cloudbeds_pms_v1_3/api/payment_api.py @@ -601,6 +601,7 @@ def post_charge_post( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -637,6 +638,8 @@ def post_charge_post( :type currency: str :param description: Description of the payment to display on folio :type description: str + :param card_token: cardToken provided by Cloudbeds vault + :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -674,6 +677,7 @@ def post_charge_post( amount=amount, currency=currency, description=description, + card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -708,6 +712,7 @@ def post_charge_post_with_http_info( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -744,6 +749,8 @@ def post_charge_post_with_http_info( :type currency: str :param description: Description of the payment to display on folio :type description: str + :param card_token: cardToken provided by Cloudbeds vault + :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -781,6 +788,7 @@ def post_charge_post_with_http_info( amount=amount, currency=currency, description=description, + card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -815,6 +823,7 @@ def post_charge_post_without_preload_content( amount: Annotated[Optional[StrictStr], Field(description="Amount to charge")] = None, currency: Annotated[Optional[StrictStr], Field(description="Currency to charge")] = None, description: Annotated[Optional[StrictStr], Field(description="Description of the payment to display on folio")] = None, + card_token: Annotated[Optional[StrictStr], Field(description="cardToken provided by Cloudbeds vault")] = None, payment_method_id: Annotated[Optional[StrictStr], Field(description="Payment method UUID")] = None, is_deposit: Annotated[Optional[StrictBool], Field(description="determine if this payment is a deposit (default: false)")] = None, redirect_url: Annotated[Optional[StrictStr], Field(description="client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected")] = None, @@ -851,6 +860,8 @@ def post_charge_post_without_preload_content( :type currency: str :param description: Description of the payment to display on folio :type description: str + :param card_token: cardToken provided by Cloudbeds vault + :type card_token: str :param payment_method_id: Payment method UUID :type payment_method_id: str :param is_deposit: determine if this payment is a deposit (default: false) @@ -888,6 +899,7 @@ def post_charge_post_without_preload_content( amount=amount, currency=currency, description=description, + card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url, @@ -917,6 +929,7 @@ def _post_charge_post_serialize( amount, currency, description, + card_token, payment_method_id, is_deposit, redirect_url, @@ -960,6 +973,8 @@ def _post_charge_post_serialize( _form_params.append(('currency', currency)) if description is not None: _form_params.append(('description', description)) + if card_token is not None: + _form_params.append(('cardToken', card_token)) if payment_method_id is not None: _form_params.append(('paymentMethodId', payment_method_id)) if is_deposit is not None: @@ -1661,7 +1676,7 @@ def post_payment_post( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID. Required if neither reservationID nor houseAccountID is sent")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1683,7 +1698,7 @@ def post_payment_post( ) -> PostPaymentResponse: """postPayment - Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. :param property_id: Property ID :type property_id: str @@ -1691,8 +1706,8 @@ def post_payment_post( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str - :param group_id: Group ID. Required if neither reservationID nor houseAccountID is sent - :type group_id: str + :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent + :type group_code: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1731,7 +1746,7 @@ def post_payment_post( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - group_id=group_id, + group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1764,7 +1779,7 @@ def post_payment_post_with_http_info( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID. Required if neither reservationID nor houseAccountID is sent")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1786,7 +1801,7 @@ def post_payment_post_with_http_info( ) -> ApiResponse[PostPaymentResponse]: """postPayment - Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. :param property_id: Property ID :type property_id: str @@ -1794,8 +1809,8 @@ def post_payment_post_with_http_info( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str - :param group_id: Group ID. Required if neither reservationID nor houseAccountID is sent - :type group_id: str + :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent + :type group_code: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1834,7 +1849,7 @@ def post_payment_post_with_http_info( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - group_id=group_id, + group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1867,7 +1882,7 @@ def post_payment_post_without_preload_content( property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation identifier")] = None, house_account_id: Annotated[Optional[StrictStr], Field(description="House Account identifier is necessary if reservationID not sent")] = None, - group_id: Annotated[Optional[StrictStr], Field(description="Group ID. Required if neither reservationID nor houseAccountID is sent")] = None, + group_code: Annotated[Optional[StrictStr], Field(description="Group Code. Required if neither reservationID nor houseAccountID is sent")] = None, sub_reservation_id: Annotated[Optional[StrictStr], Field(description="The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent.")] = None, type: Annotated[Optional[StrictStr], Field(description="Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods.")] = None, amount: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Amount paid on this transaction")] = None, @@ -1889,7 +1904,7 @@ def post_payment_post_without_preload_content( ) -> RESTResponseType: """postPayment - Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. + Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. :param property_id: Property ID :type property_id: str @@ -1897,8 +1912,8 @@ def post_payment_post_without_preload_content( :type reservation_id: str :param house_account_id: House Account identifier is necessary if reservationID not sent :type house_account_id: str - :param group_id: Group ID. Required if neither reservationID nor houseAccountID is sent - :type group_id: str + :param group_code: Group Code. Required if neither reservationID nor houseAccountID is sent + :type group_code: str :param sub_reservation_id: The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. :type sub_reservation_id: str :param type: Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. @@ -1937,7 +1952,7 @@ def post_payment_post_without_preload_content( property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, - group_id=group_id, + group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, @@ -1965,7 +1980,7 @@ def _post_payment_post_serialize( property_id, reservation_id, house_account_id, - group_id, + group_code, sub_reservation_id, type, amount, @@ -2002,8 +2017,8 @@ def _post_payment_post_serialize( _form_params.append(('reservationID', reservation_id)) if house_account_id is not None: _form_params.append(('houseAccountID', house_account_id)) - if group_id is not None: - _form_params.append(('groupID', group_id)) + if group_code is not None: + _form_params.append(('groupCode', group_code)) if sub_reservation_id is not None: _form_params.append(('subReservationID', sub_reservation_id)) if type is not None: diff --git a/cloudbeds_pms_v1_3/api/reservation_api.py b/cloudbeds_pms_v1_3/api/reservation_api.py index 970b949..296bdcc 100644 --- a/cloudbeds_pms_v1_3/api/reservation_api.py +++ b/cloudbeds_pms_v1_3/api/reservation_api.py @@ -2895,7 +2895,7 @@ def post_reservation_document_post( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2917,7 +2917,7 @@ def post_reservation_document_post( :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2970,7 +2970,7 @@ def post_reservation_document_post_with_http_info( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2992,7 +2992,7 @@ def post_reservation_document_post_with_http_info( :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3045,7 +3045,7 @@ def post_reservation_document_post_without_preload_content( self, property_id: Annotated[Optional[StrictStr], Field(description="Property ID")] = None, reservation_id: Annotated[Optional[StrictStr], Field(description="Reservation Unique Identifier")] = None, - file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB")] = None, + file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3067,7 +3067,7 @@ def post_reservation_document_post_without_preload_content( :type property_id: str :param reservation_id: Reservation Unique Identifier :type reservation_id: str - :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB + :param file: Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/cloudbeds_pms_v1_3/api/room_api.py b/cloudbeds_pms_v1_3/api/room_api.py index b50aa01..28e8502 100644 --- a/cloudbeds_pms_v1_3/api/room_api.py +++ b/cloudbeds_pms_v1_3/api/room_api.py @@ -3475,7 +3475,7 @@ def post_room_block_post( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3508,7 +3508,7 @@ def post_room_block_post( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -3582,7 +3582,7 @@ def post_room_block_post_with_http_info( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3615,7 +3615,7 @@ def post_room_block_post_with_http_info( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -3689,7 +3689,7 @@ def post_room_block_post_without_preload_content( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PostRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s).")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -3722,7 +3722,7 @@ def post_room_block_post_without_preload_content( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). :type rooms: List[PostRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4541,7 +4541,7 @@ def put_room_block_put( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4574,7 +4574,7 @@ def put_room_block_put( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4648,7 +4648,7 @@ def put_room_block_put_with_http_info( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4681,7 +4681,7 @@ def put_room_block_put_with_http_info( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str @@ -4755,7 +4755,7 @@ def put_room_block_put_without_preload_content( room_block_reason: Annotated[Optional[StrictStr], Field(description="Room block reason")] = None, start_date: Annotated[Optional[date], Field(description="Room block start date")] = None, end_date: Annotated[Optional[date], Field(description="Room block end date")] = None, - rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID.")] = None, + rooms: Annotated[Optional[List[PutRoomBlockRequestRoomsInner]], Field(description="All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room.")] = None, first_name: Annotated[Optional[StrictStr], Field(description="First name - for courtesy hold updates")] = None, last_name: Annotated[Optional[StrictStr], Field(description="Last name - for courtesy hold updates")] = None, length_of_hold_in_hours: Annotated[Optional[StrictInt], Field(description="Length of hold in hours - for courtesy hold updates")] = None, @@ -4788,7 +4788,7 @@ def put_room_block_put_without_preload_content( :type start_date: date :param end_date: Room block end date :type end_date: date - :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. + :param rooms: All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. :type rooms: List[PutRoomBlockRequestRoomsInner] :param first_name: First name - for courtesy hold updates :type first_name: str diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index 9df6988..add4e22 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.11.0/python' + self.user_agent = 'OpenAPI-Generator/1.12.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index a2ffa11..17db83c 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.11.0".\ + "SDK Package Version: 1.12.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md index 60a86aa..02de020 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsResponseDataInnerGuestListValue.md @@ -19,19 +19,19 @@ Name | Type | Description | Notes **guest_state** | **str** | | [optional] **guest_country** | **str** | | [optional] **guest_zip** | **str** | | [optional] -**guest_birthdate** | **date** | | [optional] +**guest_birthdate** | **str** | | [optional] **guest_document_type** | **str** | | [optional] **guest_document_number** | **str** | | [optional] -**guest_document_issue_date** | **date** | | [optional] +**guest_document_issue_date** | **str** | | [optional] **guest_document_issuing_country** | **str** | | [optional] -**guest_document_expiration_date** | **date** | | [optional] +**guest_document_expiration_date** | **str** | | [optional] **tax_id** | **str** | Guest's tax ID | [optional] **company_tax_id** | **str** | Guest's company tax ID | [optional] **company_name** | **str** | Guest's company name | [optional] **sub_reservation_id** | **str** | | [optional] **start_date** | **date** | | [optional] **end_date** | **date** | | [optional] -**assigned_room** | **str** | Returns true if guest has roomed assigned, false if not | [optional] +**assigned_room** | **bool** | Returns true if guest has roomed assigned, false if not | [optional] **room_id** | **str** | Room ID where guest is assigned | [optional] **room_name** | **str** | Room Name where guest is assigned | [optional] **room_type_name** | **str** | Room Name where guest is assigned | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md index feef90f..a08ed26 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInner.md @@ -19,18 +19,18 @@ Name | Type | Description | Notes **reservation_check_out** | **datetime** | | [optional] **guest_id** | **str** | Main guest ID | [optional] **profile_id** | **str** | Main guest profile ID | [optional] -**guest_country** | **int** | Main guest Country | [optional] +**guest_country** | **str** | Main guest Country | [optional] **source_name** | **str** | Reservation source | [optional] **source** | [**GetReservationsWithRateDetailsResponseDataInnerSource**](GetReservationsWithRateDetailsResponseDataInnerSource.md) | | [optional] -**source_category** | **int** | Reservation source category | [optional] -**source_reservation_id** | **int** | Reservation ID on the source | [optional] -**property_currency** | **int** | Property currency ISO-formatted (3 characters) | [optional] +**source_category** | **str** | Reservation source category | [optional] +**source_reservation_id** | **str** | Reservation ID on the source | [optional] +**property_currency** | **str** | Property currency ISO-formatted (3 characters) | [optional] **balance_detailed** | [**GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed**](GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed.md) | | [optional] -**detailed_rates** | **List[object]** | Associative object, where key is the date, and value is the total rate for that date. | [optional] +**detailed_rates** | **object** | Associative object, where key is the date, and value is the total rate for that date. | [optional] **rooms** | [**List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]**](GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md) | Array with rooms information | [optional] **origin** | **str** | Reservation origin | [optional] **meal_plans** | **str** | Reservation meal plans | [optional] -**guest_list** | [**Dict[str, GetReservationsResponseDataInnerGuestListValue]**](GetReservationsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] +**guest_list** | [**Dict[str, GetReservationsWithRateDetailsResponseDataInnerGuestListValue]**](GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md) | A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true | [optional] **third_party_identifier** | **str** | | [optional] **custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of reservation custom fields. Only returned if \"includeCustomFields\" is true | [optional] **estimated_arrival_time** | **str** | Estimated arrival time, 24-hour format. | [optional] diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md new file mode 100644 index 0000000..4b2b44d --- /dev/null +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerGuestListValue.md @@ -0,0 +1,65 @@ +# GetReservationsWithRateDetailsResponseDataInnerGuestListValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guest_id** | **str** | ID of the guest | [optional] +**guest_name** | **str** | | [optional] +**guest_first_name** | **str** | | [optional] +**guest_last_name** | **str** | | [optional] +**guest_gender** | **str** | | [optional] +**guest_email** | **str** | | [optional] +**guest_phone** | **str** | | [optional] +**guest_cell_phone** | **str** | | [optional] +**guest_address** | **str** | | [optional] +**guest_address2** | **str** | | [optional] +**guest_city** | **str** | | [optional] +**guest_state** | **str** | | [optional] +**guest_country** | **str** | | [optional] +**guest_zip** | **str** | | [optional] +**guest_birthdate** | **date** | | [optional] +**guest_document_type** | **str** | | [optional] +**guest_document_number** | **str** | | [optional] +**guest_document_issue_date** | **str** | | [optional] +**guest_document_issuing_country** | **str** | | [optional] +**guest_document_expiration_date** | **str** | | [optional] +**tax_id** | **str** | Guest's tax ID | [optional] +**company_tax_id** | **str** | Guest's company tax ID | [optional] +**company_name** | **str** | Guest's company name | [optional] +**sub_reservation_id** | **str** | | [optional] +**start_date** | **date** | | [optional] +**end_date** | **date** | | [optional] +**assigned_room** | **bool** | Returns true if guest has roomed assigned, false if not | [optional] +**room_id** | **str** | Room ID where guest is assigned | [optional] +**room_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_name** | **str** | Room Name where guest is assigned | [optional] +**room_type_is_virtual** | **bool** | If room is virtual (true) or physical (false) | [optional] +**rooms** | [**List[GetReservationsResponseDataInnerGuestListValueRoomsInner]**](GetReservationsResponseDataInnerGuestListValueRoomsInner.md) | List of all rooms that guest is assigned to | [optional] +**unassigned_rooms** | [**List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]**](GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.md) | List of all unassigned rooms | [optional] +**guest_requirements** | **object** | Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`. | [optional] +**custom_fields** | [**List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]**](GetGuestsModifiedResponseDataInnerCustomFieldsInner.md) | List of guest custom fields | [optional] +**is_anonymized** | **bool** | Flag indicating the guest data was removed upon request | [optional] +**is_main_guest** | **bool** | Flag indicating the guest is the main guest on the reservation | [optional] + +## Example + +```python +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue + +# TODO update the JSON string below +json = "{}" +# create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a JSON string +get_reservations_with_rate_details_response_data_inner_guest_list_value_instance = GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_json(json) +# print the JSON string representation of the object +print(GetReservationsWithRateDetailsResponseDataInnerGuestListValue.to_json()) + +# convert the object into a dict +get_reservations_with_rate_details_response_data_inner_guest_list_value_dict = get_reservations_with_rate_details_response_data_inner_guest_list_value_instance.to_dict() +# create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a dict +get_reservations_with_rate_details_response_data_inner_guest_list_value_from_dict = GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_dict(get_reservations_with_rate_details_response_data_inner_guest_list_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md index cafd8d0..024a7aa 100644 --- a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInner.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[GetRoomBlocksResponseDataInnerRoomsInner]**](GetRoomBlocksResponseDataInnerRoomsInner.md) | All rooms for Block ID | [optional] +**rooms** | [**List[GetRoomBlocksResponseDataInnerRoomsInner]**](GetRoomBlocksResponseDataInnerRoomsInner.md) | All rooms for Block ID. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] **count** | **int** | Number of results (properties) returned. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md index 41038c7..c829c88 100644 --- a/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetRoomBlocksResponseDataInnerRoomsInner.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **event_id** | **str** | Event ID (unique identifier for this specific room's block entry) | [optional] **room_id** | **str** | Room ID | [optional] **room_type_id** | **str** | Room type ID | [optional] +**is_source** | **bool** | Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/GuestApi.md b/cloudbeds_pms_v1_3/docs/GuestApi.md index c8d23e8..423bbdc 100644 --- a/cloudbeds_pms_v1_3/docs/GuestApi.md +++ b/cloudbeds_pms_v1_3/docs/GuestApi.md @@ -731,7 +731,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: api_instance = cloudbeds_pms_v1_3.GuestApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) guest_id = 'guest_id_example' # str | Guest Unique Identifier (optional) - file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) + file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB (optional) try: # postGuestDocument @@ -751,7 +751,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] **guest_id** | **str**| Guest Unique Identifier | [optional] - **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 100MB | [optional] + **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json</code><br/> Allowed max file size: 100MB | [optional] ### Return type diff --git a/cloudbeds_pms_v1_3/docs/HotelApi.md b/cloudbeds_pms_v1_3/docs/HotelApi.md index c1f9457..2d10289 100644 --- a/cloudbeds_pms_v1_3/docs/HotelApi.md +++ b/cloudbeds_pms_v1_3/docs/HotelApi.md @@ -318,7 +318,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cloudbeds_pms_v1_3.HotelApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) - file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) + file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB (optional) group_code = 'group_code_example' # str | optional - the group code if the file is to be attached to a group profile (optional) try: @@ -338,7 +338,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] - **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 100MB | [optional] + **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json</code><br/> Allowed max file size: 100MB | [optional] **group_code** | **str**| optional - the group code if the file is to be attached to a group profile | [optional] ### Return type diff --git a/cloudbeds_pms_v1_3/docs/PaymentApi.md b/cloudbeds_pms_v1_3/docs/PaymentApi.md index 8bb0912..1561968 100644 --- a/cloudbeds_pms_v1_3/docs/PaymentApi.md +++ b/cloudbeds_pms_v1_3/docs/PaymentApi.md @@ -180,7 +180,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_charge_post** -> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) +> PostChargeResponse post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) postCharge @@ -228,13 +228,14 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: amount = 'amount_example' # str | Amount to charge (optional) currency = 'currency_example' # str | Currency to charge (optional) description = 'description_example' # str | Description of the payment to display on folio (optional) + card_token = 'card_token_example' # str | cardToken provided by Cloudbeds vault (optional) payment_method_id = 'payment_method_id_example' # str | Payment method UUID (optional) is_deposit = True # bool | determine if this payment is a deposit (default: false) (optional) redirect_url = 'redirect_url_example' # str | client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected (optional) try: # postCharge - api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) + api_response = api_instance.post_charge_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, accounts_receivable_ledger_id=accounts_receivable_ledger_id, amount=amount, currency=currency, description=description, card_token=card_token, payment_method_id=payment_method_id, is_deposit=is_deposit, redirect_url=redirect_url) print("The response of PaymentApi->post_charge_post:\n") pprint(api_response) except Exception as e: @@ -256,6 +257,7 @@ Name | Type | Description | Notes **amount** | **str**| Amount to charge | [optional] **currency** | **str**| Currency to charge | [optional] **description** | **str**| Description of the payment to display on folio | [optional] + **card_token** | **str**| cardToken provided by Cloudbeds vault | [optional] **payment_method_id** | **str**| Payment method UUID | [optional] **is_deposit** | **bool**| determine if this payment is a deposit (default: false) | [optional] **redirect_url** | **str**| client will be redirected to this page after he completed 3ds challenge. User will be redirected with HTTP get redirect and parameter **result** will be added to query string with possible values: - **failed** if 3ds challenge is not passed - **successful** if 3ds challenge is passed If not provided for card with 3ds the request will be rejected | [optional] @@ -458,11 +460,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_payment_post** -> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) +> PostPaymentResponse post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) postPayment -Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupID. +Add a payment to a specified reservation, house account, or group. If multiple IDs are provided, precedence is reservationID, then houseAccountID, then groupCode. ### Example @@ -501,7 +503,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation identifier (optional) house_account_id = 'house_account_id_example' # str | House Account identifier is necessary if reservationID not sent (optional) - group_id = 'group_id_example' # str | Group ID. Required if neither reservationID nor houseAccountID is sent (optional) + group_code = 'group_code_example' # str | Group Code. Required if neither reservationID nor houseAccountID is sent (optional) sub_reservation_id = 'sub_reservation_id_example' # str | The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. (optional) type = 'type_example' # str | Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. (optional) amount = 3.4 # float | Amount paid on this transaction (optional) @@ -511,7 +513,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: try: # postPayment - api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_id=group_id, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) + api_response = api_instance.post_payment_post(property_id=property_id, reservation_id=reservation_id, house_account_id=house_account_id, group_code=group_code, sub_reservation_id=sub_reservation_id, type=type, amount=amount, card_type=card_type, description=description, is_deposit=is_deposit) print("The response of PaymentApi->post_payment_post:\n") pprint(api_response) except Exception as e: @@ -528,7 +530,7 @@ Name | Type | Description | Notes **property_id** | **str**| Property ID | [optional] **reservation_id** | **str**| Reservation identifier | [optional] **house_account_id** | **str**| House Account identifier is necessary if reservationID not sent | [optional] - **group_id** | **str**| Group ID. Required if neither reservationID nor houseAccountID is sent | [optional] + **group_code** | **str**| Group Code. Required if neither reservationID nor houseAccountID is sent | [optional] **sub_reservation_id** | **str**| The Sub Reservation identifier. reservationID is still mandatory if subReservationID is sent. | [optional] **type** | **str**| Payment type. Use the call [getPaymentMethods](#api-Payment-getPaymentMethods) to get the properties enabled payment methods. | [optional] **amount** | **float**| Amount paid on this transaction | [optional] diff --git a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md index 111fa86..6d5f529 100644 --- a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md index 20b3da8..0ee62b1 100644 --- a/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/PostRoomBlockResponseRoomsInner.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **event_id** | **str** | Event ID (unique identifier for this specific room's block entry) | [optional] **room_id** | **str** | Room ID | [optional] **room_type_id** | **str** | Room Type ID | [optional] +**is_source** | **bool** | Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md index cf1c419..108681b 100644 --- a/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md +++ b/cloudbeds_pms_v1_3/docs/PutRoomBlockResponse.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **success** | **bool** | Returns if the request could be completed | [optional] **property_id** | **str** | Property ID | [optional] **room_block_id** | **str** | Room block ID | [optional] -**room_block_type** | **str** | Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] +**room_block_type** | **str** | Room block type. 'blocked' - Room block. 'out_of_service' - Out of service block. 'courtesy_hold' - Courtesy hold. | [optional] **room_block_reason** | **str** | Room block reason | [optional] **start_date** | **date** | Room block start date | [optional] **end_date** | **date** | Room block end date | [optional] -**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block | [optional] +**rooms** | [**List[PostRoomBlockResponseRoomsInner]**](PostRoomBlockResponseRoomsInner.md) | All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration). | [optional] **message** | **str** | To be used in case any error occurs (if success = false). If success = true, it does not exist. | [optional] ## Example diff --git a/cloudbeds_pms_v1_3/docs/ReservationApi.md b/cloudbeds_pms_v1_3/docs/ReservationApi.md index e87c032..3927698 100644 --- a/cloudbeds_pms_v1_3/docs/ReservationApi.md +++ b/cloudbeds_pms_v1_3/docs/ReservationApi.md @@ -735,7 +735,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: api_instance = cloudbeds_pms_v1_3.ReservationApi(api_client) property_id = 'property_id_example' # str | Property ID (optional) reservation_id = 'reservation_id_example' # str | Reservation Unique Identifier (optional) - file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml
Allowed max file size: 100MB (optional) + file = None # bytearray | Form-based File Upload
Allowed file types: *.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json
Allowed max file size: 100MB (optional) try: # postReservationDocument @@ -755,7 +755,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **property_id** | **str**| Property ID | [optional] **reservation_id** | **str**| Reservation Unique Identifier | [optional] - **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml</code><br/> Allowed max file size: 100MB | [optional] + **file** | **bytearray**| Form-based File Upload<br/> Allowed file types: <code>*.pdf, *.rtf, *.doc, *.docx, *.txt, *.jpg, *.jpeg, *.png, *.gif, *.csv, *.xls, *.xlsx, *.xml, *.json</code><br/> Allowed max file size: 100MB | [optional] ### Return type diff --git a/cloudbeds_pms_v1_3/docs/RoomApi.md b/cloudbeds_pms_v1_3/docs/RoomApi.md index c449181..66cc088 100644 --- a/cloudbeds_pms_v1_3/docs/RoomApi.md +++ b/cloudbeds_pms_v1_3/docs/RoomApi.md @@ -916,7 +916,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + rooms = [cloudbeds_pms_v1_3.PostRoomBlockRequestRoomsInner()] # List[PostRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). (optional) first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) @@ -944,7 +944,7 @@ Name | Type | Description | Notes **room_block_reason** | **str**| Room block reason | [optional] **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] - **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + **rooms** | [**List[PostRoomBlockRequestRoomsInner]**](PostRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). | [optional] **first_name** | **str**| First name - for courtesy hold updates | [optional] **last_name** | **str**| Last name - for courtesy hold updates | [optional] **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] @@ -1195,7 +1195,7 @@ with cloudbeds_pms_v1_3.ApiClient(configuration) as api_client: room_block_reason = 'room_block_reason_example' # str | Room block reason (optional) start_date = '2013-10-20' # date | Room block start date (optional) end_date = '2013-10-20' # date | Room block end date (optional) - rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. (optional) + rooms = [cloudbeds_pms_v1_3.PutRoomBlockRequestRoomsInner()] # List[PutRoomBlockRequestRoomsInner] | All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. (optional) first_name = 'first_name_example' # str | First name - for courtesy hold updates (optional) last_name = 'last_name_example' # str | Last name - for courtesy hold updates (optional) length_of_hold_in_hours = 56 # int | Length of hold in hours - for courtesy hold updates (optional) @@ -1223,7 +1223,7 @@ Name | Type | Description | Notes **room_block_reason** | **str**| Room block reason | [optional] **start_date** | **date**| Room block start date | [optional] **end_date** | **date**| Room block end date | [optional] - **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. | [optional] + **rooms** | [**List[PutRoomBlockRequestRoomsInner]**](PutRoomBlockRequestRoomsInner.md)| All rooms for room block. When multiple rooms are submitted they will be created under the same roomBlockID. For properties using split inventory (virtual rooms linked to physical rooms), only provide the source rooms you want to block. Linked rooms will be automatically added. Do not include auto-added linked rooms in the request - the API will reject requests that include both a source room and its linked room(s). Auto-added rooms cannot be individually swapped out; to remove an auto-added room, you must remove or swap its source room. | [optional] **first_name** | **str**| First name - for courtesy hold updates | [optional] **last_name** | **str**| Last name - for courtesy hold updates | [optional] **length_of_hold_in_hours** | **int**| Length of hold in hours - for courtesy hold updates | [optional] diff --git a/cloudbeds_pms_v1_3/models/__init__.py b/cloudbeds_pms_v1_3/models/__init__.py index de09fe6..909e47a 100644 --- a/cloudbeds_pms_v1_3/models/__init__.py +++ b/cloudbeds_pms_v1_3/models/__init__.py @@ -156,6 +156,7 @@ from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response import GetReservationsWithRateDetailsResponse from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner import GetReservationsWithRateDetailsResponseDataInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from cloudbeds_pms_v1_3.models.get_room_blocks_response import GetRoomBlocksResponse diff --git a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py index 773486c..df13b92 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_response_data_inner_guest_list_value.py @@ -44,19 +44,19 @@ class GetReservationsResponseDataInnerGuestListValue(BaseModel): guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") - guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") + guest_birthdate: Optional[StrictStr] = Field(default=None, alias="guestBirthdate") guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") - guest_document_issue_date: Optional[date] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issue_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssueDate") guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") - guest_document_expiration_date: Optional[date] = Field(default=None, alias="guestDocumentExpirationDate") + guest_document_expiration_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentExpirationDate") tax_id: Optional[StrictStr] = Field(default=None, description="Guest's tax ID", alias="taxID") company_tax_id: Optional[StrictStr] = Field(default=None, description="Guest's company tax ID", alias="companyTaxID") company_name: Optional[StrictStr] = Field(default=None, description="Guest's company name", alias="companyName") sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") start_date: Optional[date] = Field(default=None, alias="startDate") end_date: Optional[date] = Field(default=None, alias="endDate") - assigned_room: Optional[StrictStr] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + assigned_room: Optional[StrictBool] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") room_type_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomTypeName") diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py index 9fd5bb0..ef9e0f6 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner -from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value import GetReservationsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed import GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner import GetReservationsWithRateDetailsResponseDataInnerRoomsInner from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source import GetReservationsWithRateDetailsResponseDataInnerSource from typing import Optional, Set @@ -46,18 +46,18 @@ class GetReservationsWithRateDetailsResponseDataInner(BaseModel): reservation_check_out: Optional[datetime] = Field(default=None, alias="reservationCheckOut") guest_id: Optional[StrictStr] = Field(default=None, description="Main guest ID", alias="guestID") profile_id: Optional[StrictStr] = Field(default=None, description="Main guest profile ID", alias="profileID") - guest_country: Optional[StrictInt] = Field(default=None, description="Main guest Country", alias="guestCountry") + guest_country: Optional[StrictStr] = Field(default=None, description="Main guest Country", alias="guestCountry") source_name: Optional[StrictStr] = Field(default=None, description="Reservation source", alias="sourceName") source: Optional[GetReservationsWithRateDetailsResponseDataInnerSource] = None - source_category: Optional[StrictInt] = Field(default=None, description="Reservation source category", alias="sourceCategory") - source_reservation_id: Optional[StrictInt] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") - property_currency: Optional[StrictInt] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") + source_category: Optional[StrictStr] = Field(default=None, description="Reservation source category", alias="sourceCategory") + source_reservation_id: Optional[StrictStr] = Field(default=None, description="Reservation ID on the source", alias="sourceReservationID") + property_currency: Optional[StrictStr] = Field(default=None, description="Property currency ISO-formatted (3 characters)", alias="propertyCurrency") balance_detailed: Optional[GetReservationsWithRateDetailsResponseDataInnerBalanceDetailed] = Field(default=None, alias="balanceDetailed") - detailed_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") + detailed_rates: Optional[Dict[str, Any]] = Field(default=None, description="Associative object, where key is the date, and value is the total rate for that date.", alias="detailedRates") rooms: Optional[List[GetReservationsWithRateDetailsResponseDataInnerRoomsInner]] = Field(default=None, description="Array with rooms information") origin: Optional[StrictStr] = Field(default=None, description="Reservation origin") meal_plans: Optional[StrictStr] = Field(default=None, description="Reservation meal plans", alias="mealPlans") - guest_list: Optional[Dict[str, GetReservationsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") + guest_list: Optional[Dict[str, GetReservationsWithRateDetailsResponseDataInnerGuestListValue]] = Field(default=None, description="A map of guest IDs to guest objects (key is the Guest ID). It contains an entry for each guest included on the reservation. Only returned if \"includeGuestsDetails\" is true", alias="guestList") third_party_identifier: Optional[StrictStr] = Field(default=None, alias="thirdPartyIdentifier") custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of reservation custom fields. Only returned if \"includeCustomFields\" is true", alias="customFields") estimated_arrival_time: Optional[StrictStr] = Field(default=None, description="Estimated arrival time, 24-hour format.", alias="estimatedArrivalTime") @@ -221,7 +221,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "origin": obj.get("origin"), "mealPlans": obj.get("mealPlans"), "guestList": dict( - (_k, GetReservationsResponseDataInnerGuestListValue.from_dict(_v)) + (_k, GetReservationsWithRateDetailsResponseDataInnerGuestListValue.from_dict(_v)) for _k, _v in obj["guestList"].items() ) if obj.get("guestList") is not None diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py new file mode 100644 index 0000000..03b06ce --- /dev/null +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_guest_list_value.py @@ -0,0 +1,380 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner import GetGuestsModifiedResponseDataInnerCustomFieldsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner import GetReservationsResponseDataInnerGuestListValueRoomsInner +from cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner import GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner +from typing import Optional, Set +from typing_extensions import Self + +class GetReservationsWithRateDetailsResponseDataInnerGuestListValue(BaseModel): + """ + GetReservationsWithRateDetailsResponseDataInnerGuestListValue + """ # noqa: E501 + guest_id: Optional[StrictStr] = Field(default=None, description="ID of the guest", alias="guestID") + guest_name: Optional[StrictStr] = Field(default=None, alias="guestName") + guest_first_name: Optional[StrictStr] = Field(default=None, alias="guestFirstName") + guest_last_name: Optional[StrictStr] = Field(default=None, alias="guestLastName") + guest_gender: Optional[StrictStr] = Field(default=None, alias="guestGender") + guest_email: Optional[StrictStr] = Field(default=None, alias="guestEmail") + guest_phone: Optional[StrictStr] = Field(default=None, alias="guestPhone") + guest_cell_phone: Optional[StrictStr] = Field(default=None, alias="guestCellPhone") + guest_address: Optional[StrictStr] = Field(default=None, alias="guestAddress") + guest_address2: Optional[StrictStr] = Field(default=None, alias="guestAddress2") + guest_city: Optional[StrictStr] = Field(default=None, alias="guestCity") + guest_state: Optional[StrictStr] = Field(default=None, alias="guestState") + guest_country: Optional[StrictStr] = Field(default=None, alias="guestCountry") + guest_zip: Optional[StrictStr] = Field(default=None, alias="guestZip") + guest_birthdate: Optional[date] = Field(default=None, alias="guestBirthdate") + guest_document_type: Optional[StrictStr] = Field(default=None, alias="guestDocumentType") + guest_document_number: Optional[StrictStr] = Field(default=None, alias="guestDocumentNumber") + guest_document_issue_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssueDate") + guest_document_issuing_country: Optional[StrictStr] = Field(default=None, alias="guestDocumentIssuingCountry") + guest_document_expiration_date: Optional[StrictStr] = Field(default=None, alias="guestDocumentExpirationDate") + tax_id: Optional[StrictStr] = Field(default=None, description="Guest's tax ID", alias="taxID") + company_tax_id: Optional[StrictStr] = Field(default=None, description="Guest's company tax ID", alias="companyTaxID") + company_name: Optional[StrictStr] = Field(default=None, description="Guest's company name", alias="companyName") + sub_reservation_id: Optional[StrictStr] = Field(default=None, alias="subReservationID") + start_date: Optional[date] = Field(default=None, alias="startDate") + end_date: Optional[date] = Field(default=None, alias="endDate") + assigned_room: Optional[StrictBool] = Field(default=None, description="Returns true if guest has roomed assigned, false if not", alias="assignedRoom") + room_id: Optional[StrictStr] = Field(default=None, description="Room ID where guest is assigned", alias="roomID") + room_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomName") + room_type_name: Optional[StrictStr] = Field(default=None, description="Room Name where guest is assigned", alias="roomTypeName") + room_type_is_virtual: Optional[StrictBool] = Field(default=None, description="If room is virtual (true) or physical (false)", alias="roomTypeIsVirtual") + rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueRoomsInner]] = Field(default=None, description="List of all rooms that guest is assigned to") + unassigned_rooms: Optional[List[GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner]] = Field(default=None, description="List of all unassigned rooms", alias="unassignedRooms") + guest_requirements: Optional[Dict[str, Any]] = Field(default=None, description="Guest requirements data. Only included if `includeGuestsDetails=true` and `includeGuestRequirements=true`.", alias="guestRequirements") + custom_fields: Optional[List[GetGuestsModifiedResponseDataInnerCustomFieldsInner]] = Field(default=None, description="List of guest custom fields", alias="customFields") + is_anonymized: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest data was removed upon request", alias="isAnonymized") + is_main_guest: Optional[StrictBool] = Field(default=None, description="Flag indicating the guest is the main guest on the reservation", alias="isMainGuest") + __properties: ClassVar[List[str]] = ["guestID", "guestName", "guestFirstName", "guestLastName", "guestGender", "guestEmail", "guestPhone", "guestCellPhone", "guestAddress", "guestAddress2", "guestCity", "guestState", "guestCountry", "guestZip", "guestBirthdate", "guestDocumentType", "guestDocumentNumber", "guestDocumentIssueDate", "guestDocumentIssuingCountry", "guestDocumentExpirationDate", "taxID", "companyTaxID", "companyName", "subReservationID", "startDate", "endDate", "assignedRoom", "roomID", "roomName", "roomTypeName", "roomTypeIsVirtual", "rooms", "unassignedRooms", "guestRequirements", "customFields", "isAnonymized", "isMainGuest"] + + @field_validator('guest_gender') + def guest_gender_validate_enum(cls, value): + """Validates the enum, returning unknown_default_open_api for unrecognized values""" + if value is None: + return value + + _allowed_values = set(['M', 'F', 'N/A', 'unknown_default_open_api']) + if value not in _allowed_values: + return 'unknown_default_open_api' + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rooms (list) + _items = [] + if self.rooms: + for _item_rooms in self.rooms: + if _item_rooms: + _items.append(_item_rooms.to_dict()) + _dict['rooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in unassigned_rooms (list) + _items = [] + if self.unassigned_rooms: + for _item_unassigned_rooms in self.unassigned_rooms: + if _item_unassigned_rooms: + _items.append(_item_unassigned_rooms.to_dict()) + _dict['unassignedRooms'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) + _items = [] + if self.custom_fields: + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.to_dict()) + _dict['customFields'] = _items + # set to None if guest_id (nullable) is None + # and model_fields_set contains the field + if self.guest_id is None and "guest_id" in self.model_fields_set: + _dict['guestID'] = None + + # set to None if guest_name (nullable) is None + # and model_fields_set contains the field + if self.guest_name is None and "guest_name" in self.model_fields_set: + _dict['guestName'] = None + + # set to None if guest_first_name (nullable) is None + # and model_fields_set contains the field + if self.guest_first_name is None and "guest_first_name" in self.model_fields_set: + _dict['guestFirstName'] = None + + # set to None if guest_last_name (nullable) is None + # and model_fields_set contains the field + if self.guest_last_name is None and "guest_last_name" in self.model_fields_set: + _dict['guestLastName'] = None + + # set to None if guest_gender (nullable) is None + # and model_fields_set contains the field + if self.guest_gender is None and "guest_gender" in self.model_fields_set: + _dict['guestGender'] = None + + # set to None if guest_email (nullable) is None + # and model_fields_set contains the field + if self.guest_email is None and "guest_email" in self.model_fields_set: + _dict['guestEmail'] = None + + # set to None if guest_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_phone is None and "guest_phone" in self.model_fields_set: + _dict['guestPhone'] = None + + # set to None if guest_cell_phone (nullable) is None + # and model_fields_set contains the field + if self.guest_cell_phone is None and "guest_cell_phone" in self.model_fields_set: + _dict['guestCellPhone'] = None + + # set to None if guest_address (nullable) is None + # and model_fields_set contains the field + if self.guest_address is None and "guest_address" in self.model_fields_set: + _dict['guestAddress'] = None + + # set to None if guest_address2 (nullable) is None + # and model_fields_set contains the field + if self.guest_address2 is None and "guest_address2" in self.model_fields_set: + _dict['guestAddress2'] = None + + # set to None if guest_city (nullable) is None + # and model_fields_set contains the field + if self.guest_city is None and "guest_city" in self.model_fields_set: + _dict['guestCity'] = None + + # set to None if guest_state (nullable) is None + # and model_fields_set contains the field + if self.guest_state is None and "guest_state" in self.model_fields_set: + _dict['guestState'] = None + + # set to None if guest_country (nullable) is None + # and model_fields_set contains the field + if self.guest_country is None and "guest_country" in self.model_fields_set: + _dict['guestCountry'] = None + + # set to None if guest_zip (nullable) is None + # and model_fields_set contains the field + if self.guest_zip is None and "guest_zip" in self.model_fields_set: + _dict['guestZip'] = None + + # set to None if guest_birthdate (nullable) is None + # and model_fields_set contains the field + if self.guest_birthdate is None and "guest_birthdate" in self.model_fields_set: + _dict['guestBirthdate'] = None + + # set to None if guest_document_type (nullable) is None + # and model_fields_set contains the field + if self.guest_document_type is None and "guest_document_type" in self.model_fields_set: + _dict['guestDocumentType'] = None + + # set to None if guest_document_number (nullable) is None + # and model_fields_set contains the field + if self.guest_document_number is None and "guest_document_number" in self.model_fields_set: + _dict['guestDocumentNumber'] = None + + # set to None if guest_document_issue_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issue_date is None and "guest_document_issue_date" in self.model_fields_set: + _dict['guestDocumentIssueDate'] = None + + # set to None if guest_document_issuing_country (nullable) is None + # and model_fields_set contains the field + if self.guest_document_issuing_country is None and "guest_document_issuing_country" in self.model_fields_set: + _dict['guestDocumentIssuingCountry'] = None + + # set to None if guest_document_expiration_date (nullable) is None + # and model_fields_set contains the field + if self.guest_document_expiration_date is None and "guest_document_expiration_date" in self.model_fields_set: + _dict['guestDocumentExpirationDate'] = None + + # set to None if tax_id (nullable) is None + # and model_fields_set contains the field + if self.tax_id is None and "tax_id" in self.model_fields_set: + _dict['taxID'] = None + + # set to None if company_tax_id (nullable) is None + # and model_fields_set contains the field + if self.company_tax_id is None and "company_tax_id" in self.model_fields_set: + _dict['companyTaxID'] = None + + # set to None if company_name (nullable) is None + # and model_fields_set contains the field + if self.company_name is None and "company_name" in self.model_fields_set: + _dict['companyName'] = None + + # set to None if sub_reservation_id (nullable) is None + # and model_fields_set contains the field + if self.sub_reservation_id is None and "sub_reservation_id" in self.model_fields_set: + _dict['subReservationID'] = None + + # set to None if start_date (nullable) is None + # and model_fields_set contains the field + if self.start_date is None and "start_date" in self.model_fields_set: + _dict['startDate'] = None + + # set to None if end_date (nullable) is None + # and model_fields_set contains the field + if self.end_date is None and "end_date" in self.model_fields_set: + _dict['endDate'] = None + + # set to None if assigned_room (nullable) is None + # and model_fields_set contains the field + if self.assigned_room is None and "assigned_room" in self.model_fields_set: + _dict['assignedRoom'] = None + + # set to None if room_id (nullable) is None + # and model_fields_set contains the field + if self.room_id is None and "room_id" in self.model_fields_set: + _dict['roomID'] = None + + # set to None if room_name (nullable) is None + # and model_fields_set contains the field + if self.room_name is None and "room_name" in self.model_fields_set: + _dict['roomName'] = None + + # set to None if room_type_name (nullable) is None + # and model_fields_set contains the field + if self.room_type_name is None and "room_type_name" in self.model_fields_set: + _dict['roomTypeName'] = None + + # set to None if room_type_is_virtual (nullable) is None + # and model_fields_set contains the field + if self.room_type_is_virtual is None and "room_type_is_virtual" in self.model_fields_set: + _dict['roomTypeIsVirtual'] = None + + # set to None if rooms (nullable) is None + # and model_fields_set contains the field + if self.rooms is None and "rooms" in self.model_fields_set: + _dict['rooms'] = None + + # set to None if unassigned_rooms (nullable) is None + # and model_fields_set contains the field + if self.unassigned_rooms is None and "unassigned_rooms" in self.model_fields_set: + _dict['unassignedRooms'] = None + + # set to None if guest_requirements (nullable) is None + # and model_fields_set contains the field + if self.guest_requirements is None and "guest_requirements" in self.model_fields_set: + _dict['guestRequirements'] = None + + # set to None if custom_fields (nullable) is None + # and model_fields_set contains the field + if self.custom_fields is None and "custom_fields" in self.model_fields_set: + _dict['customFields'] = None + + # set to None if is_anonymized (nullable) is None + # and model_fields_set contains the field + if self.is_anonymized is None and "is_anonymized" in self.model_fields_set: + _dict['isAnonymized'] = None + + # set to None if is_main_guest (nullable) is None + # and model_fields_set contains the field + if self.is_main_guest is None and "is_main_guest" in self.model_fields_set: + _dict['isMainGuest'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetReservationsWithRateDetailsResponseDataInnerGuestListValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "guestID": obj.get("guestID"), + "guestName": obj.get("guestName"), + "guestFirstName": obj.get("guestFirstName"), + "guestLastName": obj.get("guestLastName"), + "guestGender": obj.get("guestGender"), + "guestEmail": obj.get("guestEmail"), + "guestPhone": obj.get("guestPhone"), + "guestCellPhone": obj.get("guestCellPhone"), + "guestAddress": obj.get("guestAddress"), + "guestAddress2": obj.get("guestAddress2"), + "guestCity": obj.get("guestCity"), + "guestState": obj.get("guestState"), + "guestCountry": obj.get("guestCountry"), + "guestZip": obj.get("guestZip"), + "guestBirthdate": obj.get("guestBirthdate"), + "guestDocumentType": obj.get("guestDocumentType"), + "guestDocumentNumber": obj.get("guestDocumentNumber"), + "guestDocumentIssueDate": obj.get("guestDocumentIssueDate"), + "guestDocumentIssuingCountry": obj.get("guestDocumentIssuingCountry"), + "guestDocumentExpirationDate": obj.get("guestDocumentExpirationDate"), + "taxID": obj.get("taxID"), + "companyTaxID": obj.get("companyTaxID"), + "companyName": obj.get("companyName"), + "subReservationID": obj.get("subReservationID"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "assignedRoom": obj.get("assignedRoom"), + "roomID": obj.get("roomID"), + "roomName": obj.get("roomName"), + "roomTypeName": obj.get("roomTypeName"), + "roomTypeIsVirtual": obj.get("roomTypeIsVirtual"), + "rooms": [GetReservationsResponseDataInnerGuestListValueRoomsInner.from_dict(_item) for _item in obj["rooms"]] if obj.get("rooms") is not None else None, + "unassignedRooms": [GetReservationsResponseDataInnerGuestListValueUnassignedRoomsInner.from_dict(_item) for _item in obj["unassignedRooms"]] if obj.get("unassignedRooms") is not None else None, + "guestRequirements": obj.get("guestRequirements"), + "customFields": [GetGuestsModifiedResponseDataInnerCustomFieldsInner.from_dict(_item) for _item in obj["customFields"]] if obj.get("customFields") is not None else None, + "isAnonymized": obj.get("isAnonymized"), + "isMainGuest": obj.get("isMainGuest") + }) + return _obj + + diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py index e2bec14..2c5aea6 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner.py @@ -32,7 +32,7 @@ class GetRoomBlocksResponseDataInner(BaseModel): room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[GetRoomBlocksResponseDataInnerRoomsInner]] = Field(default=None, description="All rooms for Block ID") + rooms: Optional[List[GetRoomBlocksResponseDataInnerRoomsInner]] = Field(default=None, description="All rooms for Block ID. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") count: Optional[StrictInt] = Field(default=None, description="Number of results (properties) returned.") __properties: ClassVar[List[str]] = ["roomBlockID", "roomBlockReason", "startDate", "endDate", "rooms", "count"] diff --git a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py index 415d431..3c12cdf 100644 --- a/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_room_blocks_response_data_inner_rooms_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class GetRoomBlocksResponseDataInnerRoomsInner(BaseModel): event_id: Optional[StrictStr] = Field(default=None, description="Event ID (unique identifier for this specific room's block entry)", alias="eventID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") room_type_id: Optional[StrictStr] = Field(default=None, description="Room type ID", alias="roomTypeID") - __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID"] + is_source: Optional[StrictBool] = Field(default=None, description="Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room.", alias="isSource") + __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID", "isSource"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "eventID": obj.get("eventID"), "roomID": obj.get("roomID"), - "roomTypeID": obj.get("roomTypeID") + "roomTypeID": obj.get("roomTypeID"), + "isSource": obj.get("isSource") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response.py b/cloudbeds_pms_v1_3/models/post_room_block_response.py index fe5daa7..40ded62 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response.py @@ -35,7 +35,7 @@ class PostRoomBlockResponse(BaseModel): room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] diff --git a/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py index 22c5d33..5e9df3a 100644 --- a/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/post_room_block_response_rooms_inner.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,8 @@ class PostRoomBlockResponseRoomsInner(BaseModel): event_id: Optional[StrictStr] = Field(default=None, description="Event ID (unique identifier for this specific room's block entry)", alias="eventID") room_id: Optional[StrictStr] = Field(default=None, description="Room ID", alias="roomID") room_type_id: Optional[StrictStr] = Field(default=None, description="Room Type ID", alias="roomTypeID") - __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID"] + is_source: Optional[StrictBool] = Field(default=None, description="Indicates whether this room was explicitly requested (true) or automatically added due to split inventory configuration (false). Auto-added rooms cannot be individually removed or swapped; they are managed through their source room.", alias="isSource") + __properties: ClassVar[List[str]] = ["eventID", "roomID", "roomTypeID", "isSource"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "eventID": obj.get("eventID"), "roomID": obj.get("roomID"), - "roomTypeID": obj.get("roomTypeID") + "roomTypeID": obj.get("roomTypeID"), + "isSource": obj.get("isSource") }) return _obj diff --git a/cloudbeds_pms_v1_3/models/put_room_block_response.py b/cloudbeds_pms_v1_3/models/put_room_block_response.py index 2dbde8f..7c9be2a 100644 --- a/cloudbeds_pms_v1_3/models/put_room_block_response.py +++ b/cloudbeds_pms_v1_3/models/put_room_block_response.py @@ -31,11 +31,11 @@ class PutRoomBlockResponse(BaseModel): success: Optional[StrictBool] = Field(default=None, description="Returns if the request could be completed") property_id: Optional[StrictStr] = Field(default=None, description="Property ID", alias="propertyID") room_block_id: Optional[StrictStr] = Field(default=None, description="Room block ID", alias="roomBlockID") - room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. ‘blocked’ - Room block. ‘out_of_service’ - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType") + room_block_type: Optional[StrictStr] = Field(default=None, description="Room block type. 'blocked' - Room block. 'out_of_service' - Out of service block. 'courtesy_hold' - Courtesy hold.", alias="roomBlockType") room_block_reason: Optional[StrictStr] = Field(default=None, description="Room block reason", alias="roomBlockReason") start_date: Optional[date] = Field(default=None, description="Room block start date", alias="startDate") end_date: Optional[date] = Field(default=None, description="Room block end date", alias="endDate") - rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block") + rooms: Optional[List[PostRoomBlockResponseRoomsInner]] = Field(default=None, description="All rooms for room block. For properties using split inventory, this includes both source rooms (explicitly requested) and linked rooms (automatically added based on shared inventory configuration).") message: Optional[StrictStr] = Field(default=None, description="To be used in case any error occurs (if success = false). If success = true, it does not exist.") __properties: ClassVar[List[str]] = ["success", "propertyID", "roomBlockID", "roomBlockType", "roomBlockReason", "startDate", "endDate", "rooms", "message"] diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py index ef622c2..d2576fa 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response.py @@ -104,19 +104,19 @@ def make_instance(self, include_optional) -> GetReservationsResponse: guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = '', guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py index 51952a5..a76da28 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner.py @@ -101,19 +101,19 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInner: guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = '', guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py index 55cb051..4fb7fba 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_response_data_inner_guest_list_value.py @@ -49,19 +49,19 @@ def make_instance(self, include_optional) -> GetReservationsResponseDataInnerGue guest_state = '', guest_country = '', guest_zip = '', - guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_birthdate = '', guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py index e0766b6..e97f48c 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py @@ -52,16 +52,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), guest_id = '', profile_id = '', - guest_country = 56, + guest_country = '', source_name = '', source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( name = '', payment_collect = 'hotel', source_id = '', category = '', ), - source_category = 56, - source_reservation_id = 56, - property_currency = 56, + source_category = '', + source_reservation_id = '', + property_currency = '', balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( suggested_deposit = '', sub_total = 1.337, @@ -69,9 +69,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo taxes_fees = 1.337, grand_total = 1.337, paid = 1.337, ), - detailed_rates = [ - None - ], + detailed_rates = cloudbeds_pms_v1_3.models.detailed_rates.detailedRates(), rooms = [ cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', @@ -99,7 +97,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo origin = '', meal_plans = '', guest_list = { - 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value.GetReservationsWithRateDetailsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -117,16 +115,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py index 5d03a79..d84833d 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -49,16 +49,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo reservation_check_out = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), guest_id = '', profile_id = '', - guest_country = 56, + guest_country = '', source_name = '', source = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_source.GetReservationsWithRateDetailsResponse_data_inner_source( name = '', payment_collect = 'hotel', source_id = '', category = '', ), - source_category = 56, - source_reservation_id = 56, - property_currency = 56, + source_category = '', + source_reservation_id = '', + property_currency = '', balance_detailed = cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_balance_detailed.GetReservationsWithRateDetailsResponse_data_inner_balanceDetailed( suggested_deposit = '', sub_total = 1.337, @@ -66,9 +66,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo taxes_fees = 1.337, grand_total = 1.337, paid = 1.337, ), - detailed_rates = [ - None - ], + detailed_rates = cloudbeds_pms_v1_3.models.detailed_rates.detailedRates(), rooms = [ cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_rooms_inner.GetReservationsWithRateDetailsResponse_data_inner_rooms_inner( room_type_id = '', @@ -96,7 +94,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo origin = '', meal_plans = '', guest_list = { - 'key' : cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value.GetReservationsResponse_data_inner_guestList_value( + 'key' : cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value.GetReservationsWithRateDetailsResponse_data_inner_guestList_value( guest_id = '', guest_name = '', guest_first_name = '', @@ -114,16 +112,16 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), guest_document_type = '', guest_document_number = '', - guest_document_issue_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_issue_date = '', guest_document_issuing_country = '', - guest_document_expiration_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_expiration_date = '', tax_id = '', company_tax_id = '', company_name = '', sub_reservation_id = '', start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), - assigned_room = '', + assigned_room = True, room_id = '', room_name = '', room_type_name = '', diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py new file mode 100644 index 0000000..d9c998b --- /dev/null +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_guest_list_value.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Cloudbeds API + +

Welcome to the documentation for Cloudbeds API Version v1.3! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.

In this document you will find all the API methods we provide along with explanations for parameters and response examples.

If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our Integrations Portal.

Be sure to subscribe to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.

Endpoint: https://api.cloudbeds.com/api/v1.3/{method}

HTTPS: Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.

Request Format: HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)

Response Format: JSON

Response Header: X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.

\"Run use this link to access our Public collection in Postman.

+ + The version of the OpenAPI document: v1.3 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cloudbeds_pms_v1_3.models.get_reservations_with_rate_details_response_data_inner_guest_list_value import GetReservationsWithRateDetailsResponseDataInnerGuestListValue + +class TestGetReservationsWithRateDetailsResponseDataInnerGuestListValue(unittest.TestCase): + """GetReservationsWithRateDetailsResponseDataInnerGuestListValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetReservationsWithRateDetailsResponseDataInnerGuestListValue: + """Test GetReservationsWithRateDetailsResponseDataInnerGuestListValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetReservationsWithRateDetailsResponseDataInnerGuestListValue` + """ + model = GetReservationsWithRateDetailsResponseDataInnerGuestListValue() + if include_optional: + return GetReservationsWithRateDetailsResponseDataInnerGuestListValue( + guest_id = '', + guest_name = '', + guest_first_name = '', + guest_last_name = '', + guest_gender = 'M', + guest_email = '', + guest_phone = '', + guest_cell_phone = '', + guest_address = '', + guest_address2 = '', + guest_city = '', + guest_state = '', + guest_country = '', + guest_zip = '', + guest_birthdate = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + guest_document_type = '', + guest_document_number = '', + guest_document_issue_date = '', + guest_document_issuing_country = '', + guest_document_expiration_date = '', + tax_id = '', + company_tax_id = '', + company_name = '', + sub_reservation_id = '', + start_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + end_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), + assigned_room = True, + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + rooms = [ + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_rooms_inner.GetReservationsResponse_data_inner_guestList_value_rooms_inner( + reservation_room_id = '', + room_id = '', + room_name = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_id = '', + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + room_status = 'in_house', + sub_reservation_id = '', ) + ], + unassigned_rooms = [ + cloudbeds_pms_v1_3.models.get_reservations_response_data_inner_guest_list_value_unassigned_rooms_inner.GetReservationsResponse_data_inner_guestList_value_unassignedRooms_inner( + reservation_room_id = '', + room_type_id = '', + room_type_name = '', + room_type_is_virtual = True, + room_type_name_short = '', + rate_id = '', + rate_plan_name = '', + sub_reservation_id = '', ) + ], + guest_requirements = cloudbeds_pms_v1_3.models.guest_requirements.guestRequirements(), + custom_fields = [ + cloudbeds_pms_v1_3.models.get_guests_modified_response_data_inner_custom_fields_inner.GetGuestsModifiedResponse_data_inner_customFields_inner( + custom_field_name = '', + custom_field_value = '', ) + ], + is_anonymized = True, + is_main_guest = True + ) + else: + return GetReservationsWithRateDetailsResponseDataInnerGuestListValue( + ) + """ + + def testGetReservationsWithRateDetailsResponseDataInnerGuestListValue(self): + """Test GetReservationsWithRateDetailsResponseDataInnerGuestListValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py index 47f855c..6c9c94e 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response.py @@ -46,7 +46,8 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponse: cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner.GetRoomBlocksResponse_data_inner_rooms_inner( event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], count = 56, ) ], diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py index 2e2bd9b..4f6c90a 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner.py @@ -43,7 +43,8 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInner: cloudbeds_pms_v1_3.models.get_room_blocks_response_data_inner_rooms_inner.GetRoomBlocksResponse_data_inner_rooms_inner( event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], count = 56 ) diff --git a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py index 280d366..3affc2a 100644 --- a/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_room_blocks_response_data_inner_rooms_inner.py @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> GetRoomBlocksResponseDataInnerRooms return GetRoomBlocksResponseDataInnerRoomsInner( event_id = '', room_id = '', - room_type_id = '' + room_type_id = '', + is_source = True ) else: return GetRoomBlocksResponseDataInnerRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_post_room_block_response.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py index 215f981..63c687b 100644 --- a/cloudbeds_pms_v1_3/test/test_post_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response.py @@ -46,7 +46,8 @@ def make_instance(self, include_optional) -> PostRoomBlockResponse: cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], message = '' ) diff --git a/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py index be17885..98e34c4 100644 --- a/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_post_room_block_response_rooms_inner.py @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> PostRoomBlockResponseRoomsInner: return PostRoomBlockResponseRoomsInner( event_id = '', room_id = '', - room_type_id = '' + room_type_id = '', + is_source = True ) else: return PostRoomBlockResponseRoomsInner( diff --git a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py index 2061650..df9b0cb 100644 --- a/cloudbeds_pms_v1_3/test/test_put_room_block_response.py +++ b/cloudbeds_pms_v1_3/test/test_put_room_block_response.py @@ -46,7 +46,8 @@ def make_instance(self, include_optional) -> PutRoomBlockResponse: cloudbeds_pms_v1_3.models.post_room_block_response_rooms_inner.PostRoomBlockResponse_rooms_inner( event_id = '', room_id = '', - room_type_id = '', ) + room_type_id = '', + is_source = True, ) ], message = '' ) diff --git a/openapitools.json b/openapitools.json index 3bff1c1..fb5468c 100644 --- a/openapitools.json +++ b/openapitools.json @@ -10,7 +10,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.11.0", + "packageVersion": "1.12.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1", From 99718288487561c7cf575472bc2ae4f3b9d3ad5d Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 24 Feb 2026 12:11:11 +0000 Subject: [PATCH 46/46] Bump version to 1.13.0 --- README.md | 2 +- VERSION | 2 +- cloudbeds_pms_v1_3/__init__.py | 2 +- cloudbeds_pms_v1_3/api_client.py | 2 +- cloudbeds_pms_v1_3/configuration.py | 2 +- ...tReservationsWithRateDetailsResponseDataInnerRoomsInner.md | 2 +- ...tions_with_rate_details_response_data_inner_rooms_inner.py | 2 +- .../test/test_get_reservations_with_rate_details_response.py | 4 +--- ..._get_reservations_with_rate_details_response_data_inner.py | 4 +--- ...tions_with_rate_details_response_data_inner_rooms_inner.py | 4 +--- openapitools.json | 2 +- 11 files changed, 11 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 42cbb0a..3851bf6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The `cloudbeds_pms_v1_3` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v1.3 -- Package version: 1.12.0 +- Package version: 1.13.0 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/VERSION b/VERSION index 0eed1a2..feaae22 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.12.0 +1.13.0 diff --git a/cloudbeds_pms_v1_3/__init__.py b/cloudbeds_pms_v1_3/__init__.py index 9c29f0a..3f6f63c 100644 --- a/cloudbeds_pms_v1_3/__init__.py +++ b/cloudbeds_pms_v1_3/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "1.12.0" +__version__ = "1.13.0" # import apis into sdk package from cloudbeds_pms_v1_3.api.adjustment_api import AdjustmentApi diff --git a/cloudbeds_pms_v1_3/api_client.py b/cloudbeds_pms_v1_3/api_client.py index add4e22..72de59e 100644 --- a/cloudbeds_pms_v1_3/api_client.py +++ b/cloudbeds_pms_v1_3/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.12.0/python' + self.user_agent = 'OpenAPI-Generator/1.13.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudbeds_pms_v1_3/configuration.py b/cloudbeds_pms_v1_3/configuration.py index 17db83c..a18097e 100644 --- a/cloudbeds_pms_v1_3/configuration.py +++ b/cloudbeds_pms_v1_3/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1.3\n"\ - "SDK Package Version: 1.12.0".\ + "SDK Package Version: 1.13.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md index 035eb5a..55ba84d 100644 --- a/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md +++ b/cloudbeds_pms_v1_3/docs/GetReservationsWithRateDetailsResponseDataInnerRoomsInner.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **room_check_in** | **str** | Check-in date for the room | [optional] **room_check_out** | **str** | Check-out date for the room | [optional] **room_status** | **str** | | [optional] -**detailed_room_rates** | **List[object]** | Associative object, with dates as indexes, and rates as values | [optional] +**detailed_room_rates** | **object** | A map of dates to rates (key is date). It contains an entry for each reserved date. | [optional] **market_name** | **str** | Market segmentation name | [optional] **market_code** | **str** | Market segmentation code | [optional] diff --git a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py index e1ae593..984352f 100644 --- a/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/models/get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -42,7 +42,7 @@ class GetReservationsWithRateDetailsResponseDataInnerRoomsInner(BaseModel): room_check_in: Optional[StrictStr] = Field(default=None, description="Check-in date for the room", alias="roomCheckIn") room_check_out: Optional[StrictStr] = Field(default=None, description="Check-out date for the room", alias="roomCheckOut") room_status: Optional[StrictStr] = Field(default=None, alias="roomStatus") - detailed_room_rates: Optional[List[Dict[str, Any]]] = Field(default=None, description="Associative object, with dates as indexes, and rates as values", alias="detailedRoomRates") + detailed_room_rates: Optional[Dict[str, Any]] = Field(default=None, description="A map of dates to rates (key is date). It contains an entry for each reserved date.", alias="detailedRoomRates") market_name: Optional[StrictStr] = Field(default=None, description="Market segmentation name", alias="marketName") market_code: Optional[StrictStr] = Field(default=None, description="Market segmentation code", alias="marketCode") __properties: ClassVar[List[str]] = ["roomTypeID", "roomTypeIsVirtual", "roomTypeName", "subReservationID", "guestID", "guestName", "rateID", "rateName", "adults", "children", "reservationRoomID", "roomID", "roomName", "roomCheckIn", "roomCheckOut", "roomStatus", "detailedRoomRates", "marketName", "marketCode"] diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py index e97f48c..9d15610 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response.py @@ -88,9 +88,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo room_check_in = '', room_check_out = '', room_status = 'cancelled', - detailed_room_rates = [ - None - ], + detailed_room_rates = cloudbeds_pms_v1_3.models.detailed_room_rates.detailedRoomRates(), market_name = '', market_code = '', ) ], diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py index d84833d..1479e4f 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner.py @@ -85,9 +85,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo room_check_in = '', room_check_out = '', room_status = 'cancelled', - detailed_room_rates = [ - None - ], + detailed_room_rates = cloudbeds_pms_v1_3.models.detailed_room_rates.detailedRoomRates(), market_name = '', market_code = '', ) ], diff --git a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py index a08bff5..67ec9dd 100644 --- a/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py +++ b/cloudbeds_pms_v1_3/test/test_get_reservations_with_rate_details_response_data_inner_rooms_inner.py @@ -51,9 +51,7 @@ def make_instance(self, include_optional) -> GetReservationsWithRateDetailsRespo room_check_in = '', room_check_out = '', room_status = 'cancelled', - detailed_room_rates = [ - None - ], + detailed_room_rates = cloudbeds_pms_v1_3.models.detailed_room_rates.detailedRoomRates(), market_name = '', market_code = '' ) diff --git a/openapitools.json b/openapitools.json index fb5468c..21e50ff 100644 --- a/openapitools.json +++ b/openapitools.json @@ -10,7 +10,7 @@ "additionalProperties": { "packageName": "cloudbeds_pms_v1_3", "projectName": "Cloudbeds PMS V1.3", - "packageVersion": "1.12.0", + "packageVersion": "1.13.0", "packageDescription": "OpenAPI client for Cloudbeds PMS v1.3 API.", "generateSourceCodeOnly": true, "packageUrl": "https://github.com/cloudbeds/cloudbeds-api-python/tree/release/v1",